[2024-12-22 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:00:06 [end_date_ymd] => 2024-12-22 00:00:06 [RateCDR] => 1 ) [2024-12-22 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-21 21:00:06' and `end` < '2024-12-22 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-22 00:00:19] Production.INFO: count ==700 [2024-12-22 00:00:19] Production.ERROR: pbx CDR StartTime 2024-12-21 21:00:06 - End Time 2024-12-22 00:00:06 [2024-12-22 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073684', 'tblTempUsageDetail_20' ) start [2024-12-22 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073684', 'tblTempUsageDetail_20' ) end [2024-12-22 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073684', 'tblTempVendorCDR_20' ) start [2024-12-22 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073684', 'tblTempVendorCDR_20' ) end [2024-12-22 00:00:19] Production.INFO: ProcessCDR(1,14073684,1,1,2) [2024-12-22 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073684', 'tblTempUsageDetail_20' ) start [2024-12-22 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073684', 'tblTempUsageDetail_20' ) end [2024-12-22 00:00:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:00:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:00:25] Production.INFO: ==22920== Releasing lock... [2024-12-22 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:00:25] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:01:05 [end_date_ymd] => 2024-12-22 00:01:05 [RateCDR] => 1 ) [2024-12-22 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:01:05' and `end` < '2024-12-22 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:01:18] Production.INFO: count ==727 [2024-12-22 00:01:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:01:05 - End Time 2024-12-22 00:01:05 [2024-12-22 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073689', 'tblTempUsageDetail_20' ) start [2024-12-22 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073689', 'tblTempUsageDetail_20' ) end [2024-12-22 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073689', 'tblTempVendorCDR_20' ) start [2024-12-22 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073689', 'tblTempVendorCDR_20' ) end [2024-12-22 00:01:18] Production.INFO: ProcessCDR(1,14073689,1,1,2) [2024-12-22 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073689', 'tblTempUsageDetail_20' ) start [2024-12-22 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073689', 'tblTempUsageDetail_20' ) end [2024-12-22 00:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:01:22] Production.INFO: ==23012== Releasing lock... [2024-12-22 00:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:01:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-22 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:02:06 [end_date_ymd] => 2024-12-22 00:02:06 [RateCDR] => 1 ) [2024-12-22 00:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:02:06' and `end` < '2024-12-22 00:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:02:18] Production.INFO: count ==152 [2024-12-22 00:02:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:02:06 - End Time 2024-12-22 00:02:06 [2024-12-22 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073694', 'tblTempUsageDetail_20' ) start [2024-12-22 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073694', 'tblTempUsageDetail_20' ) end [2024-12-22 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073694', 'tblTempVendorCDR_20' ) start [2024-12-22 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073694', 'tblTempVendorCDR_20' ) end [2024-12-22 00:02:18] Production.INFO: ProcessCDR(1,14073694,1,1,2) [2024-12-22 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073694', 'tblTempUsageDetail_20' ) start [2024-12-22 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073694', 'tblTempUsageDetail_20' ) end [2024-12-22 00:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:02:22] Production.INFO: ==23092== Releasing lock... [2024-12-22 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:02:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:03:05 [end_date_ymd] => 2024-12-22 00:03:05 [RateCDR] => 1 ) [2024-12-22 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:03:05' and `end` < '2024-12-22 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:03:17] Production.INFO: count ==152 [2024-12-22 00:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:03:05 - End Time 2024-12-22 00:03:05 [2024-12-22 00:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073699', 'tblTempUsageDetail_20' ) start [2024-12-22 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073699', 'tblTempUsageDetail_20' ) end [2024-12-22 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073699', 'tblTempVendorCDR_20' ) start [2024-12-22 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073699', 'tblTempVendorCDR_20' ) end [2024-12-22 00:03:17] Production.INFO: ProcessCDR(1,14073699,1,1,2) [2024-12-22 00:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073699', 'tblTempUsageDetail_20' ) start [2024-12-22 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073699', 'tblTempUsageDetail_20' ) end [2024-12-22 00:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:03:20] Production.INFO: ==23162== Releasing lock... [2024-12-22 00:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:03:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:04:05 [end_date_ymd] => 2024-12-22 00:04:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:04:05' and `end` < '2024-12-22 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-22 00:04:18] Production.INFO: count ==148 [2024-12-22 00:04:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:04:05 - End Time 2024-12-22 00:04:05 [2024-12-22 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073704', 'tblTempUsageDetail_20' ) start [2024-12-22 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073704', 'tblTempUsageDetail_20' ) end [2024-12-22 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073704', 'tblTempVendorCDR_20' ) start [2024-12-22 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073704', 'tblTempVendorCDR_20' ) end [2024-12-22 00:04:18] Production.INFO: ProcessCDR(1,14073704,1,1,2) [2024-12-22 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073704', 'tblTempUsageDetail_20' ) start [2024-12-22 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073704', 'tblTempUsageDetail_20' ) end [2024-12-22 00:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:04:21] Production.INFO: ==23273== Releasing lock... [2024-12-22 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:04:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:05:04 [end_date_ymd] => 2024-12-22 00:05:04 [RateCDR] => 1 ) [2024-12-22 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-21 21:05:04' and `end` < '2024-12-22 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-22 00:05:16] Production.INFO: count ==143 [2024-12-22 00:05:16] Production.ERROR: pbx CDR StartTime 2024-12-21 21:05:04 - End Time 2024-12-22 00:05:04 [2024-12-22 00:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073707', 'tblTempUsageDetail_20' ) start [2024-12-22 00:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073707', 'tblTempUsageDetail_20' ) end [2024-12-22 00:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073707', 'tblTempVendorCDR_20' ) start [2024-12-22 00:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073707', 'tblTempVendorCDR_20' ) end [2024-12-22 00:05:16] Production.INFO: ProcessCDR(1,14073707,1,1,2) [2024-12-22 00:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073707', 'tblTempUsageDetail_20' ) start [2024-12-22 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073707', 'tblTempUsageDetail_20' ) end [2024-12-22 00:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:05:20] Production.INFO: ==23343== Releasing lock... [2024-12-22 00:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:05:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:06:05 [end_date_ymd] => 2024-12-22 00:06:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:06:05' and `end` < '2024-12-22 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-22 00:06:18] Production.INFO: count ==142 [2024-12-22 00:06:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:06:05 - End Time 2024-12-22 00:06:05 [2024-12-22 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073714', 'tblTempUsageDetail_20' ) start [2024-12-22 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073714', 'tblTempUsageDetail_20' ) end [2024-12-22 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073714', 'tblTempVendorCDR_20' ) start [2024-12-22 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073714', 'tblTempVendorCDR_20' ) end [2024-12-22 00:06:18] Production.INFO: ProcessCDR(1,14073714,1,1,2) [2024-12-22 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073714', 'tblTempUsageDetail_20' ) start [2024-12-22 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073714', 'tblTempUsageDetail_20' ) end [2024-12-22 00:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:06:21] Production.INFO: ==23412== Releasing lock... [2024-12-22 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:06:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:07:04 [end_date_ymd] => 2024-12-22 00:07:04 [RateCDR] => 1 ) [2024-12-22 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-21 21:07:04' and `end` < '2024-12-22 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-22 00:07:16] Production.INFO: count ==142 [2024-12-22 00:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:07:04 - End Time 2024-12-22 00:07:04 [2024-12-22 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073719', 'tblTempUsageDetail_20' ) start [2024-12-22 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073719', 'tblTempUsageDetail_20' ) end [2024-12-22 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073719', 'tblTempVendorCDR_20' ) start [2024-12-22 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073719', 'tblTempVendorCDR_20' ) end [2024-12-22 00:07:17] Production.INFO: ProcessCDR(1,14073719,1,1,2) [2024-12-22 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073719', 'tblTempUsageDetail_20' ) start [2024-12-22 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073719', 'tblTempUsageDetail_20' ) end [2024-12-22 00:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:07:20] Production.INFO: ==23486== Releasing lock... [2024-12-22 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:07:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:08:05 [end_date_ymd] => 2024-12-22 00:08:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:08:05' and `end` < '2024-12-22 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-22 00:08:17] Production.INFO: count ==140 [2024-12-22 00:08:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:08:05 - End Time 2024-12-22 00:08:05 [2024-12-22 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073724', 'tblTempUsageDetail_20' ) start [2024-12-22 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073724', 'tblTempUsageDetail_20' ) end [2024-12-22 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073724', 'tblTempVendorCDR_20' ) start [2024-12-22 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073724', 'tblTempVendorCDR_20' ) end [2024-12-22 00:08:17] Production.INFO: ProcessCDR(1,14073724,1,1,2) [2024-12-22 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073724', 'tblTempUsageDetail_20' ) start [2024-12-22 00:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073724', 'tblTempUsageDetail_20' ) end [2024-12-22 00:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:08:20] Production.INFO: ==23559== Releasing lock... [2024-12-22 00:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:08:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:09:05 [end_date_ymd] => 2024-12-22 00:09:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:09:05' and `end` < '2024-12-22 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-22 00:09:17] Production.INFO: count ==139 [2024-12-22 00:09:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:09:05 - End Time 2024-12-22 00:09:05 [2024-12-22 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073729', 'tblTempUsageDetail_20' ) start [2024-12-22 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073729', 'tblTempUsageDetail_20' ) end [2024-12-22 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073729', 'tblTempVendorCDR_20' ) start [2024-12-22 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073729', 'tblTempVendorCDR_20' ) end [2024-12-22 00:09:17] Production.INFO: ProcessCDR(1,14073729,1,1,2) [2024-12-22 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073729', 'tblTempUsageDetail_20' ) start [2024-12-22 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073729', 'tblTempUsageDetail_20' ) end [2024-12-22 00:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:09:20] Production.INFO: ==23631== Releasing lock... [2024-12-22 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:09:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:10:05 [end_date_ymd] => 2024-12-22 00:10:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:10:05' and `end` < '2024-12-22 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-22 00:10:17] Production.INFO: count ==144 [2024-12-22 00:10:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:10:05 - End Time 2024-12-22 00:10:05 [2024-12-22 00:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073735', 'tblTempUsageDetail_20' ) start [2024-12-22 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073735', 'tblTempUsageDetail_20' ) end [2024-12-22 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073735', 'tblTempVendorCDR_20' ) start [2024-12-22 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073735', 'tblTempVendorCDR_20' ) end [2024-12-22 00:10:17] Production.INFO: ProcessCDR(1,14073735,1,1,2) [2024-12-22 00:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073735', 'tblTempUsageDetail_20' ) start [2024-12-22 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073735', 'tblTempUsageDetail_20' ) end [2024-12-22 00:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:10:21] Production.INFO: ==23705== Releasing lock... [2024-12-22 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:10:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:11:04 [end_date_ymd] => 2024-12-22 00:11:04 [RateCDR] => 1 ) [2024-12-22 00:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:11:04' and `end` < '2024-12-22 00:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:11:16] Production.INFO: count ==161 [2024-12-22 00:11:16] Production.ERROR: pbx CDR StartTime 2024-12-21 21:11:04 - End Time 2024-12-22 00:11:04 [2024-12-22 00:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073740', 'tblTempUsageDetail_20' ) start [2024-12-22 00:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073740', 'tblTempUsageDetail_20' ) end [2024-12-22 00:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073740', 'tblTempVendorCDR_20' ) start [2024-12-22 00:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073740', 'tblTempVendorCDR_20' ) end [2024-12-22 00:11:16] Production.INFO: ProcessCDR(1,14073740,1,1,2) [2024-12-22 00:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073740', 'tblTempUsageDetail_20' ) start [2024-12-22 00:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073740', 'tblTempUsageDetail_20' ) end [2024-12-22 00:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:11:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:11:19] Production.INFO: ==23777== Releasing lock... [2024-12-22 00:11:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:11:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:12:05 [end_date_ymd] => 2024-12-22 00:12:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:12:05' and `end` < '2024-12-22 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-22 00:12:20] Production.INFO: count ==161 [2024-12-22 00:12:20] Production.ERROR: pbx CDR StartTime 2024-12-21 21:12:05 - End Time 2024-12-22 00:12:05 [2024-12-22 00:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073745', 'tblTempUsageDetail_20' ) start [2024-12-22 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073745', 'tblTempUsageDetail_20' ) end [2024-12-22 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073745', 'tblTempVendorCDR_20' ) start [2024-12-22 00:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073745', 'tblTempVendorCDR_20' ) end [2024-12-22 00:12:20] Production.INFO: ProcessCDR(1,14073745,1,1,2) [2024-12-22 00:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073745', 'tblTempUsageDetail_20' ) start [2024-12-22 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073745', 'tblTempUsageDetail_20' ) end [2024-12-22 00:12:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:12:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:12:23] Production.INFO: ==23849== Releasing lock... [2024-12-22 00:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:12:23] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:13:05 [end_date_ymd] => 2024-12-22 00:13:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:13:05' and `end` < '2024-12-22 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-22 00:13:18] Production.INFO: count ==163 [2024-12-22 00:13:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:13:05 - End Time 2024-12-22 00:13:05 [2024-12-22 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073750', 'tblTempUsageDetail_20' ) start [2024-12-22 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073750', 'tblTempUsageDetail_20' ) end [2024-12-22 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073750', 'tblTempVendorCDR_20' ) start [2024-12-22 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073750', 'tblTempVendorCDR_20' ) end [2024-12-22 00:13:18] Production.INFO: ProcessCDR(1,14073750,1,1,2) [2024-12-22 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073750', 'tblTempUsageDetail_20' ) start [2024-12-22 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073750', 'tblTempUsageDetail_20' ) end [2024-12-22 00:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:13:23] Production.INFO: ==23919== Releasing lock... [2024-12-22 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:13:23] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:14:05 [end_date_ymd] => 2024-12-22 00:14:05 [RateCDR] => 1 ) [2024-12-22 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:14:05' and `end` < '2024-12-22 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:14:18] Production.INFO: count ==158 [2024-12-22 00:14:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:14:05 - End Time 2024-12-22 00:14:05 [2024-12-22 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073755', 'tblTempUsageDetail_20' ) start [2024-12-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073755', 'tblTempUsageDetail_20' ) end [2024-12-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073755', 'tblTempVendorCDR_20' ) start [2024-12-22 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073755', 'tblTempVendorCDR_20' ) end [2024-12-22 00:14:18] Production.INFO: ProcessCDR(1,14073755,1,1,2) [2024-12-22 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073755', 'tblTempUsageDetail_20' ) start [2024-12-22 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073755', 'tblTempUsageDetail_20' ) end [2024-12-22 00:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:14:21] Production.INFO: ==23996== Releasing lock... [2024-12-22 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:14:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:15:04 [end_date_ymd] => 2024-12-22 00:15:04 [RateCDR] => 1 ) [2024-12-22 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-21 21:15:04' and `end` < '2024-12-22 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-22 00:15:16] Production.INFO: count ==153 [2024-12-22 00:15:16] Production.ERROR: pbx CDR StartTime 2024-12-21 21:15:04 - End Time 2024-12-22 00:15:04 [2024-12-22 00:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073760', 'tblTempUsageDetail_20' ) start [2024-12-22 00:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073760', 'tblTempUsageDetail_20' ) end [2024-12-22 00:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073760', 'tblTempVendorCDR_20' ) start [2024-12-22 00:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073760', 'tblTempVendorCDR_20' ) end [2024-12-22 00:15:16] Production.INFO: ProcessCDR(1,14073760,1,1,2) [2024-12-22 00:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073760', 'tblTempUsageDetail_20' ) start [2024-12-22 00:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073760', 'tblTempUsageDetail_20' ) end [2024-12-22 00:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:15:19] Production.INFO: ==24069== Releasing lock... [2024-12-22 00:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:15:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:16:05 [end_date_ymd] => 2024-12-22 00:16:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:16:05' and `end` < '2024-12-22 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-22 00:16:17] Production.INFO: count ==153 [2024-12-22 00:16:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:16:05 - End Time 2024-12-22 00:16:05 [2024-12-22 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073765', 'tblTempUsageDetail_20' ) start [2024-12-22 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073765', 'tblTempUsageDetail_20' ) end [2024-12-22 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073765', 'tblTempVendorCDR_20' ) start [2024-12-22 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073765', 'tblTempVendorCDR_20' ) end [2024-12-22 00:16:17] Production.INFO: ProcessCDR(1,14073765,1,1,2) [2024-12-22 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073765', 'tblTempUsageDetail_20' ) start [2024-12-22 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073765', 'tblTempUsageDetail_20' ) end [2024-12-22 00:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:16:20] Production.INFO: ==24144== Releasing lock... [2024-12-22 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:16:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:17:05 [end_date_ymd] => 2024-12-22 00:17:05 [RateCDR] => 1 ) [2024-12-22 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:17:05' and `end` < '2024-12-22 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:17:17] Production.INFO: count ==155 [2024-12-22 00:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:17:05 - End Time 2024-12-22 00:17:05 [2024-12-22 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073770', 'tblTempUsageDetail_20' ) start [2024-12-22 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073770', 'tblTempUsageDetail_20' ) end [2024-12-22 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073770', 'tblTempVendorCDR_20' ) start [2024-12-22 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073770', 'tblTempVendorCDR_20' ) end [2024-12-22 00:17:17] Production.INFO: ProcessCDR(1,14073770,1,1,2) [2024-12-22 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073770', 'tblTempUsageDetail_20' ) start [2024-12-22 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073770', 'tblTempUsageDetail_20' ) end [2024-12-22 00:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:17:22] Production.INFO: ==24230== Releasing lock... [2024-12-22 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:17:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:18:05 [end_date_ymd] => 2024-12-22 00:18:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:18:05' and `end` < '2024-12-22 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-22 00:18:17] Production.INFO: count ==156 [2024-12-22 00:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:18:05 - End Time 2024-12-22 00:18:05 [2024-12-22 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073775', 'tblTempUsageDetail_20' ) start [2024-12-22 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073775', 'tblTempUsageDetail_20' ) end [2024-12-22 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073775', 'tblTempVendorCDR_20' ) start [2024-12-22 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073775', 'tblTempVendorCDR_20' ) end [2024-12-22 00:18:17] Production.INFO: ProcessCDR(1,14073775,1,1,2) [2024-12-22 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073775', 'tblTempUsageDetail_20' ) start [2024-12-22 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073775', 'tblTempUsageDetail_20' ) end [2024-12-22 00:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:18:21] Production.INFO: ==24306== Releasing lock... [2024-12-22 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:18:21] Production.INFO: 29 MB #Memory Used# [2024-12-22 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:19:05 [end_date_ymd] => 2024-12-22 00:19:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:19:05' and `end` < '2024-12-22 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-22 00:19:17] Production.INFO: count ==147 [2024-12-22 00:19:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:19:05 - End Time 2024-12-22 00:19:05 [2024-12-22 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073780', 'tblTempUsageDetail_20' ) start [2024-12-22 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073780', 'tblTempUsageDetail_20' ) end [2024-12-22 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073780', 'tblTempVendorCDR_20' ) start [2024-12-22 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073780', 'tblTempVendorCDR_20' ) end [2024-12-22 00:19:17] Production.INFO: ProcessCDR(1,14073780,1,1,2) [2024-12-22 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073780', 'tblTempUsageDetail_20' ) start [2024-12-22 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073780', 'tblTempUsageDetail_20' ) end [2024-12-22 00:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:19:20] Production.INFO: ==24416== Releasing lock... [2024-12-22 00:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:19:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:20:05 [end_date_ymd] => 2024-12-22 00:20:05 [RateCDR] => 1 ) [2024-12-22 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:20:05' and `end` < '2024-12-22 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:20:17] Production.INFO: count ==151 [2024-12-22 00:20:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:20:05 - End Time 2024-12-22 00:20:05 [2024-12-22 00:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073785', 'tblTempUsageDetail_20' ) start [2024-12-22 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073785', 'tblTempUsageDetail_20' ) end [2024-12-22 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073785', 'tblTempVendorCDR_20' ) start [2024-12-22 00:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073785', 'tblTempVendorCDR_20' ) end [2024-12-22 00:20:17] Production.INFO: ProcessCDR(1,14073785,1,1,2) [2024-12-22 00:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073785', 'tblTempUsageDetail_20' ) start [2024-12-22 00:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073785', 'tblTempUsageDetail_20' ) end [2024-12-22 00:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:20:20] Production.INFO: ==24488== Releasing lock... [2024-12-22 00:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:20:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:21:04 [end_date_ymd] => 2024-12-22 00:21:04 [RateCDR] => 1 ) [2024-12-22 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-21 21:21:04' and `end` < '2024-12-22 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-22 00:21:16] Production.INFO: count ==160 [2024-12-22 00:21:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:21:04 - End Time 2024-12-22 00:21:04 [2024-12-22 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073791', 'tblTempUsageDetail_20' ) start [2024-12-22 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073791', 'tblTempUsageDetail_20' ) end [2024-12-22 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073791', 'tblTempVendorCDR_20' ) start [2024-12-22 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073791', 'tblTempVendorCDR_20' ) end [2024-12-22 00:21:17] Production.INFO: ProcessCDR(1,14073791,1,1,2) [2024-12-22 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073791', 'tblTempUsageDetail_20' ) start [2024-12-22 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073791', 'tblTempUsageDetail_20' ) end [2024-12-22 00:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:21:20] Production.INFO: ==24561== Releasing lock... [2024-12-22 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:21:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:22:05 [end_date_ymd] => 2024-12-22 00:22:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:22:05' and `end` < '2024-12-22 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-22 00:22:17] Production.INFO: count ==160 [2024-12-22 00:22:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:22:05 - End Time 2024-12-22 00:22:05 [2024-12-22 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073796', 'tblTempUsageDetail_20' ) start [2024-12-22 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073796', 'tblTempUsageDetail_20' ) end [2024-12-22 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073796', 'tblTempVendorCDR_20' ) start [2024-12-22 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073796', 'tblTempVendorCDR_20' ) end [2024-12-22 00:22:17] Production.INFO: ProcessCDR(1,14073796,1,1,2) [2024-12-22 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073796', 'tblTempUsageDetail_20' ) start [2024-12-22 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073796', 'tblTempUsageDetail_20' ) end [2024-12-22 00:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:22:20] Production.INFO: ==24635== Releasing lock... [2024-12-22 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:22:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:23:05 [end_date_ymd] => 2024-12-22 00:23:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:23:05' and `end` < '2024-12-22 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-22 00:23:17] Production.INFO: count ==155 [2024-12-22 00:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:23:05 - End Time 2024-12-22 00:23:05 [2024-12-22 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073801', 'tblTempUsageDetail_20' ) start [2024-12-22 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073801', 'tblTempUsageDetail_20' ) end [2024-12-22 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073801', 'tblTempVendorCDR_20' ) start [2024-12-22 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073801', 'tblTempVendorCDR_20' ) end [2024-12-22 00:23:17] Production.INFO: ProcessCDR(1,14073801,1,1,2) [2024-12-22 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073801', 'tblTempUsageDetail_20' ) start [2024-12-22 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073801', 'tblTempUsageDetail_20' ) end [2024-12-22 00:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:23:20] Production.INFO: ==24709== Releasing lock... [2024-12-22 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:23:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:24:05 [end_date_ymd] => 2024-12-22 00:24:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:24:05' and `end` < '2024-12-22 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-22 00:24:17] Production.INFO: count ==152 [2024-12-22 00:24:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:24:05 - End Time 2024-12-22 00:24:05 [2024-12-22 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073806', 'tblTempUsageDetail_20' ) start [2024-12-22 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073806', 'tblTempUsageDetail_20' ) end [2024-12-22 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073806', 'tblTempVendorCDR_20' ) start [2024-12-22 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073806', 'tblTempVendorCDR_20' ) end [2024-12-22 00:24:17] Production.INFO: ProcessCDR(1,14073806,1,1,2) [2024-12-22 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073806', 'tblTempUsageDetail_20' ) start [2024-12-22 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073806', 'tblTempUsageDetail_20' ) end [2024-12-22 00:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:24:21] Production.INFO: ==24779== Releasing lock... [2024-12-22 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:24:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:25:04 [end_date_ymd] => 2024-12-22 00:25:04 [RateCDR] => 1 ) [2024-12-22 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:25:04' and `end` < '2024-12-22 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:25:16] Production.INFO: count ==151 [2024-12-22 00:25:16] Production.ERROR: pbx CDR StartTime 2024-12-21 21:25:04 - End Time 2024-12-22 00:25:04 [2024-12-22 00:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073811', 'tblTempUsageDetail_20' ) start [2024-12-22 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073811', 'tblTempUsageDetail_20' ) end [2024-12-22 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073811', 'tblTempVendorCDR_20' ) start [2024-12-22 00:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073811', 'tblTempVendorCDR_20' ) end [2024-12-22 00:25:16] Production.INFO: ProcessCDR(1,14073811,1,1,2) [2024-12-22 00:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073811', 'tblTempUsageDetail_20' ) start [2024-12-22 00:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073811', 'tblTempUsageDetail_20' ) end [2024-12-22 00:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:25:19] Production.INFO: ==24851== Releasing lock... [2024-12-22 00:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:25:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:26:05 [end_date_ymd] => 2024-12-22 00:26:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:26:05' and `end` < '2024-12-22 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-22 00:26:18] Production.INFO: count ==151 [2024-12-22 00:26:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:26:05 - End Time 2024-12-22 00:26:05 [2024-12-22 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073816', 'tblTempUsageDetail_20' ) start [2024-12-22 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073816', 'tblTempUsageDetail_20' ) end [2024-12-22 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073816', 'tblTempVendorCDR_20' ) start [2024-12-22 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073816', 'tblTempVendorCDR_20' ) end [2024-12-22 00:26:18] Production.INFO: ProcessCDR(1,14073816,1,1,2) [2024-12-22 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073816', 'tblTempUsageDetail_20' ) start [2024-12-22 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073816', 'tblTempUsageDetail_20' ) end [2024-12-22 00:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:26:21] Production.INFO: ==24922== Releasing lock... [2024-12-22 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:26:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:27:04 [end_date_ymd] => 2024-12-22 00:27:04 [RateCDR] => 1 ) [2024-12-22 00:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:27:04' and `end` < '2024-12-22 00:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:27:17] Production.INFO: count ==151 [2024-12-22 00:27:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:27:04 - End Time 2024-12-22 00:27:04 [2024-12-22 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073821', 'tblTempUsageDetail_20' ) start [2024-12-22 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073821', 'tblTempUsageDetail_20' ) end [2024-12-22 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073821', 'tblTempVendorCDR_20' ) start [2024-12-22 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073821', 'tblTempVendorCDR_20' ) end [2024-12-22 00:27:17] Production.INFO: ProcessCDR(1,14073821,1,1,2) [2024-12-22 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073821', 'tblTempUsageDetail_20' ) start [2024-12-22 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073821', 'tblTempUsageDetail_20' ) end [2024-12-22 00:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:27:20] Production.INFO: ==24994== Releasing lock... [2024-12-22 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:27:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:28:05 [end_date_ymd] => 2024-12-22 00:28:05 [RateCDR] => 1 ) [2024-12-22 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:28:05' and `end` < '2024-12-22 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:28:18] Production.INFO: count ==151 [2024-12-22 00:28:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:28:05 - End Time 2024-12-22 00:28:05 [2024-12-22 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073826', 'tblTempUsageDetail_20' ) start [2024-12-22 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073826', 'tblTempUsageDetail_20' ) end [2024-12-22 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073826', 'tblTempVendorCDR_20' ) start [2024-12-22 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073826', 'tblTempVendorCDR_20' ) end [2024-12-22 00:28:18] Production.INFO: ProcessCDR(1,14073826,1,1,2) [2024-12-22 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073826', 'tblTempUsageDetail_20' ) start [2024-12-22 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073826', 'tblTempUsageDetail_20' ) end [2024-12-22 00:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:28:21] Production.INFO: ==25068== Releasing lock... [2024-12-22 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:28:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:29:04 [end_date_ymd] => 2024-12-22 00:29:04 [RateCDR] => 1 ) [2024-12-22 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-21 21:29:04' and `end` < '2024-12-22 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-22 00:29:16] Production.INFO: count ==149 [2024-12-22 00:29:16] Production.ERROR: pbx CDR StartTime 2024-12-21 21:29:04 - End Time 2024-12-22 00:29:04 [2024-12-22 00:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073831', 'tblTempUsageDetail_20' ) start [2024-12-22 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073831', 'tblTempUsageDetail_20' ) end [2024-12-22 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073831', 'tblTempVendorCDR_20' ) start [2024-12-22 00:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073831', 'tblTempVendorCDR_20' ) end [2024-12-22 00:29:16] Production.INFO: ProcessCDR(1,14073831,1,1,2) [2024-12-22 00:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073831', 'tblTempUsageDetail_20' ) start [2024-12-22 00:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073831', 'tblTempUsageDetail_20' ) end [2024-12-22 00:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:29:19] Production.INFO: ==25138== Releasing lock... [2024-12-22 00:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:29:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:30:05 [end_date_ymd] => 2024-12-22 00:30:05 [RateCDR] => 1 ) [2024-12-22 00:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:30:05' and `end` < '2024-12-22 00:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:30:17] Production.INFO: count ==152 [2024-12-22 00:30:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:30:05 - End Time 2024-12-22 00:30:05 [2024-12-22 00:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073837', 'tblTempUsageDetail_20' ) start [2024-12-22 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073837', 'tblTempUsageDetail_20' ) end [2024-12-22 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073837', 'tblTempVendorCDR_20' ) start [2024-12-22 00:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073837', 'tblTempVendorCDR_20' ) end [2024-12-22 00:30:17] Production.INFO: ProcessCDR(1,14073837,1,1,2) [2024-12-22 00:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073837', 'tblTempUsageDetail_20' ) start [2024-12-22 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073837', 'tblTempUsageDetail_20' ) end [2024-12-22 00:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:30:21] Production.INFO: ==25216== Releasing lock... [2024-12-22 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:30:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:31:05 [end_date_ymd] => 2024-12-22 00:31:05 [RateCDR] => 1 ) [2024-12-22 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:31:05' and `end` < '2024-12-22 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:31:17] Production.INFO: count ==156 [2024-12-22 00:31:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:31:05 - End Time 2024-12-22 00:31:05 [2024-12-22 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073842', 'tblTempUsageDetail_20' ) start [2024-12-22 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073842', 'tblTempUsageDetail_20' ) end [2024-12-22 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073842', 'tblTempVendorCDR_20' ) start [2024-12-22 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073842', 'tblTempVendorCDR_20' ) end [2024-12-22 00:31:17] Production.INFO: ProcessCDR(1,14073842,1,1,2) [2024-12-22 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073842', 'tblTempUsageDetail_20' ) start [2024-12-22 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073842', 'tblTempUsageDetail_20' ) end [2024-12-22 00:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:31:20] Production.INFO: ==25293== Releasing lock... [2024-12-22 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:31:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:32:05 [end_date_ymd] => 2024-12-22 00:32:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:32:05' and `end` < '2024-12-22 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-22 00:32:17] Production.INFO: count ==157 [2024-12-22 00:32:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:32:05 - End Time 2024-12-22 00:32:05 [2024-12-22 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073847', 'tblTempUsageDetail_20' ) start [2024-12-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073847', 'tblTempUsageDetail_20' ) end [2024-12-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073847', 'tblTempVendorCDR_20' ) start [2024-12-22 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073847', 'tblTempVendorCDR_20' ) end [2024-12-22 00:32:17] Production.INFO: ProcessCDR(1,14073847,1,1,2) [2024-12-22 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073847', 'tblTempUsageDetail_20' ) start [2024-12-22 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073847', 'tblTempUsageDetail_20' ) end [2024-12-22 00:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:32:22] Production.INFO: ==25363== Releasing lock... [2024-12-22 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:32:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:33:05 [end_date_ymd] => 2024-12-22 00:33:05 [RateCDR] => 1 ) [2024-12-22 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:33:05' and `end` < '2024-12-22 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:33:18] Production.INFO: count ==157 [2024-12-22 00:33:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:33:05 - End Time 2024-12-22 00:33:05 [2024-12-22 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073852', 'tblTempUsageDetail_20' ) start [2024-12-22 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073852', 'tblTempUsageDetail_20' ) end [2024-12-22 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073852', 'tblTempVendorCDR_20' ) start [2024-12-22 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073852', 'tblTempVendorCDR_20' ) end [2024-12-22 00:33:18] Production.INFO: ProcessCDR(1,14073852,1,1,2) [2024-12-22 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073852', 'tblTempUsageDetail_20' ) start [2024-12-22 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073852', 'tblTempUsageDetail_20' ) end [2024-12-22 00:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:33:22] Production.INFO: ==25436== Releasing lock... [2024-12-22 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:33:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:34:05 [end_date_ymd] => 2024-12-22 00:34:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:34:05' and `end` < '2024-12-22 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-22 00:34:17] Production.INFO: count ==159 [2024-12-22 00:34:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:34:05 - End Time 2024-12-22 00:34:05 [2024-12-22 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073857', 'tblTempUsageDetail_20' ) start [2024-12-22 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073857', 'tblTempUsageDetail_20' ) end [2024-12-22 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073857', 'tblTempVendorCDR_20' ) start [2024-12-22 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073857', 'tblTempVendorCDR_20' ) end [2024-12-22 00:34:17] Production.INFO: ProcessCDR(1,14073857,1,1,2) [2024-12-22 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073857', 'tblTempUsageDetail_20' ) start [2024-12-22 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073857', 'tblTempUsageDetail_20' ) end [2024-12-22 00:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:34:20] Production.INFO: ==25507== Releasing lock... [2024-12-22 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:34:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:35:05 [end_date_ymd] => 2024-12-22 00:35:05 [RateCDR] => 1 ) [2024-12-22 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:35:05' and `end` < '2024-12-22 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:35:17] Production.INFO: count ==162 [2024-12-22 00:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:35:05 - End Time 2024-12-22 00:35:05 [2024-12-22 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073862', 'tblTempUsageDetail_20' ) start [2024-12-22 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073862', 'tblTempUsageDetail_20' ) end [2024-12-22 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073862', 'tblTempVendorCDR_20' ) start [2024-12-22 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073862', 'tblTempVendorCDR_20' ) end [2024-12-22 00:35:17] Production.INFO: ProcessCDR(1,14073862,1,1,2) [2024-12-22 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073862', 'tblTempUsageDetail_20' ) start [2024-12-22 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073862', 'tblTempUsageDetail_20' ) end [2024-12-22 00:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:35:20] Production.INFO: ==25617== Releasing lock... [2024-12-22 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:35:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:36:05 [end_date_ymd] => 2024-12-22 00:36:05 [RateCDR] => 1 ) [2024-12-22 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:36:05' and `end` < '2024-12-22 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:36:18] Production.INFO: count ==163 [2024-12-22 00:36:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:36:05 - End Time 2024-12-22 00:36:05 [2024-12-22 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073867', 'tblTempUsageDetail_20' ) start [2024-12-22 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073867', 'tblTempUsageDetail_20' ) end [2024-12-22 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073867', 'tblTempVendorCDR_20' ) start [2024-12-22 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073867', 'tblTempVendorCDR_20' ) end [2024-12-22 00:36:18] Production.INFO: ProcessCDR(1,14073867,1,1,2) [2024-12-22 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073867', 'tblTempUsageDetail_20' ) start [2024-12-22 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073867', 'tblTempUsageDetail_20' ) end [2024-12-22 00:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:36:23] Production.INFO: ==25689== Releasing lock... [2024-12-22 00:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:36:23] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:37:05 [end_date_ymd] => 2024-12-22 00:37:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:37:05' and `end` < '2024-12-22 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-22 00:37:17] Production.INFO: count ==161 [2024-12-22 00:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:37:05 - End Time 2024-12-22 00:37:05 [2024-12-22 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073872', 'tblTempUsageDetail_20' ) start [2024-12-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073872', 'tblTempUsageDetail_20' ) end [2024-12-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073872', 'tblTempVendorCDR_20' ) start [2024-12-22 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073872', 'tblTempVendorCDR_20' ) end [2024-12-22 00:37:17] Production.INFO: ProcessCDR(1,14073872,1,1,2) [2024-12-22 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073872', 'tblTempUsageDetail_20' ) start [2024-12-22 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073872', 'tblTempUsageDetail_20' ) end [2024-12-22 00:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:37:21] Production.INFO: ==25761== Releasing lock... [2024-12-22 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:37:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:38:05 [end_date_ymd] => 2024-12-22 00:38:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:38:05' and `end` < '2024-12-22 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-22 00:38:17] Production.INFO: count ==164 [2024-12-22 00:38:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:38:05 - End Time 2024-12-22 00:38:05 [2024-12-22 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073877', 'tblTempUsageDetail_20' ) start [2024-12-22 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073877', 'tblTempUsageDetail_20' ) end [2024-12-22 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073877', 'tblTempVendorCDR_20' ) start [2024-12-22 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073877', 'tblTempVendorCDR_20' ) end [2024-12-22 00:38:17] Production.INFO: ProcessCDR(1,14073877,1,1,2) [2024-12-22 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073877', 'tblTempUsageDetail_20' ) start [2024-12-22 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073877', 'tblTempUsageDetail_20' ) end [2024-12-22 00:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:38:20] Production.INFO: ==25835== Releasing lock... [2024-12-22 00:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:38:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:39:05 [end_date_ymd] => 2024-12-22 00:39:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:39:05' and `end` < '2024-12-22 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-22 00:39:18] Production.INFO: count ==164 [2024-12-22 00:39:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:39:05 - End Time 2024-12-22 00:39:05 [2024-12-22 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073882', 'tblTempUsageDetail_20' ) start [2024-12-22 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073882', 'tblTempUsageDetail_20' ) end [2024-12-22 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073882', 'tblTempVendorCDR_20' ) start [2024-12-22 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073882', 'tblTempVendorCDR_20' ) end [2024-12-22 00:39:18] Production.INFO: ProcessCDR(1,14073882,1,1,2) [2024-12-22 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073882', 'tblTempUsageDetail_20' ) start [2024-12-22 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073882', 'tblTempUsageDetail_20' ) end [2024-12-22 00:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:39:21] Production.INFO: ==25908== Releasing lock... [2024-12-22 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:39:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:40:05 [end_date_ymd] => 2024-12-22 00:40:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:40:05' and `end` < '2024-12-22 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-22 00:40:17] Production.INFO: count ==175 [2024-12-22 00:40:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:40:05 - End Time 2024-12-22 00:40:05 [2024-12-22 00:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073888', 'tblTempUsageDetail_20' ) start [2024-12-22 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073888', 'tblTempUsageDetail_20' ) end [2024-12-22 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073888', 'tblTempVendorCDR_20' ) start [2024-12-22 00:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073888', 'tblTempVendorCDR_20' ) end [2024-12-22 00:40:17] Production.INFO: ProcessCDR(1,14073888,1,1,2) [2024-12-22 00:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073888', 'tblTempUsageDetail_20' ) start [2024-12-22 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073888', 'tblTempUsageDetail_20' ) end [2024-12-22 00:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:40:22] Production.INFO: ==25980== Releasing lock... [2024-12-22 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:40:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:41:05 [end_date_ymd] => 2024-12-22 00:41:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:41:05' and `end` < '2024-12-22 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-22 00:41:17] Production.INFO: count ==189 [2024-12-22 00:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:41:05 - End Time 2024-12-22 00:41:05 [2024-12-22 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073893', 'tblTempUsageDetail_20' ) start [2024-12-22 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073893', 'tblTempUsageDetail_20' ) end [2024-12-22 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073893', 'tblTempVendorCDR_20' ) start [2024-12-22 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073893', 'tblTempVendorCDR_20' ) end [2024-12-22 00:41:17] Production.INFO: ProcessCDR(1,14073893,1,1,2) [2024-12-22 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073893', 'tblTempUsageDetail_20' ) start [2024-12-22 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073893', 'tblTempUsageDetail_20' ) end [2024-12-22 00:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:41:20] Production.INFO: ==26055== Releasing lock... [2024-12-22 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:41:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:42:04 [end_date_ymd] => 2024-12-22 00:42:04 [RateCDR] => 1 ) [2024-12-22 00:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:42:04' and `end` < '2024-12-22 00:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:42:18] Production.INFO: count ==188 [2024-12-22 00:42:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:42:04 - End Time 2024-12-22 00:42:04 [2024-12-22 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073898', 'tblTempUsageDetail_20' ) start [2024-12-22 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073898', 'tblTempUsageDetail_20' ) end [2024-12-22 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073898', 'tblTempVendorCDR_20' ) start [2024-12-22 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073898', 'tblTempVendorCDR_20' ) end [2024-12-22 00:42:18] Production.INFO: ProcessCDR(1,14073898,1,1,2) [2024-12-22 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073898', 'tblTempUsageDetail_20' ) start [2024-12-22 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073898', 'tblTempUsageDetail_20' ) end [2024-12-22 00:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:42:21] Production.INFO: ==26125== Releasing lock... [2024-12-22 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:42:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:43:04 [end_date_ymd] => 2024-12-22 00:43:04 [RateCDR] => 1 ) [2024-12-22 00: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 21:43:04' and `end` < '2024-12-22 00: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-22 00:43:17] Production.INFO: count ==188 [2024-12-22 00:43:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:43:04 - End Time 2024-12-22 00:43:04 [2024-12-22 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073903', 'tblTempUsageDetail_20' ) start [2024-12-22 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073903', 'tblTempUsageDetail_20' ) end [2024-12-22 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073903', 'tblTempVendorCDR_20' ) start [2024-12-22 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073903', 'tblTempVendorCDR_20' ) end [2024-12-22 00:43:17] Production.INFO: ProcessCDR(1,14073903,1,1,2) [2024-12-22 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073903', 'tblTempUsageDetail_20' ) start [2024-12-22 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073903', 'tblTempUsageDetail_20' ) end [2024-12-22 00:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:43:20] Production.INFO: ==26198== Releasing lock... [2024-12-22 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:43:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:44:05 [end_date_ymd] => 2024-12-22 00:44:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:44:05' and `end` < '2024-12-22 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-22 00:44:18] Production.INFO: count ==187 [2024-12-22 00:44:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:44:05 - End Time 2024-12-22 00:44:05 [2024-12-22 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073908', 'tblTempUsageDetail_20' ) start [2024-12-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073908', 'tblTempUsageDetail_20' ) end [2024-12-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073908', 'tblTempVendorCDR_20' ) start [2024-12-22 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073908', 'tblTempVendorCDR_20' ) end [2024-12-22 00:44:18] Production.INFO: ProcessCDR(1,14073908,1,1,2) [2024-12-22 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073908', 'tblTempUsageDetail_20' ) start [2024-12-22 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073908', 'tblTempUsageDetail_20' ) end [2024-12-22 00:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:44:21] Production.INFO: ==26270== Releasing lock... [2024-12-22 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:44:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:45:05 [end_date_ymd] => 2024-12-22 00:45:05 [RateCDR] => 1 ) [2024-12-22 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:45:05' and `end` < '2024-12-22 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:45:17] Production.INFO: count ==187 [2024-12-22 00:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:45:05 - End Time 2024-12-22 00:45:05 [2024-12-22 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073913', 'tblTempUsageDetail_20' ) start [2024-12-22 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073913', 'tblTempUsageDetail_20' ) end [2024-12-22 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073913', 'tblTempVendorCDR_20' ) start [2024-12-22 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073913', 'tblTempVendorCDR_20' ) end [2024-12-22 00:45:17] Production.INFO: ProcessCDR(1,14073913,1,1,2) [2024-12-22 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073913', 'tblTempUsageDetail_20' ) start [2024-12-22 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073913', 'tblTempUsageDetail_20' ) end [2024-12-22 00:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:45:20] Production.INFO: ==26344== Releasing lock... [2024-12-22 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:45:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:46:05 [end_date_ymd] => 2024-12-22 00:46:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:46:05' and `end` < '2024-12-22 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-22 00:46:18] Production.INFO: count ==187 [2024-12-22 00:46:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:46:05 - End Time 2024-12-22 00:46:05 [2024-12-22 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073918', 'tblTempUsageDetail_20' ) start [2024-12-22 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073918', 'tblTempUsageDetail_20' ) end [2024-12-22 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073918', 'tblTempVendorCDR_20' ) start [2024-12-22 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073918', 'tblTempVendorCDR_20' ) end [2024-12-22 00:46:18] Production.INFO: ProcessCDR(1,14073918,1,1,2) [2024-12-22 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073918', 'tblTempUsageDetail_20' ) start [2024-12-22 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073918', 'tblTempUsageDetail_20' ) end [2024-12-22 00:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:46:21] Production.INFO: ==26420== Releasing lock... [2024-12-22 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:46:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:47:05 [end_date_ymd] => 2024-12-22 00:47:05 [RateCDR] => 1 ) [2024-12-22 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:47:05' and `end` < '2024-12-22 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:47:18] Production.INFO: count ==189 [2024-12-22 00:47:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:47:05 - End Time 2024-12-22 00:47:05 [2024-12-22 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073923', 'tblTempUsageDetail_20' ) start [2024-12-22 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073923', 'tblTempUsageDetail_20' ) end [2024-12-22 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073923', 'tblTempVendorCDR_20' ) start [2024-12-22 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073923', 'tblTempVendorCDR_20' ) end [2024-12-22 00:47:18] Production.INFO: ProcessCDR(1,14073923,1,1,2) [2024-12-22 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073923', 'tblTempUsageDetail_20' ) start [2024-12-22 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073923', 'tblTempUsageDetail_20' ) end [2024-12-22 00:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:47:21] Production.INFO: ==26494== Releasing lock... [2024-12-22 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:47:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:48:05 [end_date_ymd] => 2024-12-22 00:48:05 [RateCDR] => 1 ) [2024-12-22 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:48:05' and `end` < '2024-12-22 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:48:17] Production.INFO: count ==192 [2024-12-22 00:48:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:48:05 - End Time 2024-12-22 00:48:05 [2024-12-22 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073928', 'tblTempUsageDetail_20' ) start [2024-12-22 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073928', 'tblTempUsageDetail_20' ) end [2024-12-22 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073928', 'tblTempVendorCDR_20' ) start [2024-12-22 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073928', 'tblTempVendorCDR_20' ) end [2024-12-22 00:48:17] Production.INFO: ProcessCDR(1,14073928,1,1,2) [2024-12-22 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073928', 'tblTempUsageDetail_20' ) start [2024-12-22 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073928', 'tblTempUsageDetail_20' ) end [2024-12-22 00:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:48:20] Production.INFO: ==26565== Releasing lock... [2024-12-22 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:48:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:49:04 [end_date_ymd] => 2024-12-22 00:49:04 [RateCDR] => 1 ) [2024-12-22 00:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:49:04' and `end` < '2024-12-22 00:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:49:16] Production.INFO: count ==195 [2024-12-22 00:49:16] Production.ERROR: pbx CDR StartTime 2024-12-21 21:49:04 - End Time 2024-12-22 00:49:04 [2024-12-22 00:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073933', 'tblTempUsageDetail_20' ) start [2024-12-22 00:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073933', 'tblTempUsageDetail_20' ) end [2024-12-22 00:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073933', 'tblTempVendorCDR_20' ) start [2024-12-22 00:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073933', 'tblTempVendorCDR_20' ) end [2024-12-22 00:49:16] Production.INFO: ProcessCDR(1,14073933,1,1,2) [2024-12-22 00:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073933', 'tblTempUsageDetail_20' ) start [2024-12-22 00:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073933', 'tblTempUsageDetail_20' ) end [2024-12-22 00:49:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:49:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:49:19] Production.INFO: ==26635== Releasing lock... [2024-12-22 00:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:49:19] Production.INFO: 30 MB #Memory Used# [2024-12-22 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:50:05 [end_date_ymd] => 2024-12-22 00:50:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:50:05' and `end` < '2024-12-22 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-22 00:50:17] Production.INFO: count ==201 [2024-12-22 00:50:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:50:05 - End Time 2024-12-22 00:50:05 [2024-12-22 00:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073939', 'tblTempUsageDetail_20' ) start [2024-12-22 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073939', 'tblTempUsageDetail_20' ) end [2024-12-22 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073939', 'tblTempVendorCDR_20' ) start [2024-12-22 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073939', 'tblTempVendorCDR_20' ) end [2024-12-22 00:50:17] Production.INFO: ProcessCDR(1,14073939,1,1,2) [2024-12-22 00:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073939', 'tblTempUsageDetail_20' ) start [2024-12-22 00:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073939', 'tblTempUsageDetail_20' ) end [2024-12-22 00:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:50:20] Production.INFO: ==26708== Releasing lock... [2024-12-22 00:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:50:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:51:05 [end_date_ymd] => 2024-12-22 00:51:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:51:05' and `end` < '2024-12-22 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-22 00:51:18] Production.INFO: count ==215 [2024-12-22 00:51:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:51:05 - End Time 2024-12-22 00:51:05 [2024-12-22 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073944', 'tblTempUsageDetail_20' ) start [2024-12-22 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073944', 'tblTempUsageDetail_20' ) end [2024-12-22 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073944', 'tblTempVendorCDR_20' ) start [2024-12-22 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073944', 'tblTempVendorCDR_20' ) end [2024-12-22 00:51:18] Production.INFO: ProcessCDR(1,14073944,1,1,2) [2024-12-22 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073944', 'tblTempUsageDetail_20' ) start [2024-12-22 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073944', 'tblTempUsageDetail_20' ) end [2024-12-22 00:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:51:21] Production.INFO: ==26820== Releasing lock... [2024-12-22 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:51:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:52:05 [end_date_ymd] => 2024-12-22 00:52:05 [RateCDR] => 1 ) [2024-12-22 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:52:05' and `end` < '2024-12-22 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:52:17] Production.INFO: count ==215 [2024-12-22 00:52:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:52:05 - End Time 2024-12-22 00:52:05 [2024-12-22 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073949', 'tblTempUsageDetail_20' ) start [2024-12-22 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073949', 'tblTempUsageDetail_20' ) end [2024-12-22 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073949', 'tblTempVendorCDR_20' ) start [2024-12-22 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073949', 'tblTempVendorCDR_20' ) end [2024-12-22 00:52:17] Production.INFO: ProcessCDR(1,14073949,1,1,2) [2024-12-22 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073949', 'tblTempUsageDetail_20' ) start [2024-12-22 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073949', 'tblTempUsageDetail_20' ) end [2024-12-22 00:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:52:20] Production.INFO: ==26894== Releasing lock... [2024-12-22 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:52:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:53:04 [end_date_ymd] => 2024-12-22 00:53:04 [RateCDR] => 1 ) [2024-12-22 00: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 21:53:04' and `end` < '2024-12-22 00: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-22 00:53:16] Production.INFO: count ==214 [2024-12-22 00:53:16] Production.ERROR: pbx CDR StartTime 2024-12-21 21:53:04 - End Time 2024-12-22 00:53:04 [2024-12-22 00:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073954', 'tblTempUsageDetail_20' ) start [2024-12-22 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073954', 'tblTempUsageDetail_20' ) end [2024-12-22 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073954', 'tblTempVendorCDR_20' ) start [2024-12-22 00:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073954', 'tblTempVendorCDR_20' ) end [2024-12-22 00:53:16] Production.INFO: ProcessCDR(1,14073954,1,1,2) [2024-12-22 00:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073954', 'tblTempUsageDetail_20' ) start [2024-12-22 00:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073954', 'tblTempUsageDetail_20' ) end [2024-12-22 00:53:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:53:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:53:19] Production.INFO: ==26962== Releasing lock... [2024-12-22 00:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:53:19] Production.INFO: 30 MB #Memory Used# [2024-12-22 00:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:54:04 [end_date_ymd] => 2024-12-22 00:54:04 [RateCDR] => 1 ) [2024-12-22 00: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 21:54:04' and `end` < '2024-12-22 00: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-22 00:54:18] Production.INFO: count ==213 [2024-12-22 00:54:19] Production.ERROR: pbx CDR StartTime 2024-12-21 21:54:04 - End Time 2024-12-22 00:54:04 [2024-12-22 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073959', 'tblTempUsageDetail_20' ) start [2024-12-22 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073959', 'tblTempUsageDetail_20' ) end [2024-12-22 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073959', 'tblTempVendorCDR_20' ) start [2024-12-22 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073959', 'tblTempVendorCDR_20' ) end [2024-12-22 00:54:19] Production.INFO: ProcessCDR(1,14073959,1,1,2) [2024-12-22 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073959', 'tblTempUsageDetail_20' ) start [2024-12-22 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073959', 'tblTempUsageDetail_20' ) end [2024-12-22 00:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:54:22] Production.INFO: ==27034== Releasing lock... [2024-12-22 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:54:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:55:04 [end_date_ymd] => 2024-12-22 00:55:04 [RateCDR] => 1 ) [2024-12-22 00: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 21:55:04' and `end` < '2024-12-22 00: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-22 00:55:16] Production.INFO: count ==212 [2024-12-22 00:55:16] Production.ERROR: pbx CDR StartTime 2024-12-21 21:55:04 - End Time 2024-12-22 00:55:04 [2024-12-22 00:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073964', 'tblTempUsageDetail_20' ) start [2024-12-22 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073964', 'tblTempUsageDetail_20' ) end [2024-12-22 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073964', 'tblTempVendorCDR_20' ) start [2024-12-22 00:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073964', 'tblTempVendorCDR_20' ) end [2024-12-22 00:55:16] Production.INFO: ProcessCDR(1,14073964,1,1,2) [2024-12-22 00:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073964', 'tblTempUsageDetail_20' ) start [2024-12-22 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073964', 'tblTempUsageDetail_20' ) end [2024-12-22 00:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:55:20] Production.INFO: ==27106== Releasing lock... [2024-12-22 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:55:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:56:05 [end_date_ymd] => 2024-12-22 00:56:05 [RateCDR] => 1 ) [2024-12-22 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-21 21:56:05' and `end` < '2024-12-22 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-22 00:56:18] Production.INFO: count ==212 [2024-12-22 00:56:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:56:05 - End Time 2024-12-22 00:56:05 [2024-12-22 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073969', 'tblTempUsageDetail_20' ) start [2024-12-22 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073969', 'tblTempUsageDetail_20' ) end [2024-12-22 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073969', 'tblTempVendorCDR_20' ) start [2024-12-22 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073969', 'tblTempVendorCDR_20' ) end [2024-12-22 00:56:18] Production.INFO: ProcessCDR(1,14073969,1,1,2) [2024-12-22 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073969', 'tblTempUsageDetail_20' ) start [2024-12-22 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073969', 'tblTempUsageDetail_20' ) end [2024-12-22 00:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:56:21] Production.INFO: ==27182== Releasing lock... [2024-12-22 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:56:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:57:04 [end_date_ymd] => 2024-12-22 00:57:04 [RateCDR] => 1 ) [2024-12-22 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-21 21:57:04' and `end` < '2024-12-22 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-22 00:57:18] Production.INFO: count ==211 [2024-12-22 00:57:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:57:04 - End Time 2024-12-22 00:57:04 [2024-12-22 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073974', 'tblTempUsageDetail_20' ) start [2024-12-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073974', 'tblTempUsageDetail_20' ) end [2024-12-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073974', 'tblTempVendorCDR_20' ) start [2024-12-22 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073974', 'tblTempVendorCDR_20' ) end [2024-12-22 00:57:18] Production.INFO: ProcessCDR(1,14073974,1,1,2) [2024-12-22 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073974', 'tblTempUsageDetail_20' ) start [2024-12-22 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073974', 'tblTempUsageDetail_20' ) end [2024-12-22 00:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:57:21] Production.INFO: ==27252== Releasing lock... [2024-12-22 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:57:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 00:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:58:04 [end_date_ymd] => 2024-12-22 00:58:04 [RateCDR] => 1 ) [2024-12-22 00: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 21:58:04' and `end` < '2024-12-22 00: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-22 00:58:17] Production.INFO: count ==211 [2024-12-22 00:58:17] Production.ERROR: pbx CDR StartTime 2024-12-21 21:58:04 - End Time 2024-12-22 00:58:04 [2024-12-22 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073979', 'tblTempUsageDetail_20' ) start [2024-12-22 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073979', 'tblTempUsageDetail_20' ) end [2024-12-22 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073979', 'tblTempVendorCDR_20' ) start [2024-12-22 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073979', 'tblTempVendorCDR_20' ) end [2024-12-22 00:58:17] Production.INFO: ProcessCDR(1,14073979,1,1,2) [2024-12-22 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073979', 'tblTempUsageDetail_20' ) start [2024-12-22 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073979', 'tblTempUsageDetail_20' ) end [2024-12-22 00:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:58:20] Production.INFO: ==27324== Releasing lock... [2024-12-22 00:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:58:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 21:59:05 [end_date_ymd] => 2024-12-22 00:59:05 [RateCDR] => 1 ) [2024-12-22 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 21:59:05' and `end` < '2024-12-22 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 00:59:18] Production.INFO: count ==211 [2024-12-22 00:59:18] Production.ERROR: pbx CDR StartTime 2024-12-21 21:59:05 - End Time 2024-12-22 00:59:05 [2024-12-22 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073984', 'tblTempUsageDetail_20' ) start [2024-12-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073984', 'tblTempUsageDetail_20' ) end [2024-12-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073984', 'tblTempVendorCDR_20' ) start [2024-12-22 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073984', 'tblTempVendorCDR_20' ) end [2024-12-22 00:59:18] Production.INFO: ProcessCDR(1,14073984,1,1,2) [2024-12-22 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073984', 'tblTempUsageDetail_20' ) start [2024-12-22 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073984', 'tblTempUsageDetail_20' ) end [2024-12-22 00:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 00:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 00:59:21] Production.INFO: ==27399== Releasing lock... [2024-12-22 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 00:59:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:00:05 [end_date_ymd] => 2024-12-22 01:00:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:00:05' and `end` < '2024-12-22 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-22 01:00:17] Production.INFO: count ==216 [2024-12-22 01:00:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:00:05 - End Time 2024-12-22 01:00:05 [2024-12-22 01:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073989', 'tblTempUsageDetail_20' ) start [2024-12-22 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073989', 'tblTempUsageDetail_20' ) end [2024-12-22 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073989', 'tblTempVendorCDR_20' ) start [2024-12-22 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073989', 'tblTempVendorCDR_20' ) end [2024-12-22 01:00:17] Production.INFO: ProcessCDR(1,14073989,1,1,2) [2024-12-22 01:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073989', 'tblTempUsageDetail_20' ) start [2024-12-22 01:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073989', 'tblTempUsageDetail_20' ) end [2024-12-22 01:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:00:20] Production.INFO: ==27471== Releasing lock... [2024-12-22 01:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:00:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:01:04 [end_date_ymd] => 2024-12-22 01:01:04 [RateCDR] => 1 ) [2024-12-22 01: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 22:01:04' and `end` < '2024-12-22 01: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-22 01:01:20] Production.INFO: count ==216 [2024-12-22 01:01:20] Production.ERROR: pbx CDR StartTime 2024-12-21 22:01:04 - End Time 2024-12-22 01:01:04 [2024-12-22 01:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073995', 'tblTempUsageDetail_20' ) start [2024-12-22 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14073995', 'tblTempUsageDetail_20' ) end [2024-12-22 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073995', 'tblTempVendorCDR_20' ) start [2024-12-22 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14073995', 'tblTempVendorCDR_20' ) end [2024-12-22 01:01:20] Production.INFO: ProcessCDR(1,14073995,1,1,2) [2024-12-22 01:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14073995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14073995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14073995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14073995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073995', 'tblTempUsageDetail_20' ) start [2024-12-22 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14073995', 'tblTempUsageDetail_20' ) end [2024-12-22 01:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:01:23] Production.INFO: ==27564== Releasing lock... [2024-12-22 01:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:01:23] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:02:04 [end_date_ymd] => 2024-12-22 01:02:04 [RateCDR] => 1 ) [2024-12-22 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-21 22:02:04' and `end` < '2024-12-22 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-22 01:02:19] Production.INFO: count ==219 [2024-12-22 01:02:19] Production.ERROR: pbx CDR StartTime 2024-12-21 22:02:04 - End Time 2024-12-22 01:02:04 [2024-12-22 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074000', 'tblTempUsageDetail_20' ) start [2024-12-22 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074000', 'tblTempUsageDetail_20' ) end [2024-12-22 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074000', 'tblTempVendorCDR_20' ) start [2024-12-22 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074000', 'tblTempVendorCDR_20' ) end [2024-12-22 01:02:19] Production.INFO: ProcessCDR(1,14074000,1,1,2) [2024-12-22 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074000', 'tblTempUsageDetail_20' ) start [2024-12-22 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074000', 'tblTempUsageDetail_20' ) end [2024-12-22 01:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:02:22] Production.INFO: ==27634== Releasing lock... [2024-12-22 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:02:22] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:03:04 [end_date_ymd] => 2024-12-22 01:03:04 [RateCDR] => 1 ) [2024-12-22 01: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 22:03:04' and `end` < '2024-12-22 01:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:03:17] Production.INFO: count ==219 [2024-12-22 01:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:03:04 - End Time 2024-12-22 01:03:04 [2024-12-22 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074005', 'tblTempUsageDetail_20' ) start [2024-12-22 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074005', 'tblTempUsageDetail_20' ) end [2024-12-22 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074005', 'tblTempVendorCDR_20' ) start [2024-12-22 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074005', 'tblTempVendorCDR_20' ) end [2024-12-22 01:03:17] Production.INFO: ProcessCDR(1,14074005,1,1,2) [2024-12-22 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074005', 'tblTempUsageDetail_20' ) start [2024-12-22 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074005', 'tblTempUsageDetail_20' ) end [2024-12-22 01:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:03:20] Production.INFO: ==27707== Releasing lock... [2024-12-22 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:03:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:04:05 [end_date_ymd] => 2024-12-22 01:04:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:04:05' and `end` < '2024-12-22 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-22 01:04:17] Production.INFO: count ==220 [2024-12-22 01:04:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:04:05 - End Time 2024-12-22 01:04:05 [2024-12-22 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074010', 'tblTempUsageDetail_20' ) start [2024-12-22 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074010', 'tblTempUsageDetail_20' ) end [2024-12-22 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074010', 'tblTempVendorCDR_20' ) start [2024-12-22 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074010', 'tblTempVendorCDR_20' ) end [2024-12-22 01:04:17] Production.INFO: ProcessCDR(1,14074010,1,1,2) [2024-12-22 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074010', 'tblTempUsageDetail_20' ) start [2024-12-22 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074010', 'tblTempUsageDetail_20' ) end [2024-12-22 01:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:04:21] Production.INFO: ==27780== Releasing lock... [2024-12-22 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:04:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:05:05 [end_date_ymd] => 2024-12-22 01:05:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:05:05' and `end` < '2024-12-22 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-22 01:05:17] Production.INFO: count ==220 [2024-12-22 01:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:05:05 - End Time 2024-12-22 01:05:05 [2024-12-22 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074015', 'tblTempUsageDetail_20' ) start [2024-12-22 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074015', 'tblTempUsageDetail_20' ) end [2024-12-22 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074015', 'tblTempVendorCDR_20' ) start [2024-12-22 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074015', 'tblTempVendorCDR_20' ) end [2024-12-22 01:05:17] Production.INFO: ProcessCDR(1,14074015,1,1,2) [2024-12-22 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074015', 'tblTempUsageDetail_20' ) start [2024-12-22 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074015', 'tblTempUsageDetail_20' ) end [2024-12-22 01:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:05:20] Production.INFO: ==27854== Releasing lock... [2024-12-22 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:05:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:06:05 [end_date_ymd] => 2024-12-22 01:06:05 [RateCDR] => 1 ) [2024-12-22 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:06:05' and `end` < '2024-12-22 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:06:19] Production.INFO: count ==220 [2024-12-22 01:06:19] Production.ERROR: pbx CDR StartTime 2024-12-21 22:06:05 - End Time 2024-12-22 01:06:05 [2024-12-22 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074020', 'tblTempUsageDetail_20' ) start [2024-12-22 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074020', 'tblTempUsageDetail_20' ) end [2024-12-22 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074020', 'tblTempVendorCDR_20' ) start [2024-12-22 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074020', 'tblTempVendorCDR_20' ) end [2024-12-22 01:06:19] Production.INFO: ProcessCDR(1,14074020,1,1,2) [2024-12-22 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074020', 'tblTempUsageDetail_20' ) start [2024-12-22 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074020', 'tblTempUsageDetail_20' ) end [2024-12-22 01:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:06:22] Production.INFO: ==27966== Releasing lock... [2024-12-22 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:06:22] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:07:04 [end_date_ymd] => 2024-12-22 01:07:04 [RateCDR] => 1 ) [2024-12-22 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-21 22:07:04' and `end` < '2024-12-22 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-22 01:07:17] Production.INFO: count ==218 [2024-12-22 01:07:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:07:04 - End Time 2024-12-22 01:07:04 [2024-12-22 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074025', 'tblTempUsageDetail_20' ) start [2024-12-22 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074025', 'tblTempUsageDetail_20' ) end [2024-12-22 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074025', 'tblTempVendorCDR_20' ) start [2024-12-22 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074025', 'tblTempVendorCDR_20' ) end [2024-12-22 01:07:17] Production.INFO: ProcessCDR(1,14074025,1,1,2) [2024-12-22 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074025', 'tblTempUsageDetail_20' ) start [2024-12-22 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074025', 'tblTempUsageDetail_20' ) end [2024-12-22 01:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:07:20] Production.INFO: ==28037== Releasing lock... [2024-12-22 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:07:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:08:05 [end_date_ymd] => 2024-12-22 01:08:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:08:05' and `end` < '2024-12-22 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-22 01:08:17] Production.INFO: count ==218 [2024-12-22 01:08:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:08:05 - End Time 2024-12-22 01:08:05 [2024-12-22 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074030', 'tblTempUsageDetail_20' ) start [2024-12-22 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074030', 'tblTempUsageDetail_20' ) end [2024-12-22 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074030', 'tblTempVendorCDR_20' ) start [2024-12-22 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074030', 'tblTempVendorCDR_20' ) end [2024-12-22 01:08:17] Production.INFO: ProcessCDR(1,14074030,1,1,2) [2024-12-22 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074030', 'tblTempUsageDetail_20' ) start [2024-12-22 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074030', 'tblTempUsageDetail_20' ) end [2024-12-22 01:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:08:21] Production.INFO: ==28130== Releasing lock... [2024-12-22 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:08:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:09:04 [end_date_ymd] => 2024-12-22 01:09:04 [RateCDR] => 1 ) [2024-12-22 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-21 22:09:04' and `end` < '2024-12-22 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-22 01:09:17] Production.INFO: count ==217 [2024-12-22 01:09:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:09:04 - End Time 2024-12-22 01:09:04 [2024-12-22 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074035', 'tblTempUsageDetail_20' ) start [2024-12-22 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074035', 'tblTempUsageDetail_20' ) end [2024-12-22 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074035', 'tblTempVendorCDR_20' ) start [2024-12-22 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074035', 'tblTempVendorCDR_20' ) end [2024-12-22 01:09:17] Production.INFO: ProcessCDR(1,14074035,1,1,2) [2024-12-22 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074035', 'tblTempUsageDetail_20' ) start [2024-12-22 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074035', 'tblTempUsageDetail_20' ) end [2024-12-22 01:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:09:20] Production.INFO: ==28203== Releasing lock... [2024-12-22 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:09:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:10:06 [end_date_ymd] => 2024-12-22 01:10:06 [RateCDR] => 1 ) [2024-12-22 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:10:06' and `end` < '2024-12-22 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:10:19] Production.INFO: count ==225 [2024-12-22 01:10:19] Production.ERROR: pbx CDR StartTime 2024-12-21 22:10:06 - End Time 2024-12-22 01:10:06 [2024-12-22 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074041', 'tblTempUsageDetail_20' ) start [2024-12-22 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074041', 'tblTempUsageDetail_20' ) end [2024-12-22 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074041', 'tblTempVendorCDR_20' ) start [2024-12-22 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074041', 'tblTempVendorCDR_20' ) end [2024-12-22 01:10:19] Production.INFO: ProcessCDR(1,14074041,1,1,2) [2024-12-22 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074041', 'tblTempUsageDetail_20' ) start [2024-12-22 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074041', 'tblTempUsageDetail_20' ) end [2024-12-22 01:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:10:22] Production.INFO: ==28279== Releasing lock... [2024-12-22 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:10:22] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:11:04 [end_date_ymd] => 2024-12-22 01:11:04 [RateCDR] => 1 ) [2024-12-22 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-21 22:11:04' and `end` < '2024-12-22 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-22 01:11:16] Production.INFO: count ==237 [2024-12-22 01:11:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:11:04 - End Time 2024-12-22 01:11:04 [2024-12-22 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074046', 'tblTempUsageDetail_20' ) start [2024-12-22 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074046', 'tblTempUsageDetail_20' ) end [2024-12-22 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074046', 'tblTempVendorCDR_20' ) start [2024-12-22 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074046', 'tblTempVendorCDR_20' ) end [2024-12-22 01:11:17] Production.INFO: ProcessCDR(1,14074046,1,1,2) [2024-12-22 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074046', 'tblTempUsageDetail_20' ) start [2024-12-22 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074046', 'tblTempUsageDetail_20' ) end [2024-12-22 01:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:11:20] Production.INFO: ==28350== Releasing lock... [2024-12-22 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:11:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:12:05 [end_date_ymd] => 2024-12-22 01:12:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:12:05' and `end` < '2024-12-22 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-22 01:12:19] Production.INFO: count ==235 [2024-12-22 01:12:19] Production.ERROR: pbx CDR StartTime 2024-12-21 22:12:05 - End Time 2024-12-22 01:12:05 [2024-12-22 01:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074051', 'tblTempUsageDetail_20' ) start [2024-12-22 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074051', 'tblTempUsageDetail_20' ) end [2024-12-22 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074051', 'tblTempVendorCDR_20' ) start [2024-12-22 01:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074051', 'tblTempVendorCDR_20' ) end [2024-12-22 01:12:19] Production.INFO: ProcessCDR(1,14074051,1,1,2) [2024-12-22 01:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074051', 'tblTempUsageDetail_20' ) start [2024-12-22 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074051', 'tblTempUsageDetail_20' ) end [2024-12-22 01:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:12:22] Production.INFO: ==28420== Releasing lock... [2024-12-22 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:12:22] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:13:05 [end_date_ymd] => 2024-12-22 01:13:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:13:05' and `end` < '2024-12-22 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-22 01:13:17] Production.INFO: count ==234 [2024-12-22 01:13:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:13:05 - End Time 2024-12-22 01:13:05 [2024-12-22 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074056', 'tblTempUsageDetail_20' ) start [2024-12-22 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074056', 'tblTempUsageDetail_20' ) end [2024-12-22 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074056', 'tblTempVendorCDR_20' ) start [2024-12-22 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074056', 'tblTempVendorCDR_20' ) end [2024-12-22 01:13:17] Production.INFO: ProcessCDR(1,14074056,1,1,2) [2024-12-22 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074056', 'tblTempUsageDetail_20' ) start [2024-12-22 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074056', 'tblTempUsageDetail_20' ) end [2024-12-22 01:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:13:20] Production.INFO: ==28492== Releasing lock... [2024-12-22 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:13:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:14:05 [end_date_ymd] => 2024-12-22 01:14:05 [RateCDR] => 1 ) [2024-12-22 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:14:05' and `end` < '2024-12-22 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:14:20] Production.INFO: count ==233 [2024-12-22 01:14:20] Production.ERROR: pbx CDR StartTime 2024-12-21 22:14:05 - End Time 2024-12-22 01:14:05 [2024-12-22 01:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074061', 'tblTempUsageDetail_20' ) start [2024-12-22 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074061', 'tblTempUsageDetail_20' ) end [2024-12-22 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074061', 'tblTempVendorCDR_20' ) start [2024-12-22 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074061', 'tblTempVendorCDR_20' ) end [2024-12-22 01:14:20] Production.INFO: ProcessCDR(1,14074061,1,1,2) [2024-12-22 01:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074061', 'tblTempUsageDetail_20' ) start [2024-12-22 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074061', 'tblTempUsageDetail_20' ) end [2024-12-22 01:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:14:23] Production.INFO: ==28562== Releasing lock... [2024-12-22 01:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:14:23] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:15:04 [end_date_ymd] => 2024-12-22 01:15:04 [RateCDR] => 1 ) [2024-12-22 01: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 22:15:04' and `end` < '2024-12-22 01: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-22 01:15:18] Production.INFO: count ==231 [2024-12-22 01:15:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:15:04 - End Time 2024-12-22 01:15:04 [2024-12-22 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074066', 'tblTempUsageDetail_20' ) start [2024-12-22 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074066', 'tblTempUsageDetail_20' ) end [2024-12-22 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074066', 'tblTempVendorCDR_20' ) start [2024-12-22 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074066', 'tblTempVendorCDR_20' ) end [2024-12-22 01:15:18] Production.INFO: ProcessCDR(1,14074066,1,1,2) [2024-12-22 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074066', 'tblTempUsageDetail_20' ) start [2024-12-22 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074066', 'tblTempUsageDetail_20' ) end [2024-12-22 01:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:15:21] Production.INFO: ==28639== Releasing lock... [2024-12-22 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:15:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:16:05 [end_date_ymd] => 2024-12-22 01:16:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:16:05' and `end` < '2024-12-22 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-22 01:16:17] Production.INFO: count ==228 [2024-12-22 01:16:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:16:05 - End Time 2024-12-22 01:16:05 [2024-12-22 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074071', 'tblTempUsageDetail_20' ) start [2024-12-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074071', 'tblTempUsageDetail_20' ) end [2024-12-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074071', 'tblTempVendorCDR_20' ) start [2024-12-22 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074071', 'tblTempVendorCDR_20' ) end [2024-12-22 01:16:17] Production.INFO: ProcessCDR(1,14074071,1,1,2) [2024-12-22 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074071', 'tblTempUsageDetail_20' ) start [2024-12-22 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074071', 'tblTempUsageDetail_20' ) end [2024-12-22 01:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:16:21] Production.INFO: ==28713== Releasing lock... [2024-12-22 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:16:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:17:05 [end_date_ymd] => 2024-12-22 01:17:05 [RateCDR] => 1 ) [2024-12-22 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:17:05' and `end` < '2024-12-22 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:17:17] Production.INFO: count ==225 [2024-12-22 01:17:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:17:05 - End Time 2024-12-22 01:17:05 [2024-12-22 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074076', 'tblTempUsageDetail_20' ) start [2024-12-22 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074076', 'tblTempUsageDetail_20' ) end [2024-12-22 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074076', 'tblTempVendorCDR_20' ) start [2024-12-22 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074076', 'tblTempVendorCDR_20' ) end [2024-12-22 01:17:17] Production.INFO: ProcessCDR(1,14074076,1,1,2) [2024-12-22 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074076', 'tblTempUsageDetail_20' ) start [2024-12-22 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074076', 'tblTempUsageDetail_20' ) end [2024-12-22 01:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:17:20] Production.INFO: ==28782== Releasing lock... [2024-12-22 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:17:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:18:05 [end_date_ymd] => 2024-12-22 01:18:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:18:05' and `end` < '2024-12-22 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-22 01:18:17] Production.INFO: count ==224 [2024-12-22 01:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:18:05 - End Time 2024-12-22 01:18:05 [2024-12-22 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074080', 'tblTempUsageDetail_20' ) start [2024-12-22 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074080', 'tblTempUsageDetail_20' ) end [2024-12-22 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074080', 'tblTempVendorCDR_20' ) start [2024-12-22 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074080', 'tblTempVendorCDR_20' ) end [2024-12-22 01:18:18] Production.INFO: ProcessCDR(1,14074080,1,1,2) [2024-12-22 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074080', 'tblTempUsageDetail_20' ) start [2024-12-22 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074080', 'tblTempUsageDetail_20' ) end [2024-12-22 01:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:18:21] Production.INFO: ==28855== Releasing lock... [2024-12-22 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:18:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:19:04 [end_date_ymd] => 2024-12-22 01:19:04 [RateCDR] => 1 ) [2024-12-22 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-21 22:19:04' and `end` < '2024-12-22 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-22 01:19:16] Production.INFO: count ==222 [2024-12-22 01:19:16] Production.ERROR: pbx CDR StartTime 2024-12-21 22:19:04 - End Time 2024-12-22 01:19:04 [2024-12-22 01:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074086', 'tblTempUsageDetail_20' ) start [2024-12-22 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074086', 'tblTempUsageDetail_20' ) end [2024-12-22 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074086', 'tblTempVendorCDR_20' ) start [2024-12-22 01:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074086', 'tblTempVendorCDR_20' ) end [2024-12-22 01:19:16] Production.INFO: ProcessCDR(1,14074086,1,1,2) [2024-12-22 01:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074086', 'tblTempUsageDetail_20' ) start [2024-12-22 01:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074086', 'tblTempUsageDetail_20' ) end [2024-12-22 01:19:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:19:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:19:19] Production.INFO: ==28927== Releasing lock... [2024-12-22 01:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:19:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:20:06 [end_date_ymd] => 2024-12-22 01:20:06 [RateCDR] => 1 ) [2024-12-22 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-21 22:20:06' and `end` < '2024-12-22 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-22 01:20:18] Production.INFO: count ==229 [2024-12-22 01:20:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:20:06 - End Time 2024-12-22 01:20:06 [2024-12-22 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074092', 'tblTempUsageDetail_20' ) start [2024-12-22 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074092', 'tblTempUsageDetail_20' ) end [2024-12-22 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074092', 'tblTempVendorCDR_20' ) start [2024-12-22 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074092', 'tblTempVendorCDR_20' ) end [2024-12-22 01:20:18] Production.INFO: ProcessCDR(1,14074092,1,1,2) [2024-12-22 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074092', 'tblTempUsageDetail_20' ) start [2024-12-22 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074092', 'tblTempUsageDetail_20' ) end [2024-12-22 01:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:20:21] Production.INFO: ==29004== Releasing lock... [2024-12-22 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:20:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:21:05 [end_date_ymd] => 2024-12-22 01:21:05 [RateCDR] => 1 ) [2024-12-22 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:21:05' and `end` < '2024-12-22 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:21:18] Production.INFO: count ==248 [2024-12-22 01:21:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:21:05 - End Time 2024-12-22 01:21:05 [2024-12-22 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074097', 'tblTempUsageDetail_20' ) start [2024-12-22 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074097', 'tblTempUsageDetail_20' ) end [2024-12-22 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074097', 'tblTempVendorCDR_20' ) start [2024-12-22 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074097', 'tblTempVendorCDR_20' ) end [2024-12-22 01:21:18] Production.INFO: ProcessCDR(1,14074097,1,1,2) [2024-12-22 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074097', 'tblTempUsageDetail_20' ) start [2024-12-22 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074097', 'tblTempUsageDetail_20' ) end [2024-12-22 01:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:21:22] Production.INFO: ==29081== Releasing lock... [2024-12-22 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:21:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:22:05 [end_date_ymd] => 2024-12-22 01:22:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:22:05' and `end` < '2024-12-22 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-22 01:22:18] Production.INFO: count ==248 [2024-12-22 01:22:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:22:05 - End Time 2024-12-22 01:22:05 [2024-12-22 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074102', 'tblTempUsageDetail_20' ) start [2024-12-22 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074102', 'tblTempUsageDetail_20' ) end [2024-12-22 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074102', 'tblTempVendorCDR_20' ) start [2024-12-22 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074102', 'tblTempVendorCDR_20' ) end [2024-12-22 01:22:18] Production.INFO: ProcessCDR(1,14074102,1,1,2) [2024-12-22 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074102', 'tblTempUsageDetail_20' ) start [2024-12-22 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074102', 'tblTempUsageDetail_20' ) end [2024-12-22 01:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:22:22] Production.INFO: ==29191== Releasing lock... [2024-12-22 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:22:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 01:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:23:04 [end_date_ymd] => 2024-12-22 01:23:04 [RateCDR] => 1 ) [2024-12-22 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-21 22:23:04' and `end` < '2024-12-22 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-22 01:23:17] Production.INFO: count ==248 [2024-12-22 01:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:23:04 - End Time 2024-12-22 01:23:04 [2024-12-22 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074107', 'tblTempUsageDetail_20' ) start [2024-12-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074107', 'tblTempUsageDetail_20' ) end [2024-12-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074107', 'tblTempVendorCDR_20' ) start [2024-12-22 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074107', 'tblTempVendorCDR_20' ) end [2024-12-22 01:23:17] Production.INFO: ProcessCDR(1,14074107,1,1,2) [2024-12-22 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074107', 'tblTempUsageDetail_20' ) start [2024-12-22 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074107', 'tblTempUsageDetail_20' ) end [2024-12-22 01:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:23:21] Production.INFO: ==29260== Releasing lock... [2024-12-22 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:23:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:24:05 [end_date_ymd] => 2024-12-22 01:24:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:24:05' and `end` < '2024-12-22 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-22 01:24:19] Production.INFO: count ==248 [2024-12-22 01:24:19] Production.ERROR: pbx CDR StartTime 2024-12-21 22:24:05 - End Time 2024-12-22 01:24:05 [2024-12-22 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074112', 'tblTempUsageDetail_20' ) start [2024-12-22 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074112', 'tblTempUsageDetail_20' ) end [2024-12-22 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074112', 'tblTempVendorCDR_20' ) start [2024-12-22 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074112', 'tblTempVendorCDR_20' ) end [2024-12-22 01:24:19] Production.INFO: ProcessCDR(1,14074112,1,1,2) [2024-12-22 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074112', 'tblTempUsageDetail_20' ) start [2024-12-22 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074112', 'tblTempUsageDetail_20' ) end [2024-12-22 01:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:24:22] Production.INFO: ==29331== Releasing lock... [2024-12-22 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:24:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:25:05 [end_date_ymd] => 2024-12-22 01:25:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:25:05' and `end` < '2024-12-22 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-22 01:25:17] Production.INFO: count ==251 [2024-12-22 01:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:25:05 - End Time 2024-12-22 01:25:05 [2024-12-22 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074117', 'tblTempUsageDetail_20' ) start [2024-12-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074117', 'tblTempUsageDetail_20' ) end [2024-12-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074117', 'tblTempVendorCDR_20' ) start [2024-12-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074117', 'tblTempVendorCDR_20' ) end [2024-12-22 01:25:17] Production.INFO: ProcessCDR(1,14074117,1,1,2) [2024-12-22 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074117', 'tblTempUsageDetail_20' ) start [2024-12-22 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074117', 'tblTempUsageDetail_20' ) end [2024-12-22 01:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:25:20] Production.INFO: ==29404== Releasing lock... [2024-12-22 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:25:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:26:05 [end_date_ymd] => 2024-12-22 01:26:05 [RateCDR] => 1 ) [2024-12-22 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:26:05' and `end` < '2024-12-22 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:26:18] Production.INFO: count ==251 [2024-12-22 01:26:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:26:05 - End Time 2024-12-22 01:26:05 [2024-12-22 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074122', 'tblTempUsageDetail_20' ) start [2024-12-22 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074122', 'tblTempUsageDetail_20' ) end [2024-12-22 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074122', 'tblTempVendorCDR_20' ) start [2024-12-22 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074122', 'tblTempVendorCDR_20' ) end [2024-12-22 01:26:18] Production.INFO: ProcessCDR(1,14074122,1,1,2) [2024-12-22 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074122', 'tblTempUsageDetail_20' ) start [2024-12-22 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074122', 'tblTempUsageDetail_20' ) end [2024-12-22 01:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:26:21] Production.INFO: ==29477== Releasing lock... [2024-12-22 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:26:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:27:05 [end_date_ymd] => 2024-12-22 01:27:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:27:05' and `end` < '2024-12-22 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-22 01:27:17] Production.INFO: count ==249 [2024-12-22 01:27:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:27:05 - End Time 2024-12-22 01:27:05 [2024-12-22 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074127', 'tblTempUsageDetail_20' ) start [2024-12-22 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074127', 'tblTempUsageDetail_20' ) end [2024-12-22 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074127', 'tblTempVendorCDR_20' ) start [2024-12-22 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074127', 'tblTempVendorCDR_20' ) end [2024-12-22 01:27:17] Production.INFO: ProcessCDR(1,14074127,1,1,2) [2024-12-22 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074127', 'tblTempUsageDetail_20' ) start [2024-12-22 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074127', 'tblTempUsageDetail_20' ) end [2024-12-22 01:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:27:20] Production.INFO: ==29551== Releasing lock... [2024-12-22 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:27:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:28:05 [end_date_ymd] => 2024-12-22 01:28:05 [RateCDR] => 1 ) [2024-12-22 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:28:05' and `end` < '2024-12-22 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:28:17] Production.INFO: count ==249 [2024-12-22 01:28:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:28:05 - End Time 2024-12-22 01:28:05 [2024-12-22 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074132', 'tblTempUsageDetail_20' ) start [2024-12-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074132', 'tblTempUsageDetail_20' ) end [2024-12-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074132', 'tblTempVendorCDR_20' ) start [2024-12-22 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074132', 'tblTempVendorCDR_20' ) end [2024-12-22 01:28:17] Production.INFO: ProcessCDR(1,14074132,1,1,2) [2024-12-22 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074132', 'tblTempUsageDetail_20' ) start [2024-12-22 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074132', 'tblTempUsageDetail_20' ) end [2024-12-22 01:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:28:21] Production.INFO: ==29623== Releasing lock... [2024-12-22 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:28:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:29:04 [end_date_ymd] => 2024-12-22 01:29:04 [RateCDR] => 1 ) [2024-12-22 01:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:29:04' and `end` < '2024-12-22 01:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:29:17] Production.INFO: count ==247 [2024-12-22 01:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:29:04 - End Time 2024-12-22 01:29:04 [2024-12-22 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074137', 'tblTempUsageDetail_20' ) start [2024-12-22 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074137', 'tblTempUsageDetail_20' ) end [2024-12-22 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074137', 'tblTempVendorCDR_20' ) start [2024-12-22 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074137', 'tblTempVendorCDR_20' ) end [2024-12-22 01:29:17] Production.INFO: ProcessCDR(1,14074137,1,1,2) [2024-12-22 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074137', 'tblTempUsageDetail_20' ) start [2024-12-22 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074137', 'tblTempUsageDetail_20' ) end [2024-12-22 01:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:29:20] Production.INFO: ==29693== Releasing lock... [2024-12-22 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:29:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:30:05 [end_date_ymd] => 2024-12-22 01:30:05 [RateCDR] => 1 ) [2024-12-22 01:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:30:05' and `end` < '2024-12-22 01:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:30:18] Production.INFO: count ==253 [2024-12-22 01:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:30:05 - End Time 2024-12-22 01:30:05 [2024-12-22 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074143', 'tblTempUsageDetail_20' ) start [2024-12-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074143', 'tblTempUsageDetail_20' ) end [2024-12-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074143', 'tblTempVendorCDR_20' ) start [2024-12-22 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074143', 'tblTempVendorCDR_20' ) end [2024-12-22 01:30:18] Production.INFO: ProcessCDR(1,14074143,1,1,2) [2024-12-22 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074143', 'tblTempUsageDetail_20' ) start [2024-12-22 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074143', 'tblTempUsageDetail_20' ) end [2024-12-22 01:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:30:21] Production.INFO: ==29768== Releasing lock... [2024-12-22 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:30:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:31:04 [end_date_ymd] => 2024-12-22 01:31:04 [RateCDR] => 1 ) [2024-12-22 01: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 22:31:04' and `end` < '2024-12-22 01: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-22 01:31:16] Production.INFO: count ==267 [2024-12-22 01:31:16] Production.ERROR: pbx CDR StartTime 2024-12-21 22:31:04 - End Time 2024-12-22 01:31:04 [2024-12-22 01:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074148', 'tblTempUsageDetail_20' ) start [2024-12-22 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074148', 'tblTempUsageDetail_20' ) end [2024-12-22 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074148', 'tblTempVendorCDR_20' ) start [2024-12-22 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074148', 'tblTempVendorCDR_20' ) end [2024-12-22 01:31:16] Production.INFO: ProcessCDR(1,14074148,1,1,2) [2024-12-22 01:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074148', 'tblTempUsageDetail_20' ) start [2024-12-22 01:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074148', 'tblTempUsageDetail_20' ) end [2024-12-22 01:31:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:31:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:31:19] Production.INFO: ==29841== Releasing lock... [2024-12-22 01:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:31:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:32:05 [end_date_ymd] => 2024-12-22 01:32:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:32:05' and `end` < '2024-12-22 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-22 01:32:17] Production.INFO: count ==270 [2024-12-22 01:32:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:32:05 - End Time 2024-12-22 01:32:05 [2024-12-22 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074153', 'tblTempUsageDetail_20' ) start [2024-12-22 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074153', 'tblTempUsageDetail_20' ) end [2024-12-22 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074153', 'tblTempVendorCDR_20' ) start [2024-12-22 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074153', 'tblTempVendorCDR_20' ) end [2024-12-22 01:32:18] Production.INFO: ProcessCDR(1,14074153,1,1,2) [2024-12-22 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074153', 'tblTempUsageDetail_20' ) start [2024-12-22 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074153', 'tblTempUsageDetail_20' ) end [2024-12-22 01:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:32:21] Production.INFO: ==29913== Releasing lock... [2024-12-22 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:32:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:33:04 [end_date_ymd] => 2024-12-22 01:33:04 [RateCDR] => 1 ) [2024-12-22 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-21 22:33:04' and `end` < '2024-12-22 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-22 01:33:16] Production.INFO: count ==270 [2024-12-22 01:33:16] Production.ERROR: pbx CDR StartTime 2024-12-21 22:33:04 - End Time 2024-12-22 01:33:04 [2024-12-22 01:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074158', 'tblTempUsageDetail_20' ) start [2024-12-22 01:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074158', 'tblTempUsageDetail_20' ) end [2024-12-22 01:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074158', 'tblTempVendorCDR_20' ) start [2024-12-22 01:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074158', 'tblTempVendorCDR_20' ) end [2024-12-22 01:33:16] Production.INFO: ProcessCDR(1,14074158,1,1,2) [2024-12-22 01:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074158', 'tblTempUsageDetail_20' ) start [2024-12-22 01:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074158', 'tblTempUsageDetail_20' ) end [2024-12-22 01:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:33:19] Production.INFO: ==29983== Releasing lock... [2024-12-22 01:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:33:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 01:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:34:04 [end_date_ymd] => 2024-12-22 01:34:04 [RateCDR] => 1 ) [2024-12-22 01: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 22:34:04' and `end` < '2024-12-22 01: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-22 01:34:18] Production.INFO: count ==270 [2024-12-22 01:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:34:04 - End Time 2024-12-22 01:34:04 [2024-12-22 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074163', 'tblTempUsageDetail_20' ) start [2024-12-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074163', 'tblTempUsageDetail_20' ) end [2024-12-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074163', 'tblTempVendorCDR_20' ) start [2024-12-22 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074163', 'tblTempVendorCDR_20' ) end [2024-12-22 01:34:18] Production.INFO: ProcessCDR(1,14074163,1,1,2) [2024-12-22 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074163', 'tblTempUsageDetail_20' ) start [2024-12-22 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074163', 'tblTempUsageDetail_20' ) end [2024-12-22 01:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:34:21] Production.INFO: ==30058== Releasing lock... [2024-12-22 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:34:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:35:05 [end_date_ymd] => 2024-12-22 01:35:05 [RateCDR] => 1 ) [2024-12-22 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:35:05' and `end` < '2024-12-22 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:35:17] Production.INFO: count ==273 [2024-12-22 01:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:35:05 - End Time 2024-12-22 01:35:05 [2024-12-22 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074168', 'tblTempUsageDetail_20' ) start [2024-12-22 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074168', 'tblTempUsageDetail_20' ) end [2024-12-22 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074168', 'tblTempVendorCDR_20' ) start [2024-12-22 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074168', 'tblTempVendorCDR_20' ) end [2024-12-22 01:35:17] Production.INFO: ProcessCDR(1,14074168,1,1,2) [2024-12-22 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074168', 'tblTempUsageDetail_20' ) start [2024-12-22 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074168', 'tblTempUsageDetail_20' ) end [2024-12-22 01:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:35:21] Production.INFO: ==30128== Releasing lock... [2024-12-22 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:35:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:36:05 [end_date_ymd] => 2024-12-22 01:36:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:36:05' and `end` < '2024-12-22 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-22 01:36:17] Production.INFO: count ==273 [2024-12-22 01:36:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:36:05 - End Time 2024-12-22 01:36:05 [2024-12-22 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074173', 'tblTempUsageDetail_20' ) start [2024-12-22 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074173', 'tblTempUsageDetail_20' ) end [2024-12-22 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074173', 'tblTempVendorCDR_20' ) start [2024-12-22 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074173', 'tblTempVendorCDR_20' ) end [2024-12-22 01:36:17] Production.INFO: ProcessCDR(1,14074173,1,1,2) [2024-12-22 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074173', 'tblTempUsageDetail_20' ) start [2024-12-22 01:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074173', 'tblTempUsageDetail_20' ) end [2024-12-22 01:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:36:20] Production.INFO: ==30197== Releasing lock... [2024-12-22 01:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:36:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:37:05 [end_date_ymd] => 2024-12-22 01:37:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:37:05' and `end` < '2024-12-22 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-22 01:37:18] Production.INFO: count ==273 [2024-12-22 01:37:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:37:05 - End Time 2024-12-22 01:37:05 [2024-12-22 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074178', 'tblTempUsageDetail_20' ) start [2024-12-22 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074178', 'tblTempUsageDetail_20' ) end [2024-12-22 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074178', 'tblTempVendorCDR_20' ) start [2024-12-22 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074178', 'tblTempVendorCDR_20' ) end [2024-12-22 01:37:18] Production.INFO: ProcessCDR(1,14074178,1,1,2) [2024-12-22 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074178', 'tblTempUsageDetail_20' ) start [2024-12-22 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074178', 'tblTempUsageDetail_20' ) end [2024-12-22 01:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:37:21] Production.INFO: ==30269== Releasing lock... [2024-12-22 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:37:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:38:05 [end_date_ymd] => 2024-12-22 01:38:05 [RateCDR] => 1 ) [2024-12-22 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:38:05' and `end` < '2024-12-22 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:38:19] Production.INFO: count ==273 [2024-12-22 01:38:19] Production.ERROR: pbx CDR StartTime 2024-12-21 22:38:05 - End Time 2024-12-22 01:38:05 [2024-12-22 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074183', 'tblTempUsageDetail_20' ) start [2024-12-22 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074183', 'tblTempUsageDetail_20' ) end [2024-12-22 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074183', 'tblTempVendorCDR_20' ) start [2024-12-22 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074183', 'tblTempVendorCDR_20' ) end [2024-12-22 01:38:19] Production.INFO: ProcessCDR(1,14074183,1,1,2) [2024-12-22 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074183', 'tblTempUsageDetail_20' ) start [2024-12-22 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074183', 'tblTempUsageDetail_20' ) end [2024-12-22 01:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:38:22] Production.INFO: ==30381== Releasing lock... [2024-12-22 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:38:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:39:05 [end_date_ymd] => 2024-12-22 01:39:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:39:05' and `end` < '2024-12-22 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-22 01:39:19] Production.INFO: count ==270 [2024-12-22 01:39:19] Production.ERROR: pbx CDR StartTime 2024-12-21 22:39:05 - End Time 2024-12-22 01:39:05 [2024-12-22 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074188', 'tblTempUsageDetail_20' ) start [2024-12-22 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074188', 'tblTempUsageDetail_20' ) end [2024-12-22 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074188', 'tblTempVendorCDR_20' ) start [2024-12-22 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074188', 'tblTempVendorCDR_20' ) end [2024-12-22 01:39:19] Production.INFO: ProcessCDR(1,14074188,1,1,2) [2024-12-22 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074188', 'tblTempUsageDetail_20' ) start [2024-12-22 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074188', 'tblTempUsageDetail_20' ) end [2024-12-22 01:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:39:22] Production.INFO: ==30452== Releasing lock... [2024-12-22 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:39:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:40:05 [end_date_ymd] => 2024-12-22 01:40:05 [RateCDR] => 1 ) [2024-12-22 01:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:40:05' and `end` < '2024-12-22 01:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:40:18] Production.INFO: count ==272 [2024-12-22 01:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:40:05 - End Time 2024-12-22 01:40:05 [2024-12-22 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074194', 'tblTempUsageDetail_20' ) start [2024-12-22 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074194', 'tblTempUsageDetail_20' ) end [2024-12-22 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074194', 'tblTempVendorCDR_20' ) start [2024-12-22 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074194', 'tblTempVendorCDR_20' ) end [2024-12-22 01:40:18] Production.INFO: ProcessCDR(1,14074194,1,1,2) [2024-12-22 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074194', 'tblTempUsageDetail_20' ) start [2024-12-22 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074194', 'tblTempUsageDetail_20' ) end [2024-12-22 01:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:40:21] Production.INFO: ==30523== Releasing lock... [2024-12-22 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:40:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:41:05 [end_date_ymd] => 2024-12-22 01:41:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:41:05' and `end` < '2024-12-22 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-22 01:41:17] Production.INFO: count ==272 [2024-12-22 01:41:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:41:05 - End Time 2024-12-22 01:41:05 [2024-12-22 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074199', 'tblTempUsageDetail_20' ) start [2024-12-22 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074199', 'tblTempUsageDetail_20' ) end [2024-12-22 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074199', 'tblTempVendorCDR_20' ) start [2024-12-22 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074199', 'tblTempVendorCDR_20' ) end [2024-12-22 01:41:17] Production.INFO: ProcessCDR(1,14074199,1,1,2) [2024-12-22 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074199', 'tblTempUsageDetail_20' ) start [2024-12-22 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074199', 'tblTempUsageDetail_20' ) end [2024-12-22 01:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:41:20] Production.INFO: ==30598== Releasing lock... [2024-12-22 01:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:41:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:42:05 [end_date_ymd] => 2024-12-22 01:42:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:42:05' and `end` < '2024-12-22 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-22 01:42:18] Production.INFO: count ==271 [2024-12-22 01:42:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:42:05 - End Time 2024-12-22 01:42:05 [2024-12-22 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074204', 'tblTempUsageDetail_20' ) start [2024-12-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074204', 'tblTempUsageDetail_20' ) end [2024-12-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074204', 'tblTempVendorCDR_20' ) start [2024-12-22 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074204', 'tblTempVendorCDR_20' ) end [2024-12-22 01:42:18] Production.INFO: ProcessCDR(1,14074204,1,1,2) [2024-12-22 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074204', 'tblTempUsageDetail_20' ) start [2024-12-22 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074204', 'tblTempUsageDetail_20' ) end [2024-12-22 01:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:42:21] Production.INFO: ==30669== Releasing lock... [2024-12-22 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:42:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:43:05 [end_date_ymd] => 2024-12-22 01:43:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:43:05' and `end` < '2024-12-22 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-22 01:43:18] Production.INFO: count ==271 [2024-12-22 01:43:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:43:05 - End Time 2024-12-22 01:43:05 [2024-12-22 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074208', 'tblTempUsageDetail_20' ) start [2024-12-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074208', 'tblTempUsageDetail_20' ) end [2024-12-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074208', 'tblTempVendorCDR_20' ) start [2024-12-22 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074208', 'tblTempVendorCDR_20' ) end [2024-12-22 01:43:18] Production.INFO: ProcessCDR(1,14074208,1,1,2) [2024-12-22 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074208', 'tblTempUsageDetail_20' ) start [2024-12-22 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074208', 'tblTempUsageDetail_20' ) end [2024-12-22 01:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:43:21] Production.INFO: ==30744== Releasing lock... [2024-12-22 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:43:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:44:05 [end_date_ymd] => 2024-12-22 01:44:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:44:05' and `end` < '2024-12-22 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-22 01:44:17] Production.INFO: count ==271 [2024-12-22 01:44:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:44:05 - End Time 2024-12-22 01:44:05 [2024-12-22 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074214', 'tblTempUsageDetail_20' ) start [2024-12-22 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074214', 'tblTempUsageDetail_20' ) end [2024-12-22 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074214', 'tblTempVendorCDR_20' ) start [2024-12-22 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074214', 'tblTempVendorCDR_20' ) end [2024-12-22 01:44:18] Production.INFO: ProcessCDR(1,14074214,1,1,2) [2024-12-22 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074214', 'tblTempUsageDetail_20' ) start [2024-12-22 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074214', 'tblTempUsageDetail_20' ) end [2024-12-22 01:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:44:21] Production.INFO: ==30816== Releasing lock... [2024-12-22 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:44:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:45:05 [end_date_ymd] => 2024-12-22 01:45:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:45:05' and `end` < '2024-12-22 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-22 01:45:17] Production.INFO: count ==271 [2024-12-22 01:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:45:05 - End Time 2024-12-22 01:45:05 [2024-12-22 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074219', 'tblTempUsageDetail_20' ) start [2024-12-22 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074219', 'tblTempUsageDetail_20' ) end [2024-12-22 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074219', 'tblTempVendorCDR_20' ) start [2024-12-22 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074219', 'tblTempVendorCDR_20' ) end [2024-12-22 01:45:17] Production.INFO: ProcessCDR(1,14074219,1,1,2) [2024-12-22 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074219', 'tblTempUsageDetail_20' ) start [2024-12-22 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074219', 'tblTempUsageDetail_20' ) end [2024-12-22 01:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:45:20] Production.INFO: ==30893== Releasing lock... [2024-12-22 01:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:45:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:46:04 [end_date_ymd] => 2024-12-22 01:46:04 [RateCDR] => 1 ) [2024-12-22 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-21 22:46:04' and `end` < '2024-12-22 01:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:46:18] Production.INFO: count ==265 [2024-12-22 01:46:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:46:04 - End Time 2024-12-22 01:46:04 [2024-12-22 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074224', 'tblTempUsageDetail_20' ) start [2024-12-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074224', 'tblTempUsageDetail_20' ) end [2024-12-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074224', 'tblTempVendorCDR_20' ) start [2024-12-22 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074224', 'tblTempVendorCDR_20' ) end [2024-12-22 01:46:18] Production.INFO: ProcessCDR(1,14074224,1,1,2) [2024-12-22 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074224', 'tblTempUsageDetail_20' ) start [2024-12-22 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074224', 'tblTempUsageDetail_20' ) end [2024-12-22 01:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:46:21] Production.INFO: ==30964== Releasing lock... [2024-12-22 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:46:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:47:05 [end_date_ymd] => 2024-12-22 01:47:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:47:05' and `end` < '2024-12-22 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-22 01:47:19] Production.INFO: count ==265 [2024-12-22 01:47:19] Production.ERROR: pbx CDR StartTime 2024-12-21 22:47:05 - End Time 2024-12-22 01:47:05 [2024-12-22 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074229', 'tblTempUsageDetail_20' ) start [2024-12-22 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074229', 'tblTempUsageDetail_20' ) end [2024-12-22 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074229', 'tblTempVendorCDR_20' ) start [2024-12-22 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074229', 'tblTempVendorCDR_20' ) end [2024-12-22 01:47:19] Production.INFO: ProcessCDR(1,14074229,1,1,2) [2024-12-22 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074229', 'tblTempUsageDetail_20' ) start [2024-12-22 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074229', 'tblTempUsageDetail_20' ) end [2024-12-22 01:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:47:22] Production.INFO: ==31034== Releasing lock... [2024-12-22 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:47:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:48:05 [end_date_ymd] => 2024-12-22 01:48:05 [RateCDR] => 1 ) [2024-12-22 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:48:05' and `end` < '2024-12-22 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:48:17] Production.INFO: count ==265 [2024-12-22 01:48:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:48:05 - End Time 2024-12-22 01:48:05 [2024-12-22 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074234', 'tblTempUsageDetail_20' ) start [2024-12-22 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074234', 'tblTempUsageDetail_20' ) end [2024-12-22 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074234', 'tblTempVendorCDR_20' ) start [2024-12-22 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074234', 'tblTempVendorCDR_20' ) end [2024-12-22 01:48:17] Production.INFO: ProcessCDR(1,14074234,1,1,2) [2024-12-22 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074234', 'tblTempUsageDetail_20' ) start [2024-12-22 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074234', 'tblTempUsageDetail_20' ) end [2024-12-22 01:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:48:20] Production.INFO: ==31107== Releasing lock... [2024-12-22 01:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:48:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:49:05 [end_date_ymd] => 2024-12-22 01:49:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:49:05' and `end` < '2024-12-22 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-22 01:49:17] Production.INFO: count ==265 [2024-12-22 01:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:49:05 - End Time 2024-12-22 01:49:05 [2024-12-22 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074239', 'tblTempUsageDetail_20' ) start [2024-12-22 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074239', 'tblTempUsageDetail_20' ) end [2024-12-22 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074239', 'tblTempVendorCDR_20' ) start [2024-12-22 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074239', 'tblTempVendorCDR_20' ) end [2024-12-22 01:49:17] Production.INFO: ProcessCDR(1,14074239,1,1,2) [2024-12-22 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074239', 'tblTempUsageDetail_20' ) start [2024-12-22 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074239', 'tblTempUsageDetail_20' ) end [2024-12-22 01:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:49:20] Production.INFO: ==31179== Releasing lock... [2024-12-22 01:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:49:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:50:06 [end_date_ymd] => 2024-12-22 01:50:06 [RateCDR] => 1 ) [2024-12-22 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:50:06' and `end` < '2024-12-22 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:50:18] Production.INFO: count ==271 [2024-12-22 01:50:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:50:06 - End Time 2024-12-22 01:50:06 [2024-12-22 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074245', 'tblTempUsageDetail_20' ) start [2024-12-22 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074245', 'tblTempUsageDetail_20' ) end [2024-12-22 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074245', 'tblTempVendorCDR_20' ) start [2024-12-22 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074245', 'tblTempVendorCDR_20' ) end [2024-12-22 01:50:18] Production.INFO: ProcessCDR(1,14074245,1,1,2) [2024-12-22 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074245', 'tblTempUsageDetail_20' ) start [2024-12-22 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074245', 'tblTempUsageDetail_20' ) end [2024-12-22 01:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:50:21] Production.INFO: ==31253== Releasing lock... [2024-12-22 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:50:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:51:05 [end_date_ymd] => 2024-12-22 01:51:05 [RateCDR] => 1 ) [2024-12-22 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:51:05' and `end` < '2024-12-22 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:51:18] Production.INFO: count ==269 [2024-12-22 01:51:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:51:05 - End Time 2024-12-22 01:51:05 [2024-12-22 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074250', 'tblTempUsageDetail_20' ) start [2024-12-22 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074250', 'tblTempUsageDetail_20' ) end [2024-12-22 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074250', 'tblTempVendorCDR_20' ) start [2024-12-22 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074250', 'tblTempVendorCDR_20' ) end [2024-12-22 01:51:18] Production.INFO: ProcessCDR(1,14074250,1,1,2) [2024-12-22 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074250', 'tblTempUsageDetail_20' ) start [2024-12-22 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074250', 'tblTempUsageDetail_20' ) end [2024-12-22 01:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:51:21] Production.INFO: ==31325== Releasing lock... [2024-12-22 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:51:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:52:05 [end_date_ymd] => 2024-12-22 01:52:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:52:05' and `end` < '2024-12-22 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-22 01:52:18] Production.INFO: count ==268 [2024-12-22 01:52:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:52:05 - End Time 2024-12-22 01:52:05 [2024-12-22 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074255', 'tblTempUsageDetail_20' ) start [2024-12-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074255', 'tblTempUsageDetail_20' ) end [2024-12-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074255', 'tblTempVendorCDR_20' ) start [2024-12-22 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074255', 'tblTempVendorCDR_20' ) end [2024-12-22 01:52:18] Production.INFO: ProcessCDR(1,14074255,1,1,2) [2024-12-22 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074255', 'tblTempUsageDetail_20' ) start [2024-12-22 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074255', 'tblTempUsageDetail_20' ) end [2024-12-22 01:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:52:21] Production.INFO: ==31396== Releasing lock... [2024-12-22 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:52:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:53:04 [end_date_ymd] => 2024-12-22 01:53:04 [RateCDR] => 1 ) [2024-12-22 01:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:53:04' and `end` < '2024-12-22 01:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:53:17] Production.INFO: count ==271 [2024-12-22 01:53:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:53:04 - End Time 2024-12-22 01:53:04 [2024-12-22 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074260', 'tblTempUsageDetail_20' ) start [2024-12-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074260', 'tblTempUsageDetail_20' ) end [2024-12-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074260', 'tblTempVendorCDR_20' ) start [2024-12-22 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074260', 'tblTempVendorCDR_20' ) end [2024-12-22 01:53:17] Production.INFO: ProcessCDR(1,14074260,1,1,2) [2024-12-22 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074260', 'tblTempUsageDetail_20' ) start [2024-12-22 01:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074260', 'tblTempUsageDetail_20' ) end [2024-12-22 01:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:53:20] Production.INFO: ==31503== Releasing lock... [2024-12-22 01:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:53:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:54:05 [end_date_ymd] => 2024-12-22 01:54:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:54:05' and `end` < '2024-12-22 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-22 01:54:18] Production.INFO: count ==270 [2024-12-22 01:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:54:05 - End Time 2024-12-22 01:54:05 [2024-12-22 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074265', 'tblTempUsageDetail_20' ) start [2024-12-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074265', 'tblTempUsageDetail_20' ) end [2024-12-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074265', 'tblTempVendorCDR_20' ) start [2024-12-22 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074265', 'tblTempVendorCDR_20' ) end [2024-12-22 01:54:18] Production.INFO: ProcessCDR(1,14074265,1,1,2) [2024-12-22 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074265', 'tblTempUsageDetail_20' ) start [2024-12-22 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074265', 'tblTempUsageDetail_20' ) end [2024-12-22 01:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:54:21] Production.INFO: ==31579== Releasing lock... [2024-12-22 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:54:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:55:04 [end_date_ymd] => 2024-12-22 01:55:04 [RateCDR] => 1 ) [2024-12-22 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-21 22:55:04' and `end` < '2024-12-22 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-22 01:55:16] Production.INFO: count ==270 [2024-12-22 01:55:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:55:04 - End Time 2024-12-22 01:55:04 [2024-12-22 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074270', 'tblTempUsageDetail_20' ) start [2024-12-22 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074270', 'tblTempUsageDetail_20' ) end [2024-12-22 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074270', 'tblTempVendorCDR_20' ) start [2024-12-22 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074270', 'tblTempVendorCDR_20' ) end [2024-12-22 01:55:17] Production.INFO: ProcessCDR(1,14074270,1,1,2) [2024-12-22 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074270', 'tblTempUsageDetail_20' ) start [2024-12-22 01:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074270', 'tblTempUsageDetail_20' ) end [2024-12-22 01:55:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:55:20] Production.INFO: ==31649== Releasing lock... [2024-12-22 01:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:55:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:56:05 [end_date_ymd] => 2024-12-22 01:56:05 [RateCDR] => 1 ) [2024-12-22 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 22:56:05' and `end` < '2024-12-22 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 01:56:18] Production.INFO: count ==273 [2024-12-22 01:56:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:56:05 - End Time 2024-12-22 01:56:05 [2024-12-22 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074275', 'tblTempUsageDetail_20' ) start [2024-12-22 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074275', 'tblTempUsageDetail_20' ) end [2024-12-22 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074275', 'tblTempVendorCDR_20' ) start [2024-12-22 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074275', 'tblTempVendorCDR_20' ) end [2024-12-22 01:56:18] Production.INFO: ProcessCDR(1,14074275,1,1,2) [2024-12-22 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074275', 'tblTempUsageDetail_20' ) start [2024-12-22 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074275', 'tblTempUsageDetail_20' ) end [2024-12-22 01:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:56:21] Production.INFO: ==31720== Releasing lock... [2024-12-22 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:56:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:57:05 [end_date_ymd] => 2024-12-22 01:57:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:57:05' and `end` < '2024-12-22 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-22 01:57:18] Production.INFO: count ==273 [2024-12-22 01:57:18] Production.ERROR: pbx CDR StartTime 2024-12-21 22:57:05 - End Time 2024-12-22 01:57:05 [2024-12-22 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074280', 'tblTempUsageDetail_20' ) start [2024-12-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074280', 'tblTempUsageDetail_20' ) end [2024-12-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074280', 'tblTempVendorCDR_20' ) start [2024-12-22 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074280', 'tblTempVendorCDR_20' ) end [2024-12-22 01:57:18] Production.INFO: ProcessCDR(1,14074280,1,1,2) [2024-12-22 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074280', 'tblTempUsageDetail_20' ) start [2024-12-22 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074280', 'tblTempUsageDetail_20' ) end [2024-12-22 01:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:57:21] Production.INFO: ==31791== Releasing lock... [2024-12-22 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:57:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:58:04 [end_date_ymd] => 2024-12-22 01:58:04 [RateCDR] => 1 ) [2024-12-22 01: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 22:58:04' and `end` < '2024-12-22 01: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-22 01:58:17] Production.INFO: count ==273 [2024-12-22 01:58:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:58:04 - End Time 2024-12-22 01:58:04 [2024-12-22 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074285', 'tblTempUsageDetail_20' ) start [2024-12-22 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074285', 'tblTempUsageDetail_20' ) end [2024-12-22 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074285', 'tblTempVendorCDR_20' ) start [2024-12-22 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074285', 'tblTempVendorCDR_20' ) end [2024-12-22 01:58:17] Production.INFO: ProcessCDR(1,14074285,1,1,2) [2024-12-22 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074285', 'tblTempUsageDetail_20' ) start [2024-12-22 01:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074285', 'tblTempUsageDetail_20' ) end [2024-12-22 01:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:58:20] Production.INFO: ==31861== Releasing lock... [2024-12-22 01:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:58:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 22:59:05 [end_date_ymd] => 2024-12-22 01:59:05 [RateCDR] => 1 ) [2024-12-22 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-21 22:59:05' and `end` < '2024-12-22 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-22 01:59:17] Production.INFO: count ==273 [2024-12-22 01:59:17] Production.ERROR: pbx CDR StartTime 2024-12-21 22:59:05 - End Time 2024-12-22 01:59:05 [2024-12-22 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074290', 'tblTempUsageDetail_20' ) start [2024-12-22 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074290', 'tblTempUsageDetail_20' ) end [2024-12-22 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074290', 'tblTempVendorCDR_20' ) start [2024-12-22 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074290', 'tblTempVendorCDR_20' ) end [2024-12-22 01:59:17] Production.INFO: ProcessCDR(1,14074290,1,1,2) [2024-12-22 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074290', 'tblTempUsageDetail_20' ) start [2024-12-22 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074290', 'tblTempUsageDetail_20' ) end [2024-12-22 01:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 01:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 01:59:21] Production.INFO: ==31940== Releasing lock... [2024-12-22 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 01:59:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:00:05 [end_date_ymd] => 2024-12-22 02:00:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:00:05' and `end` < '2024-12-22 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-22 02:00:17] Production.INFO: count ==280 [2024-12-22 02:00:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:00:05 - End Time 2024-12-22 02:00:05 [2024-12-22 02:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074295', 'tblTempUsageDetail_20' ) start [2024-12-22 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074295', 'tblTempUsageDetail_20' ) end [2024-12-22 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074295', 'tblTempVendorCDR_20' ) start [2024-12-22 02:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074295', 'tblTempVendorCDR_20' ) end [2024-12-22 02:00:17] Production.INFO: ProcessCDR(1,14074295,1,1,2) [2024-12-22 02:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074295', 'tblTempUsageDetail_20' ) start [2024-12-22 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074295', 'tblTempUsageDetail_20' ) end [2024-12-22 02:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:00:21] Production.INFO: ==32021== Releasing lock... [2024-12-22 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:00:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:01:05 [end_date_ymd] => 2024-12-22 02:01:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:01:05' and `end` < '2024-12-22 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-22 02:01:19] Production.INFO: count ==284 [2024-12-22 02:01:19] Production.ERROR: pbx CDR StartTime 2024-12-21 23:01:05 - End Time 2024-12-22 02:01:05 [2024-12-22 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074301', 'tblTempUsageDetail_20' ) start [2024-12-22 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074301', 'tblTempUsageDetail_20' ) end [2024-12-22 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074301', 'tblTempVendorCDR_20' ) start [2024-12-22 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074301', 'tblTempVendorCDR_20' ) end [2024-12-22 02:01:19] Production.INFO: ProcessCDR(1,14074301,1,1,2) [2024-12-22 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074301', 'tblTempUsageDetail_20' ) start [2024-12-22 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074301', 'tblTempUsageDetail_20' ) end [2024-12-22 02:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:01:22] Production.INFO: ==32206== Releasing lock... [2024-12-22 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:01:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:02:05 [end_date_ymd] => 2024-12-22 02:02:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:02:05' and `end` < '2024-12-22 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-22 02:02:17] Production.INFO: count ==282 [2024-12-22 02:02:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:02:05 - End Time 2024-12-22 02:02:05 [2024-12-22 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074306', 'tblTempUsageDetail_20' ) start [2024-12-22 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074306', 'tblTempUsageDetail_20' ) end [2024-12-22 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074306', 'tblTempVendorCDR_20' ) start [2024-12-22 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074306', 'tblTempVendorCDR_20' ) end [2024-12-22 02:02:17] Production.INFO: ProcessCDR(1,14074306,1,1,2) [2024-12-22 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074306', 'tblTempUsageDetail_20' ) start [2024-12-22 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074306', 'tblTempUsageDetail_20' ) end [2024-12-22 02:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:02:21] Production.INFO: ==32324== Releasing lock... [2024-12-22 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:02:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:03:05 [end_date_ymd] => 2024-12-22 02:03:05 [RateCDR] => 1 ) [2024-12-22 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:03:05' and `end` < '2024-12-22 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:03:17] Production.INFO: count ==282 [2024-12-22 02:03:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:03:05 - End Time 2024-12-22 02:03:05 [2024-12-22 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074311', 'tblTempUsageDetail_20' ) start [2024-12-22 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074311', 'tblTempUsageDetail_20' ) end [2024-12-22 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074311', 'tblTempVendorCDR_20' ) start [2024-12-22 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074311', 'tblTempVendorCDR_20' ) end [2024-12-22 02:03:17] Production.INFO: ProcessCDR(1,14074311,1,1,2) [2024-12-22 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074311', 'tblTempUsageDetail_20' ) start [2024-12-22 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074311', 'tblTempUsageDetail_20' ) end [2024-12-22 02:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:03:21] Production.INFO: ==32452== Releasing lock... [2024-12-22 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:03:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 02:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:04:04 [end_date_ymd] => 2024-12-22 02:04:04 [RateCDR] => 1 ) [2024-12-22 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-21 23:04:04' and `end` < '2024-12-22 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-22 02:04:18] Production.INFO: count ==281 [2024-12-22 02:04:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:04:04 - End Time 2024-12-22 02:04:04 [2024-12-22 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074316', 'tblTempUsageDetail_20' ) start [2024-12-22 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074316', 'tblTempUsageDetail_20' ) end [2024-12-22 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074316', 'tblTempVendorCDR_20' ) start [2024-12-22 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074316', 'tblTempVendorCDR_20' ) end [2024-12-22 02:04:18] Production.INFO: ProcessCDR(1,14074316,1,1,2) [2024-12-22 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074316', 'tblTempUsageDetail_20' ) start [2024-12-22 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074316', 'tblTempUsageDetail_20' ) end [2024-12-22 02:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:04:22] Production.INFO: ==32572== Releasing lock... [2024-12-22 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:04:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:05:05 [end_date_ymd] => 2024-12-22 02:05:05 [RateCDR] => 1 ) [2024-12-22 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:05:05' and `end` < '2024-12-22 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:05:17] Production.INFO: count ==279 [2024-12-22 02:05:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:05:05 - End Time 2024-12-22 02:05:05 [2024-12-22 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074321', 'tblTempUsageDetail_20' ) start [2024-12-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074321', 'tblTempUsageDetail_20' ) end [2024-12-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074321', 'tblTempVendorCDR_20' ) start [2024-12-22 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074321', 'tblTempVendorCDR_20' ) end [2024-12-22 02:05:17] Production.INFO: ProcessCDR(1,14074321,1,1,2) [2024-12-22 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074321', 'tblTempUsageDetail_20' ) start [2024-12-22 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074321', 'tblTempUsageDetail_20' ) end [2024-12-22 02:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:05:20] Production.INFO: ==32701== Releasing lock... [2024-12-22 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:05:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:06:05 [end_date_ymd] => 2024-12-22 02:06:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:06:05' and `end` < '2024-12-22 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:06:17] Production.INFO: count ==278 [2024-12-22 02:06:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:06:05 - End Time 2024-12-22 02:06:05 [2024-12-22 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074326', 'tblTempUsageDetail_20' ) start [2024-12-22 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074326', 'tblTempUsageDetail_20' ) end [2024-12-22 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074326', 'tblTempVendorCDR_20' ) start [2024-12-22 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074326', 'tblTempVendorCDR_20' ) end [2024-12-22 02:06:17] Production.INFO: ProcessCDR(1,14074326,1,1,2) [2024-12-22 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074326', 'tblTempUsageDetail_20' ) start [2024-12-22 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074326', 'tblTempUsageDetail_20' ) end [2024-12-22 02:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:06:21] Production.INFO: ==374== Releasing lock... [2024-12-22 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:06:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:07:05 [end_date_ymd] => 2024-12-22 02:07:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:07:05' and `end` < '2024-12-22 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-22 02:07:19] Production.INFO: count ==277 [2024-12-22 02:07:19] Production.ERROR: pbx CDR StartTime 2024-12-21 23:07:05 - End Time 2024-12-22 02:07:05 [2024-12-22 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074331', 'tblTempUsageDetail_20' ) start [2024-12-22 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074331', 'tblTempUsageDetail_20' ) end [2024-12-22 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074331', 'tblTempVendorCDR_20' ) start [2024-12-22 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074331', 'tblTempVendorCDR_20' ) end [2024-12-22 02:07:19] Production.INFO: ProcessCDR(1,14074331,1,1,2) [2024-12-22 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074331', 'tblTempUsageDetail_20' ) start [2024-12-22 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074331', 'tblTempUsageDetail_20' ) end [2024-12-22 02:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:07:22] Production.INFO: ==502== Releasing lock... [2024-12-22 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:07:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 02:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:08:04 [end_date_ymd] => 2024-12-22 02:08:04 [RateCDR] => 1 ) [2024-12-22 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-21 23:08:04' and `end` < '2024-12-22 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-22 02:08:18] Production.INFO: count ==277 [2024-12-22 02:08:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:08:04 - End Time 2024-12-22 02:08:04 [2024-12-22 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074336', 'tblTempUsageDetail_20' ) start [2024-12-22 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074336', 'tblTempUsageDetail_20' ) end [2024-12-22 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074336', 'tblTempVendorCDR_20' ) start [2024-12-22 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074336', 'tblTempVendorCDR_20' ) end [2024-12-22 02:08:18] Production.INFO: ProcessCDR(1,14074336,1,1,2) [2024-12-22 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074336', 'tblTempUsageDetail_20' ) start [2024-12-22 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074336', 'tblTempUsageDetail_20' ) end [2024-12-22 02:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:08:21] Production.INFO: ==638== Releasing lock... [2024-12-22 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:08:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 02:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:09:04 [end_date_ymd] => 2024-12-22 02:09:04 [RateCDR] => 1 ) [2024-12-22 02:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:09:04' and `end` < '2024-12-22 02:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:09:16] Production.INFO: count ==277 [2024-12-22 02:09:16] Production.ERROR: pbx CDR StartTime 2024-12-21 23:09:04 - End Time 2024-12-22 02:09:04 [2024-12-22 02:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074341', 'tblTempUsageDetail_20' ) start [2024-12-22 02:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074341', 'tblTempUsageDetail_20' ) end [2024-12-22 02:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074341', 'tblTempVendorCDR_20' ) start [2024-12-22 02:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074341', 'tblTempVendorCDR_20' ) end [2024-12-22 02:09:16] Production.INFO: ProcessCDR(1,14074341,1,1,2) [2024-12-22 02:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074341', 'tblTempUsageDetail_20' ) start [2024-12-22 02:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074341', 'tblTempUsageDetail_20' ) end [2024-12-22 02:09:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:09:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:09:19] Production.INFO: ==833== Releasing lock... [2024-12-22 02:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:09:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:10:05 [end_date_ymd] => 2024-12-22 02:10:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:10:05' and `end` < '2024-12-22 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-22 02:10:17] Production.INFO: count ==281 [2024-12-22 02:10:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:10:05 - End Time 2024-12-22 02:10:05 [2024-12-22 02:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074346', 'tblTempUsageDetail_20' ) start [2024-12-22 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074346', 'tblTempUsageDetail_20' ) end [2024-12-22 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074346', 'tblTempVendorCDR_20' ) start [2024-12-22 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074346', 'tblTempVendorCDR_20' ) end [2024-12-22 02:10:17] Production.INFO: ProcessCDR(1,14074346,1,1,2) [2024-12-22 02:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074346', 'tblTempUsageDetail_20' ) start [2024-12-22 02:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074346', 'tblTempUsageDetail_20' ) end [2024-12-22 02:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:10:20] Production.INFO: ==965== Releasing lock... [2024-12-22 02:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:10:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:11:05 [end_date_ymd] => 2024-12-22 02:11:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:11:05' and `end` < '2024-12-22 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-22 02:11:19] Production.INFO: count ==281 [2024-12-22 02:11:19] Production.ERROR: pbx CDR StartTime 2024-12-21 23:11:05 - End Time 2024-12-22 02:11:05 [2024-12-22 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074352', 'tblTempUsageDetail_20' ) start [2024-12-22 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074352', 'tblTempUsageDetail_20' ) end [2024-12-22 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074352', 'tblTempVendorCDR_20' ) start [2024-12-22 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074352', 'tblTempVendorCDR_20' ) end [2024-12-22 02:11:19] Production.INFO: ProcessCDR(1,14074352,1,1,2) [2024-12-22 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074352', 'tblTempUsageDetail_20' ) start [2024-12-22 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074352', 'tblTempUsageDetail_20' ) end [2024-12-22 02:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:11:22] Production.INFO: ==1096== Releasing lock... [2024-12-22 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:11:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:12:05 [end_date_ymd] => 2024-12-22 02:12:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:12:05' and `end` < '2024-12-22 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-22 02:12:19] Production.INFO: count ==281 [2024-12-22 02:12:19] Production.ERROR: pbx CDR StartTime 2024-12-21 23:12:05 - End Time 2024-12-22 02:12:05 [2024-12-22 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074357', 'tblTempUsageDetail_20' ) start [2024-12-22 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074357', 'tblTempUsageDetail_20' ) end [2024-12-22 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074357', 'tblTempVendorCDR_20' ) start [2024-12-22 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074357', 'tblTempVendorCDR_20' ) end [2024-12-22 02:12:19] Production.INFO: ProcessCDR(1,14074357,1,1,2) [2024-12-22 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074357', 'tblTempUsageDetail_20' ) start [2024-12-22 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074357', 'tblTempUsageDetail_20' ) end [2024-12-22 02:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:12:22] Production.INFO: ==1229== Releasing lock... [2024-12-22 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:12:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:13:05 [end_date_ymd] => 2024-12-22 02:13:05 [RateCDR] => 1 ) [2024-12-22 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:13:05' and `end` < '2024-12-22 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:13:17] Production.INFO: count ==281 [2024-12-22 02:13:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:13:05 - End Time 2024-12-22 02:13:05 [2024-12-22 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074362', 'tblTempUsageDetail_20' ) start [2024-12-22 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074362', 'tblTempUsageDetail_20' ) end [2024-12-22 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074362', 'tblTempVendorCDR_20' ) start [2024-12-22 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074362', 'tblTempVendorCDR_20' ) end [2024-12-22 02:13:17] Production.INFO: ProcessCDR(1,14074362,1,1,2) [2024-12-22 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074362', 'tblTempUsageDetail_20' ) start [2024-12-22 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074362', 'tblTempUsageDetail_20' ) end [2024-12-22 02:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:13:20] Production.INFO: ==1361== Releasing lock... [2024-12-22 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:13:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:14:05 [end_date_ymd] => 2024-12-22 02:14:05 [RateCDR] => 1 ) [2024-12-22 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:14:05' and `end` < '2024-12-22 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:14:17] Production.INFO: count ==281 [2024-12-22 02:14:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:14:05 - End Time 2024-12-22 02:14:05 [2024-12-22 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074367', 'tblTempUsageDetail_20' ) start [2024-12-22 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074367', 'tblTempUsageDetail_20' ) end [2024-12-22 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074367', 'tblTempVendorCDR_20' ) start [2024-12-22 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074367', 'tblTempVendorCDR_20' ) end [2024-12-22 02:14:17] Production.INFO: ProcessCDR(1,14074367,1,1,2) [2024-12-22 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074367', 'tblTempUsageDetail_20' ) start [2024-12-22 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074367', 'tblTempUsageDetail_20' ) end [2024-12-22 02:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:14:20] Production.INFO: ==1487== Releasing lock... [2024-12-22 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:14:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:15:05 [end_date_ymd] => 2024-12-22 02:15:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:15:05' and `end` < '2024-12-22 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-22 02:15:17] Production.INFO: count ==280 [2024-12-22 02:15:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:15:05 - End Time 2024-12-22 02:15:05 [2024-12-22 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074372', 'tblTempUsageDetail_20' ) start [2024-12-22 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074372', 'tblTempUsageDetail_20' ) end [2024-12-22 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074372', 'tblTempVendorCDR_20' ) start [2024-12-22 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074372', 'tblTempVendorCDR_20' ) end [2024-12-22 02:15:17] Production.INFO: ProcessCDR(1,14074372,1,1,2) [2024-12-22 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074372', 'tblTempUsageDetail_20' ) start [2024-12-22 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074372', 'tblTempUsageDetail_20' ) end [2024-12-22 02:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:15:20] Production.INFO: ==1650== Releasing lock... [2024-12-22 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:15:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:16:05 [end_date_ymd] => 2024-12-22 02:16:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:16:05' and `end` < '2024-12-22 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-22 02:16:17] Production.INFO: count ==279 [2024-12-22 02:16:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:16:05 - End Time 2024-12-22 02:16:05 [2024-12-22 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074377', 'tblTempUsageDetail_20' ) start [2024-12-22 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074377', 'tblTempUsageDetail_20' ) end [2024-12-22 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074377', 'tblTempVendorCDR_20' ) start [2024-12-22 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074377', 'tblTempVendorCDR_20' ) end [2024-12-22 02:16:17] Production.INFO: ProcessCDR(1,14074377,1,1,2) [2024-12-22 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074377', 'tblTempUsageDetail_20' ) start [2024-12-22 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074377', 'tblTempUsageDetail_20' ) end [2024-12-22 02:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:16:20] Production.INFO: ==1777== Releasing lock... [2024-12-22 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:16:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:17:05 [end_date_ymd] => 2024-12-22 02:17:05 [RateCDR] => 1 ) [2024-12-22 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:17:05' and `end` < '2024-12-22 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:17:18] Production.INFO: count ==280 [2024-12-22 02:17:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:17:05 - End Time 2024-12-22 02:17:05 [2024-12-22 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074382', 'tblTempUsageDetail_20' ) start [2024-12-22 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074382', 'tblTempUsageDetail_20' ) end [2024-12-22 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074382', 'tblTempVendorCDR_20' ) start [2024-12-22 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074382', 'tblTempVendorCDR_20' ) end [2024-12-22 02:17:18] Production.INFO: ProcessCDR(1,14074382,1,1,2) [2024-12-22 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074382', 'tblTempUsageDetail_20' ) start [2024-12-22 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074382', 'tblTempUsageDetail_20' ) end [2024-12-22 02:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:17:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:17:23] Production.INFO: ==1889== Releasing lock... [2024-12-22 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:17:23] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:18:05 [end_date_ymd] => 2024-12-22 02:18:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:18:05' and `end` < '2024-12-22 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-22 02:18:17] Production.INFO: count ==281 [2024-12-22 02:18:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:18:05 - End Time 2024-12-22 02:18:05 [2024-12-22 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074387', 'tblTempUsageDetail_20' ) start [2024-12-22 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074387', 'tblTempUsageDetail_20' ) end [2024-12-22 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074387', 'tblTempVendorCDR_20' ) start [2024-12-22 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074387', 'tblTempVendorCDR_20' ) end [2024-12-22 02:18:17] Production.INFO: ProcessCDR(1,14074387,1,1,2) [2024-12-22 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074387', 'tblTempUsageDetail_20' ) start [2024-12-22 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074387', 'tblTempUsageDetail_20' ) end [2024-12-22 02:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:18:22] Production.INFO: ==1967== Releasing lock... [2024-12-22 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:18:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:19:04 [end_date_ymd] => 2024-12-22 02:19:04 [RateCDR] => 1 ) [2024-12-22 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-21 23:19:04' and `end` < '2024-12-22 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-22 02:19:19] Production.INFO: count ==281 [2024-12-22 02:19:19] Production.ERROR: pbx CDR StartTime 2024-12-21 23:19:04 - End Time 2024-12-22 02:19:04 [2024-12-22 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074392', 'tblTempUsageDetail_20' ) start [2024-12-22 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074392', 'tblTempUsageDetail_20' ) end [2024-12-22 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074392', 'tblTempVendorCDR_20' ) start [2024-12-22 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074392', 'tblTempVendorCDR_20' ) end [2024-12-22 02:19:19] Production.INFO: ProcessCDR(1,14074392,1,1,2) [2024-12-22 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074392', 'tblTempUsageDetail_20' ) start [2024-12-22 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074392', 'tblTempUsageDetail_20' ) end [2024-12-22 02:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:19:22] Production.INFO: ==2047== Releasing lock... [2024-12-22 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:19:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:20:05 [end_date_ymd] => 2024-12-22 02:20:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:20:05' and `end` < '2024-12-22 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-22 02:20:17] Production.INFO: count ==287 [2024-12-22 02:20:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:20:05 - End Time 2024-12-22 02:20:05 [2024-12-22 02:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074398', 'tblTempUsageDetail_20' ) start [2024-12-22 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074398', 'tblTempUsageDetail_20' ) end [2024-12-22 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074398', 'tblTempVendorCDR_20' ) start [2024-12-22 02:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074398', 'tblTempVendorCDR_20' ) end [2024-12-22 02:20:17] Production.INFO: ProcessCDR(1,14074398,1,1,2) [2024-12-22 02:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074398', 'tblTempUsageDetail_20' ) start [2024-12-22 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074398', 'tblTempUsageDetail_20' ) end [2024-12-22 02:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:20:21] Production.INFO: ==2129== Releasing lock... [2024-12-22 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:20:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:21:04 [end_date_ymd] => 2024-12-22 02:21:04 [RateCDR] => 1 ) [2024-12-22 02:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:21:04' and `end` < '2024-12-22 02:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:21:16] Production.INFO: count ==297 [2024-12-22 02:21:16] Production.ERROR: pbx CDR StartTime 2024-12-21 23:21:04 - End Time 2024-12-22 02:21:04 [2024-12-22 02:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074403', 'tblTempUsageDetail_20' ) start [2024-12-22 02:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074403', 'tblTempUsageDetail_20' ) end [2024-12-22 02:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074403', 'tblTempVendorCDR_20' ) start [2024-12-22 02:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074403', 'tblTempVendorCDR_20' ) end [2024-12-22 02:21:16] Production.INFO: ProcessCDR(1,14074403,1,1,2) [2024-12-22 02:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074403', 'tblTempUsageDetail_20' ) start [2024-12-22 02:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074403', 'tblTempUsageDetail_20' ) end [2024-12-22 02:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:21:19] Production.INFO: ==2213== Releasing lock... [2024-12-22 02:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:21:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:22:05 [end_date_ymd] => 2024-12-22 02:22:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:22:05' and `end` < '2024-12-22 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-22 02:22:18] Production.INFO: count ==300 [2024-12-22 02:22:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:22:05 - End Time 2024-12-22 02:22:05 [2024-12-22 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074408', 'tblTempUsageDetail_20' ) start [2024-12-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074408', 'tblTempUsageDetail_20' ) end [2024-12-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074408', 'tblTempVendorCDR_20' ) start [2024-12-22 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074408', 'tblTempVendorCDR_20' ) end [2024-12-22 02:22:18] Production.INFO: ProcessCDR(1,14074408,1,1,2) [2024-12-22 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074408', 'tblTempUsageDetail_20' ) start [2024-12-22 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074408', 'tblTempUsageDetail_20' ) end [2024-12-22 02:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:22:22] Production.INFO: ==2293== Releasing lock... [2024-12-22 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:22:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:23:05 [end_date_ymd] => 2024-12-22 02:23:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:23:05' and `end` < '2024-12-22 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-22 02:23:17] Production.INFO: count ==300 [2024-12-22 02:23:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:23:05 - End Time 2024-12-22 02:23:05 [2024-12-22 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074413', 'tblTempUsageDetail_20' ) start [2024-12-22 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074413', 'tblTempUsageDetail_20' ) end [2024-12-22 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074413', 'tblTempVendorCDR_20' ) start [2024-12-22 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074413', 'tblTempVendorCDR_20' ) end [2024-12-22 02:23:17] Production.INFO: ProcessCDR(1,14074413,1,1,2) [2024-12-22 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074413', 'tblTempUsageDetail_20' ) start [2024-12-22 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074413', 'tblTempUsageDetail_20' ) end [2024-12-22 02:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:23:20] Production.INFO: ==2375== Releasing lock... [2024-12-22 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:23:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:24:05 [end_date_ymd] => 2024-12-22 02:24:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:24:05' and `end` < '2024-12-22 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-22 02:24:19] Production.INFO: count ==300 [2024-12-22 02:24:19] Production.ERROR: pbx CDR StartTime 2024-12-21 23:24:05 - End Time 2024-12-22 02:24:05 [2024-12-22 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074418', 'tblTempUsageDetail_20' ) start [2024-12-22 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074418', 'tblTempUsageDetail_20' ) end [2024-12-22 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074418', 'tblTempVendorCDR_20' ) start [2024-12-22 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074418', 'tblTempVendorCDR_20' ) end [2024-12-22 02:24:19] Production.INFO: ProcessCDR(1,14074418,1,1,2) [2024-12-22 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074418', 'tblTempUsageDetail_20' ) start [2024-12-22 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074418', 'tblTempUsageDetail_20' ) end [2024-12-22 02:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:24:22] Production.INFO: ==2453== Releasing lock... [2024-12-22 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:24:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:25:05 [end_date_ymd] => 2024-12-22 02:25:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:25:05' and `end` < '2024-12-22 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-22 02:25:17] Production.INFO: count ==297 [2024-12-22 02:25:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:25:05 - End Time 2024-12-22 02:25:05 [2024-12-22 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074423', 'tblTempUsageDetail_20' ) start [2024-12-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074423', 'tblTempUsageDetail_20' ) end [2024-12-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074423', 'tblTempVendorCDR_20' ) start [2024-12-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074423', 'tblTempVendorCDR_20' ) end [2024-12-22 02:25:17] Production.INFO: ProcessCDR(1,14074423,1,1,2) [2024-12-22 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074423', 'tblTempUsageDetail_20' ) start [2024-12-22 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074423', 'tblTempUsageDetail_20' ) end [2024-12-22 02:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:25:20] Production.INFO: ==2571== Releasing lock... [2024-12-22 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:25:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:26:05 [end_date_ymd] => 2024-12-22 02:26:05 [RateCDR] => 1 ) [2024-12-22 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:26:05' and `end` < '2024-12-22 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:26:17] Production.INFO: count ==297 [2024-12-22 02:26:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:26:05 - End Time 2024-12-22 02:26:05 [2024-12-22 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074428', 'tblTempUsageDetail_20' ) start [2024-12-22 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074428', 'tblTempUsageDetail_20' ) end [2024-12-22 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074428', 'tblTempVendorCDR_20' ) start [2024-12-22 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074428', 'tblTempVendorCDR_20' ) end [2024-12-22 02:26:17] Production.INFO: ProcessCDR(1,14074428,1,1,2) [2024-12-22 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074428', 'tblTempUsageDetail_20' ) start [2024-12-22 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074428', 'tblTempUsageDetail_20' ) end [2024-12-22 02:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:26:20] Production.INFO: ==2649== Releasing lock... [2024-12-22 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:26:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:27:04 [end_date_ymd] => 2024-12-22 02:27:04 [RateCDR] => 1 ) [2024-12-22 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-21 23:27:04' and `end` < '2024-12-22 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-22 02:27:16] Production.INFO: count ==297 [2024-12-22 02:27:16] Production.ERROR: pbx CDR StartTime 2024-12-21 23:27:04 - End Time 2024-12-22 02:27:04 [2024-12-22 02:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074433', 'tblTempUsageDetail_20' ) start [2024-12-22 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074433', 'tblTempUsageDetail_20' ) end [2024-12-22 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074433', 'tblTempVendorCDR_20' ) start [2024-12-22 02:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074433', 'tblTempVendorCDR_20' ) end [2024-12-22 02:27:16] Production.INFO: ProcessCDR(1,14074433,1,1,2) [2024-12-22 02:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074433', 'tblTempUsageDetail_20' ) start [2024-12-22 02:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074433', 'tblTempUsageDetail_20' ) end [2024-12-22 02:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:27:19] Production.INFO: ==2722== Releasing lock... [2024-12-22 02:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:27:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:28:05 [end_date_ymd] => 2024-12-22 02:28:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:28:05' and `end` < '2024-12-22 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-22 02:28:19] Production.INFO: count ==297 [2024-12-22 02:28:19] Production.ERROR: pbx CDR StartTime 2024-12-21 23:28:05 - End Time 2024-12-22 02:28:05 [2024-12-22 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074438', 'tblTempUsageDetail_20' ) start [2024-12-22 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074438', 'tblTempUsageDetail_20' ) end [2024-12-22 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074438', 'tblTempVendorCDR_20' ) start [2024-12-22 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074438', 'tblTempVendorCDR_20' ) end [2024-12-22 02:28:19] Production.INFO: ProcessCDR(1,14074438,1,1,2) [2024-12-22 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074438', 'tblTempUsageDetail_20' ) start [2024-12-22 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074438', 'tblTempUsageDetail_20' ) end [2024-12-22 02:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:28:22] Production.INFO: ==2797== Releasing lock... [2024-12-22 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:28:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:29:05 [end_date_ymd] => 2024-12-22 02:29:05 [RateCDR] => 1 ) [2024-12-22 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:29:05' and `end` < '2024-12-22 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:29:17] Production.INFO: count ==295 [2024-12-22 02:29:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:29:05 - End Time 2024-12-22 02:29:05 [2024-12-22 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074443', 'tblTempUsageDetail_20' ) start [2024-12-22 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074443', 'tblTempUsageDetail_20' ) end [2024-12-22 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074443', 'tblTempVendorCDR_20' ) start [2024-12-22 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074443', 'tblTempVendorCDR_20' ) end [2024-12-22 02:29:17] Production.INFO: ProcessCDR(1,14074443,1,1,2) [2024-12-22 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074443', 'tblTempUsageDetail_20' ) start [2024-12-22 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074443', 'tblTempUsageDetail_20' ) end [2024-12-22 02:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:29:20] Production.INFO: ==2878== Releasing lock... [2024-12-22 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:29:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:30:06 [end_date_ymd] => 2024-12-22 02:30:06 [RateCDR] => 1 ) [2024-12-22 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-21 23:30:06' and `end` < '2024-12-22 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-22 02:30:18] Production.INFO: count ==303 [2024-12-22 02:30:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:30:06 - End Time 2024-12-22 02:30:06 [2024-12-22 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074449', 'tblTempUsageDetail_20' ) start [2024-12-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074449', 'tblTempUsageDetail_20' ) end [2024-12-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074449', 'tblTempVendorCDR_20' ) start [2024-12-22 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074449', 'tblTempVendorCDR_20' ) end [2024-12-22 02:30:18] Production.INFO: ProcessCDR(1,14074449,1,1,2) [2024-12-22 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074449', 'tblTempUsageDetail_20' ) start [2024-12-22 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074449', 'tblTempUsageDetail_20' ) end [2024-12-22 02:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:30:21] Production.INFO: ==2963== Releasing lock... [2024-12-22 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:30:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:31:06 [end_date_ymd] => 2024-12-22 02:31:06 [RateCDR] => 1 ) [2024-12-22 02:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:31:06' and `end` < '2024-12-22 02:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:31:19] Production.INFO: count ==330 [2024-12-22 02:31:19] Production.ERROR: pbx CDR StartTime 2024-12-21 23:31:06 - End Time 2024-12-22 02:31:06 [2024-12-22 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074454', 'tblTempUsageDetail_20' ) start [2024-12-22 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074454', 'tblTempUsageDetail_20' ) end [2024-12-22 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074454', 'tblTempVendorCDR_20' ) start [2024-12-22 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074454', 'tblTempVendorCDR_20' ) end [2024-12-22 02:31:19] Production.INFO: ProcessCDR(1,14074454,1,1,2) [2024-12-22 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074454', 'tblTempUsageDetail_20' ) start [2024-12-22 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074454', 'tblTempUsageDetail_20' ) end [2024-12-22 02:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:31:22] Production.INFO: ==3046== Releasing lock... [2024-12-22 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:31:22] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:32:04 [end_date_ymd] => 2024-12-22 02:32:04 [RateCDR] => 1 ) [2024-12-22 02: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 23:32:04' and `end` < '2024-12-22 02: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-22 02:32:17] Production.INFO: count ==330 [2024-12-22 02:32:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:32:04 - End Time 2024-12-22 02:32:04 [2024-12-22 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074459', 'tblTempUsageDetail_20' ) start [2024-12-22 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074459', 'tblTempUsageDetail_20' ) end [2024-12-22 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074459', 'tblTempVendorCDR_20' ) start [2024-12-22 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074459', 'tblTempVendorCDR_20' ) end [2024-12-22 02:32:17] Production.INFO: ProcessCDR(1,14074459,1,1,2) [2024-12-22 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074459', 'tblTempUsageDetail_20' ) start [2024-12-22 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074459', 'tblTempUsageDetail_20' ) end [2024-12-22 02:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:32:20] Production.INFO: ==3130== Releasing lock... [2024-12-22 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:32:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:33:05 [end_date_ymd] => 2024-12-22 02:33:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:33:05' and `end` < '2024-12-22 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-22 02:33:17] Production.INFO: count ==326 [2024-12-22 02:33:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:33:05 - End Time 2024-12-22 02:33:05 [2024-12-22 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074464', 'tblTempUsageDetail_20' ) start [2024-12-22 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074464', 'tblTempUsageDetail_20' ) end [2024-12-22 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074464', 'tblTempVendorCDR_20' ) start [2024-12-22 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074464', 'tblTempVendorCDR_20' ) end [2024-12-22 02:33:17] Production.INFO: ProcessCDR(1,14074464,1,1,2) [2024-12-22 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074464', 'tblTempUsageDetail_20' ) start [2024-12-22 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074464', 'tblTempUsageDetail_20' ) end [2024-12-22 02:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:33:20] Production.INFO: ==3209== Releasing lock... [2024-12-22 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:33:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:34:05 [end_date_ymd] => 2024-12-22 02:34:05 [RateCDR] => 1 ) [2024-12-22 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:34:05' and `end` < '2024-12-22 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:34:18] Production.INFO: count ==326 [2024-12-22 02:34:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:34:05 - End Time 2024-12-22 02:34:05 [2024-12-22 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074469', 'tblTempUsageDetail_20' ) start [2024-12-22 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074469', 'tblTempUsageDetail_20' ) end [2024-12-22 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074469', 'tblTempVendorCDR_20' ) start [2024-12-22 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074469', 'tblTempVendorCDR_20' ) end [2024-12-22 02:34:18] Production.INFO: ProcessCDR(1,14074469,1,1,2) [2024-12-22 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074469', 'tblTempUsageDetail_20' ) start [2024-12-22 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074469', 'tblTempUsageDetail_20' ) end [2024-12-22 02:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:34:21] Production.INFO: ==3291== Releasing lock... [2024-12-22 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:34:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:35:05 [end_date_ymd] => 2024-12-22 02:35:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:35:05' and `end` < '2024-12-22 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-22 02:35:17] Production.INFO: count ==326 [2024-12-22 02:35:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:35:05 - End Time 2024-12-22 02:35:05 [2024-12-22 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074474', 'tblTempUsageDetail_20' ) start [2024-12-22 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074474', 'tblTempUsageDetail_20' ) end [2024-12-22 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074474', 'tblTempVendorCDR_20' ) start [2024-12-22 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074474', 'tblTempVendorCDR_20' ) end [2024-12-22 02:35:17] Production.INFO: ProcessCDR(1,14074474,1,1,2) [2024-12-22 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074474', 'tblTempUsageDetail_20' ) start [2024-12-22 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074474', 'tblTempUsageDetail_20' ) end [2024-12-22 02:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:35:20] Production.INFO: ==3376== Releasing lock... [2024-12-22 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:35:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:36:04 [end_date_ymd] => 2024-12-22 02:36:04 [RateCDR] => 1 ) [2024-12-22 02:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:36:04' and `end` < '2024-12-22 02:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:36:19] Production.INFO: count ==326 [2024-12-22 02:36:19] Production.ERROR: pbx CDR StartTime 2024-12-21 23:36:04 - End Time 2024-12-22 02:36:04 [2024-12-22 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074479', 'tblTempUsageDetail_20' ) start [2024-12-22 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074479', 'tblTempUsageDetail_20' ) end [2024-12-22 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074479', 'tblTempVendorCDR_20' ) start [2024-12-22 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074479', 'tblTempVendorCDR_20' ) end [2024-12-22 02:36:19] Production.INFO: ProcessCDR(1,14074479,1,1,2) [2024-12-22 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074479', 'tblTempUsageDetail_20' ) start [2024-12-22 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074479', 'tblTempUsageDetail_20' ) end [2024-12-22 02:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:36:22] Production.INFO: ==3457== Releasing lock... [2024-12-22 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:36:22] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:37:04 [end_date_ymd] => 2024-12-22 02:37:04 [RateCDR] => 1 ) [2024-12-22 02:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:37:04' and `end` < '2024-12-22 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-22 02:37:17] Production.INFO: count ==325 [2024-12-22 02:37:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:37:04 - End Time 2024-12-22 02:37:04 [2024-12-22 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074484', 'tblTempUsageDetail_20' ) start [2024-12-22 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074484', 'tblTempUsageDetail_20' ) end [2024-12-22 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074484', 'tblTempVendorCDR_20' ) start [2024-12-22 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074484', 'tblTempVendorCDR_20' ) end [2024-12-22 02:37:17] Production.INFO: ProcessCDR(1,14074484,1,1,2) [2024-12-22 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074484', 'tblTempUsageDetail_20' ) start [2024-12-22 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074484', 'tblTempUsageDetail_20' ) end [2024-12-22 02:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:37:20] Production.INFO: ==3538== Releasing lock... [2024-12-22 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:37:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:38:05 [end_date_ymd] => 2024-12-22 02:38:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:38:05' and `end` < '2024-12-22 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-22 02:38:18] Production.INFO: count ==324 [2024-12-22 02:38:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:38:05 - End Time 2024-12-22 02:38:05 [2024-12-22 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074489', 'tblTempUsageDetail_20' ) start [2024-12-22 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074489', 'tblTempUsageDetail_20' ) end [2024-12-22 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074489', 'tblTempVendorCDR_20' ) start [2024-12-22 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074489', 'tblTempVendorCDR_20' ) end [2024-12-22 02:38:18] Production.INFO: ProcessCDR(1,14074489,1,1,2) [2024-12-22 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074489', 'tblTempUsageDetail_20' ) start [2024-12-22 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074489', 'tblTempUsageDetail_20' ) end [2024-12-22 02:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:38:21] Production.INFO: ==3616== Releasing lock... [2024-12-22 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:38:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:39:04 [end_date_ymd] => 2024-12-22 02:39:04 [RateCDR] => 1 ) [2024-12-22 02:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:39:04' and `end` < '2024-12-22 02:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:39:17] Production.INFO: count ==327 [2024-12-22 02:39:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:39:04 - End Time 2024-12-22 02:39:04 [2024-12-22 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074494', 'tblTempUsageDetail_20' ) start [2024-12-22 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074494', 'tblTempUsageDetail_20' ) end [2024-12-22 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074494', 'tblTempVendorCDR_20' ) start [2024-12-22 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074494', 'tblTempVendorCDR_20' ) end [2024-12-22 02:39:17] Production.INFO: ProcessCDR(1,14074494,1,1,2) [2024-12-22 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074494', 'tblTempUsageDetail_20' ) start [2024-12-22 02:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074494', 'tblTempUsageDetail_20' ) end [2024-12-22 02:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:39:20] Production.INFO: ==3692== Releasing lock... [2024-12-22 02:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:39:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:40:05 [end_date_ymd] => 2024-12-22 02:40:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:40:05' and `end` < '2024-12-22 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-22 02:40:18] Production.INFO: count ==333 [2024-12-22 02:40:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:40:05 - End Time 2024-12-22 02:40:05 [2024-12-22 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074499', 'tblTempUsageDetail_20' ) start [2024-12-22 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074499', 'tblTempUsageDetail_20' ) end [2024-12-22 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074499', 'tblTempVendorCDR_20' ) start [2024-12-22 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074499', 'tblTempVendorCDR_20' ) end [2024-12-22 02:40:18] Production.INFO: ProcessCDR(1,14074499,1,1,2) [2024-12-22 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074499', 'tblTempUsageDetail_20' ) start [2024-12-22 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074499', 'tblTempUsageDetail_20' ) end [2024-12-22 02:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:40:21] Production.INFO: ==3807== Releasing lock... [2024-12-22 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:40:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:41:05 [end_date_ymd] => 2024-12-22 02:41:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:41:05' and `end` < '2024-12-22 02:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:41:19] Production.INFO: count ==343 [2024-12-22 02:41:19] Production.ERROR: pbx CDR StartTime 2024-12-21 23:41:05 - End Time 2024-12-22 02:41:05 [2024-12-22 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074505', 'tblTempUsageDetail_20' ) start [2024-12-22 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074505', 'tblTempUsageDetail_20' ) end [2024-12-22 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074505', 'tblTempVendorCDR_20' ) start [2024-12-22 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074505', 'tblTempVendorCDR_20' ) end [2024-12-22 02:41:19] Production.INFO: ProcessCDR(1,14074505,1,1,2) [2024-12-22 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074505', 'tblTempUsageDetail_20' ) start [2024-12-22 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074505', 'tblTempUsageDetail_20' ) end [2024-12-22 02:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:41:22] Production.INFO: ==3885== Releasing lock... [2024-12-22 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:41:22] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:42:05 [end_date_ymd] => 2024-12-22 02:42:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:42:05' and `end` < '2024-12-22 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-22 02:42:17] Production.INFO: count ==342 [2024-12-22 02:42:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:42:05 - End Time 2024-12-22 02:42:05 [2024-12-22 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074510', 'tblTempUsageDetail_20' ) start [2024-12-22 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074510', 'tblTempUsageDetail_20' ) end [2024-12-22 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074510', 'tblTempVendorCDR_20' ) start [2024-12-22 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074510', 'tblTempVendorCDR_20' ) end [2024-12-22 02:42:17] Production.INFO: ProcessCDR(1,14074510,1,1,2) [2024-12-22 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074510', 'tblTempUsageDetail_20' ) start [2024-12-22 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074510', 'tblTempUsageDetail_20' ) end [2024-12-22 02:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:42:21] Production.INFO: ==3960== Releasing lock... [2024-12-22 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:42:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:43:05 [end_date_ymd] => 2024-12-22 02:43:05 [RateCDR] => 1 ) [2024-12-22 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:43:05' and `end` < '2024-12-22 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:43:18] Production.INFO: count ==342 [2024-12-22 02:43:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:43:05 - End Time 2024-12-22 02:43:05 [2024-12-22 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074515', 'tblTempUsageDetail_20' ) start [2024-12-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074515', 'tblTempUsageDetail_20' ) end [2024-12-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074515', 'tblTempVendorCDR_20' ) start [2024-12-22 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074515', 'tblTempVendorCDR_20' ) end [2024-12-22 02:43:18] Production.INFO: ProcessCDR(1,14074515,1,1,2) [2024-12-22 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074515', 'tblTempUsageDetail_20' ) start [2024-12-22 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074515', 'tblTempUsageDetail_20' ) end [2024-12-22 02:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:43:21] Production.INFO: ==4049== Releasing lock... [2024-12-22 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:43:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:44:05 [end_date_ymd] => 2024-12-22 02:44:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:44:05' and `end` < '2024-12-22 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-22 02:44:17] Production.INFO: count ==342 [2024-12-22 02:44:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:44:05 - End Time 2024-12-22 02:44:05 [2024-12-22 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074520', 'tblTempUsageDetail_20' ) start [2024-12-22 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074520', 'tblTempUsageDetail_20' ) end [2024-12-22 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074520', 'tblTempVendorCDR_20' ) start [2024-12-22 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074520', 'tblTempVendorCDR_20' ) end [2024-12-22 02:44:17] Production.INFO: ProcessCDR(1,14074520,1,1,2) [2024-12-22 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074520', 'tblTempUsageDetail_20' ) start [2024-12-22 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074520', 'tblTempUsageDetail_20' ) end [2024-12-22 02:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:44:21] Production.INFO: ==4131== Releasing lock... [2024-12-22 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:44:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:45:05 [end_date_ymd] => 2024-12-22 02:45:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:45:05' and `end` < '2024-12-22 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-22 02:45:17] Production.INFO: count ==342 [2024-12-22 02:45:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:45:05 - End Time 2024-12-22 02:45:05 [2024-12-22 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074525', 'tblTempUsageDetail_20' ) start [2024-12-22 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074525', 'tblTempUsageDetail_20' ) end [2024-12-22 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074525', 'tblTempVendorCDR_20' ) start [2024-12-22 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074525', 'tblTempVendorCDR_20' ) end [2024-12-22 02:45:17] Production.INFO: ProcessCDR(1,14074525,1,1,2) [2024-12-22 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074525', 'tblTempUsageDetail_20' ) start [2024-12-22 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074525', 'tblTempUsageDetail_20' ) end [2024-12-22 02:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:45:20] Production.INFO: ==4212== Releasing lock... [2024-12-22 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:45:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:46:05 [end_date_ymd] => 2024-12-22 02:46:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:46:05' and `end` < '2024-12-22 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-22 02:46:18] Production.INFO: count ==343 [2024-12-22 02:46:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:46:05 - End Time 2024-12-22 02:46:05 [2024-12-22 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074530', 'tblTempUsageDetail_20' ) start [2024-12-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074530', 'tblTempUsageDetail_20' ) end [2024-12-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074530', 'tblTempVendorCDR_20' ) start [2024-12-22 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074530', 'tblTempVendorCDR_20' ) end [2024-12-22 02:46:18] Production.INFO: ProcessCDR(1,14074530,1,1,2) [2024-12-22 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074530', 'tblTempUsageDetail_20' ) start [2024-12-22 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074530', 'tblTempUsageDetail_20' ) end [2024-12-22 02:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:46:23] Production.INFO: ==4292== Releasing lock... [2024-12-22 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:46:23] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:47:05 [end_date_ymd] => 2024-12-22 02:47:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:47:05' and `end` < '2024-12-22 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-22 02:47:17] Production.INFO: count ==343 [2024-12-22 02:47:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:47:05 - End Time 2024-12-22 02:47:05 [2024-12-22 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074535', 'tblTempUsageDetail_20' ) start [2024-12-22 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074535', 'tblTempUsageDetail_20' ) end [2024-12-22 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074535', 'tblTempVendorCDR_20' ) start [2024-12-22 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074535', 'tblTempVendorCDR_20' ) end [2024-12-22 02:47:17] Production.INFO: ProcessCDR(1,14074535,1,1,2) [2024-12-22 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074535', 'tblTempUsageDetail_20' ) start [2024-12-22 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074535', 'tblTempUsageDetail_20' ) end [2024-12-22 02:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:47:20] Production.INFO: ==4376== Releasing lock... [2024-12-22 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:47:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:48:05 [end_date_ymd] => 2024-12-22 02:48:05 [RateCDR] => 1 ) [2024-12-22 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:48:05' and `end` < '2024-12-22 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:48:19] Production.INFO: count ==344 [2024-12-22 02:48:19] Production.ERROR: pbx CDR StartTime 2024-12-21 23:48:05 - End Time 2024-12-22 02:48:05 [2024-12-22 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074540', 'tblTempUsageDetail_20' ) start [2024-12-22 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074540', 'tblTempUsageDetail_20' ) end [2024-12-22 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074540', 'tblTempVendorCDR_20' ) start [2024-12-22 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074540', 'tblTempVendorCDR_20' ) end [2024-12-22 02:48:19] Production.INFO: ProcessCDR(1,14074540,1,1,2) [2024-12-22 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074540', 'tblTempUsageDetail_20' ) start [2024-12-22 02:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074540', 'tblTempUsageDetail_20' ) end [2024-12-22 02:48:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:48:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:48:23] Production.INFO: ==4455== Releasing lock... [2024-12-22 02:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:48:23] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:49:05 [end_date_ymd] => 2024-12-22 02:49:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:49:05' and `end` < '2024-12-22 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-22 02:49:17] Production.INFO: count ==344 [2024-12-22 02:49:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:49:05 - End Time 2024-12-22 02:49:05 [2024-12-22 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074545', 'tblTempUsageDetail_20' ) start [2024-12-22 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074545', 'tblTempUsageDetail_20' ) end [2024-12-22 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074545', 'tblTempVendorCDR_20' ) start [2024-12-22 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074545', 'tblTempVendorCDR_20' ) end [2024-12-22 02:49:17] Production.INFO: ProcessCDR(1,14074545,1,1,2) [2024-12-22 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074545', 'tblTempUsageDetail_20' ) start [2024-12-22 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074545', 'tblTempUsageDetail_20' ) end [2024-12-22 02:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:49:20] Production.INFO: ==4542== Releasing lock... [2024-12-22 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:49:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:50:05 [end_date_ymd] => 2024-12-22 02:50:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:50:05' and `end` < '2024-12-22 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-22 02:50:17] Production.INFO: count ==344 [2024-12-22 02:50:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:50:05 - End Time 2024-12-22 02:50:05 [2024-12-22 02:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074550', 'tblTempUsageDetail_20' ) start [2024-12-22 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074550', 'tblTempUsageDetail_20' ) end [2024-12-22 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074550', 'tblTempVendorCDR_20' ) start [2024-12-22 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074550', 'tblTempVendorCDR_20' ) end [2024-12-22 02:50:17] Production.INFO: ProcessCDR(1,14074550,1,1,2) [2024-12-22 02:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074550', 'tblTempUsageDetail_20' ) start [2024-12-22 02:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074550', 'tblTempUsageDetail_20' ) end [2024-12-22 02:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:50:20] Production.INFO: ==4631== Releasing lock... [2024-12-22 02:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:50:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:51:04 [end_date_ymd] => 2024-12-22 02:51:04 [RateCDR] => 1 ) [2024-12-22 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-21 23:51:04' and `end` < '2024-12-22 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-22 02:51:18] Production.INFO: count ==344 [2024-12-22 02:51:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:51:04 - End Time 2024-12-22 02:51:04 [2024-12-22 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074556', 'tblTempUsageDetail_20' ) start [2024-12-22 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074556', 'tblTempUsageDetail_20' ) end [2024-12-22 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074556', 'tblTempVendorCDR_20' ) start [2024-12-22 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074556', 'tblTempVendorCDR_20' ) end [2024-12-22 02:51:18] Production.INFO: ProcessCDR(1,14074556,1,1,2) [2024-12-22 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074556', 'tblTempUsageDetail_20' ) start [2024-12-22 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074556', 'tblTempUsageDetail_20' ) end [2024-12-22 02:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:51:21] Production.INFO: ==4715== Releasing lock... [2024-12-22 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:51:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:52:05 [end_date_ymd] => 2024-12-22 02:52:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:52:05' and `end` < '2024-12-22 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-22 02:52:17] Production.INFO: count ==343 [2024-12-22 02:52:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:52:05 - End Time 2024-12-22 02:52:05 [2024-12-22 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074561', 'tblTempUsageDetail_20' ) start [2024-12-22 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074561', 'tblTempUsageDetail_20' ) end [2024-12-22 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074561', 'tblTempVendorCDR_20' ) start [2024-12-22 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074561', 'tblTempVendorCDR_20' ) end [2024-12-22 02:52:18] Production.INFO: ProcessCDR(1,14074561,1,1,2) [2024-12-22 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074561', 'tblTempUsageDetail_20' ) start [2024-12-22 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074561', 'tblTempUsageDetail_20' ) end [2024-12-22 02:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:52:21] Production.INFO: ==4800== Releasing lock... [2024-12-22 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:52:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:53:04 [end_date_ymd] => 2024-12-22 02:53:04 [RateCDR] => 1 ) [2024-12-22 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-21 23:53:04' and `end` < '2024-12-22 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-22 02:53:17] Production.INFO: count ==341 [2024-12-22 02:53:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:53:04 - End Time 2024-12-22 02:53:04 [2024-12-22 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074566', 'tblTempUsageDetail_20' ) start [2024-12-22 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074566', 'tblTempUsageDetail_20' ) end [2024-12-22 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074566', 'tblTempVendorCDR_20' ) start [2024-12-22 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074566', 'tblTempVendorCDR_20' ) end [2024-12-22 02:53:17] Production.INFO: ProcessCDR(1,14074566,1,1,2) [2024-12-22 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074566', 'tblTempUsageDetail_20' ) start [2024-12-22 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074566', 'tblTempUsageDetail_20' ) end [2024-12-22 02:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:53:20] Production.INFO: ==4882== Releasing lock... [2024-12-22 02:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:53:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:54:05 [end_date_ymd] => 2024-12-22 02:54:05 [RateCDR] => 1 ) [2024-12-22 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-21 23:54:05' and `end` < '2024-12-22 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-22 02:54:18] Production.INFO: count ==341 [2024-12-22 02:54:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:54:05 - End Time 2024-12-22 02:54:05 [2024-12-22 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074571', 'tblTempUsageDetail_20' ) start [2024-12-22 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074571', 'tblTempUsageDetail_20' ) end [2024-12-22 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074571', 'tblTempVendorCDR_20' ) start [2024-12-22 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074571', 'tblTempVendorCDR_20' ) end [2024-12-22 02:54:18] Production.INFO: ProcessCDR(1,14074571,1,1,2) [2024-12-22 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074571', 'tblTempUsageDetail_20' ) start [2024-12-22 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074571', 'tblTempUsageDetail_20' ) end [2024-12-22 02:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:54:21] Production.INFO: ==4961== Releasing lock... [2024-12-22 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:54:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:55:04 [end_date_ymd] => 2024-12-22 02:55:04 [RateCDR] => 1 ) [2024-12-22 02:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:55:04' and `end` < '2024-12-22 02:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:55:16] Production.INFO: count ==341 [2024-12-22 02:55:16] Production.ERROR: pbx CDR StartTime 2024-12-21 23:55:04 - End Time 2024-12-22 02:55:04 [2024-12-22 02:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074576', 'tblTempUsageDetail_20' ) start [2024-12-22 02:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074576', 'tblTempUsageDetail_20' ) end [2024-12-22 02:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074576', 'tblTempVendorCDR_20' ) start [2024-12-22 02:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074576', 'tblTempVendorCDR_20' ) end [2024-12-22 02:55:16] Production.INFO: ProcessCDR(1,14074576,1,1,2) [2024-12-22 02:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074576', 'tblTempUsageDetail_20' ) start [2024-12-22 02:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074576', 'tblTempUsageDetail_20' ) end [2024-12-22 02:55:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:55:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:55:19] Production.INFO: ==5043== Releasing lock... [2024-12-22 02:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:55:19] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:56:05 [end_date_ymd] => 2024-12-22 02:56:05 [RateCDR] => 1 ) [2024-12-22 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:56:05' and `end` < '2024-12-22 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:56:17] Production.INFO: count ==339 [2024-12-22 02:56:17] Production.ERROR: pbx CDR StartTime 2024-12-21 23:56:05 - End Time 2024-12-22 02:56:05 [2024-12-22 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074581', 'tblTempUsageDetail_20' ) start [2024-12-22 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074581', 'tblTempUsageDetail_20' ) end [2024-12-22 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074581', 'tblTempVendorCDR_20' ) start [2024-12-22 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074581', 'tblTempVendorCDR_20' ) end [2024-12-22 02:56:17] Production.INFO: ProcessCDR(1,14074581,1,1,2) [2024-12-22 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074581', 'tblTempUsageDetail_20' ) start [2024-12-22 02:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074581', 'tblTempUsageDetail_20' ) end [2024-12-22 02:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:56:20] Production.INFO: ==5167== Releasing lock... [2024-12-22 02:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:56:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:57:04 [end_date_ymd] => 2024-12-22 02:57:04 [RateCDR] => 1 ) [2024-12-22 02:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:57:04' and `end` < '2024-12-22 02:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:57:18] Production.INFO: count ==337 [2024-12-22 02:57:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:57:04 - End Time 2024-12-22 02:57:04 [2024-12-22 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074586', 'tblTempUsageDetail_20' ) start [2024-12-22 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074586', 'tblTempUsageDetail_20' ) end [2024-12-22 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074586', 'tblTempVendorCDR_20' ) start [2024-12-22 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074586', 'tblTempVendorCDR_20' ) end [2024-12-22 02:57:18] Production.INFO: ProcessCDR(1,14074586,1,1,2) [2024-12-22 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074586', 'tblTempUsageDetail_20' ) start [2024-12-22 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074586', 'tblTempUsageDetail_20' ) end [2024-12-22 02:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:57:21] Production.INFO: ==5249== Releasing lock... [2024-12-22 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:57:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:58:05 [end_date_ymd] => 2024-12-22 02:58:05 [RateCDR] => 1 ) [2024-12-22 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:58:05' and `end` < '2024-12-22 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 02:58:18] Production.INFO: count ==335 [2024-12-22 02:58:18] Production.ERROR: pbx CDR StartTime 2024-12-21 23:58:05 - End Time 2024-12-22 02:58:05 [2024-12-22 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074591', 'tblTempUsageDetail_20' ) start [2024-12-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074591', 'tblTempUsageDetail_20' ) end [2024-12-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074591', 'tblTempVendorCDR_20' ) start [2024-12-22 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074591', 'tblTempVendorCDR_20' ) end [2024-12-22 02:58:18] Production.INFO: ProcessCDR(1,14074591,1,1,2) [2024-12-22 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074591', 'tblTempUsageDetail_20' ) start [2024-12-22 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074591', 'tblTempUsageDetail_20' ) end [2024-12-22 02:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:58:21] Production.INFO: ==5334== Releasing lock... [2024-12-22 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:58:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 02:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-21 23:59:04 [end_date_ymd] => 2024-12-22 02:59:04 [RateCDR] => 1 ) [2024-12-22 02:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-21 23:59:04' and `end` < '2024-12-22 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-22 02:59:16] Production.INFO: count ==335 [2024-12-22 02:59:16] Production.ERROR: pbx CDR StartTime 2024-12-21 23:59:04 - End Time 2024-12-22 02:59:04 [2024-12-22 02:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 02:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074596', 'tblTempUsageDetail_20' ) start [2024-12-22 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074596', 'tblTempUsageDetail_20' ) end [2024-12-22 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074596', 'tblTempVendorCDR_20' ) start [2024-12-22 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074596', 'tblTempVendorCDR_20' ) end [2024-12-22 02:59:17] Production.INFO: ProcessCDR(1,14074596,1,1,2) [2024-12-22 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:59:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 02:59:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074596', 'tblTempUsageDetail_20' ) start [2024-12-22 02:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074596', 'tblTempUsageDetail_20' ) end [2024-12-22 02:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 02:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 02:59:20] Production.INFO: ==5413== Releasing lock... [2024-12-22 02:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 02:59:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:00:05 [end_date_ymd] => 2024-12-22 03:00:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:00:05' and `end` < '2024-12-22 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-22 03:00:17] Production.INFO: count ==341 [2024-12-22 03:00:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:00:05 - End Time 2024-12-22 03:00:05 [2024-12-22 03:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074602', 'tblTempUsageDetail_20' ) start [2024-12-22 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074602', 'tblTempUsageDetail_20' ) end [2024-12-22 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074602', 'tblTempVendorCDR_20' ) start [2024-12-22 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074602', 'tblTempVendorCDR_20' ) end [2024-12-22 03:00:17] Production.INFO: ProcessCDR(1,14074602,1,1,2) [2024-12-22 03:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074602', 'tblTempUsageDetail_20' ) start [2024-12-22 03:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074602', 'tblTempUsageDetail_20' ) end [2024-12-22 03:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:00:20] Production.INFO: ==5492== Releasing lock... [2024-12-22 03:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:00:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:01:05 [end_date_ymd] => 2024-12-22 03:01:05 [RateCDR] => 1 ) [2024-12-22 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:01:05' and `end` < '2024-12-22 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:01:18] Production.INFO: count ==351 [2024-12-22 03:01:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:01:05 - End Time 2024-12-22 03:01:05 [2024-12-22 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074607', 'tblTempUsageDetail_20' ) start [2024-12-22 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074607', 'tblTempUsageDetail_20' ) end [2024-12-22 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074607', 'tblTempVendorCDR_20' ) start [2024-12-22 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074607', 'tblTempVendorCDR_20' ) end [2024-12-22 03:01:18] Production.INFO: ProcessCDR(1,14074607,1,1,2) [2024-12-22 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074607', 'tblTempUsageDetail_20' ) start [2024-12-22 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074607', 'tblTempUsageDetail_20' ) end [2024-12-22 03:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:01:21] Production.INFO: ==5578== Releasing lock... [2024-12-22 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:01:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-22 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:02:05 [end_date_ymd] => 2024-12-22 03:02:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:02:05' and `end` < '2024-12-22 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-22 03:02:18] Production.INFO: count ==350 [2024-12-22 03:02:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:02:05 - End Time 2024-12-22 03:02:05 [2024-12-22 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074612', 'tblTempUsageDetail_20' ) start [2024-12-22 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074612', 'tblTempUsageDetail_20' ) end [2024-12-22 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074612', 'tblTempVendorCDR_20' ) start [2024-12-22 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074612', 'tblTempVendorCDR_20' ) end [2024-12-22 03:02:18] Production.INFO: ProcessCDR(1,14074612,1,1,2) [2024-12-22 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074612', 'tblTempUsageDetail_20' ) start [2024-12-22 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074612', 'tblTempUsageDetail_20' ) end [2024-12-22 03:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:02:21] Production.INFO: ==5742== Releasing lock... [2024-12-22 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:02:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:03:05 [end_date_ymd] => 2024-12-22 03:03:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:03:05' and `end` < '2024-12-22 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-22 03:03:17] Production.INFO: count ==350 [2024-12-22 03:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:03:05 - End Time 2024-12-22 03:03:05 [2024-12-22 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074617', 'tblTempUsageDetail_20' ) start [2024-12-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074617', 'tblTempUsageDetail_20' ) end [2024-12-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074617', 'tblTempVendorCDR_20' ) start [2024-12-22 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074617', 'tblTempVendorCDR_20' ) end [2024-12-22 03:03:17] Production.INFO: ProcessCDR(1,14074617,1,1,2) [2024-12-22 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074617', 'tblTempUsageDetail_20' ) start [2024-12-22 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074617', 'tblTempUsageDetail_20' ) end [2024-12-22 03:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:03:20] Production.INFO: ==5828== Releasing lock... [2024-12-22 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:03:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:04:05 [end_date_ymd] => 2024-12-22 03:04:05 [RateCDR] => 1 ) [2024-12-22 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:04:05' and `end` < '2024-12-22 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:04:18] Production.INFO: count ==350 [2024-12-22 03:04:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:04:05 - End Time 2024-12-22 03:04:05 [2024-12-22 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074622', 'tblTempUsageDetail_20' ) start [2024-12-22 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074622', 'tblTempUsageDetail_20' ) end [2024-12-22 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074622', 'tblTempVendorCDR_20' ) start [2024-12-22 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074622', 'tblTempVendorCDR_20' ) end [2024-12-22 03:04:18] Production.INFO: ProcessCDR(1,14074622,1,1,2) [2024-12-22 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074622', 'tblTempUsageDetail_20' ) start [2024-12-22 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074622', 'tblTempUsageDetail_20' ) end [2024-12-22 03:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:04:21] Production.INFO: ==5908== Releasing lock... [2024-12-22 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:04:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:05:05 [end_date_ymd] => 2024-12-22 03:05:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:05:05' and `end` < '2024-12-22 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-22 03:05:18] Production.INFO: count ==350 [2024-12-22 03:05:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:05:05 - End Time 2024-12-22 03:05:05 [2024-12-22 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074627', 'tblTempUsageDetail_20' ) start [2024-12-22 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074627', 'tblTempUsageDetail_20' ) end [2024-12-22 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074627', 'tblTempVendorCDR_20' ) start [2024-12-22 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074627', 'tblTempVendorCDR_20' ) end [2024-12-22 03:05:18] Production.INFO: ProcessCDR(1,14074627,1,1,2) [2024-12-22 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074627', 'tblTempUsageDetail_20' ) start [2024-12-22 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074627', 'tblTempUsageDetail_20' ) end [2024-12-22 03:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:05:21] Production.INFO: ==5983== Releasing lock... [2024-12-22 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:05:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:06:04 [end_date_ymd] => 2024-12-22 03:06:04 [RateCDR] => 1 ) [2024-12-22 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-22 00:06:04' and `end` < '2024-12-22 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-22 03:06:18] Production.INFO: count ==350 [2024-12-22 03:06:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:06:04 - End Time 2024-12-22 03:06:04 [2024-12-22 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074632', 'tblTempUsageDetail_20' ) start [2024-12-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074632', 'tblTempUsageDetail_20' ) end [2024-12-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074632', 'tblTempVendorCDR_20' ) start [2024-12-22 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074632', 'tblTempVendorCDR_20' ) end [2024-12-22 03:06:18] Production.INFO: ProcessCDR(1,14074632,1,1,2) [2024-12-22 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074632', 'tblTempUsageDetail_20' ) start [2024-12-22 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074632', 'tblTempUsageDetail_20' ) end [2024-12-22 03:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:06:21] Production.INFO: ==6138== Releasing lock... [2024-12-22 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:06:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:07:05 [end_date_ymd] => 2024-12-22 03:07:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:07:05' and `end` < '2024-12-22 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-22 03:07:17] Production.INFO: count ==350 [2024-12-22 03:07:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:07:05 - End Time 2024-12-22 03:07:05 [2024-12-22 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074637', 'tblTempUsageDetail_20' ) start [2024-12-22 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074637', 'tblTempUsageDetail_20' ) end [2024-12-22 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074637', 'tblTempVendorCDR_20' ) start [2024-12-22 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074637', 'tblTempVendorCDR_20' ) end [2024-12-22 03:07:17] Production.INFO: ProcessCDR(1,14074637,1,1,2) [2024-12-22 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074637', 'tblTempUsageDetail_20' ) start [2024-12-22 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074637', 'tblTempUsageDetail_20' ) end [2024-12-22 03:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:07:21] Production.INFO: ==6216== Releasing lock... [2024-12-22 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:07:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:08:06 [end_date_ymd] => 2024-12-22 03:08:06 [RateCDR] => 1 ) [2024-12-22 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-22 00:08:06' and `end` < '2024-12-22 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-22 03:08:18] Production.INFO: count ==350 [2024-12-22 03:08:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:08:06 - End Time 2024-12-22 03:08:06 [2024-12-22 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074642', 'tblTempUsageDetail_20' ) start [2024-12-22 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074642', 'tblTempUsageDetail_20' ) end [2024-12-22 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074642', 'tblTempVendorCDR_20' ) start [2024-12-22 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074642', 'tblTempVendorCDR_20' ) end [2024-12-22 03:08:18] Production.INFO: ProcessCDR(1,14074642,1,1,2) [2024-12-22 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074642', 'tblTempUsageDetail_20' ) start [2024-12-22 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074642', 'tblTempUsageDetail_20' ) end [2024-12-22 03:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:08:21] Production.INFO: ==6295== Releasing lock... [2024-12-22 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:08:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:09:04 [end_date_ymd] => 2024-12-22 03:09:04 [RateCDR] => 1 ) [2024-12-22 03:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:09:04' and `end` < '2024-12-22 03:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:09:17] Production.INFO: count ==350 [2024-12-22 03:09:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:09:04 - End Time 2024-12-22 03:09:04 [2024-12-22 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074647', 'tblTempUsageDetail_20' ) start [2024-12-22 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074647', 'tblTempUsageDetail_20' ) end [2024-12-22 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074647', 'tblTempVendorCDR_20' ) start [2024-12-22 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074647', 'tblTempVendorCDR_20' ) end [2024-12-22 03:09:17] Production.INFO: ProcessCDR(1,14074647,1,1,2) [2024-12-22 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074647', 'tblTempUsageDetail_20' ) start [2024-12-22 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074647', 'tblTempUsageDetail_20' ) end [2024-12-22 03:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:09:20] Production.INFO: ==6454== Releasing lock... [2024-12-22 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:09:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:10:05 [end_date_ymd] => 2024-12-22 03:10:05 [RateCDR] => 1 ) [2024-12-22 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:10:05' and `end` < '2024-12-22 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:10:17] Production.INFO: count ==346 [2024-12-22 03:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:10:05 - End Time 2024-12-22 03:10:05 [2024-12-22 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074653', 'tblTempUsageDetail_20' ) start [2024-12-22 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074653', 'tblTempUsageDetail_20' ) end [2024-12-22 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074653', 'tblTempVendorCDR_20' ) start [2024-12-22 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074653', 'tblTempVendorCDR_20' ) end [2024-12-22 03:10:18] Production.INFO: ProcessCDR(1,14074653,1,1,2) [2024-12-22 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074653', 'tblTempUsageDetail_20' ) start [2024-12-22 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074653', 'tblTempUsageDetail_20' ) end [2024-12-22 03:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:10:21] Production.INFO: ==6531== Releasing lock... [2024-12-22 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:10:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:11:05 [end_date_ymd] => 2024-12-22 03:11:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:11:05' and `end` < '2024-12-22 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-22 03:11:18] Production.INFO: count ==328 [2024-12-22 03:11:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:11:05 - End Time 2024-12-22 03:11:05 [2024-12-22 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074658', 'tblTempUsageDetail_20' ) start [2024-12-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074658', 'tblTempUsageDetail_20' ) end [2024-12-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074658', 'tblTempVendorCDR_20' ) start [2024-12-22 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074658', 'tblTempVendorCDR_20' ) end [2024-12-22 03:11:18] Production.INFO: ProcessCDR(1,14074658,1,1,2) [2024-12-22 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074658', 'tblTempUsageDetail_20' ) start [2024-12-22 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074658', 'tblTempUsageDetail_20' ) end [2024-12-22 03:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:11:21] Production.INFO: ==6605== Releasing lock... [2024-12-22 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:11:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:12:05 [end_date_ymd] => 2024-12-22 03:12:05 [RateCDR] => 1 ) [2024-12-22 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:12:05' and `end` < '2024-12-22 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:12:19] Production.INFO: count ==328 [2024-12-22 03:12:19] Production.ERROR: pbx CDR StartTime 2024-12-22 00:12:05 - End Time 2024-12-22 03:12:05 [2024-12-22 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074663', 'tblTempUsageDetail_20' ) start [2024-12-22 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074663', 'tblTempUsageDetail_20' ) end [2024-12-22 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074663', 'tblTempVendorCDR_20' ) start [2024-12-22 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074663', 'tblTempVendorCDR_20' ) end [2024-12-22 03:12:19] Production.INFO: ProcessCDR(1,14074663,1,1,2) [2024-12-22 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074663', 'tblTempUsageDetail_20' ) start [2024-12-22 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074663', 'tblTempUsageDetail_20' ) end [2024-12-22 03:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:12:22] Production.INFO: ==6716== Releasing lock... [2024-12-22 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:12:22] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:13:04 [end_date_ymd] => 2024-12-22 03:13:04 [RateCDR] => 1 ) [2024-12-22 03:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:13:04' and `end` < '2024-12-22 03:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:13:16] Production.INFO: count ==326 [2024-12-22 03:13:16] Production.ERROR: pbx CDR StartTime 2024-12-22 00:13:04 - End Time 2024-12-22 03:13:04 [2024-12-22 03:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074668', 'tblTempUsageDetail_20' ) start [2024-12-22 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074668', 'tblTempUsageDetail_20' ) end [2024-12-22 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074668', 'tblTempVendorCDR_20' ) start [2024-12-22 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074668', 'tblTempVendorCDR_20' ) end [2024-12-22 03:13:16] Production.INFO: ProcessCDR(1,14074668,1,1,2) [2024-12-22 03:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074668', 'tblTempUsageDetail_20' ) start [2024-12-22 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074668', 'tblTempUsageDetail_20' ) end [2024-12-22 03:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:13:20] Production.INFO: ==6870== Releasing lock... [2024-12-22 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:13:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:14:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:14:06 [end_date_ymd] => 2024-12-22 03:14:06 [RateCDR] => 1 ) [2024-12-22 03: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-22 00:14:06' and `end` < '2024-12-22 03: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-22 03:14:18] Production.INFO: count ==326 [2024-12-22 03:14:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:14:06 - End Time 2024-12-22 03:14:06 [2024-12-22 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074673', 'tblTempUsageDetail_20' ) start [2024-12-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074673', 'tblTempUsageDetail_20' ) end [2024-12-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074673', 'tblTempVendorCDR_20' ) start [2024-12-22 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074673', 'tblTempVendorCDR_20' ) end [2024-12-22 03:14:18] Production.INFO: ProcessCDR(1,14074673,1,1,2) [2024-12-22 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074673', 'tblTempUsageDetail_20' ) start [2024-12-22 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074673', 'tblTempUsageDetail_20' ) end [2024-12-22 03:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:14:21] Production.INFO: ==6938== Releasing lock... [2024-12-22 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:14:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:15:05 [end_date_ymd] => 2024-12-22 03:15:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:15:05' and `end` < '2024-12-22 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-22 03:15:17] Production.INFO: count ==326 [2024-12-22 03:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:15:05 - End Time 2024-12-22 03:15:05 [2024-12-22 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074678', 'tblTempUsageDetail_20' ) start [2024-12-22 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074678', 'tblTempUsageDetail_20' ) end [2024-12-22 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074678', 'tblTempVendorCDR_20' ) start [2024-12-22 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074678', 'tblTempVendorCDR_20' ) end [2024-12-22 03:15:17] Production.INFO: ProcessCDR(1,14074678,1,1,2) [2024-12-22 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074678', 'tblTempUsageDetail_20' ) start [2024-12-22 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074678', 'tblTempUsageDetail_20' ) end [2024-12-22 03:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:15:20] Production.INFO: ==7006== Releasing lock... [2024-12-22 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:15:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:16:05 [end_date_ymd] => 2024-12-22 03:16:05 [RateCDR] => 1 ) [2024-12-22 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:16:05' and `end` < '2024-12-22 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:16:17] Production.INFO: count ==326 [2024-12-22 03:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:16:05 - End Time 2024-12-22 03:16:05 [2024-12-22 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074683', 'tblTempUsageDetail_20' ) start [2024-12-22 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074683', 'tblTempUsageDetail_20' ) end [2024-12-22 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074683', 'tblTempVendorCDR_20' ) start [2024-12-22 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074683', 'tblTempVendorCDR_20' ) end [2024-12-22 03:16:17] Production.INFO: ProcessCDR(1,14074683,1,1,2) [2024-12-22 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074683', 'tblTempUsageDetail_20' ) start [2024-12-22 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074683', 'tblTempUsageDetail_20' ) end [2024-12-22 03:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:16:20] Production.INFO: ==7082== Releasing lock... [2024-12-22 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:16:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:17:04 [end_date_ymd] => 2024-12-22 03:17:04 [RateCDR] => 1 ) [2024-12-22 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-22 00:17:04' and `end` < '2024-12-22 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-22 03:17:17] Production.INFO: count ==324 [2024-12-22 03:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:17:04 - End Time 2024-12-22 03:17:04 [2024-12-22 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074688', 'tblTempUsageDetail_20' ) start [2024-12-22 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074688', 'tblTempUsageDetail_20' ) end [2024-12-22 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074688', 'tblTempVendorCDR_20' ) start [2024-12-22 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074688', 'tblTempVendorCDR_20' ) end [2024-12-22 03:17:17] Production.INFO: ProcessCDR(1,14074688,1,1,2) [2024-12-22 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074688', 'tblTempUsageDetail_20' ) start [2024-12-22 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074688', 'tblTempUsageDetail_20' ) end [2024-12-22 03:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:17:21] Production.INFO: ==7229== Releasing lock... [2024-12-22 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:17:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:18:05 [end_date_ymd] => 2024-12-22 03:18:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:18:05' and `end` < '2024-12-22 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-22 03:18:17] Production.INFO: count ==323 [2024-12-22 03:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:18:05 - End Time 2024-12-22 03:18:05 [2024-12-22 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074693', 'tblTempUsageDetail_20' ) start [2024-12-22 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074693', 'tblTempUsageDetail_20' ) end [2024-12-22 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074693', 'tblTempVendorCDR_20' ) start [2024-12-22 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074693', 'tblTempVendorCDR_20' ) end [2024-12-22 03:18:17] Production.INFO: ProcessCDR(1,14074693,1,1,2) [2024-12-22 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074693', 'tblTempUsageDetail_20' ) start [2024-12-22 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074693', 'tblTempUsageDetail_20' ) end [2024-12-22 03:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:18:21] Production.INFO: ==7302== Releasing lock... [2024-12-22 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:18:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:19:05 [end_date_ymd] => 2024-12-22 03:19:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:19:05' and `end` < '2024-12-22 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-22 03:19:19] Production.INFO: count ==323 [2024-12-22 03:19:19] Production.ERROR: pbx CDR StartTime 2024-12-22 00:19:05 - End Time 2024-12-22 03:19:05 [2024-12-22 03:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074698', 'tblTempUsageDetail_20' ) start [2024-12-22 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074698', 'tblTempUsageDetail_20' ) end [2024-12-22 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074698', 'tblTempVendorCDR_20' ) start [2024-12-22 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074698', 'tblTempVendorCDR_20' ) end [2024-12-22 03:19:19] Production.INFO: ProcessCDR(1,14074698,1,1,2) [2024-12-22 03:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074698', 'tblTempUsageDetail_20' ) start [2024-12-22 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074698', 'tblTempUsageDetail_20' ) end [2024-12-22 03:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:19:22] Production.INFO: ==7373== Releasing lock... [2024-12-22 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:19:22] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:20:05 [end_date_ymd] => 2024-12-22 03:20:05 [RateCDR] => 1 ) [2024-12-22 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:20:05' and `end` < '2024-12-22 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:20:17] Production.INFO: count ==325 [2024-12-22 03:20:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:20:05 - End Time 2024-12-22 03:20:05 [2024-12-22 03:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074704', 'tblTempUsageDetail_20' ) start [2024-12-22 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074704', 'tblTempUsageDetail_20' ) end [2024-12-22 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074704', 'tblTempVendorCDR_20' ) start [2024-12-22 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074704', 'tblTempVendorCDR_20' ) end [2024-12-22 03:20:17] Production.INFO: ProcessCDR(1,14074704,1,1,2) [2024-12-22 03:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074704', 'tblTempUsageDetail_20' ) start [2024-12-22 03:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074704', 'tblTempUsageDetail_20' ) end [2024-12-22 03:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:20:20] Production.INFO: ==7445== Releasing lock... [2024-12-22 03:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:20:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:21:04 [end_date_ymd] => 2024-12-22 03:21:04 [RateCDR] => 1 ) [2024-12-22 03:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:21:04' and `end` < '2024-12-22 03:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:21:16] Production.INFO: count ==322 [2024-12-22 03:21:16] Production.ERROR: pbx CDR StartTime 2024-12-22 00:21:04 - End Time 2024-12-22 03:21:04 [2024-12-22 03:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074709', 'tblTempUsageDetail_20' ) start [2024-12-22 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074709', 'tblTempUsageDetail_20' ) end [2024-12-22 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074709', 'tblTempVendorCDR_20' ) start [2024-12-22 03:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074709', 'tblTempVendorCDR_20' ) end [2024-12-22 03:21:16] Production.INFO: ProcessCDR(1,14074709,1,1,2) [2024-12-22 03:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074709', 'tblTempUsageDetail_20' ) start [2024-12-22 03:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074709', 'tblTempUsageDetail_20' ) end [2024-12-22 03:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:21:19] Production.INFO: ==7521== Releasing lock... [2024-12-22 03:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:21:19] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:22:05 [end_date_ymd] => 2024-12-22 03:22:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:22:05' and `end` < '2024-12-22 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-22 03:22:18] Production.INFO: count ==322 [2024-12-22 03:22:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:22:05 - End Time 2024-12-22 03:22:05 [2024-12-22 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074714', 'tblTempUsageDetail_20' ) start [2024-12-22 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074714', 'tblTempUsageDetail_20' ) end [2024-12-22 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074714', 'tblTempVendorCDR_20' ) start [2024-12-22 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074714', 'tblTempVendorCDR_20' ) end [2024-12-22 03:22:18] Production.INFO: ProcessCDR(1,14074714,1,1,2) [2024-12-22 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074714', 'tblTempUsageDetail_20' ) start [2024-12-22 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074714', 'tblTempUsageDetail_20' ) end [2024-12-22 03:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:22:21] Production.INFO: ==7592== Releasing lock... [2024-12-22 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:22:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:23:04 [end_date_ymd] => 2024-12-22 03:23:04 [RateCDR] => 1 ) [2024-12-22 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:23:04' and `end` < '2024-12-22 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:23:17] Production.INFO: count ==322 [2024-12-22 03:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:23:04 - End Time 2024-12-22 03:23:04 [2024-12-22 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074719', 'tblTempUsageDetail_20' ) start [2024-12-22 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074719', 'tblTempUsageDetail_20' ) end [2024-12-22 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074719', 'tblTempVendorCDR_20' ) start [2024-12-22 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074719', 'tblTempVendorCDR_20' ) end [2024-12-22 03:23:17] Production.INFO: ProcessCDR(1,14074719,1,1,2) [2024-12-22 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074719', 'tblTempUsageDetail_20' ) start [2024-12-22 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074719', 'tblTempUsageDetail_20' ) end [2024-12-22 03:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:23:20] Production.INFO: ==7668== Releasing lock... [2024-12-22 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:23:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:24:05 [end_date_ymd] => 2024-12-22 03:24:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:24:05' and `end` < '2024-12-22 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-22 03:24:18] Production.INFO: count ==322 [2024-12-22 03:24:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:24:05 - End Time 2024-12-22 03:24:05 [2024-12-22 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074724', 'tblTempUsageDetail_20' ) start [2024-12-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074724', 'tblTempUsageDetail_20' ) end [2024-12-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074724', 'tblTempVendorCDR_20' ) start [2024-12-22 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074724', 'tblTempVendorCDR_20' ) end [2024-12-22 03:24:18] Production.INFO: ProcessCDR(1,14074724,1,1,2) [2024-12-22 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074724', 'tblTempUsageDetail_20' ) start [2024-12-22 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074724', 'tblTempUsageDetail_20' ) end [2024-12-22 03:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:24:21] Production.INFO: ==7739== Releasing lock... [2024-12-22 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:24:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:25:05 [end_date_ymd] => 2024-12-22 03:25:05 [RateCDR] => 1 ) [2024-12-22 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:25:05' and `end` < '2024-12-22 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:25:17] Production.INFO: count ==322 [2024-12-22 03:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:25:05 - End Time 2024-12-22 03:25:05 [2024-12-22 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074729', 'tblTempUsageDetail_20' ) start [2024-12-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074729', 'tblTempUsageDetail_20' ) end [2024-12-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074729', 'tblTempVendorCDR_20' ) start [2024-12-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074729', 'tblTempVendorCDR_20' ) end [2024-12-22 03:25:17] Production.INFO: ProcessCDR(1,14074729,1,1,2) [2024-12-22 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074729', 'tblTempUsageDetail_20' ) start [2024-12-22 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074729', 'tblTempUsageDetail_20' ) end [2024-12-22 03:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:25:21] Production.INFO: ==7814== Releasing lock... [2024-12-22 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:25:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:26:04 [end_date_ymd] => 2024-12-22 03:26:04 [RateCDR] => 1 ) [2024-12-22 03:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:26:04' and `end` < '2024-12-22 03:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:26:17] Production.INFO: count ==322 [2024-12-22 03:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:26:04 - End Time 2024-12-22 03:26:04 [2024-12-22 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074734', 'tblTempUsageDetail_20' ) start [2024-12-22 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074734', 'tblTempUsageDetail_20' ) end [2024-12-22 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074734', 'tblTempVendorCDR_20' ) start [2024-12-22 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074734', 'tblTempVendorCDR_20' ) end [2024-12-22 03:26:17] Production.INFO: ProcessCDR(1,14074734,1,1,2) [2024-12-22 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074734', 'tblTempUsageDetail_20' ) start [2024-12-22 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074734', 'tblTempUsageDetail_20' ) end [2024-12-22 03:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:26:20] Production.INFO: ==7882== Releasing lock... [2024-12-22 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:26:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:27:05 [end_date_ymd] => 2024-12-22 03:27:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:27:05' and `end` < '2024-12-22 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-22 03:27:18] Production.INFO: count ==322 [2024-12-22 03:27:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:27:05 - End Time 2024-12-22 03:27:05 [2024-12-22 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074739', 'tblTempUsageDetail_20' ) start [2024-12-22 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074739', 'tblTempUsageDetail_20' ) end [2024-12-22 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074739', 'tblTempVendorCDR_20' ) start [2024-12-22 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074739', 'tblTempVendorCDR_20' ) end [2024-12-22 03:27:18] Production.INFO: ProcessCDR(1,14074739,1,1,2) [2024-12-22 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074739', 'tblTempUsageDetail_20' ) start [2024-12-22 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074739', 'tblTempUsageDetail_20' ) end [2024-12-22 03:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:27:21] Production.INFO: ==7954== Releasing lock... [2024-12-22 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:27:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:28:05 [end_date_ymd] => 2024-12-22 03:28:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:28:05' and `end` < '2024-12-22 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-22 03:28:18] Production.INFO: count ==322 [2024-12-22 03:28:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:28:05 - End Time 2024-12-22 03:28:05 [2024-12-22 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074744', 'tblTempUsageDetail_20' ) start [2024-12-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074744', 'tblTempUsageDetail_20' ) end [2024-12-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074744', 'tblTempVendorCDR_20' ) start [2024-12-22 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074744', 'tblTempVendorCDR_20' ) end [2024-12-22 03:28:18] Production.INFO: ProcessCDR(1,14074744,1,1,2) [2024-12-22 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074744', 'tblTempUsageDetail_20' ) start [2024-12-22 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074744', 'tblTempUsageDetail_20' ) end [2024-12-22 03:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:28:21] Production.INFO: ==8028== Releasing lock... [2024-12-22 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:28:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:29:04 [end_date_ymd] => 2024-12-22 03:29:04 [RateCDR] => 1 ) [2024-12-22 03:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:29:04' and `end` < '2024-12-22 03:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:29:17] Production.INFO: count ==322 [2024-12-22 03:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:29:04 - End Time 2024-12-22 03:29:04 [2024-12-22 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074747', 'tblTempUsageDetail_20' ) start [2024-12-22 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074747', 'tblTempUsageDetail_20' ) end [2024-12-22 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074747', 'tblTempVendorCDR_20' ) start [2024-12-22 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074747', 'tblTempVendorCDR_20' ) end [2024-12-22 03:29:17] Production.INFO: ProcessCDR(1,14074747,1,1,2) [2024-12-22 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074747', 'tblTempUsageDetail_20' ) start [2024-12-22 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074747', 'tblTempUsageDetail_20' ) end [2024-12-22 03:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:29:20] Production.INFO: ==8151== Releasing lock... [2024-12-22 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:29:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:30:05 [end_date_ymd] => 2024-12-22 03:30:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:30:05' and `end` < '2024-12-22 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-22 03:30:17] Production.INFO: count ==316 [2024-12-22 03:30:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:30:05 - End Time 2024-12-22 03:30:05 [2024-12-22 03:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074754', 'tblTempUsageDetail_20' ) start [2024-12-22 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074754', 'tblTempUsageDetail_20' ) end [2024-12-22 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074754', 'tblTempVendorCDR_20' ) start [2024-12-22 03:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074754', 'tblTempVendorCDR_20' ) end [2024-12-22 03:30:17] Production.INFO: ProcessCDR(1,14074754,1,1,2) [2024-12-22 03:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074754', 'tblTempUsageDetail_20' ) start [2024-12-22 03:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074754', 'tblTempUsageDetail_20' ) end [2024-12-22 03:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:30:20] Production.INFO: ==8274== Releasing lock... [2024-12-22 03:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:30:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 03:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:31:04 [end_date_ymd] => 2024-12-22 03:31:04 [RateCDR] => 1 ) [2024-12-22 03: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-22 00:31:04' and `end` < '2024-12-22 03: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-22 03:31:17] Production.INFO: count ==312 [2024-12-22 03:31:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:31:04 - End Time 2024-12-22 03:31:04 [2024-12-22 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074760', 'tblTempUsageDetail_20' ) start [2024-12-22 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074760', 'tblTempUsageDetail_20' ) end [2024-12-22 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074760', 'tblTempVendorCDR_20' ) start [2024-12-22 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074760', 'tblTempVendorCDR_20' ) end [2024-12-22 03:31:17] Production.INFO: ProcessCDR(1,14074760,1,1,2) [2024-12-22 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074760', 'tblTempUsageDetail_20' ) start [2024-12-22 03:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074760', 'tblTempUsageDetail_20' ) end [2024-12-22 03:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:31:20] Production.INFO: ==8347== Releasing lock... [2024-12-22 03:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:31:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:32:05 [end_date_ymd] => 2024-12-22 03:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:32:05' and `end` < '2024-12-22 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-22 03:32:19] Production.INFO: count ==311 [2024-12-22 03:32:19] Production.ERROR: pbx CDR StartTime 2024-12-22 00:32:05 - End Time 2024-12-22 03:32:05 [2024-12-22 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074765', 'tblTempUsageDetail_20' ) start [2024-12-22 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074765', 'tblTempUsageDetail_20' ) end [2024-12-22 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074765', 'tblTempVendorCDR_20' ) start [2024-12-22 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074765', 'tblTempVendorCDR_20' ) end [2024-12-22 03:32:19] Production.INFO: ProcessCDR(1,14074765,1,1,2) [2024-12-22 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074765', 'tblTempUsageDetail_20' ) start [2024-12-22 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074765', 'tblTempUsageDetail_20' ) end [2024-12-22 03:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:32:22] Production.INFO: ==8422== Releasing lock... [2024-12-22 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:32:22] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 03:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:33:04 [end_date_ymd] => 2024-12-22 03:33:04 [RateCDR] => 1 ) [2024-12-22 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-22 00:33:04' and `end` < '2024-12-22 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-22 03:33:16] Production.INFO: count ==308 [2024-12-22 03:33:16] Production.ERROR: pbx CDR StartTime 2024-12-22 00:33:04 - End Time 2024-12-22 03:33:04 [2024-12-22 03:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074770', 'tblTempUsageDetail_20' ) start [2024-12-22 03:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074770', 'tblTempUsageDetail_20' ) end [2024-12-22 03:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074770', 'tblTempVendorCDR_20' ) start [2024-12-22 03:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074770', 'tblTempVendorCDR_20' ) end [2024-12-22 03:33:16] Production.INFO: ProcessCDR(1,14074770,1,1,2) [2024-12-22 03:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074770', 'tblTempUsageDetail_20' ) start [2024-12-22 03:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074770', 'tblTempUsageDetail_20' ) end [2024-12-22 03:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:33:19] Production.INFO: ==8494== Releasing lock... [2024-12-22 03:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:33:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:34:05 [end_date_ymd] => 2024-12-22 03:34:05 [RateCDR] => 1 ) [2024-12-22 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:34:05' and `end` < '2024-12-22 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:34:17] Production.INFO: count ==305 [2024-12-22 03:34:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:34:05 - End Time 2024-12-22 03:34:05 [2024-12-22 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074775', 'tblTempUsageDetail_20' ) start [2024-12-22 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074775', 'tblTempUsageDetail_20' ) end [2024-12-22 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074775', 'tblTempVendorCDR_20' ) start [2024-12-22 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074775', 'tblTempVendorCDR_20' ) end [2024-12-22 03:34:18] Production.INFO: ProcessCDR(1,14074775,1,1,2) [2024-12-22 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074775', 'tblTempUsageDetail_20' ) start [2024-12-22 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074775', 'tblTempUsageDetail_20' ) end [2024-12-22 03:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:34:21] Production.INFO: ==8572== Releasing lock... [2024-12-22 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:34:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 03:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:35:04 [end_date_ymd] => 2024-12-22 03:35:04 [RateCDR] => 1 ) [2024-12-22 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-22 00:35:04' and `end` < '2024-12-22 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-22 03:35:16] Production.INFO: count ==302 [2024-12-22 03:35:16] Production.ERROR: pbx CDR StartTime 2024-12-22 00:35:04 - End Time 2024-12-22 03:35:04 [2024-12-22 03:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074780', 'tblTempUsageDetail_20' ) start [2024-12-22 03:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074780', 'tblTempUsageDetail_20' ) end [2024-12-22 03:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074780', 'tblTempVendorCDR_20' ) start [2024-12-22 03:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074780', 'tblTempVendorCDR_20' ) end [2024-12-22 03:35:16] Production.INFO: ProcessCDR(1,14074780,1,1,2) [2024-12-22 03:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074780', 'tblTempUsageDetail_20' ) start [2024-12-22 03:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074780', 'tblTempUsageDetail_20' ) end [2024-12-22 03:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:35:19] Production.INFO: ==8660== Releasing lock... [2024-12-22 03:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:35:19] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:36:05 [end_date_ymd] => 2024-12-22 03:36:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:36:05' and `end` < '2024-12-22 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-22 03:36:18] Production.INFO: count ==301 [2024-12-22 03:36:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:36:05 - End Time 2024-12-22 03:36:05 [2024-12-22 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074785', 'tblTempUsageDetail_20' ) start [2024-12-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074785', 'tblTempUsageDetail_20' ) end [2024-12-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074785', 'tblTempVendorCDR_20' ) start [2024-12-22 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074785', 'tblTempVendorCDR_20' ) end [2024-12-22 03:36:18] Production.INFO: ProcessCDR(1,14074785,1,1,2) [2024-12-22 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074785', 'tblTempUsageDetail_20' ) start [2024-12-22 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074785', 'tblTempUsageDetail_20' ) end [2024-12-22 03:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:36:21] Production.INFO: ==8744== Releasing lock... [2024-12-22 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:36:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:37:05 [end_date_ymd] => 2024-12-22 03:37:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:37:05' and `end` < '2024-12-22 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-22 03:37:17] Production.INFO: count ==301 [2024-12-22 03:37:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:37:05 - End Time 2024-12-22 03:37:05 [2024-12-22 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074790', 'tblTempUsageDetail_20' ) start [2024-12-22 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074790', 'tblTempUsageDetail_20' ) end [2024-12-22 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074790', 'tblTempVendorCDR_20' ) start [2024-12-22 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074790', 'tblTempVendorCDR_20' ) end [2024-12-22 03:37:17] Production.INFO: ProcessCDR(1,14074790,1,1,2) [2024-12-22 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074790', 'tblTempUsageDetail_20' ) start [2024-12-22 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074790', 'tblTempUsageDetail_20' ) end [2024-12-22 03:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:37:20] Production.INFO: ==8820== Releasing lock... [2024-12-22 03:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:37:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:38:06 [end_date_ymd] => 2024-12-22 03:38:06 [RateCDR] => 1 ) [2024-12-22 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-22 00:38:06' and `end` < '2024-12-22 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-22 03:38:17] Production.INFO: count ==298 [2024-12-22 03:38:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:38:06 - End Time 2024-12-22 03:38:06 [2024-12-22 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074795', 'tblTempUsageDetail_20' ) start [2024-12-22 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074795', 'tblTempUsageDetail_20' ) end [2024-12-22 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074795', 'tblTempVendorCDR_20' ) start [2024-12-22 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074795', 'tblTempVendorCDR_20' ) end [2024-12-22 03:38:18] Production.INFO: ProcessCDR(1,14074795,1,1,2) [2024-12-22 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074795', 'tblTempUsageDetail_20' ) start [2024-12-22 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074795', 'tblTempUsageDetail_20' ) end [2024-12-22 03:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:38:21] Production.INFO: ==8890== Releasing lock... [2024-12-22 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:38:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 03:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:39:04 [end_date_ymd] => 2024-12-22 03:39:04 [RateCDR] => 1 ) [2024-12-22 03: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-22 00:39:04' and `end` < '2024-12-22 03: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-22 03:39:17] Production.INFO: count ==298 [2024-12-22 03:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:39:04 - End Time 2024-12-22 03:39:04 [2024-12-22 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074800', 'tblTempUsageDetail_20' ) start [2024-12-22 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074800', 'tblTempUsageDetail_20' ) end [2024-12-22 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074800', 'tblTempVendorCDR_20' ) start [2024-12-22 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074800', 'tblTempVendorCDR_20' ) end [2024-12-22 03:39:17] Production.INFO: ProcessCDR(1,14074800,1,1,2) [2024-12-22 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074800', 'tblTempUsageDetail_20' ) start [2024-12-22 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074800', 'tblTempUsageDetail_20' ) end [2024-12-22 03:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:39:21] Production.INFO: ==8968== Releasing lock... [2024-12-22 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:39:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:40:05 [end_date_ymd] => 2024-12-22 03:40:05 [RateCDR] => 1 ) [2024-12-22 03:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:40:05' and `end` < '2024-12-22 03:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:40:18] Production.INFO: count ==288 [2024-12-22 03:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:40:05 - End Time 2024-12-22 03:40:05 [2024-12-22 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074806', 'tblTempUsageDetail_20' ) start [2024-12-22 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074806', 'tblTempUsageDetail_20' ) end [2024-12-22 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074806', 'tblTempVendorCDR_20' ) start [2024-12-22 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074806', 'tblTempVendorCDR_20' ) end [2024-12-22 03:40:18] Production.INFO: ProcessCDR(1,14074806,1,1,2) [2024-12-22 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074806', 'tblTempUsageDetail_20' ) start [2024-12-22 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074806', 'tblTempUsageDetail_20' ) end [2024-12-22 03:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:40:21] Production.INFO: ==9046== Releasing lock... [2024-12-22 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:40:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 03:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:41:04 [end_date_ymd] => 2024-12-22 03:41:04 [RateCDR] => 1 ) [2024-12-22 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-22 00:41:04' and `end` < '2024-12-22 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-22 03:41:17] Production.INFO: count ==274 [2024-12-22 03:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:41:04 - End Time 2024-12-22 03:41:04 [2024-12-22 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074811', 'tblTempUsageDetail_20' ) start [2024-12-22 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074811', 'tblTempUsageDetail_20' ) end [2024-12-22 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074811', 'tblTempVendorCDR_20' ) start [2024-12-22 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074811', 'tblTempVendorCDR_20' ) end [2024-12-22 03:41:17] Production.INFO: ProcessCDR(1,14074811,1,1,2) [2024-12-22 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074811', 'tblTempUsageDetail_20' ) start [2024-12-22 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074811', 'tblTempUsageDetail_20' ) end [2024-12-22 03:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:41:21] Production.INFO: ==9119== Releasing lock... [2024-12-22 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:41:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:42:05 [end_date_ymd] => 2024-12-22 03:42:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:42:05' and `end` < '2024-12-22 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-22 03:42:17] Production.INFO: count ==274 [2024-12-22 03:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:42:05 - End Time 2024-12-22 03:42:05 [2024-12-22 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074816', 'tblTempUsageDetail_20' ) start [2024-12-22 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074816', 'tblTempUsageDetail_20' ) end [2024-12-22 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074816', 'tblTempVendorCDR_20' ) start [2024-12-22 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074816', 'tblTempVendorCDR_20' ) end [2024-12-22 03:42:17] Production.INFO: ProcessCDR(1,14074816,1,1,2) [2024-12-22 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074816', 'tblTempUsageDetail_20' ) start [2024-12-22 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074816', 'tblTempUsageDetail_20' ) end [2024-12-22 03:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:42:20] Production.INFO: ==9204== Releasing lock... [2024-12-22 03:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:42:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:43:05 [end_date_ymd] => 2024-12-22 03:43:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:43:05' and `end` < '2024-12-22 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-22 03:43:19] Production.INFO: count ==277 [2024-12-22 03:43:19] Production.ERROR: pbx CDR StartTime 2024-12-22 00:43:05 - End Time 2024-12-22 03:43:05 [2024-12-22 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074821', 'tblTempUsageDetail_20' ) start [2024-12-22 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074821', 'tblTempUsageDetail_20' ) end [2024-12-22 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074821', 'tblTempVendorCDR_20' ) start [2024-12-22 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074821', 'tblTempVendorCDR_20' ) end [2024-12-22 03:43:19] Production.INFO: ProcessCDR(1,14074821,1,1,2) [2024-12-22 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074821', 'tblTempUsageDetail_20' ) start [2024-12-22 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074821', 'tblTempUsageDetail_20' ) end [2024-12-22 03:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:43:22] Production.INFO: ==9278== Releasing lock... [2024-12-22 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:43:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:44:05 [end_date_ymd] => 2024-12-22 03:44:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:44:05' and `end` < '2024-12-22 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-22 03:44:18] Production.INFO: count ==275 [2024-12-22 03:44:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:44:05 - End Time 2024-12-22 03:44:05 [2024-12-22 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074826', 'tblTempUsageDetail_20' ) start [2024-12-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074826', 'tblTempUsageDetail_20' ) end [2024-12-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074826', 'tblTempVendorCDR_20' ) start [2024-12-22 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074826', 'tblTempVendorCDR_20' ) end [2024-12-22 03:44:18] Production.INFO: ProcessCDR(1,14074826,1,1,2) [2024-12-22 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074826', 'tblTempUsageDetail_20' ) start [2024-12-22 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074826', 'tblTempUsageDetail_20' ) end [2024-12-22 03:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:44:22] Production.INFO: ==9351== Releasing lock... [2024-12-22 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:44:22] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 03:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:45:04 [end_date_ymd] => 2024-12-22 03:45:04 [RateCDR] => 1 ) [2024-12-22 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-22 00:45:04' and `end` < '2024-12-22 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-22 03:45:17] Production.INFO: count ==273 [2024-12-22 03:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:45:04 - End Time 2024-12-22 03:45:04 [2024-12-22 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074831', 'tblTempUsageDetail_20' ) start [2024-12-22 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074831', 'tblTempUsageDetail_20' ) end [2024-12-22 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074831', 'tblTempVendorCDR_20' ) start [2024-12-22 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074831', 'tblTempVendorCDR_20' ) end [2024-12-22 03:45:17] Production.INFO: ProcessCDR(1,14074831,1,1,2) [2024-12-22 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074831', 'tblTempUsageDetail_20' ) start [2024-12-22 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074831', 'tblTempUsageDetail_20' ) end [2024-12-22 03:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:45:20] Production.INFO: ==9463== Releasing lock... [2024-12-22 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:45:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 03:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:46:04 [end_date_ymd] => 2024-12-22 03:46:04 [RateCDR] => 1 ) [2024-12-22 03: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-22 00:46:04' and `end` < '2024-12-22 03: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-22 03:46:17] Production.INFO: count ==271 [2024-12-22 03:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:46:04 - End Time 2024-12-22 03:46:04 [2024-12-22 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074836', 'tblTempUsageDetail_20' ) start [2024-12-22 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074836', 'tblTempUsageDetail_20' ) end [2024-12-22 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074836', 'tblTempVendorCDR_20' ) start [2024-12-22 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074836', 'tblTempVendorCDR_20' ) end [2024-12-22 03:46:17] Production.INFO: ProcessCDR(1,14074836,1,1,2) [2024-12-22 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074836', 'tblTempUsageDetail_20' ) start [2024-12-22 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074836', 'tblTempUsageDetail_20' ) end [2024-12-22 03:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:46:20] Production.INFO: ==9540== Releasing lock... [2024-12-22 03:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:46:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:47:05 [end_date_ymd] => 2024-12-22 03:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:47:05' and `end` < '2024-12-22 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-22 03:47:18] Production.INFO: count ==270 [2024-12-22 03:47:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:47:05 - End Time 2024-12-22 03:47:05 [2024-12-22 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074841', 'tblTempUsageDetail_20' ) start [2024-12-22 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074841', 'tblTempUsageDetail_20' ) end [2024-12-22 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074841', 'tblTempVendorCDR_20' ) start [2024-12-22 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074841', 'tblTempVendorCDR_20' ) end [2024-12-22 03:47:18] Production.INFO: ProcessCDR(1,14074841,1,1,2) [2024-12-22 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074841', 'tblTempUsageDetail_20' ) start [2024-12-22 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074841', 'tblTempUsageDetail_20' ) end [2024-12-22 03:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:47:21] Production.INFO: ==9615== Releasing lock... [2024-12-22 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:47:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:48:05 [end_date_ymd] => 2024-12-22 03:48:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:48:05' and `end` < '2024-12-22 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-22 03:48:18] Production.INFO: count ==269 [2024-12-22 03:48:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:48:05 - End Time 2024-12-22 03:48:05 [2024-12-22 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074846', 'tblTempUsageDetail_20' ) start [2024-12-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074846', 'tblTempUsageDetail_20' ) end [2024-12-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074846', 'tblTempVendorCDR_20' ) start [2024-12-22 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074846', 'tblTempVendorCDR_20' ) end [2024-12-22 03:48:18] Production.INFO: ProcessCDR(1,14074846,1,1,2) [2024-12-22 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074846', 'tblTempUsageDetail_20' ) start [2024-12-22 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074846', 'tblTempUsageDetail_20' ) end [2024-12-22 03:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:48:21] Production.INFO: ==9699== Releasing lock... [2024-12-22 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:48:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 03:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:49:04 [end_date_ymd] => 2024-12-22 03:49:04 [RateCDR] => 1 ) [2024-12-22 03:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:49:04' and `end` < '2024-12-22 03:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:49:16] Production.INFO: count ==268 [2024-12-22 03:49:16] Production.ERROR: pbx CDR StartTime 2024-12-22 00:49:04 - End Time 2024-12-22 03:49:04 [2024-12-22 03:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074850', 'tblTempUsageDetail_20' ) start [2024-12-22 03:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074850', 'tblTempUsageDetail_20' ) end [2024-12-22 03:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074850', 'tblTempVendorCDR_20' ) start [2024-12-22 03:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074850', 'tblTempVendorCDR_20' ) end [2024-12-22 03:49:16] Production.INFO: ProcessCDR(1,14074850,1,1,2) [2024-12-22 03:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074850', 'tblTempUsageDetail_20' ) start [2024-12-22 03:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074850', 'tblTempUsageDetail_20' ) end [2024-12-22 03:49:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:49:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:49:19] Production.INFO: ==9773== Releasing lock... [2024-12-22 03:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:49:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:50:05 [end_date_ymd] => 2024-12-22 03:50:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:50:05' and `end` < '2024-12-22 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-22 03:50:17] Production.INFO: count ==262 [2024-12-22 03:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:50:05 - End Time 2024-12-22 03:50:05 [2024-12-22 03:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074857', 'tblTempUsageDetail_20' ) start [2024-12-22 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074857', 'tblTempUsageDetail_20' ) end [2024-12-22 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074857', 'tblTempVendorCDR_20' ) start [2024-12-22 03:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074857', 'tblTempVendorCDR_20' ) end [2024-12-22 03:50:17] Production.INFO: ProcessCDR(1,14074857,1,1,2) [2024-12-22 03:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074857', 'tblTempUsageDetail_20' ) start [2024-12-22 03:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074857', 'tblTempUsageDetail_20' ) end [2024-12-22 03:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:50:20] Production.INFO: ==9860== Releasing lock... [2024-12-22 03:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:50:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:51:05 [end_date_ymd] => 2024-12-22 03:51:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:51:05' and `end` < '2024-12-22 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-22 03:51:17] Production.INFO: count ==247 [2024-12-22 03:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:51:05 - End Time 2024-12-22 03:51:05 [2024-12-22 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074862', 'tblTempUsageDetail_20' ) start [2024-12-22 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074862', 'tblTempUsageDetail_20' ) end [2024-12-22 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074862', 'tblTempVendorCDR_20' ) start [2024-12-22 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074862', 'tblTempVendorCDR_20' ) end [2024-12-22 03:51:17] Production.INFO: ProcessCDR(1,14074862,1,1,2) [2024-12-22 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074862', 'tblTempUsageDetail_20' ) start [2024-12-22 03:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074862', 'tblTempUsageDetail_20' ) end [2024-12-22 03:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:51:20] Production.INFO: ==9943== Releasing lock... [2024-12-22 03:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:51:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:52:05 [end_date_ymd] => 2024-12-22 03:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:52:05' and `end` < '2024-12-22 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-22 03:52:17] Production.INFO: count ==247 [2024-12-22 03:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:52:05 - End Time 2024-12-22 03:52:05 [2024-12-22 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074867', 'tblTempUsageDetail_20' ) start [2024-12-22 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074867', 'tblTempUsageDetail_20' ) end [2024-12-22 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074867', 'tblTempVendorCDR_20' ) start [2024-12-22 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074867', 'tblTempVendorCDR_20' ) end [2024-12-22 03:52:17] Production.INFO: ProcessCDR(1,14074867,1,1,2) [2024-12-22 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074867', 'tblTempUsageDetail_20' ) start [2024-12-22 03:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074867', 'tblTempUsageDetail_20' ) end [2024-12-22 03:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:52:20] Production.INFO: ==10018== Releasing lock... [2024-12-22 03:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:52:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 03:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:53:04 [end_date_ymd] => 2024-12-22 03:53:04 [RateCDR] => 1 ) [2024-12-22 03:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:53:04' and `end` < '2024-12-22 03:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:53:17] Production.INFO: count ==247 [2024-12-22 03:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:53:04 - End Time 2024-12-22 03:53:04 [2024-12-22 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074872', 'tblTempUsageDetail_20' ) start [2024-12-22 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074872', 'tblTempUsageDetail_20' ) end [2024-12-22 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074872', 'tblTempVendorCDR_20' ) start [2024-12-22 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074872', 'tblTempVendorCDR_20' ) end [2024-12-22 03:53:17] Production.INFO: ProcessCDR(1,14074872,1,1,2) [2024-12-22 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074872', 'tblTempUsageDetail_20' ) start [2024-12-22 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074872', 'tblTempUsageDetail_20' ) end [2024-12-22 03:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:53:20] Production.INFO: ==10095== Releasing lock... [2024-12-22 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:53:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 03:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:54:04 [end_date_ymd] => 2024-12-22 03:54:04 [RateCDR] => 1 ) [2024-12-22 03:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:54:04' and `end` < '2024-12-22 03:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:54:18] Production.INFO: count ==247 [2024-12-22 03:54:18] Production.ERROR: pbx CDR StartTime 2024-12-22 00:54:04 - End Time 2024-12-22 03:54:04 [2024-12-22 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074877', 'tblTempUsageDetail_20' ) start [2024-12-22 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074877', 'tblTempUsageDetail_20' ) end [2024-12-22 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074877', 'tblTempVendorCDR_20' ) start [2024-12-22 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074877', 'tblTempVendorCDR_20' ) end [2024-12-22 03:54:18] Production.INFO: ProcessCDR(1,14074877,1,1,2) [2024-12-22 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074877', 'tblTempUsageDetail_20' ) start [2024-12-22 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074877', 'tblTempUsageDetail_20' ) end [2024-12-22 03:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:54:21] Production.INFO: ==10173== Releasing lock... [2024-12-22 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:54:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:55:05 [end_date_ymd] => 2024-12-22 03:55:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:55:05' and `end` < '2024-12-22 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-22 03:55:17] Production.INFO: count ==247 [2024-12-22 03:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:55:05 - End Time 2024-12-22 03:55:05 [2024-12-22 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074882', 'tblTempUsageDetail_20' ) start [2024-12-22 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074882', 'tblTempUsageDetail_20' ) end [2024-12-22 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074882', 'tblTempVendorCDR_20' ) start [2024-12-22 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074882', 'tblTempVendorCDR_20' ) end [2024-12-22 03:55:17] Production.INFO: ProcessCDR(1,14074882,1,1,2) [2024-12-22 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074882', 'tblTempUsageDetail_20' ) start [2024-12-22 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074882', 'tblTempUsageDetail_20' ) end [2024-12-22 03:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:55:20] Production.INFO: ==10249== Releasing lock... [2024-12-22 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:55:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 03:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:56:04 [end_date_ymd] => 2024-12-22 03:56:04 [RateCDR] => 1 ) [2024-12-22 03: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-22 00:56:04' and `end` < '2024-12-22 03: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-22 03:56:17] Production.INFO: count ==245 [2024-12-22 03:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:56:04 - End Time 2024-12-22 03:56:04 [2024-12-22 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074887', 'tblTempUsageDetail_20' ) start [2024-12-22 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074887', 'tblTempUsageDetail_20' ) end [2024-12-22 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074887', 'tblTempVendorCDR_20' ) start [2024-12-22 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074887', 'tblTempVendorCDR_20' ) end [2024-12-22 03:56:17] Production.INFO: ProcessCDR(1,14074887,1,1,2) [2024-12-22 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074887', 'tblTempUsageDetail_20' ) start [2024-12-22 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074887', 'tblTempUsageDetail_20' ) end [2024-12-22 03:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:56:20] Production.INFO: ==10329== Releasing lock... [2024-12-22 03:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:56:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:57:05 [end_date_ymd] => 2024-12-22 03:57:05 [RateCDR] => 1 ) [2024-12-22 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 00:57:05' and `end` < '2024-12-22 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 03:57:17] Production.INFO: count ==245 [2024-12-22 03:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:57:05 - End Time 2024-12-22 03:57:05 [2024-12-22 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074892', 'tblTempUsageDetail_20' ) start [2024-12-22 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074892', 'tblTempUsageDetail_20' ) end [2024-12-22 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074892', 'tblTempVendorCDR_20' ) start [2024-12-22 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074892', 'tblTempVendorCDR_20' ) end [2024-12-22 03:57:17] Production.INFO: ProcessCDR(1,14074892,1,1,2) [2024-12-22 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074892', 'tblTempUsageDetail_20' ) start [2024-12-22 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074892', 'tblTempUsageDetail_20' ) end [2024-12-22 03:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:57:20] Production.INFO: ==10410== Releasing lock... [2024-12-22 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:57:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 03:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:58:04 [end_date_ymd] => 2024-12-22 03:58:04 [RateCDR] => 1 ) [2024-12-22 03: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-22 00:58:04' and `end` < '2024-12-22 03: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-22 03:58:16] Production.INFO: count ==245 [2024-12-22 03:58:16] Production.ERROR: pbx CDR StartTime 2024-12-22 00:58:04 - End Time 2024-12-22 03:58:04 [2024-12-22 03:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074897', 'tblTempUsageDetail_20' ) start [2024-12-22 03:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074897', 'tblTempUsageDetail_20' ) end [2024-12-22 03:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074897', 'tblTempVendorCDR_20' ) start [2024-12-22 03:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074897', 'tblTempVendorCDR_20' ) end [2024-12-22 03:58:16] Production.INFO: ProcessCDR(1,14074897,1,1,2) [2024-12-22 03:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:58:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074897', 'tblTempUsageDetail_20' ) start [2024-12-22 03:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074897', 'tblTempUsageDetail_20' ) end [2024-12-22 03:58:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:58:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:58:19] Production.INFO: ==10488== Releasing lock... [2024-12-22 03:58:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:58:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 00:59:05 [end_date_ymd] => 2024-12-22 03:59:05 [RateCDR] => 1 ) [2024-12-22 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-22 00:59:05' and `end` < '2024-12-22 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-22 03:59:17] Production.INFO: count ==245 [2024-12-22 03:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 00:59:05 - End Time 2024-12-22 03:59:05 [2024-12-22 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074902', 'tblTempUsageDetail_20' ) start [2024-12-22 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074902', 'tblTempUsageDetail_20' ) end [2024-12-22 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074902', 'tblTempVendorCDR_20' ) start [2024-12-22 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074902', 'tblTempVendorCDR_20' ) end [2024-12-22 03:59:17] Production.INFO: ProcessCDR(1,14074902,1,1,2) [2024-12-22 03:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074902', 'tblTempUsageDetail_20' ) start [2024-12-22 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074902', 'tblTempUsageDetail_20' ) end [2024-12-22 03:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 03:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 03:59:20] Production.INFO: ==10567== Releasing lock... [2024-12-22 03:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 03:59:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 04:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:00:05 [end_date_ymd] => 2024-12-22 04:00:05 [RateCDR] => 1 ) [2024-12-22 04:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:00:05' and `end` < '2024-12-22 04:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:00:19] Production.INFO: count ==250 [2024-12-22 04:00:19] Production.ERROR: pbx CDR StartTime 2024-12-22 01:00:05 - End Time 2024-12-22 04:00:05 [2024-12-22 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074909', 'tblTempUsageDetail_20' ) start [2024-12-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074909', 'tblTempUsageDetail_20' ) end [2024-12-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074909', 'tblTempVendorCDR_20' ) start [2024-12-22 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074909', 'tblTempVendorCDR_20' ) end [2024-12-22 04:00:19] Production.INFO: ProcessCDR(1,14074909,1,1,2) [2024-12-22 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074909', 'tblTempUsageDetail_20' ) start [2024-12-22 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074909', 'tblTempUsageDetail_20' ) end [2024-12-22 04:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:00:22] Production.INFO: ==10686== Releasing lock... [2024-12-22 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:00:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 04:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:01:04 [end_date_ymd] => 2024-12-22 04:01:04 [RateCDR] => 1 ) [2024-12-22 04:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:01:04' and `end` < '2024-12-22 04:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:01:17] Production.INFO: count ==248 [2024-12-22 04:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:01:04 - End Time 2024-12-22 04:01:04 [2024-12-22 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074914', 'tblTempUsageDetail_20' ) start [2024-12-22 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074914', 'tblTempUsageDetail_20' ) end [2024-12-22 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074914', 'tblTempVendorCDR_20' ) start [2024-12-22 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074914', 'tblTempVendorCDR_20' ) end [2024-12-22 04:01:17] Production.INFO: ProcessCDR(1,14074914,1,1,2) [2024-12-22 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074914', 'tblTempUsageDetail_20' ) start [2024-12-22 04:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074914', 'tblTempUsageDetail_20' ) end [2024-12-22 04:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:01:20] Production.INFO: ==10773== Releasing lock... [2024-12-22 04:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:01:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:02:05 [end_date_ymd] => 2024-12-22 04:02:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:02:05' and `end` < '2024-12-22 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-22 04:02:19] Production.INFO: count ==248 [2024-12-22 04:02:19] Production.ERROR: pbx CDR StartTime 2024-12-22 01:02:05 - End Time 2024-12-22 04:02:05 [2024-12-22 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074919', 'tblTempUsageDetail_20' ) start [2024-12-22 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074919', 'tblTempUsageDetail_20' ) end [2024-12-22 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074919', 'tblTempVendorCDR_20' ) start [2024-12-22 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074919', 'tblTempVendorCDR_20' ) end [2024-12-22 04:02:19] Production.INFO: ProcessCDR(1,14074919,1,1,2) [2024-12-22 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074919', 'tblTempUsageDetail_20' ) start [2024-12-22 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074919', 'tblTempUsageDetail_20' ) end [2024-12-22 04:02:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:02:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:02:23] Production.INFO: ==10846== Releasing lock... [2024-12-22 04:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:02:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:03:05 [end_date_ymd] => 2024-12-22 04:03:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:03:05' and `end` < '2024-12-22 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-22 04:03:17] Production.INFO: count ==248 [2024-12-22 04:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:03:05 - End Time 2024-12-22 04:03:05 [2024-12-22 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074924', 'tblTempUsageDetail_20' ) start [2024-12-22 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074924', 'tblTempUsageDetail_20' ) end [2024-12-22 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074924', 'tblTempVendorCDR_20' ) start [2024-12-22 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074924', 'tblTempVendorCDR_20' ) end [2024-12-22 04:03:17] Production.INFO: ProcessCDR(1,14074924,1,1,2) [2024-12-22 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074924', 'tblTempUsageDetail_20' ) start [2024-12-22 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074924', 'tblTempUsageDetail_20' ) end [2024-12-22 04:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:03:20] Production.INFO: ==10923== Releasing lock... [2024-12-22 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:03:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:04:05 [end_date_ymd] => 2024-12-22 04:04:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:04:05' and `end` < '2024-12-22 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-22 04:04:17] Production.INFO: count ==247 [2024-12-22 04:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:04:05 - End Time 2024-12-22 04:04:05 [2024-12-22 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074929', 'tblTempUsageDetail_20' ) start [2024-12-22 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074929', 'tblTempUsageDetail_20' ) end [2024-12-22 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074929', 'tblTempVendorCDR_20' ) start [2024-12-22 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074929', 'tblTempVendorCDR_20' ) end [2024-12-22 04:04:17] Production.INFO: ProcessCDR(1,14074929,1,1,2) [2024-12-22 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074929', 'tblTempUsageDetail_20' ) start [2024-12-22 04:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074929', 'tblTempUsageDetail_20' ) end [2024-12-22 04:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:04:20] Production.INFO: ==10999== Releasing lock... [2024-12-22 04:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:04:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:05:04 [end_date_ymd] => 2024-12-22 04:05:04 [RateCDR] => 1 ) [2024-12-22 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-22 01:05:04' and `end` < '2024-12-22 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-22 04:05:16] Production.INFO: count ==247 [2024-12-22 04:05:16] Production.ERROR: pbx CDR StartTime 2024-12-22 01:05:04 - End Time 2024-12-22 04:05:04 [2024-12-22 04:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074934', 'tblTempUsageDetail_20' ) start [2024-12-22 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074934', 'tblTempUsageDetail_20' ) end [2024-12-22 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074934', 'tblTempVendorCDR_20' ) start [2024-12-22 04:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074934', 'tblTempVendorCDR_20' ) end [2024-12-22 04:05:16] Production.INFO: ProcessCDR(1,14074934,1,1,2) [2024-12-22 04:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074934', 'tblTempUsageDetail_20' ) start [2024-12-22 04:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074934', 'tblTempUsageDetail_20' ) end [2024-12-22 04:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:05:19] Production.INFO: ==11073== Releasing lock... [2024-12-22 04:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:05:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:06:05 [end_date_ymd] => 2024-12-22 04:06:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:06:05' and `end` < '2024-12-22 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-22 04:06:17] Production.INFO: count ==247 [2024-12-22 04:06:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:06:05 - End Time 2024-12-22 04:06:05 [2024-12-22 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074939', 'tblTempUsageDetail_20' ) start [2024-12-22 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074939', 'tblTempUsageDetail_20' ) end [2024-12-22 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074939', 'tblTempVendorCDR_20' ) start [2024-12-22 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074939', 'tblTempVendorCDR_20' ) end [2024-12-22 04:06:17] Production.INFO: ProcessCDR(1,14074939,1,1,2) [2024-12-22 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074939', 'tblTempUsageDetail_20' ) start [2024-12-22 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074939', 'tblTempUsageDetail_20' ) end [2024-12-22 04:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:06:20] Production.INFO: ==11152== Releasing lock... [2024-12-22 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:06:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 04:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:07:04 [end_date_ymd] => 2024-12-22 04:07:04 [RateCDR] => 1 ) [2024-12-22 04:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:07:04' and `end` < '2024-12-22 04:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:07:16] Production.INFO: count ==247 [2024-12-22 04:07:16] Production.ERROR: pbx CDR StartTime 2024-12-22 01:07:04 - End Time 2024-12-22 04:07:04 [2024-12-22 04:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074944', 'tblTempUsageDetail_20' ) start [2024-12-22 04:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074944', 'tblTempUsageDetail_20' ) end [2024-12-22 04:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074944', 'tblTempVendorCDR_20' ) start [2024-12-22 04:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074944', 'tblTempVendorCDR_20' ) end [2024-12-22 04:07:16] Production.INFO: ProcessCDR(1,14074944,1,1,2) [2024-12-22 04:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074944', 'tblTempUsageDetail_20' ) start [2024-12-22 04:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074944', 'tblTempUsageDetail_20' ) end [2024-12-22 04:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:07:19] Production.INFO: ==11224== Releasing lock... [2024-12-22 04:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:07:19] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:08:05 [end_date_ymd] => 2024-12-22 04:08:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:08:05' and `end` < '2024-12-22 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-22 04:08:17] Production.INFO: count ==247 [2024-12-22 04:08:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:08:05 - End Time 2024-12-22 04:08:05 [2024-12-22 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074949', 'tblTempUsageDetail_20' ) start [2024-12-22 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074949', 'tblTempUsageDetail_20' ) end [2024-12-22 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074949', 'tblTempVendorCDR_20' ) start [2024-12-22 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074949', 'tblTempVendorCDR_20' ) end [2024-12-22 04:08:17] Production.INFO: ProcessCDR(1,14074949,1,1,2) [2024-12-22 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074949', 'tblTempUsageDetail_20' ) start [2024-12-22 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074949', 'tblTempUsageDetail_20' ) end [2024-12-22 04:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:08:20] Production.INFO: ==11297== Releasing lock... [2024-12-22 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:08:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:09:04 [end_date_ymd] => 2024-12-22 04:09:04 [RateCDR] => 1 ) [2024-12-22 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:09:04' and `end` < '2024-12-22 04:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:09:18] Production.INFO: count ==247 [2024-12-22 04:09:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:09:04 - End Time 2024-12-22 04:09:04 [2024-12-22 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074954', 'tblTempUsageDetail_20' ) start [2024-12-22 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074954', 'tblTempUsageDetail_20' ) end [2024-12-22 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074954', 'tblTempVendorCDR_20' ) start [2024-12-22 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074954', 'tblTempVendorCDR_20' ) end [2024-12-22 04:09:18] Production.INFO: ProcessCDR(1,14074954,1,1,2) [2024-12-22 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074954', 'tblTempUsageDetail_20' ) start [2024-12-22 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074954', 'tblTempUsageDetail_20' ) end [2024-12-22 04:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:09:21] Production.INFO: ==11376== Releasing lock... [2024-12-22 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:09:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:10:05 [end_date_ymd] => 2024-12-22 04:10:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:10:05' and `end` < '2024-12-22 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-22 04:10:18] Production.INFO: count ==241 [2024-12-22 04:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:10:05 - End Time 2024-12-22 04:10:05 [2024-12-22 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074959', 'tblTempUsageDetail_20' ) start [2024-12-22 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074959', 'tblTempUsageDetail_20' ) end [2024-12-22 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074959', 'tblTempVendorCDR_20' ) start [2024-12-22 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074959', 'tblTempVendorCDR_20' ) end [2024-12-22 04:10:18] Production.INFO: ProcessCDR(1,14074959,1,1,2) [2024-12-22 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074959', 'tblTempUsageDetail_20' ) start [2024-12-22 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074959', 'tblTempUsageDetail_20' ) end [2024-12-22 04:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:10:21] Production.INFO: ==11454== Releasing lock... [2024-12-22 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:10:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:11:04 [end_date_ymd] => 2024-12-22 04:11:04 [RateCDR] => 1 ) [2024-12-22 04:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:11:04' and `end` < '2024-12-22 04:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:11:17] Production.INFO: count ==225 [2024-12-22 04:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:11:04 - End Time 2024-12-22 04:11:04 [2024-12-22 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074965', 'tblTempUsageDetail_20' ) start [2024-12-22 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074965', 'tblTempUsageDetail_20' ) end [2024-12-22 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074965', 'tblTempVendorCDR_20' ) start [2024-12-22 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074965', 'tblTempVendorCDR_20' ) end [2024-12-22 04:11:17] Production.INFO: ProcessCDR(1,14074965,1,1,2) [2024-12-22 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074965', 'tblTempUsageDetail_20' ) start [2024-12-22 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074965', 'tblTempUsageDetail_20' ) end [2024-12-22 04:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:11:20] Production.INFO: ==11531== Releasing lock... [2024-12-22 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:11:20] Production.INFO: 29 MB #Memory Used# [2024-12-22 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:12:05 [end_date_ymd] => 2024-12-22 04:12:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:12:05' and `end` < '2024-12-22 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-22 04:12:18] Production.INFO: count ==225 [2024-12-22 04:12:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:12:05 - End Time 2024-12-22 04:12:05 [2024-12-22 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074970', 'tblTempUsageDetail_20' ) start [2024-12-22 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074970', 'tblTempUsageDetail_20' ) end [2024-12-22 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074970', 'tblTempVendorCDR_20' ) start [2024-12-22 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074970', 'tblTempVendorCDR_20' ) end [2024-12-22 04:12:18] Production.INFO: ProcessCDR(1,14074970,1,1,2) [2024-12-22 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074970', 'tblTempUsageDetail_20' ) start [2024-12-22 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074970', 'tblTempUsageDetail_20' ) end [2024-12-22 04:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:12:21] Production.INFO: ==11609== Releasing lock... [2024-12-22 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:12:21] Production.INFO: 29 MB #Memory Used# [2024-12-22 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:13:05 [end_date_ymd] => 2024-12-22 04:13:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:13:05' and `end` < '2024-12-22 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-22 04:13:18] Production.INFO: count ==225 [2024-12-22 04:13:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:13:05 - End Time 2024-12-22 04:13:05 [2024-12-22 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074975', 'tblTempUsageDetail_20' ) start [2024-12-22 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074975', 'tblTempUsageDetail_20' ) end [2024-12-22 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074975', 'tblTempVendorCDR_20' ) start [2024-12-22 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074975', 'tblTempVendorCDR_20' ) end [2024-12-22 04:13:18] Production.INFO: ProcessCDR(1,14074975,1,1,2) [2024-12-22 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074975', 'tblTempUsageDetail_20' ) start [2024-12-22 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074975', 'tblTempUsageDetail_20' ) end [2024-12-22 04:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:13:21] Production.INFO: ==11681== Releasing lock... [2024-12-22 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:13:21] Production.INFO: 29 MB #Memory Used# [2024-12-22 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:14:05 [end_date_ymd] => 2024-12-22 04:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:14:05' and `end` < '2024-12-22 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-22 04:14:17] Production.INFO: count ==225 [2024-12-22 04:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:14:05 - End Time 2024-12-22 04:14:05 [2024-12-22 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074980', 'tblTempUsageDetail_20' ) start [2024-12-22 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074980', 'tblTempUsageDetail_20' ) end [2024-12-22 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074980', 'tblTempVendorCDR_20' ) start [2024-12-22 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074980', 'tblTempVendorCDR_20' ) end [2024-12-22 04:14:17] Production.INFO: ProcessCDR(1,14074980,1,1,2) [2024-12-22 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074980', 'tblTempUsageDetail_20' ) start [2024-12-22 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074980', 'tblTempUsageDetail_20' ) end [2024-12-22 04:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:14:20] Production.INFO: ==11758== Releasing lock... [2024-12-22 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:14:20] Production.INFO: 29 MB #Memory Used# [2024-12-22 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:15:05 [end_date_ymd] => 2024-12-22 04:15:05 [RateCDR] => 1 ) [2024-12-22 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:15:05' and `end` < '2024-12-22 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:15:17] Production.INFO: count ==225 [2024-12-22 04:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:15:05 - End Time 2024-12-22 04:15:05 [2024-12-22 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074985', 'tblTempUsageDetail_20' ) start [2024-12-22 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074985', 'tblTempUsageDetail_20' ) end [2024-12-22 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074985', 'tblTempVendorCDR_20' ) start [2024-12-22 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074985', 'tblTempVendorCDR_20' ) end [2024-12-22 04:15:17] Production.INFO: ProcessCDR(1,14074985,1,1,2) [2024-12-22 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074985', 'tblTempUsageDetail_20' ) start [2024-12-22 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074985', 'tblTempUsageDetail_20' ) end [2024-12-22 04:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:15:20] Production.INFO: ==11832== Releasing lock... [2024-12-22 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:15:20] Production.INFO: 29 MB #Memory Used# [2024-12-22 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:16:05 [end_date_ymd] => 2024-12-22 04:16:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:16:05' and `end` < '2024-12-22 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-22 04:16:20] Production.INFO: count ==225 [2024-12-22 04:16:20] Production.ERROR: pbx CDR StartTime 2024-12-22 01:16:05 - End Time 2024-12-22 04:16:05 [2024-12-22 04:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074990', 'tblTempUsageDetail_20' ) start [2024-12-22 04:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074990', 'tblTempUsageDetail_20' ) end [2024-12-22 04:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074990', 'tblTempVendorCDR_20' ) start [2024-12-22 04:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074990', 'tblTempVendorCDR_20' ) end [2024-12-22 04:16:20] Production.INFO: ProcessCDR(1,14074990,1,1,2) [2024-12-22 04:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074990', 'tblTempUsageDetail_20' ) start [2024-12-22 04:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074990', 'tblTempUsageDetail_20' ) end [2024-12-22 04:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:16:23] Production.INFO: ==11945== Releasing lock... [2024-12-22 04:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:16:23] Production.INFO: 29 MB #Memory Used# [2024-12-22 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:17:05 [end_date_ymd] => 2024-12-22 04:17:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:17:05' and `end` < '2024-12-22 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-22 04:17:18] Production.INFO: count ==225 [2024-12-22 04:17:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:17:05 - End Time 2024-12-22 04:17:05 [2024-12-22 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074995', 'tblTempUsageDetail_20' ) start [2024-12-22 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14074995', 'tblTempUsageDetail_20' ) end [2024-12-22 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074995', 'tblTempVendorCDR_20' ) start [2024-12-22 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14074995', 'tblTempVendorCDR_20' ) end [2024-12-22 04:17:18] Production.INFO: ProcessCDR(1,14074995,1,1,2) [2024-12-22 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14074995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14074995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14074995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14074995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074995', 'tblTempUsageDetail_20' ) start [2024-12-22 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14074995', 'tblTempUsageDetail_20' ) end [2024-12-22 04:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:17:21] Production.INFO: ==12037== Releasing lock... [2024-12-22 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:17:21] Production.INFO: 29 MB #Memory Used# [2024-12-22 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:18:04 [end_date_ymd] => 2024-12-22 04:18:04 [RateCDR] => 1 ) [2024-12-22 04:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:18:04' and `end` < '2024-12-22 04:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:18:17] Production.INFO: count ==225 [2024-12-22 04:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:18:04 - End Time 2024-12-22 04:18:04 [2024-12-22 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075000', 'tblTempUsageDetail_20' ) start [2024-12-22 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075000', 'tblTempUsageDetail_20' ) end [2024-12-22 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075000', 'tblTempVendorCDR_20' ) start [2024-12-22 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075000', 'tblTempVendorCDR_20' ) end [2024-12-22 04:18:17] Production.INFO: ProcessCDR(1,14075000,1,1,2) [2024-12-22 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075000', 'tblTempUsageDetail_20' ) start [2024-12-22 04:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075000', 'tblTempUsageDetail_20' ) end [2024-12-22 04:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:18:20] Production.INFO: ==12113== Releasing lock... [2024-12-22 04:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:18:20] Production.INFO: 29 MB #Memory Used# [2024-12-22 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:19:05 [end_date_ymd] => 2024-12-22 04:19:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:19:05' and `end` < '2024-12-22 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-22 04:19:17] Production.INFO: count ==225 [2024-12-22 04:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:19:05 - End Time 2024-12-22 04:19:05 [2024-12-22 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075005', 'tblTempUsageDetail_20' ) start [2024-12-22 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075005', 'tblTempUsageDetail_20' ) end [2024-12-22 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075005', 'tblTempVendorCDR_20' ) start [2024-12-22 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075005', 'tblTempVendorCDR_20' ) end [2024-12-22 04:19:17] Production.INFO: ProcessCDR(1,14075005,1,1,2) [2024-12-22 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075005', 'tblTempUsageDetail_20' ) start [2024-12-22 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075005', 'tblTempUsageDetail_20' ) end [2024-12-22 04:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:19:21] Production.INFO: ==12189== Releasing lock... [2024-12-22 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:19:21] Production.INFO: 29 MB #Memory Used# [2024-12-22 04:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:20:05 [end_date_ymd] => 2024-12-22 04:20:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:20:05' and `end` < '2024-12-22 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-22 04:20:17] Production.INFO: count ==216 [2024-12-22 04:20:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:20:05 - End Time 2024-12-22 04:20:05 [2024-12-22 04:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075011', 'tblTempUsageDetail_20' ) start [2024-12-22 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075011', 'tblTempUsageDetail_20' ) end [2024-12-22 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075011', 'tblTempVendorCDR_20' ) start [2024-12-22 04:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075011', 'tblTempVendorCDR_20' ) end [2024-12-22 04:20:17] Production.INFO: ProcessCDR(1,14075011,1,1,2) [2024-12-22 04:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075011', 'tblTempUsageDetail_20' ) start [2024-12-22 04:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075011', 'tblTempUsageDetail_20' ) end [2024-12-22 04:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:20:20] Production.INFO: ==12267== Releasing lock... [2024-12-22 04:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:20:20] Production.INFO: 29 MB #Memory Used# [2024-12-22 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:21:05 [end_date_ymd] => 2024-12-22 04:21:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:21:05' and `end` < '2024-12-22 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-22 04:21:18] Production.INFO: count ==198 [2024-12-22 04:21:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:21:05 - End Time 2024-12-22 04:21:05 [2024-12-22 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075016', 'tblTempUsageDetail_20' ) start [2024-12-22 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075016', 'tblTempUsageDetail_20' ) end [2024-12-22 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075016', 'tblTempVendorCDR_20' ) start [2024-12-22 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075016', 'tblTempVendorCDR_20' ) end [2024-12-22 04:21:18] Production.INFO: ProcessCDR(1,14075016,1,1,2) [2024-12-22 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075016', 'tblTempUsageDetail_20' ) start [2024-12-22 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075016', 'tblTempUsageDetail_20' ) end [2024-12-22 04:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:21:21] Production.INFO: ==12343== Releasing lock... [2024-12-22 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:21:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:22:05 [end_date_ymd] => 2024-12-22 04:22:05 [RateCDR] => 1 ) [2024-12-22 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:22:05' and `end` < '2024-12-22 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:22:18] Production.INFO: count ==198 [2024-12-22 04:22:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:22:05 - End Time 2024-12-22 04:22:05 [2024-12-22 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075021', 'tblTempUsageDetail_20' ) start [2024-12-22 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075021', 'tblTempUsageDetail_20' ) end [2024-12-22 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075021', 'tblTempVendorCDR_20' ) start [2024-12-22 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075021', 'tblTempVendorCDR_20' ) end [2024-12-22 04:22:18] Production.INFO: ProcessCDR(1,14075021,1,1,2) [2024-12-22 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075021', 'tblTempUsageDetail_20' ) start [2024-12-22 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075021', 'tblTempUsageDetail_20' ) end [2024-12-22 04:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:22:21] Production.INFO: ==12417== Releasing lock... [2024-12-22 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:22:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:23:05 [end_date_ymd] => 2024-12-22 04:23:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:23:05' and `end` < '2024-12-22 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-22 04:23:17] Production.INFO: count ==196 [2024-12-22 04:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:23:05 - End Time 2024-12-22 04:23:05 [2024-12-22 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075026', 'tblTempUsageDetail_20' ) start [2024-12-22 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075026', 'tblTempUsageDetail_20' ) end [2024-12-22 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075026', 'tblTempVendorCDR_20' ) start [2024-12-22 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075026', 'tblTempVendorCDR_20' ) end [2024-12-22 04:23:17] Production.INFO: ProcessCDR(1,14075026,1,1,2) [2024-12-22 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075026', 'tblTempUsageDetail_20' ) start [2024-12-22 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075026', 'tblTempUsageDetail_20' ) end [2024-12-22 04:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:23:20] Production.INFO: ==12495== Releasing lock... [2024-12-22 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:23:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:24:05 [end_date_ymd] => 2024-12-22 04:24:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:24:05' and `end` < '2024-12-22 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-22 04:24:17] Production.INFO: count ==196 [2024-12-22 04:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:24:05 - End Time 2024-12-22 04:24:05 [2024-12-22 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075031', 'tblTempUsageDetail_20' ) start [2024-12-22 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075031', 'tblTempUsageDetail_20' ) end [2024-12-22 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075031', 'tblTempVendorCDR_20' ) start [2024-12-22 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075031', 'tblTempVendorCDR_20' ) end [2024-12-22 04:24:17] Production.INFO: ProcessCDR(1,14075031,1,1,2) [2024-12-22 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075031', 'tblTempUsageDetail_20' ) start [2024-12-22 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075031', 'tblTempUsageDetail_20' ) end [2024-12-22 04:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:24:20] Production.INFO: ==12570== Releasing lock... [2024-12-22 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:24:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:25:04 [end_date_ymd] => 2024-12-22 04:25:04 [RateCDR] => 1 ) [2024-12-22 04:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:25:04' and `end` < '2024-12-22 04:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:25:17] Production.INFO: count ==195 [2024-12-22 04:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:25:04 - End Time 2024-12-22 04:25:04 [2024-12-22 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075036', 'tblTempUsageDetail_20' ) start [2024-12-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075036', 'tblTempUsageDetail_20' ) end [2024-12-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075036', 'tblTempVendorCDR_20' ) start [2024-12-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075036', 'tblTempVendorCDR_20' ) end [2024-12-22 04:25:17] Production.INFO: ProcessCDR(1,14075036,1,1,2) [2024-12-22 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075036', 'tblTempUsageDetail_20' ) start [2024-12-22 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075036', 'tblTempUsageDetail_20' ) end [2024-12-22 04:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:25:20] Production.INFO: ==12641== Releasing lock... [2024-12-22 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:25:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:26:04 [end_date_ymd] => 2024-12-22 04:26:04 [RateCDR] => 1 ) [2024-12-22 04:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:26:04' and `end` < '2024-12-22 04:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:26:17] Production.INFO: count ==195 [2024-12-22 04:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:26:04 - End Time 2024-12-22 04:26:04 [2024-12-22 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075041', 'tblTempUsageDetail_20' ) start [2024-12-22 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075041', 'tblTempUsageDetail_20' ) end [2024-12-22 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075041', 'tblTempVendorCDR_20' ) start [2024-12-22 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075041', 'tblTempVendorCDR_20' ) end [2024-12-22 04:26:17] Production.INFO: ProcessCDR(1,14075041,1,1,2) [2024-12-22 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075041', 'tblTempUsageDetail_20' ) start [2024-12-22 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075041', 'tblTempUsageDetail_20' ) end [2024-12-22 04:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:26:20] Production.INFO: ==12723== Releasing lock... [2024-12-22 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:26:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:27:05 [end_date_ymd] => 2024-12-22 04:27:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:27:05' and `end` < '2024-12-22 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-22 04:27:18] Production.INFO: count ==195 [2024-12-22 04:27:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:27:05 - End Time 2024-12-22 04:27:05 [2024-12-22 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075046', 'tblTempUsageDetail_20' ) start [2024-12-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075046', 'tblTempUsageDetail_20' ) end [2024-12-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075046', 'tblTempVendorCDR_20' ) start [2024-12-22 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075046', 'tblTempVendorCDR_20' ) end [2024-12-22 04:27:18] Production.INFO: ProcessCDR(1,14075046,1,1,2) [2024-12-22 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075046', 'tblTempUsageDetail_20' ) start [2024-12-22 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075046', 'tblTempUsageDetail_20' ) end [2024-12-22 04:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:27:21] Production.INFO: ==12793== Releasing lock... [2024-12-22 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:27:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 04:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:28:04 [end_date_ymd] => 2024-12-22 04:28:04 [RateCDR] => 1 ) [2024-12-22 04:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:28:04' and `end` < '2024-12-22 04:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:28:17] Production.INFO: count ==195 [2024-12-22 04:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:28:04 - End Time 2024-12-22 04:28:04 [2024-12-22 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075051', 'tblTempUsageDetail_20' ) start [2024-12-22 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075051', 'tblTempUsageDetail_20' ) end [2024-12-22 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075051', 'tblTempVendorCDR_20' ) start [2024-12-22 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075051', 'tblTempVendorCDR_20' ) end [2024-12-22 04:28:17] Production.INFO: ProcessCDR(1,14075051,1,1,2) [2024-12-22 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075051', 'tblTempUsageDetail_20' ) start [2024-12-22 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075051', 'tblTempUsageDetail_20' ) end [2024-12-22 04:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:28:20] Production.INFO: ==12865== Releasing lock... [2024-12-22 04:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:28:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:29:05 [end_date_ymd] => 2024-12-22 04:29:05 [RateCDR] => 1 ) [2024-12-22 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:29:05' and `end` < '2024-12-22 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:29:19] Production.INFO: count ==193 [2024-12-22 04:29:19] Production.ERROR: pbx CDR StartTime 2024-12-22 01:29:05 - End Time 2024-12-22 04:29:05 [2024-12-22 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075056', 'tblTempUsageDetail_20' ) start [2024-12-22 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075056', 'tblTempUsageDetail_20' ) end [2024-12-22 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075056', 'tblTempVendorCDR_20' ) start [2024-12-22 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075056', 'tblTempVendorCDR_20' ) end [2024-12-22 04:29:19] Production.INFO: ProcessCDR(1,14075056,1,1,2) [2024-12-22 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075056', 'tblTempUsageDetail_20' ) start [2024-12-22 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075056', 'tblTempUsageDetail_20' ) end [2024-12-22 04:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:29:22] Production.INFO: ==12937== Releasing lock... [2024-12-22 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:29:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:30:06 [end_date_ymd] => 2024-12-22 04:30:06 [RateCDR] => 1 ) [2024-12-22 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-22 01:30:06' and `end` < '2024-12-22 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-22 04:30:19] Production.INFO: count ==185 [2024-12-22 04:30:19] Production.ERROR: pbx CDR StartTime 2024-12-22 01:30:06 - End Time 2024-12-22 04:30:06 [2024-12-22 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075062', 'tblTempUsageDetail_20' ) start [2024-12-22 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075062', 'tblTempUsageDetail_20' ) end [2024-12-22 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075062', 'tblTempVendorCDR_20' ) start [2024-12-22 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075062', 'tblTempVendorCDR_20' ) end [2024-12-22 04:30:19] Production.INFO: ProcessCDR(1,14075062,1,1,2) [2024-12-22 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075062', 'tblTempUsageDetail_20' ) start [2024-12-22 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075062', 'tblTempUsageDetail_20' ) end [2024-12-22 04:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:30:23] Production.INFO: ==13016== Releasing lock... [2024-12-22 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:30:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 04:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:31:04 [end_date_ymd] => 2024-12-22 04:31:04 [RateCDR] => 1 ) [2024-12-22 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-22 01:31:04' and `end` < '2024-12-22 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-22 04:31:16] Production.INFO: count ==173 [2024-12-22 04:31:16] Production.ERROR: pbx CDR StartTime 2024-12-22 01:31:04 - End Time 2024-12-22 04:31:04 [2024-12-22 04:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075068', 'tblTempUsageDetail_20' ) start [2024-12-22 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075068', 'tblTempUsageDetail_20' ) end [2024-12-22 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075068', 'tblTempVendorCDR_20' ) start [2024-12-22 04:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075068', 'tblTempVendorCDR_20' ) end [2024-12-22 04:31:16] Production.INFO: ProcessCDR(1,14075068,1,1,2) [2024-12-22 04:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075068', 'tblTempUsageDetail_20' ) start [2024-12-22 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075068', 'tblTempUsageDetail_20' ) end [2024-12-22 04:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:31:20] Production.INFO: ==13113== Releasing lock... [2024-12-22 04:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:31:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:32:05 [end_date_ymd] => 2024-12-22 04:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:32:05' and `end` < '2024-12-22 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-22 04:32:18] Production.INFO: count ==172 [2024-12-22 04:32:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:32:05 - End Time 2024-12-22 04:32:05 [2024-12-22 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075073', 'tblTempUsageDetail_20' ) start [2024-12-22 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075073', 'tblTempUsageDetail_20' ) end [2024-12-22 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075073', 'tblTempVendorCDR_20' ) start [2024-12-22 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075073', 'tblTempVendorCDR_20' ) end [2024-12-22 04:32:18] Production.INFO: ProcessCDR(1,14075073,1,1,2) [2024-12-22 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075073', 'tblTempUsageDetail_20' ) start [2024-12-22 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075073', 'tblTempUsageDetail_20' ) end [2024-12-22 04:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:32:21] Production.INFO: ==13225== Releasing lock... [2024-12-22 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:32:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:33:05 [end_date_ymd] => 2024-12-22 04:33:05 [RateCDR] => 1 ) [2024-12-22 04: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-22 01:33:05' and `end` < '2024-12-22 04: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-22 04:33:18] Production.INFO: count ==170 [2024-12-22 04:33:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:33:05 - End Time 2024-12-22 04:33:05 [2024-12-22 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075078', 'tblTempUsageDetail_20' ) start [2024-12-22 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075078', 'tblTempUsageDetail_20' ) end [2024-12-22 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075078', 'tblTempVendorCDR_20' ) start [2024-12-22 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075078', 'tblTempVendorCDR_20' ) end [2024-12-22 04:33:18] Production.INFO: ProcessCDR(1,14075078,1,1,2) [2024-12-22 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075078', 'tblTempUsageDetail_20' ) start [2024-12-22 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075078', 'tblTempUsageDetail_20' ) end [2024-12-22 04:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:33:21] Production.INFO: ==13301== Releasing lock... [2024-12-22 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:33:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:34:05 [end_date_ymd] => 2024-12-22 04:34:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:34:05' and `end` < '2024-12-22 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-22 04:34:18] Production.INFO: count ==170 [2024-12-22 04:34:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:34:05 - End Time 2024-12-22 04:34:05 [2024-12-22 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075083', 'tblTempUsageDetail_20' ) start [2024-12-22 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075083', 'tblTempUsageDetail_20' ) end [2024-12-22 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075083', 'tblTempVendorCDR_20' ) start [2024-12-22 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075083', 'tblTempVendorCDR_20' ) end [2024-12-22 04:34:18] Production.INFO: ProcessCDR(1,14075083,1,1,2) [2024-12-22 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075083', 'tblTempUsageDetail_20' ) start [2024-12-22 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075083', 'tblTempUsageDetail_20' ) end [2024-12-22 04:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:34:21] Production.INFO: ==13372== Releasing lock... [2024-12-22 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:34:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:35:04 [end_date_ymd] => 2024-12-22 04:35:04 [RateCDR] => 1 ) [2024-12-22 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-22 01:35:04' and `end` < '2024-12-22 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-22 04:35:16] Production.INFO: count ==169 [2024-12-22 04:35:16] Production.ERROR: pbx CDR StartTime 2024-12-22 01:35:04 - End Time 2024-12-22 04:35:04 [2024-12-22 04:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075088', 'tblTempUsageDetail_20' ) start [2024-12-22 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075088', 'tblTempUsageDetail_20' ) end [2024-12-22 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075088', 'tblTempVendorCDR_20' ) start [2024-12-22 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075088', 'tblTempVendorCDR_20' ) end [2024-12-22 04:35:16] Production.INFO: ProcessCDR(1,14075088,1,1,2) [2024-12-22 04:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075088', 'tblTempUsageDetail_20' ) start [2024-12-22 04:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075088', 'tblTempUsageDetail_20' ) end [2024-12-22 04:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:35:19] Production.INFO: ==13448== Releasing lock... [2024-12-22 04:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:35:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:36:04 [end_date_ymd] => 2024-12-22 04:36:04 [RateCDR] => 1 ) [2024-12-22 04:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:36:04' and `end` < '2024-12-22 04:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:36:18] Production.INFO: count ==169 [2024-12-22 04:36:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:36:04 - End Time 2024-12-22 04:36:04 [2024-12-22 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075093', 'tblTempUsageDetail_20' ) start [2024-12-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075093', 'tblTempUsageDetail_20' ) end [2024-12-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075093', 'tblTempVendorCDR_20' ) start [2024-12-22 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075093', 'tblTempVendorCDR_20' ) end [2024-12-22 04:36:18] Production.INFO: ProcessCDR(1,14075093,1,1,2) [2024-12-22 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075093', 'tblTempUsageDetail_20' ) start [2024-12-22 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075093', 'tblTempUsageDetail_20' ) end [2024-12-22 04:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:36:21] Production.INFO: ==13525== Releasing lock... [2024-12-22 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:36:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:37:05 [end_date_ymd] => 2024-12-22 04:37:05 [RateCDR] => 1 ) [2024-12-22 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:37:05' and `end` < '2024-12-22 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:37:18] Production.INFO: count ==169 [2024-12-22 04:37:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:37:05 - End Time 2024-12-22 04:37:05 [2024-12-22 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075098', 'tblTempUsageDetail_20' ) start [2024-12-22 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075098', 'tblTempUsageDetail_20' ) end [2024-12-22 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075098', 'tblTempVendorCDR_20' ) start [2024-12-22 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075098', 'tblTempVendorCDR_20' ) end [2024-12-22 04:37:18] Production.INFO: ProcessCDR(1,14075098,1,1,2) [2024-12-22 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075098', 'tblTempUsageDetail_20' ) start [2024-12-22 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075098', 'tblTempUsageDetail_20' ) end [2024-12-22 04:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:37:21] Production.INFO: ==13600== Releasing lock... [2024-12-22 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:37:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:38:05 [end_date_ymd] => 2024-12-22 04:38:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:38:05' and `end` < '2024-12-22 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-22 04:38:18] Production.INFO: count ==169 [2024-12-22 04:38:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:38:05 - End Time 2024-12-22 04:38:05 [2024-12-22 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075103', 'tblTempUsageDetail_20' ) start [2024-12-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075103', 'tblTempUsageDetail_20' ) end [2024-12-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075103', 'tblTempVendorCDR_20' ) start [2024-12-22 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075103', 'tblTempVendorCDR_20' ) end [2024-12-22 04:38:18] Production.INFO: ProcessCDR(1,14075103,1,1,2) [2024-12-22 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075103', 'tblTempUsageDetail_20' ) start [2024-12-22 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075103', 'tblTempUsageDetail_20' ) end [2024-12-22 04:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:38:21] Production.INFO: ==13673== Releasing lock... [2024-12-22 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:38:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:39:04 [end_date_ymd] => 2024-12-22 04:39:04 [RateCDR] => 1 ) [2024-12-22 04: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-22 01:39:04' and `end` < '2024-12-22 04: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-22 04:39:16] Production.INFO: count ==169 [2024-12-22 04:39:16] Production.ERROR: pbx CDR StartTime 2024-12-22 01:39:04 - End Time 2024-12-22 04:39:04 [2024-12-22 04:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075108', 'tblTempUsageDetail_20' ) start [2024-12-22 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075108', 'tblTempUsageDetail_20' ) end [2024-12-22 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075108', 'tblTempVendorCDR_20' ) start [2024-12-22 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075108', 'tblTempVendorCDR_20' ) end [2024-12-22 04:39:16] Production.INFO: ProcessCDR(1,14075108,1,1,2) [2024-12-22 04:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075108', 'tblTempUsageDetail_20' ) start [2024-12-22 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075108', 'tblTempUsageDetail_20' ) end [2024-12-22 04:39:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:39:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:39:19] Production.INFO: ==13745== Releasing lock... [2024-12-22 04:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:39:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:40:06 [end_date_ymd] => 2024-12-22 04:40:06 [RateCDR] => 1 ) [2024-12-22 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-22 01:40:06' and `end` < '2024-12-22 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-22 04:40:18] Production.INFO: count ==169 [2024-12-22 04:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:40:06 - End Time 2024-12-22 04:40:06 [2024-12-22 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075114', 'tblTempUsageDetail_20' ) start [2024-12-22 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075114', 'tblTempUsageDetail_20' ) end [2024-12-22 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075114', 'tblTempVendorCDR_20' ) start [2024-12-22 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075114', 'tblTempVendorCDR_20' ) end [2024-12-22 04:40:18] Production.INFO: ProcessCDR(1,14075114,1,1,2) [2024-12-22 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075114', 'tblTempUsageDetail_20' ) start [2024-12-22 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075114', 'tblTempUsageDetail_20' ) end [2024-12-22 04:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:40:21] Production.INFO: ==13823== Releasing lock... [2024-12-22 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:40:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:41:05 [end_date_ymd] => 2024-12-22 04:41:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:41:05' and `end` < '2024-12-22 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-22 04:41:18] Production.INFO: count ==169 [2024-12-22 04:41:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:41:05 - End Time 2024-12-22 04:41:05 [2024-12-22 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075119', 'tblTempUsageDetail_20' ) start [2024-12-22 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075119', 'tblTempUsageDetail_20' ) end [2024-12-22 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075119', 'tblTempVendorCDR_20' ) start [2024-12-22 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075119', 'tblTempVendorCDR_20' ) end [2024-12-22 04:41:18] Production.INFO: ProcessCDR(1,14075119,1,1,2) [2024-12-22 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075119', 'tblTempUsageDetail_20' ) start [2024-12-22 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075119', 'tblTempUsageDetail_20' ) end [2024-12-22 04:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:41:21] Production.INFO: ==13906== Releasing lock... [2024-12-22 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:41:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:42:04 [end_date_ymd] => 2024-12-22 04:42:04 [RateCDR] => 1 ) [2024-12-22 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-22 01:42:04' and `end` < '2024-12-22 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-22 04:42:17] Production.INFO: count ==169 [2024-12-22 04:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:42:04 - End Time 2024-12-22 04:42:04 [2024-12-22 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075124', 'tblTempUsageDetail_20' ) start [2024-12-22 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075124', 'tblTempUsageDetail_20' ) end [2024-12-22 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075124', 'tblTempVendorCDR_20' ) start [2024-12-22 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075124', 'tblTempVendorCDR_20' ) end [2024-12-22 04:42:17] Production.INFO: ProcessCDR(1,14075124,1,1,2) [2024-12-22 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075124', 'tblTempUsageDetail_20' ) start [2024-12-22 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075124', 'tblTempUsageDetail_20' ) end [2024-12-22 04:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:42:20] Production.INFO: ==13980== Releasing lock... [2024-12-22 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:42:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:43:05 [end_date_ymd] => 2024-12-22 04:43:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:43:05' and `end` < '2024-12-22 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-22 04:43:18] Production.INFO: count ==169 [2024-12-22 04:43:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:43:05 - End Time 2024-12-22 04:43:05 [2024-12-22 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075129', 'tblTempUsageDetail_20' ) start [2024-12-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075129', 'tblTempUsageDetail_20' ) end [2024-12-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075129', 'tblTempVendorCDR_20' ) start [2024-12-22 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075129', 'tblTempVendorCDR_20' ) end [2024-12-22 04:43:18] Production.INFO: ProcessCDR(1,14075129,1,1,2) [2024-12-22 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075129', 'tblTempUsageDetail_20' ) start [2024-12-22 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075129', 'tblTempUsageDetail_20' ) end [2024-12-22 04:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:43:21] Production.INFO: ==14056== Releasing lock... [2024-12-22 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:43:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:44:04 [end_date_ymd] => 2024-12-22 04:44:04 [RateCDR] => 1 ) [2024-12-22 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-22 01:44:04' and `end` < '2024-12-22 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-22 04:44:17] Production.INFO: count ==169 [2024-12-22 04:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:44:04 - End Time 2024-12-22 04:44:04 [2024-12-22 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075134', 'tblTempUsageDetail_20' ) start [2024-12-22 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075134', 'tblTempUsageDetail_20' ) end [2024-12-22 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075134', 'tblTempVendorCDR_20' ) start [2024-12-22 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075134', 'tblTempVendorCDR_20' ) end [2024-12-22 04:44:17] Production.INFO: ProcessCDR(1,14075134,1,1,2) [2024-12-22 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075134', 'tblTempUsageDetail_20' ) start [2024-12-22 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075134', 'tblTempUsageDetail_20' ) end [2024-12-22 04:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:44:20] Production.INFO: ==14155== Releasing lock... [2024-12-22 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:44:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:45:05 [end_date_ymd] => 2024-12-22 04:45:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:45:05' and `end` < '2024-12-22 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-22 04:45:17] Production.INFO: count ==169 [2024-12-22 04:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 01:45:05 - End Time 2024-12-22 04:45:05 [2024-12-22 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075139', 'tblTempUsageDetail_20' ) start [2024-12-22 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075139', 'tblTempUsageDetail_20' ) end [2024-12-22 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075139', 'tblTempVendorCDR_20' ) start [2024-12-22 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075139', 'tblTempVendorCDR_20' ) end [2024-12-22 04:45:17] Production.INFO: ProcessCDR(1,14075139,1,1,2) [2024-12-22 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075139', 'tblTempUsageDetail_20' ) start [2024-12-22 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075139', 'tblTempUsageDetail_20' ) end [2024-12-22 04:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:45:20] Production.INFO: ==14231== Releasing lock... [2024-12-22 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:45:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:46:05 [end_date_ymd] => 2024-12-22 04:46:05 [RateCDR] => 1 ) [2024-12-22 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:46:05' and `end` < '2024-12-22 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:46:21] Production.INFO: count ==169 [2024-12-22 04:46:21] Production.ERROR: pbx CDR StartTime 2024-12-22 01:46:05 - End Time 2024-12-22 04:46:05 [2024-12-22 04:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075144', 'tblTempUsageDetail_20' ) start [2024-12-22 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075144', 'tblTempUsageDetail_20' ) end [2024-12-22 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075144', 'tblTempVendorCDR_20' ) start [2024-12-22 04:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075144', 'tblTempVendorCDR_20' ) end [2024-12-22 04:46:21] Production.INFO: ProcessCDR(1,14075144,1,1,2) [2024-12-22 04:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075144', 'tblTempUsageDetail_20' ) start [2024-12-22 04:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075144', 'tblTempUsageDetail_20' ) end [2024-12-22 04:46:24] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:46:24] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:46:24] Production.INFO: ==14302== Releasing lock... [2024-12-22 04:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:46:24] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:47:05 [end_date_ymd] => 2024-12-22 04:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:47:05' and `end` < '2024-12-22 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-22 04:47:20] Production.INFO: count ==169 [2024-12-22 04:47:20] Production.ERROR: pbx CDR StartTime 2024-12-22 01:47:05 - End Time 2024-12-22 04:47:05 [2024-12-22 04:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075149', 'tblTempUsageDetail_20' ) start [2024-12-22 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075149', 'tblTempUsageDetail_20' ) end [2024-12-22 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075149', 'tblTempVendorCDR_20' ) start [2024-12-22 04:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075149', 'tblTempVendorCDR_20' ) end [2024-12-22 04:47:20] Production.INFO: ProcessCDR(1,14075149,1,1,2) [2024-12-22 04:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075149', 'tblTempUsageDetail_20' ) start [2024-12-22 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075149', 'tblTempUsageDetail_20' ) end [2024-12-22 04:47:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:47:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:47:23] Production.INFO: ==14414== Releasing lock... [2024-12-22 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:47:23] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:48:05 [end_date_ymd] => 2024-12-22 04:48:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:48:05' and `end` < '2024-12-22 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-22 04:48:19] Production.INFO: count ==170 [2024-12-22 04:48:19] Production.ERROR: pbx CDR StartTime 2024-12-22 01:48:05 - End Time 2024-12-22 04:48:05 [2024-12-22 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075154', 'tblTempUsageDetail_20' ) start [2024-12-22 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075154', 'tblTempUsageDetail_20' ) end [2024-12-22 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075154', 'tblTempVendorCDR_20' ) start [2024-12-22 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075154', 'tblTempVendorCDR_20' ) end [2024-12-22 04:48:19] Production.INFO: ProcessCDR(1,14075154,1,1,2) [2024-12-22 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075154', 'tblTempUsageDetail_20' ) start [2024-12-22 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075154', 'tblTempUsageDetail_20' ) end [2024-12-22 04:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:48:24] Production.INFO: ==14488== Releasing lock... [2024-12-22 04:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:48:24] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:49:04 [end_date_ymd] => 2024-12-22 04:49:04 [RateCDR] => 1 ) [2024-12-22 04:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:49:04' and `end` < '2024-12-22 04:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:49:19] Production.INFO: count ==170 [2024-12-22 04:49:19] Production.ERROR: pbx CDR StartTime 2024-12-22 01:49:04 - End Time 2024-12-22 04:49:04 [2024-12-22 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075159', 'tblTempUsageDetail_20' ) start [2024-12-22 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075159', 'tblTempUsageDetail_20' ) end [2024-12-22 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075159', 'tblTempVendorCDR_20' ) start [2024-12-22 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075159', 'tblTempVendorCDR_20' ) end [2024-12-22 04:49:19] Production.INFO: ProcessCDR(1,14075159,1,1,2) [2024-12-22 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075159', 'tblTempUsageDetail_20' ) start [2024-12-22 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075159', 'tblTempUsageDetail_20' ) end [2024-12-22 04:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:49:22] Production.INFO: ==14560== Releasing lock... [2024-12-22 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:49:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:50:05 [end_date_ymd] => 2024-12-22 04:50:05 [RateCDR] => 1 ) [2024-12-22 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:50:05' and `end` < '2024-12-22 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:50:19] Production.INFO: count ==166 [2024-12-22 04:50:19] Production.ERROR: pbx CDR StartTime 2024-12-22 01:50:05 - End Time 2024-12-22 04:50:05 [2024-12-22 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075164', 'tblTempUsageDetail_20' ) start [2024-12-22 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075164', 'tblTempUsageDetail_20' ) end [2024-12-22 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075164', 'tblTempVendorCDR_20' ) start [2024-12-22 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075164', 'tblTempVendorCDR_20' ) end [2024-12-22 04:50:19] Production.INFO: ProcessCDR(1,14075164,1,1,2) [2024-12-22 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075164', 'tblTempUsageDetail_20' ) start [2024-12-22 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075164', 'tblTempUsageDetail_20' ) end [2024-12-22 04:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:50:22] Production.INFO: ==14639== Releasing lock... [2024-12-22 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:50:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:51:04 [end_date_ymd] => 2024-12-22 04:51:04 [RateCDR] => 1 ) [2024-12-22 04: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-22 01:51:04' and `end` < '2024-12-22 04: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-22 04:51:18] Production.INFO: count ==166 [2024-12-22 04:51:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:51:04 - End Time 2024-12-22 04:51:04 [2024-12-22 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075170', 'tblTempUsageDetail_20' ) start [2024-12-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075170', 'tblTempUsageDetail_20' ) end [2024-12-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075170', 'tblTempVendorCDR_20' ) start [2024-12-22 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075170', 'tblTempVendorCDR_20' ) end [2024-12-22 04:51:18] Production.INFO: ProcessCDR(1,14075170,1,1,2) [2024-12-22 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075170', 'tblTempUsageDetail_20' ) start [2024-12-22 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075170', 'tblTempUsageDetail_20' ) end [2024-12-22 04:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:51:21] Production.INFO: ==14712== Releasing lock... [2024-12-22 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:51:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:52:05 [end_date_ymd] => 2024-12-22 04:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:52:05' and `end` < '2024-12-22 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-22 04:52:19] Production.INFO: count ==164 [2024-12-22 04:52:19] Production.ERROR: pbx CDR StartTime 2024-12-22 01:52:05 - End Time 2024-12-22 04:52:05 [2024-12-22 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075175', 'tblTempUsageDetail_20' ) start [2024-12-22 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075175', 'tblTempUsageDetail_20' ) end [2024-12-22 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075175', 'tblTempVendorCDR_20' ) start [2024-12-22 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075175', 'tblTempVendorCDR_20' ) end [2024-12-22 04:52:19] Production.INFO: ProcessCDR(1,14075175,1,1,2) [2024-12-22 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075175', 'tblTempUsageDetail_20' ) start [2024-12-22 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075175', 'tblTempUsageDetail_20' ) end [2024-12-22 04:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:52:22] Production.INFO: ==14784== Releasing lock... [2024-12-22 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:52:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:53:04 [end_date_ymd] => 2024-12-22 04:53:04 [RateCDR] => 1 ) [2024-12-22 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-22 01:53:04' and `end` < '2024-12-22 04:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:53:18] Production.INFO: count ==163 [2024-12-22 04:53:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:53:04 - End Time 2024-12-22 04:53:04 [2024-12-22 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075180', 'tblTempUsageDetail_20' ) start [2024-12-22 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075180', 'tblTempUsageDetail_20' ) end [2024-12-22 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075180', 'tblTempVendorCDR_20' ) start [2024-12-22 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075180', 'tblTempVendorCDR_20' ) end [2024-12-22 04:53:18] Production.INFO: ProcessCDR(1,14075180,1,1,2) [2024-12-22 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075180', 'tblTempUsageDetail_20' ) start [2024-12-22 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075180', 'tblTempUsageDetail_20' ) end [2024-12-22 04:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:53:21] Production.INFO: ==14854== Releasing lock... [2024-12-22 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:53:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:54:05 [end_date_ymd] => 2024-12-22 04:54:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:54:05' and `end` < '2024-12-22 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-22 04:54:18] Production.INFO: count ==163 [2024-12-22 04:54:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:54:05 - End Time 2024-12-22 04:54:05 [2024-12-22 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075185', 'tblTempUsageDetail_20' ) start [2024-12-22 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075185', 'tblTempUsageDetail_20' ) end [2024-12-22 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075185', 'tblTempVendorCDR_20' ) start [2024-12-22 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075185', 'tblTempVendorCDR_20' ) end [2024-12-22 04:54:18] Production.INFO: ProcessCDR(1,14075185,1,1,2) [2024-12-22 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075185', 'tblTempUsageDetail_20' ) start [2024-12-22 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075185', 'tblTempUsageDetail_20' ) end [2024-12-22 04:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:54:21] Production.INFO: ==14924== Releasing lock... [2024-12-22 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:54:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:55:04 [end_date_ymd] => 2024-12-22 04:55:04 [RateCDR] => 1 ) [2024-12-22 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-22 01:55:04' and `end` < '2024-12-22 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-22 04:55:19] Production.INFO: count ==161 [2024-12-22 04:55:19] Production.ERROR: pbx CDR StartTime 2024-12-22 01:55:04 - End Time 2024-12-22 04:55:04 [2024-12-22 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075190', 'tblTempUsageDetail_20' ) start [2024-12-22 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075190', 'tblTempUsageDetail_20' ) end [2024-12-22 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075190', 'tblTempVendorCDR_20' ) start [2024-12-22 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075190', 'tblTempVendorCDR_20' ) end [2024-12-22 04:55:19] Production.INFO: ProcessCDR(1,14075190,1,1,2) [2024-12-22 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075190', 'tblTempUsageDetail_20' ) start [2024-12-22 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075190', 'tblTempUsageDetail_20' ) end [2024-12-22 04:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:55:22] Production.INFO: ==15004== Releasing lock... [2024-12-22 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:55:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:56:06 [end_date_ymd] => 2024-12-22 04:56:06 [RateCDR] => 1 ) [2024-12-22 04:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:56:06' and `end` < '2024-12-22 04:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:56:19] Production.INFO: count ==160 [2024-12-22 04:56:19] Production.ERROR: pbx CDR StartTime 2024-12-22 01:56:06 - End Time 2024-12-22 04:56:06 [2024-12-22 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075195', 'tblTempUsageDetail_20' ) start [2024-12-22 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075195', 'tblTempUsageDetail_20' ) end [2024-12-22 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075195', 'tblTempVendorCDR_20' ) start [2024-12-22 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075195', 'tblTempVendorCDR_20' ) end [2024-12-22 04:56:19] Production.INFO: ProcessCDR(1,14075195,1,1,2) [2024-12-22 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075195', 'tblTempUsageDetail_20' ) start [2024-12-22 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075195', 'tblTempUsageDetail_20' ) end [2024-12-22 04:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:56:22] Production.INFO: ==15080== Releasing lock... [2024-12-22 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:56:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:57:05 [end_date_ymd] => 2024-12-22 04:57:05 [RateCDR] => 1 ) [2024-12-22 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:57:05' and `end` < '2024-12-22 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:57:20] Production.INFO: count ==160 [2024-12-22 04:57:20] Production.ERROR: pbx CDR StartTime 2024-12-22 01:57:05 - End Time 2024-12-22 04:57:05 [2024-12-22 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075200', 'tblTempUsageDetail_20' ) start [2024-12-22 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075200', 'tblTempUsageDetail_20' ) end [2024-12-22 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075200', 'tblTempVendorCDR_20' ) start [2024-12-22 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075200', 'tblTempVendorCDR_20' ) end [2024-12-22 04:57:20] Production.INFO: ProcessCDR(1,14075200,1,1,2) [2024-12-22 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075200', 'tblTempUsageDetail_20' ) start [2024-12-22 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075200', 'tblTempUsageDetail_20' ) end [2024-12-22 04:57:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:57:23] Production.INFO: ==15152== Releasing lock... [2024-12-22 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:57:23] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:58:05 [end_date_ymd] => 2024-12-22 04:58:05 [RateCDR] => 1 ) [2024-12-22 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-22 01:58:05' and `end` < '2024-12-22 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-22 04:58:18] Production.INFO: count ==160 [2024-12-22 04:58:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:58:05 - End Time 2024-12-22 04:58:05 [2024-12-22 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075205', 'tblTempUsageDetail_20' ) start [2024-12-22 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075205', 'tblTempUsageDetail_20' ) end [2024-12-22 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075205', 'tblTempVendorCDR_20' ) start [2024-12-22 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075205', 'tblTempVendorCDR_20' ) end [2024-12-22 04:58:18] Production.INFO: ProcessCDR(1,14075205,1,1,2) [2024-12-22 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075205', 'tblTempUsageDetail_20' ) start [2024-12-22 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075205', 'tblTempUsageDetail_20' ) end [2024-12-22 04:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:58:21] Production.INFO: ==15227== Releasing lock... [2024-12-22 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:58:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 04:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 01:59:04 [end_date_ymd] => 2024-12-22 04:59:04 [RateCDR] => 1 ) [2024-12-22 04:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 01:59:04' and `end` < '2024-12-22 04:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 04:59:18] Production.INFO: count ==160 [2024-12-22 04:59:18] Production.ERROR: pbx CDR StartTime 2024-12-22 01:59:04 - End Time 2024-12-22 04:59:04 [2024-12-22 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075210', 'tblTempUsageDetail_20' ) start [2024-12-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075210', 'tblTempUsageDetail_20' ) end [2024-12-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075210', 'tblTempVendorCDR_20' ) start [2024-12-22 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075210', 'tblTempVendorCDR_20' ) end [2024-12-22 04:59:18] Production.INFO: ProcessCDR(1,14075210,1,1,2) [2024-12-22 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075210', 'tblTempUsageDetail_20' ) start [2024-12-22 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075210', 'tblTempUsageDetail_20' ) end [2024-12-22 04:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 04:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 04:59:21] Production.INFO: ==15298== Releasing lock... [2024-12-22 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 04:59:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:00:05 [end_date_ymd] => 2024-12-22 05:00:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:00:05' and `end` < '2024-12-22 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-22 05:00:19] Production.INFO: count ==153 [2024-12-22 05:00:19] Production.ERROR: pbx CDR StartTime 2024-12-22 02:00:05 - End Time 2024-12-22 05:00:05 [2024-12-22 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075216', 'tblTempUsageDetail_20' ) start [2024-12-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075216', 'tblTempUsageDetail_20' ) end [2024-12-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075216', 'tblTempVendorCDR_20' ) start [2024-12-22 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075216', 'tblTempVendorCDR_20' ) end [2024-12-22 05:00:19] Production.INFO: ProcessCDR(1,14075216,1,1,2) [2024-12-22 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075216', 'tblTempUsageDetail_20' ) start [2024-12-22 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075216', 'tblTempUsageDetail_20' ) end [2024-12-22 05:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:00:22] Production.INFO: ==15373== Releasing lock... [2024-12-22 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:00:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:01:05 [end_date_ymd] => 2024-12-22 05:01:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:01:05' and `end` < '2024-12-22 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-22 05:01:19] Production.INFO: count ==149 [2024-12-22 05:01:19] Production.ERROR: pbx CDR StartTime 2024-12-22 02:01:05 - End Time 2024-12-22 05:01:05 [2024-12-22 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075221', 'tblTempUsageDetail_20' ) start [2024-12-22 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075221', 'tblTempUsageDetail_20' ) end [2024-12-22 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075221', 'tblTempVendorCDR_20' ) start [2024-12-22 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075221', 'tblTempVendorCDR_20' ) end [2024-12-22 05:01:19] Production.INFO: ProcessCDR(1,14075221,1,1,2) [2024-12-22 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075221', 'tblTempUsageDetail_20' ) start [2024-12-22 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075221', 'tblTempUsageDetail_20' ) end [2024-12-22 05:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:01:22] Production.INFO: ==15463== Releasing lock... [2024-12-22 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:01:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:02:04 [end_date_ymd] => 2024-12-22 05:02:04 [RateCDR] => 1 ) [2024-12-22 05:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 02:02:04' and `end` < '2024-12-22 05:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 05:02:18] Production.INFO: count ==149 [2024-12-22 05:02:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:02:04 - End Time 2024-12-22 05:02:04 [2024-12-22 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075226', 'tblTempUsageDetail_20' ) start [2024-12-22 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075226', 'tblTempUsageDetail_20' ) end [2024-12-22 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075226', 'tblTempVendorCDR_20' ) start [2024-12-22 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075226', 'tblTempVendorCDR_20' ) end [2024-12-22 05:02:18] Production.INFO: ProcessCDR(1,14075226,1,1,2) [2024-12-22 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075226', 'tblTempUsageDetail_20' ) start [2024-12-22 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075226', 'tblTempUsageDetail_20' ) end [2024-12-22 05:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:02:21] Production.INFO: ==15534== Releasing lock... [2024-12-22 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:02:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:03:05 [end_date_ymd] => 2024-12-22 05:03:05 [RateCDR] => 1 ) [2024-12-22 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 02:03:05' and `end` < '2024-12-22 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 05:03:17] Production.INFO: count ==149 [2024-12-22 05:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:03:05 - End Time 2024-12-22 05:03:05 [2024-12-22 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075231', 'tblTempUsageDetail_20' ) start [2024-12-22 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075231', 'tblTempUsageDetail_20' ) end [2024-12-22 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075231', 'tblTempVendorCDR_20' ) start [2024-12-22 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075231', 'tblTempVendorCDR_20' ) end [2024-12-22 05:03:17] Production.INFO: ProcessCDR(1,14075231,1,1,2) [2024-12-22 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075231', 'tblTempUsageDetail_20' ) start [2024-12-22 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075231', 'tblTempUsageDetail_20' ) end [2024-12-22 05:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:03:20] Production.INFO: ==15647== Releasing lock... [2024-12-22 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:03:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:04:05 [end_date_ymd] => 2024-12-22 05:04:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:04:05' and `end` < '2024-12-22 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-22 05:04:18] Production.INFO: count ==148 [2024-12-22 05:04:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:04:05 - End Time 2024-12-22 05:04:05 [2024-12-22 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075236', 'tblTempUsageDetail_20' ) start [2024-12-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075236', 'tblTempUsageDetail_20' ) end [2024-12-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075236', 'tblTempVendorCDR_20' ) start [2024-12-22 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075236', 'tblTempVendorCDR_20' ) end [2024-12-22 05:04:18] Production.INFO: ProcessCDR(1,14075236,1,1,2) [2024-12-22 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075236', 'tblTempUsageDetail_20' ) start [2024-12-22 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075236', 'tblTempUsageDetail_20' ) end [2024-12-22 05:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:04:21] Production.INFO: ==15720== Releasing lock... [2024-12-22 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:04:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:05:04 [end_date_ymd] => 2024-12-22 05:05:04 [RateCDR] => 1 ) [2024-12-22 05:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 02:05:04' and `end` < '2024-12-22 05:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 05:05:17] Production.INFO: count ==145 [2024-12-22 05:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:05:04 - End Time 2024-12-22 05:05:04 [2024-12-22 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075241', 'tblTempUsageDetail_20' ) start [2024-12-22 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075241', 'tblTempUsageDetail_20' ) end [2024-12-22 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075241', 'tblTempVendorCDR_20' ) start [2024-12-22 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075241', 'tblTempVendorCDR_20' ) end [2024-12-22 05:05:17] Production.INFO: ProcessCDR(1,14075241,1,1,2) [2024-12-22 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075241', 'tblTempUsageDetail_20' ) start [2024-12-22 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075241', 'tblTempUsageDetail_20' ) end [2024-12-22 05:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:05:20] Production.INFO: ==15793== Releasing lock... [2024-12-22 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:05:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:06:05 [end_date_ymd] => 2024-12-22 05:06:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:06:05' and `end` < '2024-12-22 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-22 05:06:55] Production.INFO: count ==144 [2024-12-22 05:06:55] Production.ERROR: pbx CDR StartTime 2024-12-22 02:06:05 - End Time 2024-12-22 05:06:05 [2024-12-22 05:06:55] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:06:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075246', 'tblTempUsageDetail_20' ) start [2024-12-22 05:06:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075246', 'tblTempUsageDetail_20' ) end [2024-12-22 05:06:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075246', 'tblTempVendorCDR_20' ) start [2024-12-22 05:06:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075246', 'tblTempVendorCDR_20' ) end [2024-12-22 05:06:55] Production.INFO: ProcessCDR(1,14075246,1,1,2) [2024-12-22 05:06:55] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:06:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:06:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:06:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075246', 'tblTempUsageDetail_20' ) start [2024-12-22 05:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075246', 'tblTempUsageDetail_20' ) end [2024-12-22 05:06:58] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:06:58] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:06:58] Production.INFO: ==15864== Releasing lock... [2024-12-22 05:06:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:06:58] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:07:04 [end_date_ymd] => 2024-12-22 05:07:04 [RateCDR] => 1 ) [2024-12-22 05: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-22 02:07:04' and `end` < '2024-12-22 05: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-22 05:07:16] Production.INFO: count ==144 [2024-12-22 05:07:16] Production.ERROR: pbx CDR StartTime 2024-12-22 02:07:04 - End Time 2024-12-22 05:07:04 [2024-12-22 05:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075251', 'tblTempUsageDetail_20' ) start [2024-12-22 05:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075251', 'tblTempUsageDetail_20' ) end [2024-12-22 05:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075251', 'tblTempVendorCDR_20' ) start [2024-12-22 05:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075251', 'tblTempVendorCDR_20' ) end [2024-12-22 05:07:16] Production.INFO: ProcessCDR(1,14075251,1,1,2) [2024-12-22 05:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075251', 'tblTempUsageDetail_20' ) start [2024-12-22 05:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075251', 'tblTempUsageDetail_20' ) end [2024-12-22 05:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:07:19] Production.INFO: ==15935== Releasing lock... [2024-12-22 05:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:07:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:08:05 [end_date_ymd] => 2024-12-22 05:08:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:08:05' and `end` < '2024-12-22 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-22 05:08:18] Production.INFO: count ==144 [2024-12-22 05:08:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:08:05 - End Time 2024-12-22 05:08:05 [2024-12-22 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075256', 'tblTempUsageDetail_20' ) start [2024-12-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075256', 'tblTempUsageDetail_20' ) end [2024-12-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075256', 'tblTempVendorCDR_20' ) start [2024-12-22 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075256', 'tblTempVendorCDR_20' ) end [2024-12-22 05:08:18] Production.INFO: ProcessCDR(1,14075256,1,1,2) [2024-12-22 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075256', 'tblTempUsageDetail_20' ) start [2024-12-22 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075256', 'tblTempUsageDetail_20' ) end [2024-12-22 05:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:08:21] Production.INFO: ==16008== Releasing lock... [2024-12-22 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:08:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:09:05 [end_date_ymd] => 2024-12-22 05:09:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:09:05' and `end` < '2024-12-22 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-22 05:09:18] Production.INFO: count ==144 [2024-12-22 05:09:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:09:05 - End Time 2024-12-22 05:09:05 [2024-12-22 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075261', 'tblTempUsageDetail_20' ) start [2024-12-22 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075261', 'tblTempUsageDetail_20' ) end [2024-12-22 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075261', 'tblTempVendorCDR_20' ) start [2024-12-22 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075261', 'tblTempVendorCDR_20' ) end [2024-12-22 05:09:18] Production.INFO: ProcessCDR(1,14075261,1,1,2) [2024-12-22 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075261', 'tblTempUsageDetail_20' ) start [2024-12-22 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075261', 'tblTempUsageDetail_20' ) end [2024-12-22 05:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:09:21] Production.INFO: ==16078== Releasing lock... [2024-12-22 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:09:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:10:05 [end_date_ymd] => 2024-12-22 05:10:05 [RateCDR] => 1 ) [2024-12-22 05: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-22 02:10:05' and `end` < '2024-12-22 05: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-22 05:10:17] Production.INFO: count ==140 [2024-12-22 05:10:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:10:05 - End Time 2024-12-22 05:10:05 [2024-12-22 05:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075267', 'tblTempUsageDetail_20' ) start [2024-12-22 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075267', 'tblTempUsageDetail_20' ) end [2024-12-22 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075267', 'tblTempVendorCDR_20' ) start [2024-12-22 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075267', 'tblTempVendorCDR_20' ) end [2024-12-22 05:10:17] Production.INFO: ProcessCDR(1,14075267,1,1,2) [2024-12-22 05:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075267', 'tblTempUsageDetail_20' ) start [2024-12-22 05:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075267', 'tblTempUsageDetail_20' ) end [2024-12-22 05:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:10:20] Production.INFO: ==16163== Releasing lock... [2024-12-22 05:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:10:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:11:05 [end_date_ymd] => 2024-12-22 05:11:05 [RateCDR] => 1 ) [2024-12-22 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 02:11:05' and `end` < '2024-12-22 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 05:11:17] Production.INFO: count ==140 [2024-12-22 05:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:11:05 - End Time 2024-12-22 05:11:05 [2024-12-22 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075272', 'tblTempUsageDetail_20' ) start [2024-12-22 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075272', 'tblTempUsageDetail_20' ) end [2024-12-22 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075272', 'tblTempVendorCDR_20' ) start [2024-12-22 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075272', 'tblTempVendorCDR_20' ) end [2024-12-22 05:11:17] Production.INFO: ProcessCDR(1,14075272,1,1,2) [2024-12-22 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075272', 'tblTempUsageDetail_20' ) start [2024-12-22 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075272', 'tblTempUsageDetail_20' ) end [2024-12-22 05:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:11:20] Production.INFO: ==16239== Releasing lock... [2024-12-22 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:11:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:12:04 [end_date_ymd] => 2024-12-22 05:12:04 [RateCDR] => 1 ) [2024-12-22 05: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-22 02:12:04' and `end` < '2024-12-22 05: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-22 05:12:16] Production.INFO: count ==140 [2024-12-22 05:12:16] Production.ERROR: pbx CDR StartTime 2024-12-22 02:12:04 - End Time 2024-12-22 05:12:04 [2024-12-22 05:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075273', 'tblTempUsageDetail_20' ) start [2024-12-22 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075273', 'tblTempUsageDetail_20' ) end [2024-12-22 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075273', 'tblTempVendorCDR_20' ) start [2024-12-22 05:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075273', 'tblTempVendorCDR_20' ) end [2024-12-22 05:12:16] Production.INFO: ProcessCDR(1,14075273,1,1,2) [2024-12-22 05:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:12:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:12:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075273', 'tblTempUsageDetail_20' ) start [2024-12-22 05:12:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075273', 'tblTempUsageDetail_20' ) end [2024-12-22 05:12:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:12:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:12:19] Production.INFO: ==16310== Releasing lock... [2024-12-22 05:12:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:12:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:13:05 [end_date_ymd] => 2024-12-22 05:13:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:13:05' and `end` < '2024-12-22 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-22 05:13:17] Production.INFO: count ==140 [2024-12-22 05:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:13:05 - End Time 2024-12-22 05:13:05 [2024-12-22 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075282', 'tblTempUsageDetail_20' ) start [2024-12-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075282', 'tblTempUsageDetail_20' ) end [2024-12-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075282', 'tblTempVendorCDR_20' ) start [2024-12-22 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075282', 'tblTempVendorCDR_20' ) end [2024-12-22 05:13:17] Production.INFO: ProcessCDR(1,14075282,1,1,2) [2024-12-22 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075282', 'tblTempUsageDetail_20' ) start [2024-12-22 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075282', 'tblTempUsageDetail_20' ) end [2024-12-22 05:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:13:20] Production.INFO: ==16381== Releasing lock... [2024-12-22 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:13:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:14:05 [end_date_ymd] => 2024-12-22 05:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:14:05' and `end` < '2024-12-22 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-22 05:14:17] Production.INFO: count ==140 [2024-12-22 05:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:14:05 - End Time 2024-12-22 05:14:05 [2024-12-22 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075287', 'tblTempUsageDetail_20' ) start [2024-12-22 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075287', 'tblTempUsageDetail_20' ) end [2024-12-22 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075287', 'tblTempVendorCDR_20' ) start [2024-12-22 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075287', 'tblTempVendorCDR_20' ) end [2024-12-22 05:14:17] Production.INFO: ProcessCDR(1,14075287,1,1,2) [2024-12-22 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075287', 'tblTempUsageDetail_20' ) start [2024-12-22 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075287', 'tblTempUsageDetail_20' ) end [2024-12-22 05:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:14:20] Production.INFO: ==16452== Releasing lock... [2024-12-22 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:14:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:15:05 [end_date_ymd] => 2024-12-22 05:15:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:15:05' and `end` < '2024-12-22 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-22 05:15:17] Production.INFO: count ==140 [2024-12-22 05:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:15:05 - End Time 2024-12-22 05:15:05 [2024-12-22 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075292', 'tblTempUsageDetail_20' ) start [2024-12-22 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075292', 'tblTempUsageDetail_20' ) end [2024-12-22 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075292', 'tblTempVendorCDR_20' ) start [2024-12-22 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075292', 'tblTempVendorCDR_20' ) end [2024-12-22 05:15:17] Production.INFO: ProcessCDR(1,14075292,1,1,2) [2024-12-22 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075292', 'tblTempUsageDetail_20' ) start [2024-12-22 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075292', 'tblTempUsageDetail_20' ) end [2024-12-22 05:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:15:20] Production.INFO: ==16524== Releasing lock... [2024-12-22 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:15:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:16:05 [end_date_ymd] => 2024-12-22 05:16:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:16:05' and `end` < '2024-12-22 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-22 05:16:17] Production.INFO: count ==140 [2024-12-22 05:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:16:05 - End Time 2024-12-22 05:16:05 [2024-12-22 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075297', 'tblTempUsageDetail_20' ) start [2024-12-22 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075297', 'tblTempUsageDetail_20' ) end [2024-12-22 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075297', 'tblTempVendorCDR_20' ) start [2024-12-22 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075297', 'tblTempVendorCDR_20' ) end [2024-12-22 05:16:17] Production.INFO: ProcessCDR(1,14075297,1,1,2) [2024-12-22 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075297', 'tblTempUsageDetail_20' ) start [2024-12-22 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075297', 'tblTempUsageDetail_20' ) end [2024-12-22 05:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:16:20] Production.INFO: ==16598== Releasing lock... [2024-12-22 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:16:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:17:04 [end_date_ymd] => 2024-12-22 05:17:04 [RateCDR] => 1 ) [2024-12-22 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-22 02:17:04' and `end` < '2024-12-22 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-22 05:17:16] Production.INFO: count ==139 [2024-12-22 05:17:16] Production.ERROR: pbx CDR StartTime 2024-12-22 02:17:04 - End Time 2024-12-22 05:17:04 [2024-12-22 05:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075302', 'tblTempUsageDetail_20' ) start [2024-12-22 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075302', 'tblTempUsageDetail_20' ) end [2024-12-22 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075302', 'tblTempVendorCDR_20' ) start [2024-12-22 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075302', 'tblTempVendorCDR_20' ) end [2024-12-22 05:17:16] Production.INFO: ProcessCDR(1,14075302,1,1,2) [2024-12-22 05:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075302', 'tblTempUsageDetail_20' ) start [2024-12-22 05:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075302', 'tblTempUsageDetail_20' ) end [2024-12-22 05:17:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:17:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:17:20] Production.INFO: ==16675== Releasing lock... [2024-12-22 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:17:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:18:05 [end_date_ymd] => 2024-12-22 05:18:05 [RateCDR] => 1 ) [2024-12-22 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 02:18:05' and `end` < '2024-12-22 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 05:18:17] Production.INFO: count ==138 [2024-12-22 05:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:18:05 - End Time 2024-12-22 05:18:05 [2024-12-22 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075307', 'tblTempUsageDetail_20' ) start [2024-12-22 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075307', 'tblTempUsageDetail_20' ) end [2024-12-22 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075307', 'tblTempVendorCDR_20' ) start [2024-12-22 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075307', 'tblTempVendorCDR_20' ) end [2024-12-22 05:18:17] Production.INFO: ProcessCDR(1,14075307,1,1,2) [2024-12-22 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075307', 'tblTempUsageDetail_20' ) start [2024-12-22 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075307', 'tblTempUsageDetail_20' ) end [2024-12-22 05:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:18:20] Production.INFO: ==16745== Releasing lock... [2024-12-22 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:18:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:19:04 [end_date_ymd] => 2024-12-22 05:19:04 [RateCDR] => 1 ) [2024-12-22 05: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-22 02:19:04' and `end` < '2024-12-22 05: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-22 05:19:17] Production.INFO: count ==138 [2024-12-22 05:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:19:04 - End Time 2024-12-22 05:19:04 [2024-12-22 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075312', 'tblTempUsageDetail_20' ) start [2024-12-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075312', 'tblTempUsageDetail_20' ) end [2024-12-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075312', 'tblTempVendorCDR_20' ) start [2024-12-22 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075312', 'tblTempVendorCDR_20' ) end [2024-12-22 05:19:17] Production.INFO: ProcessCDR(1,14075312,1,1,2) [2024-12-22 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075312', 'tblTempUsageDetail_20' ) start [2024-12-22 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075312', 'tblTempUsageDetail_20' ) end [2024-12-22 05:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:19:20] Production.INFO: ==16856== Releasing lock... [2024-12-22 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:19:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:20:06 [end_date_ymd] => 2024-12-22 05:20:06 [RateCDR] => 1 ) [2024-12-22 05: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-22 02:20:06' and `end` < '2024-12-22 05: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-22 05:20:17] Production.INFO: count ==127 [2024-12-22 05:20:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:20:06 - End Time 2024-12-22 05:20:06 [2024-12-22 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075317', 'tblTempUsageDetail_20' ) start [2024-12-22 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075317', 'tblTempUsageDetail_20' ) end [2024-12-22 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075317', 'tblTempVendorCDR_20' ) start [2024-12-22 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075317', 'tblTempVendorCDR_20' ) end [2024-12-22 05:20:18] Production.INFO: ProcessCDR(1,14075317,1,1,2) [2024-12-22 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075317', 'tblTempUsageDetail_20' ) start [2024-12-22 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075317', 'tblTempUsageDetail_20' ) end [2024-12-22 05:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:20:21] Production.INFO: ==16932== Releasing lock... [2024-12-22 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:20:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:21:05 [end_date_ymd] => 2024-12-22 05:21:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:21:05' and `end` < '2024-12-22 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-22 05:21:18] Production.INFO: count ==117 [2024-12-22 05:21:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:21:05 - End Time 2024-12-22 05:21:05 [2024-12-22 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075323', 'tblTempUsageDetail_20' ) start [2024-12-22 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075323', 'tblTempUsageDetail_20' ) end [2024-12-22 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075323', 'tblTempVendorCDR_20' ) start [2024-12-22 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075323', 'tblTempVendorCDR_20' ) end [2024-12-22 05:21:18] Production.INFO: ProcessCDR(1,14075323,1,1,2) [2024-12-22 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075323', 'tblTempUsageDetail_20' ) start [2024-12-22 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075323', 'tblTempUsageDetail_20' ) end [2024-12-22 05:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:21:21] Production.INFO: ==17005== Releasing lock... [2024-12-22 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:21:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:22:05 [end_date_ymd] => 2024-12-22 05:22:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:22:05' and `end` < '2024-12-22 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-22 05:22:17] Production.INFO: count ==116 [2024-12-22 05:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:22:05 - End Time 2024-12-22 05:22:05 [2024-12-22 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075328', 'tblTempUsageDetail_20' ) start [2024-12-22 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075328', 'tblTempUsageDetail_20' ) end [2024-12-22 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075328', 'tblTempVendorCDR_20' ) start [2024-12-22 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075328', 'tblTempVendorCDR_20' ) end [2024-12-22 05:22:17] Production.INFO: ProcessCDR(1,14075328,1,1,2) [2024-12-22 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075328', 'tblTempUsageDetail_20' ) start [2024-12-22 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075328', 'tblTempUsageDetail_20' ) end [2024-12-22 05:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:22:20] Production.INFO: ==17077== Releasing lock... [2024-12-22 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:22:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:23:05 [end_date_ymd] => 2024-12-22 05:23:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:23:05' and `end` < '2024-12-22 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-22 05:23:18] Production.INFO: count ==116 [2024-12-22 05:23:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:23:05 - End Time 2024-12-22 05:23:05 [2024-12-22 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075333', 'tblTempUsageDetail_20' ) start [2024-12-22 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075333', 'tblTempUsageDetail_20' ) end [2024-12-22 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075333', 'tblTempVendorCDR_20' ) start [2024-12-22 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075333', 'tblTempVendorCDR_20' ) end [2024-12-22 05:23:18] Production.INFO: ProcessCDR(1,14075333,1,1,2) [2024-12-22 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075333', 'tblTempUsageDetail_20' ) start [2024-12-22 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075333', 'tblTempUsageDetail_20' ) end [2024-12-22 05:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:23:21] Production.INFO: ==17152== Releasing lock... [2024-12-22 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:23:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 05:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:24:04 [end_date_ymd] => 2024-12-22 05:24:04 [RateCDR] => 1 ) [2024-12-22 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-22 02:24:04' and `end` < '2024-12-22 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-22 05:24:17] Production.INFO: count ==116 [2024-12-22 05:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:24:04 - End Time 2024-12-22 05:24:04 [2024-12-22 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075338', 'tblTempUsageDetail_20' ) start [2024-12-22 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075338', 'tblTempUsageDetail_20' ) end [2024-12-22 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075338', 'tblTempVendorCDR_20' ) start [2024-12-22 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075338', 'tblTempVendorCDR_20' ) end [2024-12-22 05:24:17] Production.INFO: ProcessCDR(1,14075338,1,1,2) [2024-12-22 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075338', 'tblTempUsageDetail_20' ) start [2024-12-22 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075338', 'tblTempUsageDetail_20' ) end [2024-12-22 05:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:24:20] Production.INFO: ==17224== Releasing lock... [2024-12-22 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:24:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:25:05 [end_date_ymd] => 2024-12-22 05:25:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:25:05' and `end` < '2024-12-22 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-22 05:25:17] Production.INFO: count ==116 [2024-12-22 05:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:25:05 - End Time 2024-12-22 05:25:05 [2024-12-22 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075343', 'tblTempUsageDetail_20' ) start [2024-12-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075343', 'tblTempUsageDetail_20' ) end [2024-12-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075343', 'tblTempVendorCDR_20' ) start [2024-12-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075343', 'tblTempVendorCDR_20' ) end [2024-12-22 05:25:17] Production.INFO: ProcessCDR(1,14075343,1,1,2) [2024-12-22 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075343', 'tblTempUsageDetail_20' ) start [2024-12-22 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075343', 'tblTempUsageDetail_20' ) end [2024-12-22 05:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:25:20] Production.INFO: ==17298== Releasing lock... [2024-12-22 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:25:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:26:04 [end_date_ymd] => 2024-12-22 05:26:04 [RateCDR] => 1 ) [2024-12-22 05:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 02:26:04' and `end` < '2024-12-22 05:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 05:26:16] Production.INFO: count ==116 [2024-12-22 05:26:16] Production.ERROR: pbx CDR StartTime 2024-12-22 02:26:04 - End Time 2024-12-22 05:26:04 [2024-12-22 05:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075348', 'tblTempUsageDetail_20' ) start [2024-12-22 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075348', 'tblTempUsageDetail_20' ) end [2024-12-22 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075348', 'tblTempVendorCDR_20' ) start [2024-12-22 05:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075348', 'tblTempVendorCDR_20' ) end [2024-12-22 05:26:16] Production.INFO: ProcessCDR(1,14075348,1,1,2) [2024-12-22 05:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075348', 'tblTempUsageDetail_20' ) start [2024-12-22 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075348', 'tblTempUsageDetail_20' ) end [2024-12-22 05:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:26:20] Production.INFO: ==17374== Releasing lock... [2024-12-22 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:26:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:27:05 [end_date_ymd] => 2024-12-22 05:27:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:27:05' and `end` < '2024-12-22 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-22 05:27:17] Production.INFO: count ==116 [2024-12-22 05:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:27:05 - End Time 2024-12-22 05:27:05 [2024-12-22 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075353', 'tblTempUsageDetail_20' ) start [2024-12-22 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075353', 'tblTempUsageDetail_20' ) end [2024-12-22 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075353', 'tblTempVendorCDR_20' ) start [2024-12-22 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075353', 'tblTempVendorCDR_20' ) end [2024-12-22 05:27:17] Production.INFO: ProcessCDR(1,14075353,1,1,2) [2024-12-22 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075353', 'tblTempUsageDetail_20' ) start [2024-12-22 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075353', 'tblTempUsageDetail_20' ) end [2024-12-22 05:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:27:20] Production.INFO: ==17448== Releasing lock... [2024-12-22 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:27:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:28:05 [end_date_ymd] => 2024-12-22 05:28:05 [RateCDR] => 1 ) [2024-12-22 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 02:28:05' and `end` < '2024-12-22 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 05:28:18] Production.INFO: count ==114 [2024-12-22 05:28:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:28:05 - End Time 2024-12-22 05:28:05 [2024-12-22 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075358', 'tblTempUsageDetail_20' ) start [2024-12-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075358', 'tblTempUsageDetail_20' ) end [2024-12-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075358', 'tblTempVendorCDR_20' ) start [2024-12-22 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075358', 'tblTempVendorCDR_20' ) end [2024-12-22 05:28:18] Production.INFO: ProcessCDR(1,14075358,1,1,2) [2024-12-22 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075358', 'tblTempUsageDetail_20' ) start [2024-12-22 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075358', 'tblTempUsageDetail_20' ) end [2024-12-22 05:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:28:21] Production.INFO: ==17522== Releasing lock... [2024-12-22 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:28:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:29:05 [end_date_ymd] => 2024-12-22 05:29:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:29:05' and `end` < '2024-12-22 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-22 05:29:17] Production.INFO: count ==110 [2024-12-22 05:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:29:05 - End Time 2024-12-22 05:29:05 [2024-12-22 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075363', 'tblTempUsageDetail_20' ) start [2024-12-22 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075363', 'tblTempUsageDetail_20' ) end [2024-12-22 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075363', 'tblTempVendorCDR_20' ) start [2024-12-22 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075363', 'tblTempVendorCDR_20' ) end [2024-12-22 05:29:17] Production.INFO: ProcessCDR(1,14075363,1,1,2) [2024-12-22 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075363', 'tblTempUsageDetail_20' ) start [2024-12-22 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075363', 'tblTempUsageDetail_20' ) end [2024-12-22 05:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:29:20] Production.INFO: ==17596== Releasing lock... [2024-12-22 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:29:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:30:06 [end_date_ymd] => 2024-12-22 05:30:06 [RateCDR] => 1 ) [2024-12-22 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-22 02:30:06' and `end` < '2024-12-22 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-22 05:30:18] Production.INFO: count ==102 [2024-12-22 05:30:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:30:06 - End Time 2024-12-22 05:30:06 [2024-12-22 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075369', 'tblTempUsageDetail_20' ) start [2024-12-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075369', 'tblTempUsageDetail_20' ) end [2024-12-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075369', 'tblTempVendorCDR_20' ) start [2024-12-22 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075369', 'tblTempVendorCDR_20' ) end [2024-12-22 05:30:18] Production.INFO: ProcessCDR(1,14075369,1,1,2) [2024-12-22 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075369', 'tblTempUsageDetail_20' ) start [2024-12-22 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075369', 'tblTempUsageDetail_20' ) end [2024-12-22 05:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:30:21] Production.INFO: ==17675== Releasing lock... [2024-12-22 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:30:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:31:05 [end_date_ymd] => 2024-12-22 05:31:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:31:05' and `end` < '2024-12-22 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-22 05:31:17] Production.INFO: count ==77 [2024-12-22 05:31:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:31:05 - End Time 2024-12-22 05:31:05 [2024-12-22 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075374', 'tblTempUsageDetail_20' ) start [2024-12-22 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075374', 'tblTempUsageDetail_20' ) end [2024-12-22 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075374', 'tblTempVendorCDR_20' ) start [2024-12-22 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075374', 'tblTempVendorCDR_20' ) end [2024-12-22 05:31:17] Production.INFO: ProcessCDR(1,14075374,1,1,2) [2024-12-22 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075374', 'tblTempUsageDetail_20' ) start [2024-12-22 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075374', 'tblTempUsageDetail_20' ) end [2024-12-22 05:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:31:20] Production.INFO: ==17751== Releasing lock... [2024-12-22 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:31:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:32:05 [end_date_ymd] => 2024-12-22 05:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:32:05' and `end` < '2024-12-22 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-22 05:32:17] Production.INFO: count ==77 [2024-12-22 05:32:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:32:05 - End Time 2024-12-22 05:32:05 [2024-12-22 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075379', 'tblTempUsageDetail_20' ) start [2024-12-22 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075379', 'tblTempUsageDetail_20' ) end [2024-12-22 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075379', 'tblTempVendorCDR_20' ) start [2024-12-22 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075379', 'tblTempVendorCDR_20' ) end [2024-12-22 05:32:17] Production.INFO: ProcessCDR(1,14075379,1,1,2) [2024-12-22 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075379', 'tblTempUsageDetail_20' ) start [2024-12-22 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075379', 'tblTempUsageDetail_20' ) end [2024-12-22 05:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:32:20] Production.INFO: ==17824== Releasing lock... [2024-12-22 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:32:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:33:05 [end_date_ymd] => 2024-12-22 05:33:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:33:05' and `end` < '2024-12-22 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-22 05:33:16] Production.INFO: count ==77 [2024-12-22 05:33:16] Production.ERROR: pbx CDR StartTime 2024-12-22 02:33:05 - End Time 2024-12-22 05:33:05 [2024-12-22 05:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075384', 'tblTempUsageDetail_20' ) start [2024-12-22 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075384', 'tblTempUsageDetail_20' ) end [2024-12-22 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075384', 'tblTempVendorCDR_20' ) start [2024-12-22 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075384', 'tblTempVendorCDR_20' ) end [2024-12-22 05:33:16] Production.INFO: ProcessCDR(1,14075384,1,1,2) [2024-12-22 05:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075384', 'tblTempUsageDetail_20' ) start [2024-12-22 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075384', 'tblTempUsageDetail_20' ) end [2024-12-22 05:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:33:20] Production.INFO: ==17896== Releasing lock... [2024-12-22 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:33:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:34:05 [end_date_ymd] => 2024-12-22 05:34:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:34:05' and `end` < '2024-12-22 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-22 05:34:18] Production.INFO: count ==77 [2024-12-22 05:34:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:34:05 - End Time 2024-12-22 05:34:05 [2024-12-22 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075389', 'tblTempUsageDetail_20' ) start [2024-12-22 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075389', 'tblTempUsageDetail_20' ) end [2024-12-22 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075389', 'tblTempVendorCDR_20' ) start [2024-12-22 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075389', 'tblTempVendorCDR_20' ) end [2024-12-22 05:34:18] Production.INFO: ProcessCDR(1,14075389,1,1,2) [2024-12-22 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075389', 'tblTempUsageDetail_20' ) start [2024-12-22 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075389', 'tblTempUsageDetail_20' ) end [2024-12-22 05:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:34:21] Production.INFO: ==18007== Releasing lock... [2024-12-22 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:34:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:35:04 [end_date_ymd] => 2024-12-22 05:35:04 [RateCDR] => 1 ) [2024-12-22 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-22 02:35:04' and `end` < '2024-12-22 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-22 05:35:16] Production.INFO: count ==77 [2024-12-22 05:35:16] Production.ERROR: pbx CDR StartTime 2024-12-22 02:35:04 - End Time 2024-12-22 05:35:04 [2024-12-22 05:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075394', 'tblTempUsageDetail_20' ) start [2024-12-22 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075394', 'tblTempUsageDetail_20' ) end [2024-12-22 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075394', 'tblTempVendorCDR_20' ) start [2024-12-22 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075394', 'tblTempVendorCDR_20' ) end [2024-12-22 05:35:16] Production.INFO: ProcessCDR(1,14075394,1,1,2) [2024-12-22 05:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075394', 'tblTempUsageDetail_20' ) start [2024-12-22 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075394', 'tblTempUsageDetail_20' ) end [2024-12-22 05:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:35:20] Production.INFO: ==18080== Releasing lock... [2024-12-22 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:35:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:36:05 [end_date_ymd] => 2024-12-22 05:36:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:36:05' and `end` < '2024-12-22 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-22 05:36:18] Production.INFO: count ==77 [2024-12-22 05:36:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:36:05 - End Time 2024-12-22 05:36:05 [2024-12-22 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075399', 'tblTempUsageDetail_20' ) start [2024-12-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075399', 'tblTempUsageDetail_20' ) end [2024-12-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075399', 'tblTempVendorCDR_20' ) start [2024-12-22 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075399', 'tblTempVendorCDR_20' ) end [2024-12-22 05:36:18] Production.INFO: ProcessCDR(1,14075399,1,1,2) [2024-12-22 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075399', 'tblTempUsageDetail_20' ) start [2024-12-22 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075399', 'tblTempUsageDetail_20' ) end [2024-12-22 05:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:36:21] Production.INFO: ==18153== Releasing lock... [2024-12-22 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:36:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:37:04 [end_date_ymd] => 2024-12-22 05:37:04 [RateCDR] => 1 ) [2024-12-22 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-22 02:37:04' and `end` < '2024-12-22 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-22 05:37:17] Production.INFO: count ==77 [2024-12-22 05:37:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:37:04 - End Time 2024-12-22 05:37:04 [2024-12-22 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075404', 'tblTempUsageDetail_20' ) start [2024-12-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075404', 'tblTempUsageDetail_20' ) end [2024-12-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075404', 'tblTempVendorCDR_20' ) start [2024-12-22 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075404', 'tblTempVendorCDR_20' ) end [2024-12-22 05:37:17] Production.INFO: ProcessCDR(1,14075404,1,1,2) [2024-12-22 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075404', 'tblTempUsageDetail_20' ) start [2024-12-22 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075404', 'tblTempUsageDetail_20' ) end [2024-12-22 05:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:37:20] Production.INFO: ==18229== Releasing lock... [2024-12-22 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:37:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:38:05 [end_date_ymd] => 2024-12-22 05:38:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:38:05' and `end` < '2024-12-22 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-22 05:38:17] Production.INFO: count ==75 [2024-12-22 05:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:38:05 - End Time 2024-12-22 05:38:05 [2024-12-22 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075409', 'tblTempUsageDetail_20' ) start [2024-12-22 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075409', 'tblTempUsageDetail_20' ) end [2024-12-22 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075409', 'tblTempVendorCDR_20' ) start [2024-12-22 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075409', 'tblTempVendorCDR_20' ) end [2024-12-22 05:38:17] Production.INFO: ProcessCDR(1,14075409,1,1,2) [2024-12-22 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075409', 'tblTempUsageDetail_20' ) start [2024-12-22 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075409', 'tblTempUsageDetail_20' ) end [2024-12-22 05:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:38:20] Production.INFO: ==18306== Releasing lock... [2024-12-22 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:38:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:39:04 [end_date_ymd] => 2024-12-22 05:39:04 [RateCDR] => 1 ) [2024-12-22 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-22 02:39:04' and `end` < '2024-12-22 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-22 05:39:17] Production.INFO: count ==74 [2024-12-22 05:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:39:04 - End Time 2024-12-22 05:39:04 [2024-12-22 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075414', 'tblTempUsageDetail_20' ) start [2024-12-22 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075414', 'tblTempUsageDetail_20' ) end [2024-12-22 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075414', 'tblTempVendorCDR_20' ) start [2024-12-22 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075414', 'tblTempVendorCDR_20' ) end [2024-12-22 05:39:17] Production.INFO: ProcessCDR(1,14075414,1,1,2) [2024-12-22 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075414', 'tblTempUsageDetail_20' ) start [2024-12-22 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075414', 'tblTempUsageDetail_20' ) end [2024-12-22 05:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:39:21] Production.INFO: ==18380== Releasing lock... [2024-12-22 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:39:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:40:06 [end_date_ymd] => 2024-12-22 05:40:06 [RateCDR] => 1 ) [2024-12-22 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 02:40:06' and `end` < '2024-12-22 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 05:40:19] Production.INFO: count ==66 [2024-12-22 05:40:19] Production.ERROR: pbx CDR StartTime 2024-12-22 02:40:06 - End Time 2024-12-22 05:40:06 [2024-12-22 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075420', 'tblTempUsageDetail_20' ) start [2024-12-22 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075420', 'tblTempUsageDetail_20' ) end [2024-12-22 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075420', 'tblTempVendorCDR_20' ) start [2024-12-22 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075420', 'tblTempVendorCDR_20' ) end [2024-12-22 05:40:19] Production.INFO: ProcessCDR(1,14075420,1,1,2) [2024-12-22 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075420', 'tblTempUsageDetail_20' ) start [2024-12-22 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075420', 'tblTempUsageDetail_20' ) end [2024-12-22 05:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:40:22] Production.INFO: ==18452== Releasing lock... [2024-12-22 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:40:22] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:41:05 [end_date_ymd] => 2024-12-22 05:41:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:41:05' and `end` < '2024-12-22 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-22 05:41:17] Production.INFO: count ==58 [2024-12-22 05:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:41:05 - End Time 2024-12-22 05:41:05 [2024-12-22 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075425', 'tblTempUsageDetail_20' ) start [2024-12-22 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075425', 'tblTempUsageDetail_20' ) end [2024-12-22 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075425', 'tblTempVendorCDR_20' ) start [2024-12-22 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075425', 'tblTempVendorCDR_20' ) end [2024-12-22 05:41:17] Production.INFO: ProcessCDR(1,14075425,1,1,2) [2024-12-22 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075425', 'tblTempUsageDetail_20' ) start [2024-12-22 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075425', 'tblTempUsageDetail_20' ) end [2024-12-22 05:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:41:20] Production.INFO: ==18526== Releasing lock... [2024-12-22 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:41:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:42:04 [end_date_ymd] => 2024-12-22 05:42:04 [RateCDR] => 1 ) [2024-12-22 05: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-22 02:42:04' and `end` < '2024-12-22 05: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-22 05:42:17] Production.INFO: count ==58 [2024-12-22 05:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:42:04 - End Time 2024-12-22 05:42:04 [2024-12-22 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075430', 'tblTempUsageDetail_20' ) start [2024-12-22 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075430', 'tblTempUsageDetail_20' ) end [2024-12-22 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075430', 'tblTempVendorCDR_20' ) start [2024-12-22 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075430', 'tblTempVendorCDR_20' ) end [2024-12-22 05:42:17] Production.INFO: ProcessCDR(1,14075430,1,1,2) [2024-12-22 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075430', 'tblTempUsageDetail_20' ) start [2024-12-22 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075430', 'tblTempUsageDetail_20' ) end [2024-12-22 05:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:42:20] Production.INFO: ==18599== Releasing lock... [2024-12-22 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:42:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:43:05 [end_date_ymd] => 2024-12-22 05:43:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:43:05' and `end` < '2024-12-22 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-22 05:43:17] Production.INFO: count ==58 [2024-12-22 05:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:43:05 - End Time 2024-12-22 05:43:05 [2024-12-22 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075435', 'tblTempUsageDetail_20' ) start [2024-12-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075435', 'tblTempUsageDetail_20' ) end [2024-12-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075435', 'tblTempVendorCDR_20' ) start [2024-12-22 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075435', 'tblTempVendorCDR_20' ) end [2024-12-22 05:43:17] Production.INFO: ProcessCDR(1,14075435,1,1,2) [2024-12-22 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075435', 'tblTempUsageDetail_20' ) start [2024-12-22 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075435', 'tblTempUsageDetail_20' ) end [2024-12-22 05:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:43:20] Production.INFO: ==18681== Releasing lock... [2024-12-22 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:43:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:44:05 [end_date_ymd] => 2024-12-22 05:44:05 [RateCDR] => 1 ) [2024-12-22 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 02:44:05' and `end` < '2024-12-22 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 05:44:18] Production.INFO: count ==58 [2024-12-22 05:44:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:44:05 - End Time 2024-12-22 05:44:05 [2024-12-22 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075440', 'tblTempUsageDetail_20' ) start [2024-12-22 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075440', 'tblTempUsageDetail_20' ) end [2024-12-22 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075440', 'tblTempVendorCDR_20' ) start [2024-12-22 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075440', 'tblTempVendorCDR_20' ) end [2024-12-22 05:44:18] Production.INFO: ProcessCDR(1,14075440,1,1,2) [2024-12-22 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075440', 'tblTempUsageDetail_20' ) start [2024-12-22 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075440', 'tblTempUsageDetail_20' ) end [2024-12-22 05:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:44:21] Production.INFO: ==18752== Releasing lock... [2024-12-22 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:44:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:45:05 [end_date_ymd] => 2024-12-22 05:45:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:45:05' and `end` < '2024-12-22 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-22 05:45:17] Production.INFO: count ==58 [2024-12-22 05:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:45:05 - End Time 2024-12-22 05:45:05 [2024-12-22 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075445', 'tblTempUsageDetail_20' ) start [2024-12-22 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075445', 'tblTempUsageDetail_20' ) end [2024-12-22 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075445', 'tblTempVendorCDR_20' ) start [2024-12-22 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075445', 'tblTempVendorCDR_20' ) end [2024-12-22 05:45:17] Production.INFO: ProcessCDR(1,14075445,1,1,2) [2024-12-22 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075445', 'tblTempUsageDetail_20' ) start [2024-12-22 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075445', 'tblTempUsageDetail_20' ) end [2024-12-22 05:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:45:20] Production.INFO: ==18829== Releasing lock... [2024-12-22 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:46:04 [end_date_ymd] => 2024-12-22 05:46:04 [RateCDR] => 1 ) [2024-12-22 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-22 02:46:04' and `end` < '2024-12-22 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-22 05:46:16] Production.INFO: count ==57 [2024-12-22 05:46:16] Production.ERROR: pbx CDR StartTime 2024-12-22 02:46:04 - End Time 2024-12-22 05:46:04 [2024-12-22 05:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075450', 'tblTempUsageDetail_20' ) start [2024-12-22 05:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075450', 'tblTempUsageDetail_20' ) end [2024-12-22 05:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075450', 'tblTempVendorCDR_20' ) start [2024-12-22 05:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075450', 'tblTempVendorCDR_20' ) end [2024-12-22 05:46:16] Production.INFO: ProcessCDR(1,14075450,1,1,2) [2024-12-22 05:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075450', 'tblTempUsageDetail_20' ) start [2024-12-22 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075450', 'tblTempUsageDetail_20' ) end [2024-12-22 05:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:46:20] Production.INFO: ==18905== Releasing lock... [2024-12-22 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:46:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:47:05 [end_date_ymd] => 2024-12-22 05:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:47:05' and `end` < '2024-12-22 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-22 05:47:17] Production.INFO: count ==57 [2024-12-22 05:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:47:05 - End Time 2024-12-22 05:47:05 [2024-12-22 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075455', 'tblTempUsageDetail_20' ) start [2024-12-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075455', 'tblTempUsageDetail_20' ) end [2024-12-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075455', 'tblTempVendorCDR_20' ) start [2024-12-22 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075455', 'tblTempVendorCDR_20' ) end [2024-12-22 05:47:18] Production.INFO: ProcessCDR(1,14075455,1,1,2) [2024-12-22 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075455', 'tblTempUsageDetail_20' ) start [2024-12-22 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075455', 'tblTempUsageDetail_20' ) end [2024-12-22 05:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:47:21] Production.INFO: ==18981== Releasing lock... [2024-12-22 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:47:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:48:04 [end_date_ymd] => 2024-12-22 05:48:04 [RateCDR] => 1 ) [2024-12-22 05:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 02:48:04' and `end` < '2024-12-22 05:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 05:48:16] Production.INFO: count ==56 [2024-12-22 05:48:16] Production.ERROR: pbx CDR StartTime 2024-12-22 02:48:04 - End Time 2024-12-22 05:48:04 [2024-12-22 05:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075460', 'tblTempUsageDetail_20' ) start [2024-12-22 05:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075460', 'tblTempUsageDetail_20' ) end [2024-12-22 05:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075460', 'tblTempVendorCDR_20' ) start [2024-12-22 05:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075460', 'tblTempVendorCDR_20' ) end [2024-12-22 05:48:16] Production.INFO: ProcessCDR(1,14075460,1,1,2) [2024-12-22 05:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:48:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075460', 'tblTempUsageDetail_20' ) start [2024-12-22 05:48:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075460', 'tblTempUsageDetail_20' ) end [2024-12-22 05:48:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:48:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:48:19] Production.INFO: ==19053== Releasing lock... [2024-12-22 05:48:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:48:19] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:49:04 [end_date_ymd] => 2024-12-22 05:49:04 [RateCDR] => 1 ) [2024-12-22 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-22 02:49:04' and `end` < '2024-12-22 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-22 05:49:18] Production.INFO: count ==56 [2024-12-22 05:49:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:49:04 - End Time 2024-12-22 05:49:04 [2024-12-22 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075465', 'tblTempUsageDetail_20' ) start [2024-12-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075465', 'tblTempUsageDetail_20' ) end [2024-12-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075465', 'tblTempVendorCDR_20' ) start [2024-12-22 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075465', 'tblTempVendorCDR_20' ) end [2024-12-22 05:49:18] Production.INFO: ProcessCDR(1,14075465,1,1,2) [2024-12-22 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075465', 'tblTempUsageDetail_20' ) start [2024-12-22 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075465', 'tblTempUsageDetail_20' ) end [2024-12-22 05:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:49:21] Production.INFO: ==19126== Releasing lock... [2024-12-22 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:49:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:50:06 [end_date_ymd] => 2024-12-22 05:50:06 [RateCDR] => 1 ) [2024-12-22 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-22 02:50:06' and `end` < '2024-12-22 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-22 05:50:18] Production.INFO: count ==56 [2024-12-22 05:50:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:50:06 - End Time 2024-12-22 05:50:06 [2024-12-22 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075470', 'tblTempUsageDetail_20' ) start [2024-12-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075470', 'tblTempUsageDetail_20' ) end [2024-12-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075470', 'tblTempVendorCDR_20' ) start [2024-12-22 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075470', 'tblTempVendorCDR_20' ) end [2024-12-22 05:50:18] Production.INFO: ProcessCDR(1,14075470,1,1,2) [2024-12-22 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075470', 'tblTempUsageDetail_20' ) start [2024-12-22 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075470', 'tblTempUsageDetail_20' ) end [2024-12-22 05:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:50:21] Production.INFO: ==19244== Releasing lock... [2024-12-22 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:50:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:51:04 [end_date_ymd] => 2024-12-22 05:51:04 [RateCDR] => 1 ) [2024-12-22 05:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 02:51:04' and `end` < '2024-12-22 05:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 05:51:17] Production.INFO: count ==56 [2024-12-22 05:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:51:04 - End Time 2024-12-22 05:51:04 [2024-12-22 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075476', 'tblTempUsageDetail_20' ) start [2024-12-22 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075476', 'tblTempUsageDetail_20' ) end [2024-12-22 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075476', 'tblTempVendorCDR_20' ) start [2024-12-22 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075476', 'tblTempVendorCDR_20' ) end [2024-12-22 05:51:17] Production.INFO: ProcessCDR(1,14075476,1,1,2) [2024-12-22 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075476', 'tblTempUsageDetail_20' ) start [2024-12-22 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075476', 'tblTempUsageDetail_20' ) end [2024-12-22 05:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:51:20] Production.INFO: ==19322== Releasing lock... [2024-12-22 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:51:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:52:05 [end_date_ymd] => 2024-12-22 05:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:52:05' and `end` < '2024-12-22 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-22 05:52:17] Production.INFO: count ==56 [2024-12-22 05:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:52:05 - End Time 2024-12-22 05:52:05 [2024-12-22 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075481', 'tblTempUsageDetail_20' ) start [2024-12-22 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075481', 'tblTempUsageDetail_20' ) end [2024-12-22 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075481', 'tblTempVendorCDR_20' ) start [2024-12-22 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075481', 'tblTempVendorCDR_20' ) end [2024-12-22 05:52:17] Production.INFO: ProcessCDR(1,14075481,1,1,2) [2024-12-22 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075481', 'tblTempUsageDetail_20' ) start [2024-12-22 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075481', 'tblTempUsageDetail_20' ) end [2024-12-22 05:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:52:20] Production.INFO: ==19395== Releasing lock... [2024-12-22 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:52:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:53:04 [end_date_ymd] => 2024-12-22 05:53:04 [RateCDR] => 1 ) [2024-12-22 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-22 02:53:04' and `end` < '2024-12-22 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-22 05:53:17] Production.INFO: count ==56 [2024-12-22 05:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:53:04 - End Time 2024-12-22 05:53:04 [2024-12-22 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075486', 'tblTempUsageDetail_20' ) start [2024-12-22 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075486', 'tblTempUsageDetail_20' ) end [2024-12-22 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075486', 'tblTempVendorCDR_20' ) start [2024-12-22 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075486', 'tblTempVendorCDR_20' ) end [2024-12-22 05:53:17] Production.INFO: ProcessCDR(1,14075486,1,1,2) [2024-12-22 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075486', 'tblTempUsageDetail_20' ) start [2024-12-22 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075486', 'tblTempUsageDetail_20' ) end [2024-12-22 05:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:53:20] Production.INFO: ==19468== Releasing lock... [2024-12-22 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:53:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:54:05 [end_date_ymd] => 2024-12-22 05:54:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:54:05' and `end` < '2024-12-22 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-22 05:54:17] Production.INFO: count ==56 [2024-12-22 05:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:54:05 - End Time 2024-12-22 05:54:05 [2024-12-22 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075491', 'tblTempUsageDetail_20' ) start [2024-12-22 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075491', 'tblTempUsageDetail_20' ) end [2024-12-22 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075491', 'tblTempVendorCDR_20' ) start [2024-12-22 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075491', 'tblTempVendorCDR_20' ) end [2024-12-22 05:54:17] Production.INFO: ProcessCDR(1,14075491,1,1,2) [2024-12-22 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075491', 'tblTempUsageDetail_20' ) start [2024-12-22 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075491', 'tblTempUsageDetail_20' ) end [2024-12-22 05:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:54:20] Production.INFO: ==19545== Releasing lock... [2024-12-22 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:54:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:55:04 [end_date_ymd] => 2024-12-22 05:55:04 [RateCDR] => 1 ) [2024-12-22 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-22 02:55:04' and `end` < '2024-12-22 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-22 05:55:16] Production.INFO: count ==56 [2024-12-22 05:55:16] Production.ERROR: pbx CDR StartTime 2024-12-22 02:55:04 - End Time 2024-12-22 05:55:04 [2024-12-22 05:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075496', 'tblTempUsageDetail_20' ) start [2024-12-22 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075496', 'tblTempUsageDetail_20' ) end [2024-12-22 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075496', 'tblTempVendorCDR_20' ) start [2024-12-22 05:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075496', 'tblTempVendorCDR_20' ) end [2024-12-22 05:55:16] Production.INFO: ProcessCDR(1,14075496,1,1,2) [2024-12-22 05:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075496', 'tblTempUsageDetail_20' ) start [2024-12-22 05:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075496', 'tblTempUsageDetail_20' ) end [2024-12-22 05:55:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:55:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:55:19] Production.INFO: ==19616== Releasing lock... [2024-12-22 05:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:55:19] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:56:04 [end_date_ymd] => 2024-12-22 05:56:04 [RateCDR] => 1 ) [2024-12-22 05: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-22 02:56:04' and `end` < '2024-12-22 05: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-22 05:56:16] Production.INFO: count ==55 [2024-12-22 05:56:16] Production.ERROR: pbx CDR StartTime 2024-12-22 02:56:04 - End Time 2024-12-22 05:56:04 [2024-12-22 05:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075501', 'tblTempUsageDetail_20' ) start [2024-12-22 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075501', 'tblTempUsageDetail_20' ) end [2024-12-22 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075501', 'tblTempVendorCDR_20' ) start [2024-12-22 05:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075501', 'tblTempVendorCDR_20' ) end [2024-12-22 05:56:16] Production.INFO: ProcessCDR(1,14075501,1,1,2) [2024-12-22 05:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075501', 'tblTempUsageDetail_20' ) start [2024-12-22 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075501', 'tblTempUsageDetail_20' ) end [2024-12-22 05:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:56:20] Production.INFO: ==19690== Releasing lock... [2024-12-22 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:56:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:57:05 [end_date_ymd] => 2024-12-22 05:57:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:57:05' and `end` < '2024-12-22 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-22 05:57:18] Production.INFO: count ==55 [2024-12-22 05:57:18] Production.ERROR: pbx CDR StartTime 2024-12-22 02:57:05 - End Time 2024-12-22 05:57:05 [2024-12-22 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075506', 'tblTempUsageDetail_20' ) start [2024-12-22 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075506', 'tblTempUsageDetail_20' ) end [2024-12-22 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075506', 'tblTempVendorCDR_20' ) start [2024-12-22 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075506', 'tblTempVendorCDR_20' ) end [2024-12-22 05:57:18] Production.INFO: ProcessCDR(1,14075506,1,1,2) [2024-12-22 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075506', 'tblTempUsageDetail_20' ) start [2024-12-22 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075506', 'tblTempUsageDetail_20' ) end [2024-12-22 05:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:57:22] Production.INFO: ==19765== Releasing lock... [2024-12-22 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:57:22] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:58:05 [end_date_ymd] => 2024-12-22 05:58:05 [RateCDR] => 1 ) [2024-12-22 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-22 02:58:05' and `end` < '2024-12-22 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-22 05:58:17] Production.INFO: count ==54 [2024-12-22 05:58:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:58:05 - End Time 2024-12-22 05:58:05 [2024-12-22 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075511', 'tblTempUsageDetail_20' ) start [2024-12-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075511', 'tblTempUsageDetail_20' ) end [2024-12-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075511', 'tblTempVendorCDR_20' ) start [2024-12-22 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075511', 'tblTempVendorCDR_20' ) end [2024-12-22 05:58:17] Production.INFO: ProcessCDR(1,14075511,1,1,2) [2024-12-22 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075511', 'tblTempUsageDetail_20' ) start [2024-12-22 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075511', 'tblTempUsageDetail_20' ) end [2024-12-22 05:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:58:20] Production.INFO: ==19839== Releasing lock... [2024-12-22 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:58:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 02:59:04 [end_date_ymd] => 2024-12-22 05:59:04 [RateCDR] => 1 ) [2024-12-22 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-22 02:59:04' and `end` < '2024-12-22 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-22 05:59:17] Production.INFO: count ==54 [2024-12-22 05:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 02:59:04 - End Time 2024-12-22 05:59:04 [2024-12-22 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075516', 'tblTempUsageDetail_20' ) start [2024-12-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075516', 'tblTempUsageDetail_20' ) end [2024-12-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075516', 'tblTempVendorCDR_20' ) start [2024-12-22 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075516', 'tblTempVendorCDR_20' ) end [2024-12-22 05:59:17] Production.INFO: ProcessCDR(1,14075516,1,1,2) [2024-12-22 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075516', 'tblTempUsageDetail_20' ) start [2024-12-22 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075516', 'tblTempUsageDetail_20' ) end [2024-12-22 05:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 05:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 05:59:20] Production.INFO: ==19913== Releasing lock... [2024-12-22 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 05:59:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:00:05 [end_date_ymd] => 2024-12-22 06:00:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:00:05' and `end` < '2024-12-22 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-22 06:00:17] Production.INFO: count ==48 [2024-12-22 06:00:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:00:05 - End Time 2024-12-22 06:00:05 [2024-12-22 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075518', 'tblTempUsageDetail_20' ) start [2024-12-22 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075518', 'tblTempUsageDetail_20' ) end [2024-12-22 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075518', 'tblTempVendorCDR_20' ) start [2024-12-22 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075518', 'tblTempVendorCDR_20' ) end [2024-12-22 06:00:17] Production.INFO: ProcessCDR(1,14075518,1,1,2) [2024-12-22 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075518', 'tblTempUsageDetail_20' ) start [2024-12-22 06:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075518', 'tblTempUsageDetail_20' ) end [2024-12-22 06:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:00:20] Production.INFO: ==19985== Releasing lock... [2024-12-22 06:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:00:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:01:05 [end_date_ymd] => 2024-12-22 06:01:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:01:05' and `end` < '2024-12-22 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-22 06:01:18] Production.INFO: count ==36 [2024-12-22 06:01:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:01:05 - End Time 2024-12-22 06:01:05 [2024-12-22 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075527', 'tblTempUsageDetail_20' ) start [2024-12-22 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075527', 'tblTempUsageDetail_20' ) end [2024-12-22 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075527', 'tblTempVendorCDR_20' ) start [2024-12-22 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075527', 'tblTempVendorCDR_20' ) end [2024-12-22 06:01:18] Production.INFO: ProcessCDR(1,14075527,1,1,2) [2024-12-22 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075527', 'tblTempUsageDetail_20' ) start [2024-12-22 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075527', 'tblTempUsageDetail_20' ) end [2024-12-22 06:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:01:21] Production.INFO: ==20072== Releasing lock... [2024-12-22 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:01:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:02:04 [end_date_ymd] => 2024-12-22 06:02:04 [RateCDR] => 1 ) [2024-12-22 06:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:02:04' and `end` < '2024-12-22 06:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:02:16] Production.INFO: count ==36 [2024-12-22 06:02:16] Production.ERROR: pbx CDR StartTime 2024-12-22 03:02:04 - End Time 2024-12-22 06:02:04 [2024-12-22 06:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075532', 'tblTempUsageDetail_20' ) start [2024-12-22 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075532', 'tblTempUsageDetail_20' ) end [2024-12-22 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075532', 'tblTempVendorCDR_20' ) start [2024-12-22 06:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075532', 'tblTempVendorCDR_20' ) end [2024-12-22 06:02:16] Production.INFO: ProcessCDR(1,14075532,1,1,2) [2024-12-22 06:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:02:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:02:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:02:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075532', 'tblTempUsageDetail_20' ) start [2024-12-22 06:02:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075532', 'tblTempUsageDetail_20' ) end [2024-12-22 06:02:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:02:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:02:19] Production.INFO: ==20144== Releasing lock... [2024-12-22 06:02:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:02:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:03:05 [end_date_ymd] => 2024-12-22 06:03:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:03:05' and `end` < '2024-12-22 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-22 06:03:18] Production.INFO: count ==36 [2024-12-22 06:03:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:03:05 - End Time 2024-12-22 06:03:05 [2024-12-22 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075537', 'tblTempUsageDetail_20' ) start [2024-12-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075537', 'tblTempUsageDetail_20' ) end [2024-12-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075537', 'tblTempVendorCDR_20' ) start [2024-12-22 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075537', 'tblTempVendorCDR_20' ) end [2024-12-22 06:03:18] Production.INFO: ProcessCDR(1,14075537,1,1,2) [2024-12-22 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075537', 'tblTempUsageDetail_20' ) start [2024-12-22 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075537', 'tblTempUsageDetail_20' ) end [2024-12-22 06:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:03:21] Production.INFO: ==20217== Releasing lock... [2024-12-22 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:03:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:04:05 [end_date_ymd] => 2024-12-22 06:04:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:04:05' and `end` < '2024-12-22 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-22 06:04:18] Production.INFO: count ==36 [2024-12-22 06:04:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:04:05 - End Time 2024-12-22 06:04:05 [2024-12-22 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075542', 'tblTempUsageDetail_20' ) start [2024-12-22 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075542', 'tblTempUsageDetail_20' ) end [2024-12-22 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075542', 'tblTempVendorCDR_20' ) start [2024-12-22 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075542', 'tblTempVendorCDR_20' ) end [2024-12-22 06:04:18] Production.INFO: ProcessCDR(1,14075542,1,1,2) [2024-12-22 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075542', 'tblTempUsageDetail_20' ) start [2024-12-22 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075542', 'tblTempUsageDetail_20' ) end [2024-12-22 06:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:04:21] Production.INFO: ==20291== Releasing lock... [2024-12-22 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:04:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:05:05 [end_date_ymd] => 2024-12-22 06:05:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:05:05' and `end` < '2024-12-22 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-22 06:05:17] Production.INFO: count ==36 [2024-12-22 06:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:05:05 - End Time 2024-12-22 06:05:05 [2024-12-22 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075547', 'tblTempUsageDetail_20' ) start [2024-12-22 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075547', 'tblTempUsageDetail_20' ) end [2024-12-22 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075547', 'tblTempVendorCDR_20' ) start [2024-12-22 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075547', 'tblTempVendorCDR_20' ) end [2024-12-22 06:05:17] Production.INFO: ProcessCDR(1,14075547,1,1,2) [2024-12-22 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075547', 'tblTempUsageDetail_20' ) start [2024-12-22 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075547', 'tblTempUsageDetail_20' ) end [2024-12-22 06:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:05:20] Production.INFO: ==20362== Releasing lock... [2024-12-22 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:05:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:06:04 [end_date_ymd] => 2024-12-22 06:06:04 [RateCDR] => 1 ) [2024-12-22 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-22 03:06:04' and `end` < '2024-12-22 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-22 06:06:16] Production.INFO: count ==36 [2024-12-22 06:06:16] Production.ERROR: pbx CDR StartTime 2024-12-22 03:06:04 - End Time 2024-12-22 06:06:04 [2024-12-22 06:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075552', 'tblTempUsageDetail_20' ) start [2024-12-22 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075552', 'tblTempUsageDetail_20' ) end [2024-12-22 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075552', 'tblTempVendorCDR_20' ) start [2024-12-22 06:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075552', 'tblTempVendorCDR_20' ) end [2024-12-22 06:06:16] Production.INFO: ProcessCDR(1,14075552,1,1,2) [2024-12-22 06:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075552', 'tblTempUsageDetail_20' ) start [2024-12-22 06:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075552', 'tblTempUsageDetail_20' ) end [2024-12-22 06:06:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:06:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:06:19] Production.INFO: ==20474== Releasing lock... [2024-12-22 06:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:06:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:07:05 [end_date_ymd] => 2024-12-22 06:07:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:07:05' and `end` < '2024-12-22 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-22 06:07:18] Production.INFO: count ==36 [2024-12-22 06:07:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:07:05 - End Time 2024-12-22 06:07:05 [2024-12-22 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075557', 'tblTempUsageDetail_20' ) start [2024-12-22 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075557', 'tblTempUsageDetail_20' ) end [2024-12-22 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075557', 'tblTempVendorCDR_20' ) start [2024-12-22 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075557', 'tblTempVendorCDR_20' ) end [2024-12-22 06:07:18] Production.INFO: ProcessCDR(1,14075557,1,1,2) [2024-12-22 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075557', 'tblTempUsageDetail_20' ) start [2024-12-22 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075557', 'tblTempUsageDetail_20' ) end [2024-12-22 06:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:07:21] Production.INFO: ==20544== Releasing lock... [2024-12-22 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:07:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:08:05 [end_date_ymd] => 2024-12-22 06:08:05 [RateCDR] => 1 ) [2024-12-22 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:08:05' and `end` < '2024-12-22 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:08:17] Production.INFO: count ==36 [2024-12-22 06:08:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:08:05 - End Time 2024-12-22 06:08:05 [2024-12-22 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075562', 'tblTempUsageDetail_20' ) start [2024-12-22 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075562', 'tblTempUsageDetail_20' ) end [2024-12-22 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075562', 'tblTempVendorCDR_20' ) start [2024-12-22 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075562', 'tblTempVendorCDR_20' ) end [2024-12-22 06:08:17] Production.INFO: ProcessCDR(1,14075562,1,1,2) [2024-12-22 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075562', 'tblTempUsageDetail_20' ) start [2024-12-22 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075562', 'tblTempUsageDetail_20' ) end [2024-12-22 06:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:08:20] Production.INFO: ==20619== Releasing lock... [2024-12-22 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:08:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:09:05 [end_date_ymd] => 2024-12-22 06:09:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:09:05' and `end` < '2024-12-22 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-22 06:09:18] Production.INFO: count ==36 [2024-12-22 06:09:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:09:05 - End Time 2024-12-22 06:09:05 [2024-12-22 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075567', 'tblTempUsageDetail_20' ) start [2024-12-22 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075567', 'tblTempUsageDetail_20' ) end [2024-12-22 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075567', 'tblTempVendorCDR_20' ) start [2024-12-22 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075567', 'tblTempVendorCDR_20' ) end [2024-12-22 06:09:18] Production.INFO: ProcessCDR(1,14075567,1,1,2) [2024-12-22 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075567', 'tblTempUsageDetail_20' ) start [2024-12-22 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075567', 'tblTempUsageDetail_20' ) end [2024-12-22 06:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:09:21] Production.INFO: ==20695== Releasing lock... [2024-12-22 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:09:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:10:06 [end_date_ymd] => 2024-12-22 06:10:06 [RateCDR] => 1 ) [2024-12-22 06: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-22 03:10:06' and `end` < '2024-12-22 06: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-22 06:10:18] Production.INFO: count ==34 [2024-12-22 06:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:10:06 - End Time 2024-12-22 06:10:06 [2024-12-22 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075572', 'tblTempUsageDetail_20' ) start [2024-12-22 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075572', 'tblTempUsageDetail_20' ) end [2024-12-22 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075572', 'tblTempVendorCDR_20' ) start [2024-12-22 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075572', 'tblTempVendorCDR_20' ) end [2024-12-22 06:10:18] Production.INFO: ProcessCDR(1,14075572,1,1,2) [2024-12-22 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075572', 'tblTempUsageDetail_20' ) start [2024-12-22 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075572', 'tblTempUsageDetail_20' ) end [2024-12-22 06:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:10:21] Production.INFO: ==20770== Releasing lock... [2024-12-22 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:10:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:11:04 [end_date_ymd] => 2024-12-22 06:11:04 [RateCDR] => 1 ) [2024-12-22 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-22 03:11:04' and `end` < '2024-12-22 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-22 06:11:17] Production.INFO: count ==34 [2024-12-22 06:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:11:04 - End Time 2024-12-22 06:11:04 [2024-12-22 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075578', 'tblTempUsageDetail_20' ) start [2024-12-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075578', 'tblTempUsageDetail_20' ) end [2024-12-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075578', 'tblTempVendorCDR_20' ) start [2024-12-22 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075578', 'tblTempVendorCDR_20' ) end [2024-12-22 06:11:17] Production.INFO: ProcessCDR(1,14075578,1,1,2) [2024-12-22 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075578', 'tblTempUsageDetail_20' ) start [2024-12-22 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075578', 'tblTempUsageDetail_20' ) end [2024-12-22 06:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:11:20] Production.INFO: ==20841== Releasing lock... [2024-12-22 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:11:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:12:05 [end_date_ymd] => 2024-12-22 06:12:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:12:05' and `end` < '2024-12-22 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-22 06:12:17] Production.INFO: count ==34 [2024-12-22 06:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:12:05 - End Time 2024-12-22 06:12:05 [2024-12-22 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075583', 'tblTempUsageDetail_20' ) start [2024-12-22 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075583', 'tblTempUsageDetail_20' ) end [2024-12-22 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075583', 'tblTempVendorCDR_20' ) start [2024-12-22 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075583', 'tblTempVendorCDR_20' ) end [2024-12-22 06:12:17] Production.INFO: ProcessCDR(1,14075583,1,1,2) [2024-12-22 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075583', 'tblTempUsageDetail_20' ) start [2024-12-22 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075583', 'tblTempUsageDetail_20' ) end [2024-12-22 06:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:12:20] Production.INFO: ==20913== Releasing lock... [2024-12-22 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:12:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:13:04 [end_date_ymd] => 2024-12-22 06:13:04 [RateCDR] => 1 ) [2024-12-22 06:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:13:04' and `end` < '2024-12-22 06:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:13:16] Production.INFO: count ==34 [2024-12-22 06:13:16] Production.ERROR: pbx CDR StartTime 2024-12-22 03:13:04 - End Time 2024-12-22 06:13:04 [2024-12-22 06:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075588', 'tblTempUsageDetail_20' ) start [2024-12-22 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075588', 'tblTempUsageDetail_20' ) end [2024-12-22 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075588', 'tblTempVendorCDR_20' ) start [2024-12-22 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075588', 'tblTempVendorCDR_20' ) end [2024-12-22 06:13:16] Production.INFO: ProcessCDR(1,14075588,1,1,2) [2024-12-22 06:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:13:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075588', 'tblTempUsageDetail_20' ) start [2024-12-22 06:13:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075588', 'tblTempUsageDetail_20' ) end [2024-12-22 06:13:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:13:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:13:20] Production.INFO: ==20982== Releasing lock... [2024-12-22 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:13:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:14:05 [end_date_ymd] => 2024-12-22 06:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:14:05' and `end` < '2024-12-22 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-22 06:14:17] Production.INFO: count ==34 [2024-12-22 06:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:14:05 - End Time 2024-12-22 06:14:05 [2024-12-22 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075593', 'tblTempUsageDetail_20' ) start [2024-12-22 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075593', 'tblTempUsageDetail_20' ) end [2024-12-22 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075593', 'tblTempVendorCDR_20' ) start [2024-12-22 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075593', 'tblTempVendorCDR_20' ) end [2024-12-22 06:14:17] Production.INFO: ProcessCDR(1,14075593,1,1,2) [2024-12-22 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075593', 'tblTempUsageDetail_20' ) start [2024-12-22 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075593', 'tblTempUsageDetail_20' ) end [2024-12-22 06:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:14:20] Production.INFO: ==21056== Releasing lock... [2024-12-22 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:14:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:15:04 [end_date_ymd] => 2024-12-22 06:15:04 [RateCDR] => 1 ) [2024-12-22 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-22 03:15:04' and `end` < '2024-12-22 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-22 06:15:16] Production.INFO: count ==34 [2024-12-22 06:15:16] Production.ERROR: pbx CDR StartTime 2024-12-22 03:15:04 - End Time 2024-12-22 06:15:04 [2024-12-22 06:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075598', 'tblTempUsageDetail_20' ) start [2024-12-22 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075598', 'tblTempUsageDetail_20' ) end [2024-12-22 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075598', 'tblTempVendorCDR_20' ) start [2024-12-22 06:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075598', 'tblTempVendorCDR_20' ) end [2024-12-22 06:15:16] Production.INFO: ProcessCDR(1,14075598,1,1,2) [2024-12-22 06:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075598', 'tblTempUsageDetail_20' ) start [2024-12-22 06:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075598', 'tblTempUsageDetail_20' ) end [2024-12-22 06:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:15:19] Production.INFO: ==21129== Releasing lock... [2024-12-22 06:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:15:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:16:05 [end_date_ymd] => 2024-12-22 06:16:05 [RateCDR] => 1 ) [2024-12-22 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:16:05' and `end` < '2024-12-22 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:16:17] Production.INFO: count ==34 [2024-12-22 06:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:16:05 - End Time 2024-12-22 06:16:05 [2024-12-22 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075603', 'tblTempUsageDetail_20' ) start [2024-12-22 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075603', 'tblTempUsageDetail_20' ) end [2024-12-22 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075603', 'tblTempVendorCDR_20' ) start [2024-12-22 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075603', 'tblTempVendorCDR_20' ) end [2024-12-22 06:16:17] Production.INFO: ProcessCDR(1,14075603,1,1,2) [2024-12-22 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075603', 'tblTempUsageDetail_20' ) start [2024-12-22 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075603', 'tblTempUsageDetail_20' ) end [2024-12-22 06:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:16:20] Production.INFO: ==21200== Releasing lock... [2024-12-22 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:16:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:17:05 [end_date_ymd] => 2024-12-22 06:17:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:17:05' and `end` < '2024-12-22 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-22 06:17:17] Production.INFO: count ==34 [2024-12-22 06:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:17:05 - End Time 2024-12-22 06:17:05 [2024-12-22 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075608', 'tblTempUsageDetail_20' ) start [2024-12-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075608', 'tblTempUsageDetail_20' ) end [2024-12-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075608', 'tblTempVendorCDR_20' ) start [2024-12-22 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075608', 'tblTempVendorCDR_20' ) end [2024-12-22 06:17:17] Production.INFO: ProcessCDR(1,14075608,1,1,2) [2024-12-22 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075608', 'tblTempUsageDetail_20' ) start [2024-12-22 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075608', 'tblTempUsageDetail_20' ) end [2024-12-22 06:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:17:20] Production.INFO: ==21272== Releasing lock... [2024-12-22 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:17:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:18:05 [end_date_ymd] => 2024-12-22 06:18:05 [RateCDR] => 1 ) [2024-12-22 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:18:05' and `end` < '2024-12-22 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:18:18] Production.INFO: count ==34 [2024-12-22 06:18:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:18:05 - End Time 2024-12-22 06:18:05 [2024-12-22 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075613', 'tblTempUsageDetail_20' ) start [2024-12-22 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075613', 'tblTempUsageDetail_20' ) end [2024-12-22 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075613', 'tblTempVendorCDR_20' ) start [2024-12-22 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075613', 'tblTempVendorCDR_20' ) end [2024-12-22 06:18:18] Production.INFO: ProcessCDR(1,14075613,1,1,2) [2024-12-22 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075613', 'tblTempUsageDetail_20' ) start [2024-12-22 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075613', 'tblTempUsageDetail_20' ) end [2024-12-22 06:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:18:22] Production.INFO: ==21346== Releasing lock... [2024-12-22 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:18:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:19:05 [end_date_ymd] => 2024-12-22 06:19:05 [RateCDR] => 1 ) [2024-12-22 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:19:05' and `end` < '2024-12-22 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:19:17] Production.INFO: count ==34 [2024-12-22 06:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:19:05 - End Time 2024-12-22 06:19:05 [2024-12-22 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075618', 'tblTempUsageDetail_20' ) start [2024-12-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075618', 'tblTempUsageDetail_20' ) end [2024-12-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075618', 'tblTempVendorCDR_20' ) start [2024-12-22 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075618', 'tblTempVendorCDR_20' ) end [2024-12-22 06:19:17] Production.INFO: ProcessCDR(1,14075618,1,1,2) [2024-12-22 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075618', 'tblTempUsageDetail_20' ) start [2024-12-22 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075618', 'tblTempUsageDetail_20' ) end [2024-12-22 06:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:19:20] Production.INFO: ==21417== Releasing lock... [2024-12-22 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:19:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:20:05 [end_date_ymd] => 2024-12-22 06:20:05 [RateCDR] => 1 ) [2024-12-22 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:20:05' and `end` < '2024-12-22 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:20:17] Production.INFO: count ==24 [2024-12-22 06:20:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:20:05 - End Time 2024-12-22 06:20:05 [2024-12-22 06:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075624', 'tblTempUsageDetail_20' ) start [2024-12-22 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075624', 'tblTempUsageDetail_20' ) end [2024-12-22 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075624', 'tblTempVendorCDR_20' ) start [2024-12-22 06:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075624', 'tblTempVendorCDR_20' ) end [2024-12-22 06:20:17] Production.INFO: ProcessCDR(1,14075624,1,1,2) [2024-12-22 06:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075624', 'tblTempUsageDetail_20' ) start [2024-12-22 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075624', 'tblTempUsageDetail_20' ) end [2024-12-22 06:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:20:21] Production.INFO: ==21493== Releasing lock... [2024-12-22 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:20:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:21:05 [end_date_ymd] => 2024-12-22 06:21:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:21:05' and `end` < '2024-12-22 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-22 06:21:18] Production.INFO: count ==19 [2024-12-22 06:21:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:21:05 - End Time 2024-12-22 06:21:05 [2024-12-22 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075629', 'tblTempUsageDetail_20' ) start [2024-12-22 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075629', 'tblTempUsageDetail_20' ) end [2024-12-22 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075629', 'tblTempVendorCDR_20' ) start [2024-12-22 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075629', 'tblTempVendorCDR_20' ) end [2024-12-22 06:21:18] Production.INFO: ProcessCDR(1,14075629,1,1,2) [2024-12-22 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075629', 'tblTempUsageDetail_20' ) start [2024-12-22 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075629', 'tblTempUsageDetail_20' ) end [2024-12-22 06:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:21:21] Production.INFO: ==21605== Releasing lock... [2024-12-22 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:21:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:22:04 [end_date_ymd] => 2024-12-22 06:22:04 [RateCDR] => 1 ) [2024-12-22 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-22 03:22:04' and `end` < '2024-12-22 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-22 06:22:17] Production.INFO: count ==19 [2024-12-22 06:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:22:04 - End Time 2024-12-22 06:22:04 [2024-12-22 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075634', 'tblTempUsageDetail_20' ) start [2024-12-22 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075634', 'tblTempUsageDetail_20' ) end [2024-12-22 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075634', 'tblTempVendorCDR_20' ) start [2024-12-22 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075634', 'tblTempVendorCDR_20' ) end [2024-12-22 06:22:17] Production.INFO: ProcessCDR(1,14075634,1,1,2) [2024-12-22 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075634', 'tblTempUsageDetail_20' ) start [2024-12-22 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075634', 'tblTempUsageDetail_20' ) end [2024-12-22 06:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:22:20] Production.INFO: ==21674== Releasing lock... [2024-12-22 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:22:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:23:04 [end_date_ymd] => 2024-12-22 06:23:04 [RateCDR] => 1 ) [2024-12-22 06:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:23:04' and `end` < '2024-12-22 06:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:23:17] Production.INFO: count ==19 [2024-12-22 06:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:23:04 - End Time 2024-12-22 06:23:04 [2024-12-22 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075639', 'tblTempUsageDetail_20' ) start [2024-12-22 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075639', 'tblTempUsageDetail_20' ) end [2024-12-22 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075639', 'tblTempVendorCDR_20' ) start [2024-12-22 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075639', 'tblTempVendorCDR_20' ) end [2024-12-22 06:23:17] Production.INFO: ProcessCDR(1,14075639,1,1,2) [2024-12-22 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075639', 'tblTempUsageDetail_20' ) start [2024-12-22 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075639', 'tblTempUsageDetail_20' ) end [2024-12-22 06:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:23:20] Production.INFO: ==21750== Releasing lock... [2024-12-22 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:23:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:24:05 [end_date_ymd] => 2024-12-22 06:24:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:24:05' and `end` < '2024-12-22 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-22 06:24:18] Production.INFO: count ==19 [2024-12-22 06:24:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:24:05 - End Time 2024-12-22 06:24:05 [2024-12-22 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075644', 'tblTempUsageDetail_20' ) start [2024-12-22 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075644', 'tblTempUsageDetail_20' ) end [2024-12-22 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075644', 'tblTempVendorCDR_20' ) start [2024-12-22 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075644', 'tblTempVendorCDR_20' ) end [2024-12-22 06:24:18] Production.INFO: ProcessCDR(1,14075644,1,1,2) [2024-12-22 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075644', 'tblTempUsageDetail_20' ) start [2024-12-22 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075644', 'tblTempUsageDetail_20' ) end [2024-12-22 06:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:24:21] Production.INFO: ==21824== Releasing lock... [2024-12-22 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:24:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:25:04 [end_date_ymd] => 2024-12-22 06:25:04 [RateCDR] => 1 ) [2024-12-22 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-22 03:25:04' and `end` < '2024-12-22 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-22 06:25:16] Production.INFO: count ==19 [2024-12-22 06:25:16] Production.ERROR: pbx CDR StartTime 2024-12-22 03:25:04 - End Time 2024-12-22 06:25:04 [2024-12-22 06:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075649', 'tblTempUsageDetail_20' ) start [2024-12-22 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075649', 'tblTempUsageDetail_20' ) end [2024-12-22 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075649', 'tblTempVendorCDR_20' ) start [2024-12-22 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075649', 'tblTempVendorCDR_20' ) end [2024-12-22 06:25:16] Production.INFO: ProcessCDR(1,14075649,1,1,2) [2024-12-22 06:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:25:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075649', 'tblTempUsageDetail_20' ) start [2024-12-22 06:25:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075649', 'tblTempUsageDetail_20' ) end [2024-12-22 06:25:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:25:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:25:19] Production.INFO: ==21896== Releasing lock... [2024-12-22 06:25:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:25:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:26:05 [end_date_ymd] => 2024-12-22 06:26:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:26:05' and `end` < '2024-12-22 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-22 06:26:17] Production.INFO: count ==19 [2024-12-22 06:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:26:05 - End Time 2024-12-22 06:26:05 [2024-12-22 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075654', 'tblTempUsageDetail_20' ) start [2024-12-22 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075654', 'tblTempUsageDetail_20' ) end [2024-12-22 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075654', 'tblTempVendorCDR_20' ) start [2024-12-22 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075654', 'tblTempVendorCDR_20' ) end [2024-12-22 06:26:17] Production.INFO: ProcessCDR(1,14075654,1,1,2) [2024-12-22 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075654', 'tblTempUsageDetail_20' ) start [2024-12-22 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075654', 'tblTempUsageDetail_20' ) end [2024-12-22 06:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:26:20] Production.INFO: ==21967== Releasing lock... [2024-12-22 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:26:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:27:05 [end_date_ymd] => 2024-12-22 06:27:05 [RateCDR] => 1 ) [2024-12-22 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:27:05' and `end` < '2024-12-22 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:27:17] Production.INFO: count ==19 [2024-12-22 06:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:27:05 - End Time 2024-12-22 06:27:05 [2024-12-22 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075659', 'tblTempUsageDetail_20' ) start [2024-12-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075659', 'tblTempUsageDetail_20' ) end [2024-12-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075659', 'tblTempVendorCDR_20' ) start [2024-12-22 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075659', 'tblTempVendorCDR_20' ) end [2024-12-22 06:27:17] Production.INFO: ProcessCDR(1,14075659,1,1,2) [2024-12-22 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075659', 'tblTempUsageDetail_20' ) start [2024-12-22 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075659', 'tblTempUsageDetail_20' ) end [2024-12-22 06:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:27:20] Production.INFO: ==22037== Releasing lock... [2024-12-22 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:27:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:28:05 [end_date_ymd] => 2024-12-22 06:28:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:28:05' and `end` < '2024-12-22 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-22 06:28:17] Production.INFO: count ==19 [2024-12-22 06:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:28:05 - End Time 2024-12-22 06:28:05 [2024-12-22 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075664', 'tblTempUsageDetail_20' ) start [2024-12-22 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075664', 'tblTempUsageDetail_20' ) end [2024-12-22 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075664', 'tblTempVendorCDR_20' ) start [2024-12-22 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075664', 'tblTempVendorCDR_20' ) end [2024-12-22 06:28:17] Production.INFO: ProcessCDR(1,14075664,1,1,2) [2024-12-22 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075664', 'tblTempUsageDetail_20' ) start [2024-12-22 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075664', 'tblTempUsageDetail_20' ) end [2024-12-22 06:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:28:20] Production.INFO: ==22109== Releasing lock... [2024-12-22 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:28:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:29:05 [end_date_ymd] => 2024-12-22 06:29:05 [RateCDR] => 1 ) [2024-12-22 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:29:05' and `end` < '2024-12-22 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:29:17] Production.INFO: count ==19 [2024-12-22 06:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:29:05 - End Time 2024-12-22 06:29:05 [2024-12-22 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075669', 'tblTempUsageDetail_20' ) start [2024-12-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075669', 'tblTempUsageDetail_20' ) end [2024-12-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075669', 'tblTempVendorCDR_20' ) start [2024-12-22 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075669', 'tblTempVendorCDR_20' ) end [2024-12-22 06:29:17] Production.INFO: ProcessCDR(1,14075669,1,1,2) [2024-12-22 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075669', 'tblTempUsageDetail_20' ) start [2024-12-22 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075669', 'tblTempUsageDetail_20' ) end [2024-12-22 06:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:29:20] Production.INFO: ==22179== Releasing lock... [2024-12-22 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:29:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:30:05 [end_date_ymd] => 2024-12-22 06:30:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:30:05' and `end` < '2024-12-22 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-22 06:30:17] Production.INFO: count ==21 [2024-12-22 06:30:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:30:05 - End Time 2024-12-22 06:30:05 [2024-12-22 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075674', 'tblTempUsageDetail_20' ) start [2024-12-22 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075674', 'tblTempUsageDetail_20' ) end [2024-12-22 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075674', 'tblTempVendorCDR_20' ) start [2024-12-22 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075674', 'tblTempVendorCDR_20' ) end [2024-12-22 06:30:17] Production.INFO: ProcessCDR(1,14075674,1,1,2) [2024-12-22 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075674', 'tblTempUsageDetail_20' ) start [2024-12-22 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075674', 'tblTempUsageDetail_20' ) end [2024-12-22 06:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:30:20] Production.INFO: ==22255== Releasing lock... [2024-12-22 06:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:30:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:31:04 [end_date_ymd] => 2024-12-22 06:31:04 [RateCDR] => 1 ) [2024-12-22 06: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-22 03:31:04' and `end` < '2024-12-22 06: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-22 06:31:17] Production.INFO: count ==21 [2024-12-22 06:31:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:31:04 - End Time 2024-12-22 06:31:04 [2024-12-22 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075680', 'tblTempUsageDetail_20' ) start [2024-12-22 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075680', 'tblTempUsageDetail_20' ) end [2024-12-22 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075680', 'tblTempVendorCDR_20' ) start [2024-12-22 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075680', 'tblTempVendorCDR_20' ) end [2024-12-22 06:31:17] Production.INFO: ProcessCDR(1,14075680,1,1,2) [2024-12-22 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075680', 'tblTempUsageDetail_20' ) start [2024-12-22 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075680', 'tblTempUsageDetail_20' ) end [2024-12-22 06:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:31:20] Production.INFO: ==22327== Releasing lock... [2024-12-22 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:31:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:32:05 [end_date_ymd] => 2024-12-22 06:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:32:05' and `end` < '2024-12-22 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-22 06:32:17] Production.INFO: count ==21 [2024-12-22 06:32:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:32:05 - End Time 2024-12-22 06:32:05 [2024-12-22 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075685', 'tblTempUsageDetail_20' ) start [2024-12-22 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075685', 'tblTempUsageDetail_20' ) end [2024-12-22 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075685', 'tblTempVendorCDR_20' ) start [2024-12-22 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075685', 'tblTempVendorCDR_20' ) end [2024-12-22 06:32:17] Production.INFO: ProcessCDR(1,14075685,1,1,2) [2024-12-22 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075685', 'tblTempUsageDetail_20' ) start [2024-12-22 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075685', 'tblTempUsageDetail_20' ) end [2024-12-22 06:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:32:20] Production.INFO: ==22398== Releasing lock... [2024-12-22 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:32:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:33:04 [end_date_ymd] => 2024-12-22 06:33:04 [RateCDR] => 1 ) [2024-12-22 06: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-22 03:33:04' and `end` < '2024-12-22 06: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-22 06:33:16] Production.INFO: count ==21 [2024-12-22 06:33:16] Production.ERROR: pbx CDR StartTime 2024-12-22 03:33:04 - End Time 2024-12-22 06:33:04 [2024-12-22 06:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075690', 'tblTempUsageDetail_20' ) start [2024-12-22 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075690', 'tblTempUsageDetail_20' ) end [2024-12-22 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075690', 'tblTempVendorCDR_20' ) start [2024-12-22 06:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075690', 'tblTempVendorCDR_20' ) end [2024-12-22 06:33:16] Production.INFO: ProcessCDR(1,14075690,1,1,2) [2024-12-22 06:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075690', 'tblTempUsageDetail_20' ) start [2024-12-22 06:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075690', 'tblTempUsageDetail_20' ) end [2024-12-22 06:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:33:19] Production.INFO: ==22472== Releasing lock... [2024-12-22 06:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:33:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:34:05 [end_date_ymd] => 2024-12-22 06:34:05 [RateCDR] => 1 ) [2024-12-22 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:34:05' and `end` < '2024-12-22 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:34:17] Production.INFO: count ==21 [2024-12-22 06:34:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:34:05 - End Time 2024-12-22 06:34:05 [2024-12-22 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075695', 'tblTempUsageDetail_20' ) start [2024-12-22 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075695', 'tblTempUsageDetail_20' ) end [2024-12-22 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075695', 'tblTempVendorCDR_20' ) start [2024-12-22 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075695', 'tblTempVendorCDR_20' ) end [2024-12-22 06:34:17] Production.INFO: ProcessCDR(1,14075695,1,1,2) [2024-12-22 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075695', 'tblTempUsageDetail_20' ) start [2024-12-22 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075695', 'tblTempUsageDetail_20' ) end [2024-12-22 06:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:34:20] Production.INFO: ==22542== Releasing lock... [2024-12-22 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:34:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:35:05 [end_date_ymd] => 2024-12-22 06:35:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:35:05' and `end` < '2024-12-22 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-22 06:35:17] Production.INFO: count ==21 [2024-12-22 06:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:35:05 - End Time 2024-12-22 06:35:05 [2024-12-22 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075700', 'tblTempUsageDetail_20' ) start [2024-12-22 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075700', 'tblTempUsageDetail_20' ) end [2024-12-22 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075700', 'tblTempVendorCDR_20' ) start [2024-12-22 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075700', 'tblTempVendorCDR_20' ) end [2024-12-22 06:35:17] Production.INFO: ProcessCDR(1,14075700,1,1,2) [2024-12-22 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075700', 'tblTempUsageDetail_20' ) start [2024-12-22 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075700', 'tblTempUsageDetail_20' ) end [2024-12-22 06:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:35:20] Production.INFO: ==22614== Releasing lock... [2024-12-22 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:35:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:36:04 [end_date_ymd] => 2024-12-22 06:36:04 [RateCDR] => 1 ) [2024-12-22 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-22 03:36:04' and `end` < '2024-12-22 06:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:36:16] Production.INFO: count ==21 [2024-12-22 06:36:16] Production.ERROR: pbx CDR StartTime 2024-12-22 03:36:04 - End Time 2024-12-22 06:36:04 [2024-12-22 06:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075705', 'tblTempUsageDetail_20' ) start [2024-12-22 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075705', 'tblTempUsageDetail_20' ) end [2024-12-22 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075705', 'tblTempVendorCDR_20' ) start [2024-12-22 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075705', 'tblTempVendorCDR_20' ) end [2024-12-22 06:36:16] Production.INFO: ProcessCDR(1,14075705,1,1,2) [2024-12-22 06:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075705', 'tblTempUsageDetail_20' ) start [2024-12-22 06:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075705', 'tblTempUsageDetail_20' ) end [2024-12-22 06:36:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:36:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:36:19] Production.INFO: ==22686== Releasing lock... [2024-12-22 06:36:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:36:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:37:05 [end_date_ymd] => 2024-12-22 06:37:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:37:05' and `end` < '2024-12-22 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-22 06:37:18] Production.INFO: count ==21 [2024-12-22 06:37:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:37:05 - End Time 2024-12-22 06:37:05 [2024-12-22 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075710', 'tblTempUsageDetail_20' ) start [2024-12-22 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075710', 'tblTempUsageDetail_20' ) end [2024-12-22 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075710', 'tblTempVendorCDR_20' ) start [2024-12-22 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075710', 'tblTempVendorCDR_20' ) end [2024-12-22 06:37:18] Production.INFO: ProcessCDR(1,14075710,1,1,2) [2024-12-22 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075710', 'tblTempUsageDetail_20' ) start [2024-12-22 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075710', 'tblTempUsageDetail_20' ) end [2024-12-22 06:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:37:21] Production.INFO: ==22799== Releasing lock... [2024-12-22 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:37:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:38:04 [end_date_ymd] => 2024-12-22 06:38:04 [RateCDR] => 1 ) [2024-12-22 06: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-22 03:38:04' and `end` < '2024-12-22 06: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-22 06:38:17] Production.INFO: count ==21 [2024-12-22 06:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:38:04 - End Time 2024-12-22 06:38:04 [2024-12-22 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075715', 'tblTempUsageDetail_20' ) start [2024-12-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075715', 'tblTempUsageDetail_20' ) end [2024-12-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075715', 'tblTempVendorCDR_20' ) start [2024-12-22 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075715', 'tblTempVendorCDR_20' ) end [2024-12-22 06:38:17] Production.INFO: ProcessCDR(1,14075715,1,1,2) [2024-12-22 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075715', 'tblTempUsageDetail_20' ) start [2024-12-22 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075715', 'tblTempUsageDetail_20' ) end [2024-12-22 06:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:38:20] Production.INFO: ==22869== Releasing lock... [2024-12-22 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:38:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:39:05 [end_date_ymd] => 2024-12-22 06:39:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:39:05' and `end` < '2024-12-22 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-22 06:39:17] Production.INFO: count ==21 [2024-12-22 06:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:39:05 - End Time 2024-12-22 06:39:05 [2024-12-22 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075720', 'tblTempUsageDetail_20' ) start [2024-12-22 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075720', 'tblTempUsageDetail_20' ) end [2024-12-22 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075720', 'tblTempVendorCDR_20' ) start [2024-12-22 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075720', 'tblTempVendorCDR_20' ) end [2024-12-22 06:39:17] Production.INFO: ProcessCDR(1,14075720,1,1,2) [2024-12-22 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075720', 'tblTempUsageDetail_20' ) start [2024-12-22 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075720', 'tblTempUsageDetail_20' ) end [2024-12-22 06:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:39:20] Production.INFO: ==22938== Releasing lock... [2024-12-22 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:39:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:40:05 [end_date_ymd] => 2024-12-22 06:40:05 [RateCDR] => 1 ) [2024-12-22 06: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-22 03:40:05' and `end` < '2024-12-22 06: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-22 06:40:17] Production.INFO: count ==21 [2024-12-22 06:40:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:40:05 - End Time 2024-12-22 06:40:05 [2024-12-22 06:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075725', 'tblTempUsageDetail_20' ) start [2024-12-22 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075725', 'tblTempUsageDetail_20' ) end [2024-12-22 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075725', 'tblTempVendorCDR_20' ) start [2024-12-22 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075725', 'tblTempVendorCDR_20' ) end [2024-12-22 06:40:17] Production.INFO: ProcessCDR(1,14075725,1,1,2) [2024-12-22 06:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075725', 'tblTempUsageDetail_20' ) start [2024-12-22 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075725', 'tblTempUsageDetail_20' ) end [2024-12-22 06:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:40:20] Production.INFO: ==23009== Releasing lock... [2024-12-22 06:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:40:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:41:05 [end_date_ymd] => 2024-12-22 06:41:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:41:05' and `end` < '2024-12-22 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-22 06:41:17] Production.INFO: count ==21 [2024-12-22 06:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:41:05 - End Time 2024-12-22 06:41:05 [2024-12-22 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075731', 'tblTempUsageDetail_20' ) start [2024-12-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075731', 'tblTempUsageDetail_20' ) end [2024-12-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075731', 'tblTempVendorCDR_20' ) start [2024-12-22 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075731', 'tblTempVendorCDR_20' ) end [2024-12-22 06:41:17] Production.INFO: ProcessCDR(1,14075731,1,1,2) [2024-12-22 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075731', 'tblTempUsageDetail_20' ) start [2024-12-22 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075731', 'tblTempUsageDetail_20' ) end [2024-12-22 06:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:41:20] Production.INFO: ==23089== Releasing lock... [2024-12-22 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:41:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:42:04 [end_date_ymd] => 2024-12-22 06:42:04 [RateCDR] => 1 ) [2024-12-22 06:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:42:04' and `end` < '2024-12-22 06:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:42:16] Production.INFO: count ==19 [2024-12-22 06:42:16] Production.ERROR: pbx CDR StartTime 2024-12-22 03:42:04 - End Time 2024-12-22 06:42:04 [2024-12-22 06:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075736', 'tblTempUsageDetail_20' ) start [2024-12-22 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075736', 'tblTempUsageDetail_20' ) end [2024-12-22 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075736', 'tblTempVendorCDR_20' ) start [2024-12-22 06:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075736', 'tblTempVendorCDR_20' ) end [2024-12-22 06:42:16] Production.INFO: ProcessCDR(1,14075736,1,1,2) [2024-12-22 06:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:42:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075736', 'tblTempUsageDetail_20' ) start [2024-12-22 06:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075736', 'tblTempUsageDetail_20' ) end [2024-12-22 06:42:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:42:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:42:19] Production.INFO: ==23161== Releasing lock... [2024-12-22 06:42:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:42:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:43:04 [end_date_ymd] => 2024-12-22 06:43:04 [RateCDR] => 1 ) [2024-12-22 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:43:04' and `end` < '2024-12-22 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:43:17] Production.INFO: count ==18 [2024-12-22 06:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:43:04 - End Time 2024-12-22 06:43:04 [2024-12-22 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075741', 'tblTempUsageDetail_20' ) start [2024-12-22 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075741', 'tblTempUsageDetail_20' ) end [2024-12-22 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075741', 'tblTempVendorCDR_20' ) start [2024-12-22 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075741', 'tblTempVendorCDR_20' ) end [2024-12-22 06:43:17] Production.INFO: ProcessCDR(1,14075741,1,1,2) [2024-12-22 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075741', 'tblTempUsageDetail_20' ) start [2024-12-22 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075741', 'tblTempUsageDetail_20' ) end [2024-12-22 06:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:43:20] Production.INFO: ==23232== Releasing lock... [2024-12-22 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:43:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:44:05 [end_date_ymd] => 2024-12-22 06:44:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:44:05' and `end` < '2024-12-22 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-22 06:44:18] Production.INFO: count ==18 [2024-12-22 06:44:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:44:05 - End Time 2024-12-22 06:44:05 [2024-12-22 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075746', 'tblTempUsageDetail_20' ) start [2024-12-22 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075746', 'tblTempUsageDetail_20' ) end [2024-12-22 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075746', 'tblTempVendorCDR_20' ) start [2024-12-22 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075746', 'tblTempVendorCDR_20' ) end [2024-12-22 06:44:18] Production.INFO: ProcessCDR(1,14075746,1,1,2) [2024-12-22 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075746', 'tblTempUsageDetail_20' ) start [2024-12-22 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075746', 'tblTempUsageDetail_20' ) end [2024-12-22 06:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:44:21] Production.INFO: ==23307== Releasing lock... [2024-12-22 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:44:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:45:05 [end_date_ymd] => 2024-12-22 06:45:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:45:05' and `end` < '2024-12-22 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-22 06:45:18] Production.INFO: count ==18 [2024-12-22 06:45:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:45:05 - End Time 2024-12-22 06:45:05 [2024-12-22 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075751', 'tblTempUsageDetail_20' ) start [2024-12-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075751', 'tblTempUsageDetail_20' ) end [2024-12-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075751', 'tblTempVendorCDR_20' ) start [2024-12-22 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075751', 'tblTempVendorCDR_20' ) end [2024-12-22 06:45:18] Production.INFO: ProcessCDR(1,14075751,1,1,2) [2024-12-22 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075751', 'tblTempUsageDetail_20' ) start [2024-12-22 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075751', 'tblTempUsageDetail_20' ) end [2024-12-22 06:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:45:21] Production.INFO: ==23378== Releasing lock... [2024-12-22 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:45:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:46:05 [end_date_ymd] => 2024-12-22 06:46:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:46:05' and `end` < '2024-12-22 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-22 06:46:18] Production.INFO: count ==18 [2024-12-22 06:46:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:46:05 - End Time 2024-12-22 06:46:05 [2024-12-22 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075756', 'tblTempUsageDetail_20' ) start [2024-12-22 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075756', 'tblTempUsageDetail_20' ) end [2024-12-22 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075756', 'tblTempVendorCDR_20' ) start [2024-12-22 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075756', 'tblTempVendorCDR_20' ) end [2024-12-22 06:46:18] Production.INFO: ProcessCDR(1,14075756,1,1,2) [2024-12-22 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075756', 'tblTempUsageDetail_20' ) start [2024-12-22 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075756', 'tblTempUsageDetail_20' ) end [2024-12-22 06:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:46:21] Production.INFO: ==23447== Releasing lock... [2024-12-22 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:46:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:47:05 [end_date_ymd] => 2024-12-22 06:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:47:05' and `end` < '2024-12-22 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-22 06:47:17] Production.INFO: count ==18 [2024-12-22 06:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:47:05 - End Time 2024-12-22 06:47:05 [2024-12-22 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075761', 'tblTempUsageDetail_20' ) start [2024-12-22 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075761', 'tblTempUsageDetail_20' ) end [2024-12-22 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075761', 'tblTempVendorCDR_20' ) start [2024-12-22 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075761', 'tblTempVendorCDR_20' ) end [2024-12-22 06:47:17] Production.INFO: ProcessCDR(1,14075761,1,1,2) [2024-12-22 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075761', 'tblTempUsageDetail_20' ) start [2024-12-22 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075761', 'tblTempUsageDetail_20' ) end [2024-12-22 06:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:47:20] Production.INFO: ==23524== Releasing lock... [2024-12-22 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:47:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:48:04 [end_date_ymd] => 2024-12-22 06:48:04 [RateCDR] => 1 ) [2024-12-22 06:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:48:04' and `end` < '2024-12-22 06:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:48:16] Production.INFO: count ==18 [2024-12-22 06:48:16] Production.ERROR: pbx CDR StartTime 2024-12-22 03:48:04 - End Time 2024-12-22 06:48:04 [2024-12-22 06:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075766', 'tblTempUsageDetail_20' ) start [2024-12-22 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075766', 'tblTempUsageDetail_20' ) end [2024-12-22 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075766', 'tblTempVendorCDR_20' ) start [2024-12-22 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075766', 'tblTempVendorCDR_20' ) end [2024-12-22 06:48:16] Production.INFO: ProcessCDR(1,14075766,1,1,2) [2024-12-22 06:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075766', 'tblTempUsageDetail_20' ) start [2024-12-22 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075766', 'tblTempUsageDetail_20' ) end [2024-12-22 06:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:48:20] Production.INFO: ==23592== Releasing lock... [2024-12-22 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:48:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:49:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:49:06 [end_date_ymd] => 2024-12-22 06:49:06 [RateCDR] => 1 ) [2024-12-22 06:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:49:06' and `end` < '2024-12-22 06:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:49:18] Production.INFO: count ==18 [2024-12-22 06:49:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:49:06 - End Time 2024-12-22 06:49:06 [2024-12-22 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075771', 'tblTempUsageDetail_20' ) start [2024-12-22 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075771', 'tblTempUsageDetail_20' ) end [2024-12-22 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075771', 'tblTempVendorCDR_20' ) start [2024-12-22 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075771', 'tblTempVendorCDR_20' ) end [2024-12-22 06:49:18] Production.INFO: ProcessCDR(1,14075771,1,1,2) [2024-12-22 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075771', 'tblTempUsageDetail_20' ) start [2024-12-22 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075771', 'tblTempUsageDetail_20' ) end [2024-12-22 06:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:49:22] Production.INFO: ==23666== Releasing lock... [2024-12-22 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:49:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:50:05 [end_date_ymd] => 2024-12-22 06:50:05 [RateCDR] => 1 ) [2024-12-22 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:50:05' and `end` < '2024-12-22 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:50:18] Production.INFO: count ==18 [2024-12-22 06:50:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:50:05 - End Time 2024-12-22 06:50:05 [2024-12-22 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075775', 'tblTempUsageDetail_20' ) start [2024-12-22 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075775', 'tblTempUsageDetail_20' ) end [2024-12-22 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075775', 'tblTempVendorCDR_20' ) start [2024-12-22 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075775', 'tblTempVendorCDR_20' ) end [2024-12-22 06:50:18] Production.INFO: ProcessCDR(1,14075775,1,1,2) [2024-12-22 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075775', 'tblTempUsageDetail_20' ) start [2024-12-22 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075775', 'tblTempUsageDetail_20' ) end [2024-12-22 06:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:50:21] Production.INFO: ==23740== Releasing lock... [2024-12-22 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:50:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:51:05 [end_date_ymd] => 2024-12-22 06:51:05 [RateCDR] => 1 ) [2024-12-22 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:51:05' and `end` < '2024-12-22 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:51:18] Production.INFO: count ==18 [2024-12-22 06:51:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:51:05 - End Time 2024-12-22 06:51:05 [2024-12-22 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075782', 'tblTempUsageDetail_20' ) start [2024-12-22 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075782', 'tblTempUsageDetail_20' ) end [2024-12-22 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075782', 'tblTempVendorCDR_20' ) start [2024-12-22 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075782', 'tblTempVendorCDR_20' ) end [2024-12-22 06:51:18] Production.INFO: ProcessCDR(1,14075782,1,1,2) [2024-12-22 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075782', 'tblTempUsageDetail_20' ) start [2024-12-22 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075782', 'tblTempUsageDetail_20' ) end [2024-12-22 06:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:51:21] Production.INFO: ==23819== Releasing lock... [2024-12-22 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:51:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:52:05 [end_date_ymd] => 2024-12-22 06:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:52:05' and `end` < '2024-12-22 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-22 06:52:17] Production.INFO: count ==18 [2024-12-22 06:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:52:05 - End Time 2024-12-22 06:52:05 [2024-12-22 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075787', 'tblTempUsageDetail_20' ) start [2024-12-22 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075787', 'tblTempUsageDetail_20' ) end [2024-12-22 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075787', 'tblTempVendorCDR_20' ) start [2024-12-22 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075787', 'tblTempVendorCDR_20' ) end [2024-12-22 06:52:17] Production.INFO: ProcessCDR(1,14075787,1,1,2) [2024-12-22 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075787', 'tblTempUsageDetail_20' ) start [2024-12-22 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075787', 'tblTempUsageDetail_20' ) end [2024-12-22 06:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:52:20] Production.INFO: ==23893== Releasing lock... [2024-12-22 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:52:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:53:05 [end_date_ymd] => 2024-12-22 06:53:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:53:05' and `end` < '2024-12-22 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-22 06:53:18] Production.INFO: count ==18 [2024-12-22 06:53:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:53:05 - End Time 2024-12-22 06:53:05 [2024-12-22 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075792', 'tblTempUsageDetail_20' ) start [2024-12-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075792', 'tblTempUsageDetail_20' ) end [2024-12-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075792', 'tblTempVendorCDR_20' ) start [2024-12-22 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075792', 'tblTempVendorCDR_20' ) end [2024-12-22 06:53:18] Production.INFO: ProcessCDR(1,14075792,1,1,2) [2024-12-22 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075792', 'tblTempUsageDetail_20' ) start [2024-12-22 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075792', 'tblTempUsageDetail_20' ) end [2024-12-22 06:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:53:21] Production.INFO: ==24009== Releasing lock... [2024-12-22 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:53:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:54:04 [end_date_ymd] => 2024-12-22 06:54:04 [RateCDR] => 1 ) [2024-12-22 06:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:54:04' and `end` < '2024-12-22 06:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:54:17] Production.INFO: count ==18 [2024-12-22 06:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:54:04 - End Time 2024-12-22 06:54:04 [2024-12-22 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075797', 'tblTempUsageDetail_20' ) start [2024-12-22 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075797', 'tblTempUsageDetail_20' ) end [2024-12-22 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075797', 'tblTempVendorCDR_20' ) start [2024-12-22 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075797', 'tblTempVendorCDR_20' ) end [2024-12-22 06:54:17] Production.INFO: ProcessCDR(1,14075797,1,1,2) [2024-12-22 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075797', 'tblTempUsageDetail_20' ) start [2024-12-22 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075797', 'tblTempUsageDetail_20' ) end [2024-12-22 06:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:54:20] Production.INFO: ==24079== Releasing lock... [2024-12-22 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:54:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:55:05 [end_date_ymd] => 2024-12-22 06:55:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:55:05' and `end` < '2024-12-22 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-22 06:55:17] Production.INFO: count ==18 [2024-12-22 06:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:55:05 - End Time 2024-12-22 06:55:05 [2024-12-22 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075802', 'tblTempUsageDetail_20' ) start [2024-12-22 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075802', 'tblTempUsageDetail_20' ) end [2024-12-22 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075802', 'tblTempVendorCDR_20' ) start [2024-12-22 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075802', 'tblTempVendorCDR_20' ) end [2024-12-22 06:55:17] Production.INFO: ProcessCDR(1,14075802,1,1,2) [2024-12-22 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075802', 'tblTempUsageDetail_20' ) start [2024-12-22 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075802', 'tblTempUsageDetail_20' ) end [2024-12-22 06:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:55:20] Production.INFO: ==24150== Releasing lock... [2024-12-22 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:55:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:56:05 [end_date_ymd] => 2024-12-22 06:56:05 [RateCDR] => 1 ) [2024-12-22 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 03:56:05' and `end` < '2024-12-22 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:56:18] Production.INFO: count ==18 [2024-12-22 06:56:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:56:05 - End Time 2024-12-22 06:56:05 [2024-12-22 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075807', 'tblTempUsageDetail_20' ) start [2024-12-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075807', 'tblTempUsageDetail_20' ) end [2024-12-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075807', 'tblTempVendorCDR_20' ) start [2024-12-22 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075807', 'tblTempVendorCDR_20' ) end [2024-12-22 06:56:18] Production.INFO: ProcessCDR(1,14075807,1,1,2) [2024-12-22 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075807', 'tblTempUsageDetail_20' ) start [2024-12-22 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075807', 'tblTempUsageDetail_20' ) end [2024-12-22 06:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:56:21] Production.INFO: ==24221== Releasing lock... [2024-12-22 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:56:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:57:05 [end_date_ymd] => 2024-12-22 06:57:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:57:05' and `end` < '2024-12-22 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-22 06:57:17] Production.INFO: count ==18 [2024-12-22 06:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:57:05 - End Time 2024-12-22 06:57:05 [2024-12-22 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075812', 'tblTempUsageDetail_20' ) start [2024-12-22 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075812', 'tblTempUsageDetail_20' ) end [2024-12-22 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075812', 'tblTempVendorCDR_20' ) start [2024-12-22 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075812', 'tblTempVendorCDR_20' ) end [2024-12-22 06:57:17] Production.INFO: ProcessCDR(1,14075812,1,1,2) [2024-12-22 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075812', 'tblTempUsageDetail_20' ) start [2024-12-22 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075812', 'tblTempUsageDetail_20' ) end [2024-12-22 06:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:57:20] Production.INFO: ==24293== Releasing lock... [2024-12-22 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:57:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:58:05 [end_date_ymd] => 2024-12-22 06:58:05 [RateCDR] => 1 ) [2024-12-22 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-22 03:58:05' and `end` < '2024-12-22 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-22 06:58:18] Production.INFO: count ==18 [2024-12-22 06:58:18] Production.ERROR: pbx CDR StartTime 2024-12-22 03:58:05 - End Time 2024-12-22 06:58:05 [2024-12-22 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075817', 'tblTempUsageDetail_20' ) start [2024-12-22 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075817', 'tblTempUsageDetail_20' ) end [2024-12-22 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075817', 'tblTempVendorCDR_20' ) start [2024-12-22 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075817', 'tblTempVendorCDR_20' ) end [2024-12-22 06:58:18] Production.INFO: ProcessCDR(1,14075817,1,1,2) [2024-12-22 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075817', 'tblTempUsageDetail_20' ) start [2024-12-22 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075817', 'tblTempUsageDetail_20' ) end [2024-12-22 06:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:58:21] Production.INFO: ==24368== Releasing lock... [2024-12-22 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:58:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 03:59:04 [end_date_ymd] => 2024-12-22 06:59:04 [RateCDR] => 1 ) [2024-12-22 06: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-22 03:59:04' and `end` < '2024-12-22 06:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 06:59:17] Production.INFO: count ==18 [2024-12-22 06:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 03:59:04 - End Time 2024-12-22 06:59:04 [2024-12-22 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075822', 'tblTempUsageDetail_20' ) start [2024-12-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075822', 'tblTempUsageDetail_20' ) end [2024-12-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075822', 'tblTempVendorCDR_20' ) start [2024-12-22 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075822', 'tblTempVendorCDR_20' ) end [2024-12-22 06:59:17] Production.INFO: ProcessCDR(1,14075822,1,1,2) [2024-12-22 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075822', 'tblTempUsageDetail_20' ) start [2024-12-22 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075822', 'tblTempUsageDetail_20' ) end [2024-12-22 06:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 06:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 06:59:20] Production.INFO: ==24436== Releasing lock... [2024-12-22 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 06:59:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:00:06 [end_date_ymd] => 2024-12-22 07:00:06 [RateCDR] => 1 ) [2024-12-22 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:00:06' and `end` < '2024-12-22 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:00:18] Production.INFO: count ==10 [2024-12-22 07:00:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:00:06 - End Time 2024-12-22 07:00:06 [2024-12-22 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075827', 'tblTempUsageDetail_20' ) start [2024-12-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075827', 'tblTempUsageDetail_20' ) end [2024-12-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075827', 'tblTempVendorCDR_20' ) start [2024-12-22 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075827', 'tblTempVendorCDR_20' ) end [2024-12-22 07:00:18] Production.INFO: ProcessCDR(1,14075827,1,1,2) [2024-12-22 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075827', 'tblTempUsageDetail_20' ) start [2024-12-22 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075827', 'tblTempUsageDetail_20' ) end [2024-12-22 07:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:00:21] Production.INFO: ==24511== Releasing lock... [2024-12-22 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:00:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:01:05 [end_date_ymd] => 2024-12-22 07:01:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:01:05' and `end` < '2024-12-22 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-22 07:01:20] Production.INFO: count ==10 [2024-12-22 07:01:20] Production.ERROR: pbx CDR StartTime 2024-12-22 04:01:05 - End Time 2024-12-22 07:01:05 [2024-12-22 07:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075833', 'tblTempUsageDetail_20' ) start [2024-12-22 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075833', 'tblTempUsageDetail_20' ) end [2024-12-22 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075833', 'tblTempVendorCDR_20' ) start [2024-12-22 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075833', 'tblTempVendorCDR_20' ) end [2024-12-22 07:01:20] Production.INFO: ProcessCDR(1,14075833,1,1,2) [2024-12-22 07:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075833', 'tblTempUsageDetail_20' ) start [2024-12-22 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075833', 'tblTempUsageDetail_20' ) end [2024-12-22 07:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:01:23] Production.INFO: ==24672== Releasing lock... [2024-12-22 07:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:01:23] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 07:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:02:04 [end_date_ymd] => 2024-12-22 07:02:04 [RateCDR] => 1 ) [2024-12-22 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-22 04:02:04' and `end` < '2024-12-22 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-22 07:02:17] Production.INFO: count ==9 [2024-12-22 07:02:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:02:04 - End Time 2024-12-22 07:02:04 [2024-12-22 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075838', 'tblTempUsageDetail_20' ) start [2024-12-22 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075838', 'tblTempUsageDetail_20' ) end [2024-12-22 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075838', 'tblTempVendorCDR_20' ) start [2024-12-22 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075838', 'tblTempVendorCDR_20' ) end [2024-12-22 07:02:17] Production.INFO: ProcessCDR(1,14075838,1,1,2) [2024-12-22 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075838', 'tblTempUsageDetail_20' ) start [2024-12-22 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075838', 'tblTempUsageDetail_20' ) end [2024-12-22 07:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:02:20] Production.INFO: ==24743== Releasing lock... [2024-12-22 07:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:02:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:03:04 [end_date_ymd] => 2024-12-22 07:03:04 [RateCDR] => 1 ) [2024-12-22 07: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-22 04:03:04' and `end` < '2024-12-22 07: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-22 07:03:18] Production.INFO: count ==9 [2024-12-22 07:03:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:03:04 - End Time 2024-12-22 07:03:04 [2024-12-22 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075843', 'tblTempUsageDetail_20' ) start [2024-12-22 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075843', 'tblTempUsageDetail_20' ) end [2024-12-22 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075843', 'tblTempVendorCDR_20' ) start [2024-12-22 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075843', 'tblTempVendorCDR_20' ) end [2024-12-22 07:03:18] Production.INFO: ProcessCDR(1,14075843,1,1,2) [2024-12-22 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075843', 'tblTempUsageDetail_20' ) start [2024-12-22 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075843', 'tblTempUsageDetail_20' ) end [2024-12-22 07:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:03:21] Production.INFO: ==24814== Releasing lock... [2024-12-22 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:03:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:04:05 [end_date_ymd] => 2024-12-22 07:04:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:04:05' and `end` < '2024-12-22 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-22 07:04:18] Production.INFO: count ==9 [2024-12-22 07:04:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:04:05 - End Time 2024-12-22 07:04:05 [2024-12-22 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075848', 'tblTempUsageDetail_20' ) start [2024-12-22 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075848', 'tblTempUsageDetail_20' ) end [2024-12-22 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075848', 'tblTempVendorCDR_20' ) start [2024-12-22 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075848', 'tblTempVendorCDR_20' ) end [2024-12-22 07:04:18] Production.INFO: ProcessCDR(1,14075848,1,1,2) [2024-12-22 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075848', 'tblTempUsageDetail_20' ) start [2024-12-22 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075848', 'tblTempUsageDetail_20' ) end [2024-12-22 07:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:04:21] Production.INFO: ==24887== Releasing lock... [2024-12-22 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:04:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:05:05 [end_date_ymd] => 2024-12-22 07:05:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:05:05' and `end` < '2024-12-22 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-22 07:05:17] Production.INFO: count ==9 [2024-12-22 07:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:05:05 - End Time 2024-12-22 07:05:05 [2024-12-22 07:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075853', 'tblTempUsageDetail_20' ) start [2024-12-22 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075853', 'tblTempUsageDetail_20' ) end [2024-12-22 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075853', 'tblTempVendorCDR_20' ) start [2024-12-22 07:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075853', 'tblTempVendorCDR_20' ) end [2024-12-22 07:05:17] Production.INFO: ProcessCDR(1,14075853,1,1,2) [2024-12-22 07:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075853', 'tblTempUsageDetail_20' ) start [2024-12-22 07:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075853', 'tblTempUsageDetail_20' ) end [2024-12-22 07:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:05:20] Production.INFO: ==25039== Releasing lock... [2024-12-22 07:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:05:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:06:05 [end_date_ymd] => 2024-12-22 07:06:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:06:05' and `end` < '2024-12-22 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-22 07:06:18] Production.INFO: count ==9 [2024-12-22 07:06:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:06:05 - End Time 2024-12-22 07:06:05 [2024-12-22 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075858', 'tblTempUsageDetail_20' ) start [2024-12-22 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075858', 'tblTempUsageDetail_20' ) end [2024-12-22 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075858', 'tblTempVendorCDR_20' ) start [2024-12-22 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075858', 'tblTempVendorCDR_20' ) end [2024-12-22 07:06:18] Production.INFO: ProcessCDR(1,14075858,1,1,2) [2024-12-22 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075858', 'tblTempUsageDetail_20' ) start [2024-12-22 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075858', 'tblTempUsageDetail_20' ) end [2024-12-22 07:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:06:21] Production.INFO: ==25110== Releasing lock... [2024-12-22 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:06:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:07:05 [end_date_ymd] => 2024-12-22 07:07:05 [RateCDR] => 1 ) [2024-12-22 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:07:05' and `end` < '2024-12-22 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:07:18] Production.INFO: count ==9 [2024-12-22 07:07:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:07:05 - End Time 2024-12-22 07:07:05 [2024-12-22 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075863', 'tblTempUsageDetail_20' ) start [2024-12-22 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075863', 'tblTempUsageDetail_20' ) end [2024-12-22 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075863', 'tblTempVendorCDR_20' ) start [2024-12-22 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075863', 'tblTempVendorCDR_20' ) end [2024-12-22 07:07:18] Production.INFO: ProcessCDR(1,14075863,1,1,2) [2024-12-22 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075863', 'tblTempUsageDetail_20' ) start [2024-12-22 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075863', 'tblTempUsageDetail_20' ) end [2024-12-22 07:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:07:21] Production.INFO: ==25182== Releasing lock... [2024-12-22 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:07:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:08:05 [end_date_ymd] => 2024-12-22 07:08:05 [RateCDR] => 1 ) [2024-12-22 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:08:05' and `end` < '2024-12-22 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:08:18] Production.INFO: count ==9 [2024-12-22 07:08:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:08:05 - End Time 2024-12-22 07:08:05 [2024-12-22 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075868', 'tblTempUsageDetail_20' ) start [2024-12-22 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075868', 'tblTempUsageDetail_20' ) end [2024-12-22 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075868', 'tblTempVendorCDR_20' ) start [2024-12-22 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075868', 'tblTempVendorCDR_20' ) end [2024-12-22 07:08:18] Production.INFO: ProcessCDR(1,14075868,1,1,2) [2024-12-22 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075868', 'tblTempUsageDetail_20' ) start [2024-12-22 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075868', 'tblTempUsageDetail_20' ) end [2024-12-22 07:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:08:21] Production.INFO: ==25369== Releasing lock... [2024-12-22 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:08:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:09:04 [end_date_ymd] => 2024-12-22 07:09:04 [RateCDR] => 1 ) [2024-12-22 07:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:09:04' and `end` < '2024-12-22 07:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:09:17] Production.INFO: count ==9 [2024-12-22 07:09:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:09:04 - End Time 2024-12-22 07:09:04 [2024-12-22 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075873', 'tblTempUsageDetail_20' ) start [2024-12-22 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075873', 'tblTempUsageDetail_20' ) end [2024-12-22 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075873', 'tblTempVendorCDR_20' ) start [2024-12-22 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075873', 'tblTempVendorCDR_20' ) end [2024-12-22 07:09:17] Production.INFO: ProcessCDR(1,14075873,1,1,2) [2024-12-22 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075873', 'tblTempUsageDetail_20' ) start [2024-12-22 07:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075873', 'tblTempUsageDetail_20' ) end [2024-12-22 07:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:09:20] Production.INFO: ==25440== Releasing lock... [2024-12-22 07:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:09:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:10:05 [end_date_ymd] => 2024-12-22 07:10:05 [RateCDR] => 1 ) [2024-12-22 07:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:10:05' and `end` < '2024-12-22 07:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:10:19] Production.INFO: count ==9 [2024-12-22 07:10:19] Production.ERROR: pbx CDR StartTime 2024-12-22 04:10:05 - End Time 2024-12-22 07:10:05 [2024-12-22 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075878', 'tblTempUsageDetail_20' ) start [2024-12-22 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075878', 'tblTempUsageDetail_20' ) end [2024-12-22 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075878', 'tblTempVendorCDR_20' ) start [2024-12-22 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075878', 'tblTempVendorCDR_20' ) end [2024-12-22 07:10:19] Production.INFO: ProcessCDR(1,14075878,1,1,2) [2024-12-22 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075878', 'tblTempUsageDetail_20' ) start [2024-12-22 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075878', 'tblTempUsageDetail_20' ) end [2024-12-22 07:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:10:22] Production.INFO: ==25513== Releasing lock... [2024-12-22 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:10:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:11:04 [end_date_ymd] => 2024-12-22 07:11:04 [RateCDR] => 1 ) [2024-12-22 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-22 04:11:04' and `end` < '2024-12-22 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-22 07:11:17] Production.INFO: count ==9 [2024-12-22 07:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:11:04 - End Time 2024-12-22 07:11:04 [2024-12-22 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075884', 'tblTempUsageDetail_20' ) start [2024-12-22 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075884', 'tblTempUsageDetail_20' ) end [2024-12-22 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075884', 'tblTempVendorCDR_20' ) start [2024-12-22 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075884', 'tblTempVendorCDR_20' ) end [2024-12-22 07:11:17] Production.INFO: ProcessCDR(1,14075884,1,1,2) [2024-12-22 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075884', 'tblTempUsageDetail_20' ) start [2024-12-22 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075884', 'tblTempUsageDetail_20' ) end [2024-12-22 07:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:11:21] Production.INFO: ==25584== Releasing lock... [2024-12-22 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:11:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:12:05 [end_date_ymd] => 2024-12-22 07:12:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:12:05' and `end` < '2024-12-22 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-22 07:12:19] Production.INFO: count ==9 [2024-12-22 07:12:19] Production.ERROR: pbx CDR StartTime 2024-12-22 04:12:05 - End Time 2024-12-22 07:12:05 [2024-12-22 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075889', 'tblTempUsageDetail_20' ) start [2024-12-22 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075889', 'tblTempUsageDetail_20' ) end [2024-12-22 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075889', 'tblTempVendorCDR_20' ) start [2024-12-22 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075889', 'tblTempVendorCDR_20' ) end [2024-12-22 07:12:19] Production.INFO: ProcessCDR(1,14075889,1,1,2) [2024-12-22 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075889', 'tblTempUsageDetail_20' ) start [2024-12-22 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075889', 'tblTempUsageDetail_20' ) end [2024-12-22 07:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:12:22] Production.INFO: ==25740== Releasing lock... [2024-12-22 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:12:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:13:04 [end_date_ymd] => 2024-12-22 07:13:04 [RateCDR] => 1 ) [2024-12-22 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-22 04:13:04' and `end` < '2024-12-22 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-22 07:13:17] Production.INFO: count ==9 [2024-12-22 07:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:13:04 - End Time 2024-12-22 07:13:04 [2024-12-22 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075894', 'tblTempUsageDetail_20' ) start [2024-12-22 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075894', 'tblTempUsageDetail_20' ) end [2024-12-22 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075894', 'tblTempVendorCDR_20' ) start [2024-12-22 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075894', 'tblTempVendorCDR_20' ) end [2024-12-22 07:13:17] Production.INFO: ProcessCDR(1,14075894,1,1,2) [2024-12-22 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075894', 'tblTempUsageDetail_20' ) start [2024-12-22 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075894', 'tblTempUsageDetail_20' ) end [2024-12-22 07:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:13:20] Production.INFO: ==25812== Releasing lock... [2024-12-22 07:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:13:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:14:04 [end_date_ymd] => 2024-12-22 07:14:04 [RateCDR] => 1 ) [2024-12-22 07:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:14:04' and `end` < '2024-12-22 07:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:14:17] Production.INFO: count ==9 [2024-12-22 07:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:14:04 - End Time 2024-12-22 07:14:04 [2024-12-22 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075899', 'tblTempUsageDetail_20' ) start [2024-12-22 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075899', 'tblTempUsageDetail_20' ) end [2024-12-22 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075899', 'tblTempVendorCDR_20' ) start [2024-12-22 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075899', 'tblTempVendorCDR_20' ) end [2024-12-22 07:14:17] Production.INFO: ProcessCDR(1,14075899,1,1,2) [2024-12-22 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075899', 'tblTempUsageDetail_20' ) start [2024-12-22 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075899', 'tblTempUsageDetail_20' ) end [2024-12-22 07:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:14:20] Production.INFO: ==25881== Releasing lock... [2024-12-22 07:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:14:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:15:05 [end_date_ymd] => 2024-12-22 07:15:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:15:05' and `end` < '2024-12-22 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-22 07:15:18] Production.INFO: count ==9 [2024-12-22 07:15:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:15:05 - End Time 2024-12-22 07:15:05 [2024-12-22 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075904', 'tblTempUsageDetail_20' ) start [2024-12-22 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075904', 'tblTempUsageDetail_20' ) end [2024-12-22 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075904', 'tblTempVendorCDR_20' ) start [2024-12-22 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075904', 'tblTempVendorCDR_20' ) end [2024-12-22 07:15:18] Production.INFO: ProcessCDR(1,14075904,1,1,2) [2024-12-22 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075904', 'tblTempUsageDetail_20' ) start [2024-12-22 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075904', 'tblTempUsageDetail_20' ) end [2024-12-22 07:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:15:21] Production.INFO: ==26032== Releasing lock... [2024-12-22 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:15:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:16:04 [end_date_ymd] => 2024-12-22 07:16:04 [RateCDR] => 1 ) [2024-12-22 07: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-22 04:16:04' and `end` < '2024-12-22 07: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-22 07:16:17] Production.INFO: count ==9 [2024-12-22 07:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:16:04 - End Time 2024-12-22 07:16:04 [2024-12-22 07:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075909', 'tblTempUsageDetail_20' ) start [2024-12-22 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075909', 'tblTempUsageDetail_20' ) end [2024-12-22 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075909', 'tblTempVendorCDR_20' ) start [2024-12-22 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075909', 'tblTempVendorCDR_20' ) end [2024-12-22 07:16:17] Production.INFO: ProcessCDR(1,14075909,1,1,2) [2024-12-22 07:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075909', 'tblTempUsageDetail_20' ) start [2024-12-22 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075909', 'tblTempUsageDetail_20' ) end [2024-12-22 07:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:16:21] Production.INFO: ==26101== Releasing lock... [2024-12-22 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:16:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:17:05 [end_date_ymd] => 2024-12-22 07:17:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:17:05' and `end` < '2024-12-22 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-22 07:17:17] Production.INFO: count ==9 [2024-12-22 07:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:17:05 - End Time 2024-12-22 07:17:05 [2024-12-22 07:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075914', 'tblTempUsageDetail_20' ) start [2024-12-22 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075914', 'tblTempUsageDetail_20' ) end [2024-12-22 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075914', 'tblTempVendorCDR_20' ) start [2024-12-22 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075914', 'tblTempVendorCDR_20' ) end [2024-12-22 07:17:17] Production.INFO: ProcessCDR(1,14075914,1,1,2) [2024-12-22 07:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075914', 'tblTempUsageDetail_20' ) start [2024-12-22 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075914', 'tblTempUsageDetail_20' ) end [2024-12-22 07:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:17:20] Production.INFO: ==26174== Releasing lock... [2024-12-22 07:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:17:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:18:05 [end_date_ymd] => 2024-12-22 07:18:05 [RateCDR] => 1 ) [2024-12-22 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:18:05' and `end` < '2024-12-22 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:18:17] Production.INFO: count ==9 [2024-12-22 07:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:18:05 - End Time 2024-12-22 07:18:05 [2024-12-22 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075919', 'tblTempUsageDetail_20' ) start [2024-12-22 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075919', 'tblTempUsageDetail_20' ) end [2024-12-22 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075919', 'tblTempVendorCDR_20' ) start [2024-12-22 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075919', 'tblTempVendorCDR_20' ) end [2024-12-22 07:18:17] Production.INFO: ProcessCDR(1,14075919,1,1,2) [2024-12-22 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075919', 'tblTempUsageDetail_20' ) start [2024-12-22 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075919', 'tblTempUsageDetail_20' ) end [2024-12-22 07:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:18:20] Production.INFO: ==26245== Releasing lock... [2024-12-22 07:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:18:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:19:05 [end_date_ymd] => 2024-12-22 07:19:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:19:05' and `end` < '2024-12-22 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-22 07:19:17] Production.INFO: count ==9 [2024-12-22 07:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:19:05 - End Time 2024-12-22 07:19:05 [2024-12-22 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075924', 'tblTempUsageDetail_20' ) start [2024-12-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075924', 'tblTempUsageDetail_20' ) end [2024-12-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075924', 'tblTempVendorCDR_20' ) start [2024-12-22 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075924', 'tblTempVendorCDR_20' ) end [2024-12-22 07:19:17] Production.INFO: ProcessCDR(1,14075924,1,1,2) [2024-12-22 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075924', 'tblTempUsageDetail_20' ) start [2024-12-22 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075924', 'tblTempUsageDetail_20' ) end [2024-12-22 07:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:19:21] Production.INFO: ==26334== Releasing lock... [2024-12-22 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:19:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:20:06 [end_date_ymd] => 2024-12-22 07:20:06 [RateCDR] => 1 ) [2024-12-22 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:20:06' and `end` < '2024-12-22 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:20:18] Production.INFO: count ==9 [2024-12-22 07:20:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:20:06 - End Time 2024-12-22 07:20:06 [2024-12-22 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075930', 'tblTempUsageDetail_20' ) start [2024-12-22 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075930', 'tblTempUsageDetail_20' ) end [2024-12-22 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075930', 'tblTempVendorCDR_20' ) start [2024-12-22 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075930', 'tblTempVendorCDR_20' ) end [2024-12-22 07:20:18] Production.INFO: ProcessCDR(1,14075930,1,1,2) [2024-12-22 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075930', 'tblTempUsageDetail_20' ) start [2024-12-22 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075930', 'tblTempUsageDetail_20' ) end [2024-12-22 07:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:20:22] Production.INFO: ==26408== Releasing lock... [2024-12-22 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:20:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:21:05 [end_date_ymd] => 2024-12-22 07:21:05 [RateCDR] => 1 ) [2024-12-22 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:21:05' and `end` < '2024-12-22 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:21:56] Production.INFO: count ==9 [2024-12-22 07:21:56] Production.ERROR: pbx CDR StartTime 2024-12-22 04:21:05 - End Time 2024-12-22 07:21:05 [2024-12-22 07:21:56] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:21:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075935', 'tblTempUsageDetail_20' ) start [2024-12-22 07:21:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075935', 'tblTempUsageDetail_20' ) end [2024-12-22 07:21:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075935', 'tblTempVendorCDR_20' ) start [2024-12-22 07:21:56] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075935', 'tblTempVendorCDR_20' ) end [2024-12-22 07:21:56] Production.INFO: ProcessCDR(1,14075935,1,1,2) [2024-12-22 07:21:56] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:21:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:21:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:22:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:22:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075935', 'tblTempUsageDetail_20' ) start [2024-12-22 07:22:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075935', 'tblTempUsageDetail_20' ) end [2024-12-22 07:22:00] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:22:00] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:22:00] Production.INFO: ==26485== Releasing lock... [2024-12-22 07:22:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:22:00] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:22:05 [end_date_ymd] => 2024-12-22 07:22:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:22:05' and `end` < '2024-12-22 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-22 07:22:17] Production.INFO: count ==9 [2024-12-22 07:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:22:05 - End Time 2024-12-22 07:22:05 [2024-12-22 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075940', 'tblTempUsageDetail_20' ) start [2024-12-22 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075940', 'tblTempUsageDetail_20' ) end [2024-12-22 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075940', 'tblTempVendorCDR_20' ) start [2024-12-22 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075940', 'tblTempVendorCDR_20' ) end [2024-12-22 07:22:17] Production.INFO: ProcessCDR(1,14075940,1,1,2) [2024-12-22 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075940', 'tblTempUsageDetail_20' ) start [2024-12-22 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075940', 'tblTempUsageDetail_20' ) end [2024-12-22 07:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:22:20] Production.INFO: ==26556== Releasing lock... [2024-12-22 07:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:22:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:23:04 [end_date_ymd] => 2024-12-22 07:23:04 [RateCDR] => 1 ) [2024-12-22 07: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-22 04:23:04' and `end` < '2024-12-22 07:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:23:16] Production.INFO: count ==9 [2024-12-22 07:23:16] Production.ERROR: pbx CDR StartTime 2024-12-22 04:23:04 - End Time 2024-12-22 07:23:04 [2024-12-22 07:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075945', 'tblTempUsageDetail_20' ) start [2024-12-22 07:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075945', 'tblTempUsageDetail_20' ) end [2024-12-22 07:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075945', 'tblTempVendorCDR_20' ) start [2024-12-22 07:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075945', 'tblTempVendorCDR_20' ) end [2024-12-22 07:23:16] Production.INFO: ProcessCDR(1,14075945,1,1,2) [2024-12-22 07:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075945', 'tblTempUsageDetail_20' ) start [2024-12-22 07:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075945', 'tblTempUsageDetail_20' ) end [2024-12-22 07:23:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:23:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:23:19] Production.INFO: ==26624== Releasing lock... [2024-12-22 07:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:23:19] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:24:05 [end_date_ymd] => 2024-12-22 07:24:05 [RateCDR] => 1 ) [2024-12-22 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:24:05' and `end` < '2024-12-22 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:24:18] Production.INFO: count ==9 [2024-12-22 07:24:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:24:05 - End Time 2024-12-22 07:24:05 [2024-12-22 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075950', 'tblTempUsageDetail_20' ) start [2024-12-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075950', 'tblTempUsageDetail_20' ) end [2024-12-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075950', 'tblTempVendorCDR_20' ) start [2024-12-22 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075950', 'tblTempVendorCDR_20' ) end [2024-12-22 07:24:18] Production.INFO: ProcessCDR(1,14075950,1,1,2) [2024-12-22 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075950', 'tblTempUsageDetail_20' ) start [2024-12-22 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075950', 'tblTempUsageDetail_20' ) end [2024-12-22 07:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:24:21] Production.INFO: ==26733== Releasing lock... [2024-12-22 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:24:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:25:04 [end_date_ymd] => 2024-12-22 07:25:04 [RateCDR] => 1 ) [2024-12-22 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-22 04:25:04' and `end` < '2024-12-22 07: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-22 07:25:17] Production.INFO: count ==9 [2024-12-22 07:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:25:04 - End Time 2024-12-22 07:25:04 [2024-12-22 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075955', 'tblTempUsageDetail_20' ) start [2024-12-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075955', 'tblTempUsageDetail_20' ) end [2024-12-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075955', 'tblTempVendorCDR_20' ) start [2024-12-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075955', 'tblTempVendorCDR_20' ) end [2024-12-22 07:25:17] Production.INFO: ProcessCDR(1,14075955,1,1,2) [2024-12-22 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075955', 'tblTempUsageDetail_20' ) start [2024-12-22 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075955', 'tblTempUsageDetail_20' ) end [2024-12-22 07:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:25:20] Production.INFO: ==26806== Releasing lock... [2024-12-22 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:25:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:26:05 [end_date_ymd] => 2024-12-22 07:26:05 [RateCDR] => 1 ) [2024-12-22 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:26:05' and `end` < '2024-12-22 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:26:17] Production.INFO: count ==9 [2024-12-22 07:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:26:05 - End Time 2024-12-22 07:26:05 [2024-12-22 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075960', 'tblTempUsageDetail_20' ) start [2024-12-22 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075960', 'tblTempUsageDetail_20' ) end [2024-12-22 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075960', 'tblTempVendorCDR_20' ) start [2024-12-22 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075960', 'tblTempVendorCDR_20' ) end [2024-12-22 07:26:17] Production.INFO: ProcessCDR(1,14075960,1,1,2) [2024-12-22 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075960', 'tblTempUsageDetail_20' ) start [2024-12-22 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075960', 'tblTempUsageDetail_20' ) end [2024-12-22 07:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:26:20] Production.INFO: ==26883== Releasing lock... [2024-12-22 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:26:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:27:05 [end_date_ymd] => 2024-12-22 07:27:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:27:05' and `end` < '2024-12-22 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:27:18] Production.INFO: count ==9 [2024-12-22 07:27:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:27:05 - End Time 2024-12-22 07:27:05 [2024-12-22 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075965', 'tblTempUsageDetail_20' ) start [2024-12-22 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075965', 'tblTempUsageDetail_20' ) end [2024-12-22 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075965', 'tblTempVendorCDR_20' ) start [2024-12-22 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075965', 'tblTempVendorCDR_20' ) end [2024-12-22 07:27:18] Production.INFO: ProcessCDR(1,14075965,1,1,2) [2024-12-22 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075965', 'tblTempUsageDetail_20' ) start [2024-12-22 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075965', 'tblTempUsageDetail_20' ) end [2024-12-22 07:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:27:21] Production.INFO: ==26955== Releasing lock... [2024-12-22 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:27:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:28:05 [end_date_ymd] => 2024-12-22 07:28:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:28:05' and `end` < '2024-12-22 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-22 07:28:17] Production.INFO: count ==9 [2024-12-22 07:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:28:05 - End Time 2024-12-22 07:28:05 [2024-12-22 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075970', 'tblTempUsageDetail_20' ) start [2024-12-22 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075970', 'tblTempUsageDetail_20' ) end [2024-12-22 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075970', 'tblTempVendorCDR_20' ) start [2024-12-22 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075970', 'tblTempVendorCDR_20' ) end [2024-12-22 07:28:17] Production.INFO: ProcessCDR(1,14075970,1,1,2) [2024-12-22 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075970', 'tblTempUsageDetail_20' ) start [2024-12-22 07:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075970', 'tblTempUsageDetail_20' ) end [2024-12-22 07:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:28:20] Production.INFO: ==27025== Releasing lock... [2024-12-22 07:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:28:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:29:05 [end_date_ymd] => 2024-12-22 07:29:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:29:05' and `end` < '2024-12-22 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-22 07:29:19] Production.INFO: count ==9 [2024-12-22 07:29:19] Production.ERROR: pbx CDR StartTime 2024-12-22 04:29:05 - End Time 2024-12-22 07:29:05 [2024-12-22 07:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075975', 'tblTempUsageDetail_20' ) start [2024-12-22 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075975', 'tblTempUsageDetail_20' ) end [2024-12-22 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075975', 'tblTempVendorCDR_20' ) start [2024-12-22 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075975', 'tblTempVendorCDR_20' ) end [2024-12-22 07:29:19] Production.INFO: ProcessCDR(1,14075975,1,1,2) [2024-12-22 07:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075975', 'tblTempUsageDetail_20' ) start [2024-12-22 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075975', 'tblTempUsageDetail_20' ) end [2024-12-22 07:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:29:22] Production.INFO: ==27103== Releasing lock... [2024-12-22 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:29:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:30:05 [end_date_ymd] => 2024-12-22 07:30:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:30:05' and `end` < '2024-12-22 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-22 07:30:17] Production.INFO: count ==7 [2024-12-22 07:30:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:30:05 - End Time 2024-12-22 07:30:05 [2024-12-22 07:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075981', 'tblTempUsageDetail_20' ) start [2024-12-22 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075981', 'tblTempUsageDetail_20' ) end [2024-12-22 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075981', 'tblTempVendorCDR_20' ) start [2024-12-22 07:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075981', 'tblTempVendorCDR_20' ) end [2024-12-22 07:30:17] Production.INFO: ProcessCDR(1,14075981,1,1,2) [2024-12-22 07:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075981', 'tblTempUsageDetail_20' ) start [2024-12-22 07:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075981', 'tblTempUsageDetail_20' ) end [2024-12-22 07:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:30:20] Production.INFO: ==27176== Releasing lock... [2024-12-22 07:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:30:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:31:04 [end_date_ymd] => 2024-12-22 07:31:04 [RateCDR] => 1 ) [2024-12-22 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-22 04:31:04' and `end` < '2024-12-22 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-22 07:31:16] Production.INFO: count ==7 [2024-12-22 07:31:16] Production.ERROR: pbx CDR StartTime 2024-12-22 04:31:04 - End Time 2024-12-22 07:31:04 [2024-12-22 07:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075986', 'tblTempUsageDetail_20' ) start [2024-12-22 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075986', 'tblTempUsageDetail_20' ) end [2024-12-22 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075986', 'tblTempVendorCDR_20' ) start [2024-12-22 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075986', 'tblTempVendorCDR_20' ) end [2024-12-22 07:31:16] Production.INFO: ProcessCDR(1,14075986,1,1,2) [2024-12-22 07:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075986', 'tblTempUsageDetail_20' ) start [2024-12-22 07:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075986', 'tblTempUsageDetail_20' ) end [2024-12-22 07:31:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:31:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:31:19] Production.INFO: ==27256== Releasing lock... [2024-12-22 07:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:31:19] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:32:04 [end_date_ymd] => 2024-12-22 07:32:04 [RateCDR] => 1 ) [2024-12-22 07:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:32:04' and `end` < '2024-12-22 07:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:32:16] Production.INFO: count ==7 [2024-12-22 07:32:16] Production.ERROR: pbx CDR StartTime 2024-12-22 04:32:04 - End Time 2024-12-22 07:32:04 [2024-12-22 07:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075991', 'tblTempUsageDetail_20' ) start [2024-12-22 07:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075991', 'tblTempUsageDetail_20' ) end [2024-12-22 07:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075991', 'tblTempVendorCDR_20' ) start [2024-12-22 07:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075991', 'tblTempVendorCDR_20' ) end [2024-12-22 07:32:16] Production.INFO: ProcessCDR(1,14075991,1,1,2) [2024-12-22 07:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075991', 'tblTempUsageDetail_20' ) start [2024-12-22 07:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075991', 'tblTempUsageDetail_20' ) end [2024-12-22 07:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:32:20] Production.INFO: ==27329== Releasing lock... [2024-12-22 07:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:32:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:33:05 [end_date_ymd] => 2024-12-22 07:33:05 [RateCDR] => 1 ) [2024-12-22 07:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:33:05' and `end` < '2024-12-22 07:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:33:18] Production.INFO: count ==7 [2024-12-22 07:33:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:33:05 - End Time 2024-12-22 07:33:05 [2024-12-22 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075996', 'tblTempUsageDetail_20' ) start [2024-12-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14075996', 'tblTempUsageDetail_20' ) end [2024-12-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075996', 'tblTempVendorCDR_20' ) start [2024-12-22 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14075996', 'tblTempVendorCDR_20' ) end [2024-12-22 07:33:18] Production.INFO: ProcessCDR(1,14075996,1,1,2) [2024-12-22 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14075996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14075996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14075996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14075996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075996', 'tblTempUsageDetail_20' ) start [2024-12-22 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14075996', 'tblTempUsageDetail_20' ) end [2024-12-22 07:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:33:21] Production.INFO: ==27406== Releasing lock... [2024-12-22 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:33:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:34:04 [end_date_ymd] => 2024-12-22 07:34:04 [RateCDR] => 1 ) [2024-12-22 07:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:34:04' and `end` < '2024-12-22 07:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:34:17] Production.INFO: count ==7 [2024-12-22 07:34:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:34:04 - End Time 2024-12-22 07:34:04 [2024-12-22 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076001', 'tblTempUsageDetail_20' ) start [2024-12-22 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076001', 'tblTempUsageDetail_20' ) end [2024-12-22 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076001', 'tblTempVendorCDR_20' ) start [2024-12-22 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076001', 'tblTempVendorCDR_20' ) end [2024-12-22 07:34:17] Production.INFO: ProcessCDR(1,14076001,1,1,2) [2024-12-22 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076001', 'tblTempUsageDetail_20' ) start [2024-12-22 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076001', 'tblTempUsageDetail_20' ) end [2024-12-22 07:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:34:20] Production.INFO: ==27478== Releasing lock... [2024-12-22 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:34:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:35:05 [end_date_ymd] => 2024-12-22 07:35:05 [RateCDR] => 1 ) [2024-12-22 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:35:05' and `end` < '2024-12-22 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:35:17] Production.INFO: count ==7 [2024-12-22 07:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:35:05 - End Time 2024-12-22 07:35:05 [2024-12-22 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076006', 'tblTempUsageDetail_20' ) start [2024-12-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076006', 'tblTempUsageDetail_20' ) end [2024-12-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076006', 'tblTempVendorCDR_20' ) start [2024-12-22 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076006', 'tblTempVendorCDR_20' ) end [2024-12-22 07:35:17] Production.INFO: ProcessCDR(1,14076006,1,1,2) [2024-12-22 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076006', 'tblTempUsageDetail_20' ) start [2024-12-22 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076006', 'tblTempUsageDetail_20' ) end [2024-12-22 07:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:35:20] Production.INFO: ==27559== Releasing lock... [2024-12-22 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:35:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:36:04 [end_date_ymd] => 2024-12-22 07:36:04 [RateCDR] => 1 ) [2024-12-22 07:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:36:04' and `end` < '2024-12-22 07:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:36:16] Production.INFO: count ==7 [2024-12-22 07:36:16] Production.ERROR: pbx CDR StartTime 2024-12-22 04:36:04 - End Time 2024-12-22 07:36:04 [2024-12-22 07:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076011', 'tblTempUsageDetail_20' ) start [2024-12-22 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076011', 'tblTempUsageDetail_20' ) end [2024-12-22 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076011', 'tblTempVendorCDR_20' ) start [2024-12-22 07:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076011', 'tblTempVendorCDR_20' ) end [2024-12-22 07:36:16] Production.INFO: ProcessCDR(1,14076011,1,1,2) [2024-12-22 07:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:36:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:36:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:36:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076011', 'tblTempUsageDetail_20' ) start [2024-12-22 07:36:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076011', 'tblTempUsageDetail_20' ) end [2024-12-22 07:36:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:36:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:36:19] Production.INFO: ==27634== Releasing lock... [2024-12-22 07:36:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:36:19] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:37:05 [end_date_ymd] => 2024-12-22 07:37:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:37:05' and `end` < '2024-12-22 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-22 07:37:17] Production.INFO: count ==7 [2024-12-22 07:37:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:37:05 - End Time 2024-12-22 07:37:05 [2024-12-22 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076016', 'tblTempUsageDetail_20' ) start [2024-12-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076016', 'tblTempUsageDetail_20' ) end [2024-12-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076016', 'tblTempVendorCDR_20' ) start [2024-12-22 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076016', 'tblTempVendorCDR_20' ) end [2024-12-22 07:37:17] Production.INFO: ProcessCDR(1,14076016,1,1,2) [2024-12-22 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076016', 'tblTempUsageDetail_20' ) start [2024-12-22 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076016', 'tblTempUsageDetail_20' ) end [2024-12-22 07:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:37:20] Production.INFO: ==27712== Releasing lock... [2024-12-22 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:37:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:38:04 [end_date_ymd] => 2024-12-22 07:38:04 [RateCDR] => 1 ) [2024-12-22 07: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-22 04:38:04' and `end` < '2024-12-22 07: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-22 07:38:17] Production.INFO: count ==7 [2024-12-22 07:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:38:04 - End Time 2024-12-22 07:38:04 [2024-12-22 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076021', 'tblTempUsageDetail_20' ) start [2024-12-22 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076021', 'tblTempUsageDetail_20' ) end [2024-12-22 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076021', 'tblTempVendorCDR_20' ) start [2024-12-22 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076021', 'tblTempVendorCDR_20' ) end [2024-12-22 07:38:17] Production.INFO: ProcessCDR(1,14076021,1,1,2) [2024-12-22 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076021', 'tblTempUsageDetail_20' ) start [2024-12-22 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076021', 'tblTempUsageDetail_20' ) end [2024-12-22 07:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:38:20] Production.INFO: ==27785== Releasing lock... [2024-12-22 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:38:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:39:05 [end_date_ymd] => 2024-12-22 07:39:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:39:05' and `end` < '2024-12-22 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-22 07:39:17] Production.INFO: count ==7 [2024-12-22 07:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:39:05 - End Time 2024-12-22 07:39:05 [2024-12-22 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076026', 'tblTempUsageDetail_20' ) start [2024-12-22 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076026', 'tblTempUsageDetail_20' ) end [2024-12-22 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076026', 'tblTempVendorCDR_20' ) start [2024-12-22 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076026', 'tblTempVendorCDR_20' ) end [2024-12-22 07:39:17] Production.INFO: ProcessCDR(1,14076026,1,1,2) [2024-12-22 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076026', 'tblTempUsageDetail_20' ) start [2024-12-22 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076026', 'tblTempUsageDetail_20' ) end [2024-12-22 07:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:39:20] Production.INFO: ==27862== Releasing lock... [2024-12-22 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:39:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:40:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:40:04 [end_date_ymd] => 2024-12-22 07:40:04 [RateCDR] => 1 ) [2024-12-22 07:40:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:40:04' and `end` < '2024-12-22 07:40:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:40:16] Production.INFO: count ==5 [2024-12-22 07:40:16] Production.ERROR: pbx CDR StartTime 2024-12-22 04:40:04 - End Time 2024-12-22 07:40:04 [2024-12-22 07:40:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076031', 'tblTempUsageDetail_20' ) start [2024-12-22 07:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076031', 'tblTempUsageDetail_20' ) end [2024-12-22 07:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076031', 'tblTempVendorCDR_20' ) start [2024-12-22 07:40:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076031', 'tblTempVendorCDR_20' ) end [2024-12-22 07:40:16] Production.INFO: ProcessCDR(1,14076031,1,1,2) [2024-12-22 07:40:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:40:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:40:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:40:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:40:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076031', 'tblTempUsageDetail_20' ) start [2024-12-22 07:40:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076031', 'tblTempUsageDetail_20' ) end [2024-12-22 07:40:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:40:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:40:19] Production.INFO: ==27981== Releasing lock... [2024-12-22 07:40:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:40:19] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:41:05 [end_date_ymd] => 2024-12-22 07:41:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:41:05' and `end` < '2024-12-22 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-22 07:41:18] Production.INFO: count ==5 [2024-12-22 07:41:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:41:05 - End Time 2024-12-22 07:41:05 [2024-12-22 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076037', 'tblTempUsageDetail_20' ) start [2024-12-22 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076037', 'tblTempUsageDetail_20' ) end [2024-12-22 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076037', 'tblTempVendorCDR_20' ) start [2024-12-22 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076037', 'tblTempVendorCDR_20' ) end [2024-12-22 07:41:18] Production.INFO: ProcessCDR(1,14076037,1,1,2) [2024-12-22 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076037', 'tblTempUsageDetail_20' ) start [2024-12-22 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076037', 'tblTempUsageDetail_20' ) end [2024-12-22 07:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:41:21] Production.INFO: ==28057== Releasing lock... [2024-12-22 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:41:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:42:06 [end_date_ymd] => 2024-12-22 07:42:06 [RateCDR] => 1 ) [2024-12-22 07:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:42:06' and `end` < '2024-12-22 07:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:42:18] Production.INFO: count ==5 [2024-12-22 07:42:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:42:06 - End Time 2024-12-22 07:42:06 [2024-12-22 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076042', 'tblTempUsageDetail_20' ) start [2024-12-22 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076042', 'tblTempUsageDetail_20' ) end [2024-12-22 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076042', 'tblTempVendorCDR_20' ) start [2024-12-22 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076042', 'tblTempVendorCDR_20' ) end [2024-12-22 07:42:18] Production.INFO: ProcessCDR(1,14076042,1,1,2) [2024-12-22 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076042', 'tblTempUsageDetail_20' ) start [2024-12-22 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076042', 'tblTempUsageDetail_20' ) end [2024-12-22 07:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:42:22] Production.INFO: ==28133== Releasing lock... [2024-12-22 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:42:22] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:43:05 [end_date_ymd] => 2024-12-22 07:43:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:43:05' and `end` < '2024-12-22 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-22 07:43:17] Production.INFO: count ==5 [2024-12-22 07:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:43:05 - End Time 2024-12-22 07:43:05 [2024-12-22 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076047', 'tblTempUsageDetail_20' ) start [2024-12-22 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076047', 'tblTempUsageDetail_20' ) end [2024-12-22 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076047', 'tblTempVendorCDR_20' ) start [2024-12-22 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076047', 'tblTempVendorCDR_20' ) end [2024-12-22 07:43:17] Production.INFO: ProcessCDR(1,14076047,1,1,2) [2024-12-22 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076047', 'tblTempUsageDetail_20' ) start [2024-12-22 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076047', 'tblTempUsageDetail_20' ) end [2024-12-22 07:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:43:20] Production.INFO: ==28208== Releasing lock... [2024-12-22 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:43:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:44:05 [end_date_ymd] => 2024-12-22 07:44:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:44:05' and `end` < '2024-12-22 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-22 07:44:17] Production.INFO: count ==5 [2024-12-22 07:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:44:05 - End Time 2024-12-22 07:44:05 [2024-12-22 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076052', 'tblTempUsageDetail_20' ) start [2024-12-22 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076052', 'tblTempUsageDetail_20' ) end [2024-12-22 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076052', 'tblTempVendorCDR_20' ) start [2024-12-22 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076052', 'tblTempVendorCDR_20' ) end [2024-12-22 07:44:17] Production.INFO: ProcessCDR(1,14076052,1,1,2) [2024-12-22 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076052', 'tblTempUsageDetail_20' ) start [2024-12-22 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076052', 'tblTempUsageDetail_20' ) end [2024-12-22 07:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:44:20] Production.INFO: ==28279== Releasing lock... [2024-12-22 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:44:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:45:04 [end_date_ymd] => 2024-12-22 07:45:04 [RateCDR] => 1 ) [2024-12-22 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-22 04:45:04' and `end` < '2024-12-22 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-22 07:45:16] Production.INFO: count ==5 [2024-12-22 07:45:16] Production.ERROR: pbx CDR StartTime 2024-12-22 04:45:04 - End Time 2024-12-22 07:45:04 [2024-12-22 07:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076057', 'tblTempUsageDetail_20' ) start [2024-12-22 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076057', 'tblTempUsageDetail_20' ) end [2024-12-22 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076057', 'tblTempVendorCDR_20' ) start [2024-12-22 07:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076057', 'tblTempVendorCDR_20' ) end [2024-12-22 07:45:16] Production.INFO: ProcessCDR(1,14076057,1,1,2) [2024-12-22 07:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076057', 'tblTempUsageDetail_20' ) start [2024-12-22 07:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076057', 'tblTempUsageDetail_20' ) end [2024-12-22 07:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:45:19] Production.INFO: ==28354== Releasing lock... [2024-12-22 07:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:45:19] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:46:05 [end_date_ymd] => 2024-12-22 07:46:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:46:05' and `end` < '2024-12-22 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-22 07:46:17] Production.INFO: count ==5 [2024-12-22 07:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:46:05 - End Time 2024-12-22 07:46:05 [2024-12-22 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076062', 'tblTempUsageDetail_20' ) start [2024-12-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076062', 'tblTempUsageDetail_20' ) end [2024-12-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076062', 'tblTempVendorCDR_20' ) start [2024-12-22 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076062', 'tblTempVendorCDR_20' ) end [2024-12-22 07:46:17] Production.INFO: ProcessCDR(1,14076062,1,1,2) [2024-12-22 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076062', 'tblTempUsageDetail_20' ) start [2024-12-22 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076062', 'tblTempUsageDetail_20' ) end [2024-12-22 07:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:46:20] Production.INFO: ==28427== Releasing lock... [2024-12-22 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:46:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:47:04 [end_date_ymd] => 2024-12-22 07:47:04 [RateCDR] => 1 ) [2024-12-22 07: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-22 04:47:04' and `end` < '2024-12-22 07: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-22 07:47:17] Production.INFO: count ==5 [2024-12-22 07:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:47:04 - End Time 2024-12-22 07:47:04 [2024-12-22 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076067', 'tblTempUsageDetail_20' ) start [2024-12-22 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076067', 'tblTempUsageDetail_20' ) end [2024-12-22 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076067', 'tblTempVendorCDR_20' ) start [2024-12-22 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076067', 'tblTempVendorCDR_20' ) end [2024-12-22 07:47:17] Production.INFO: ProcessCDR(1,14076067,1,1,2) [2024-12-22 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076067', 'tblTempUsageDetail_20' ) start [2024-12-22 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076067', 'tblTempUsageDetail_20' ) end [2024-12-22 07:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:47:20] Production.INFO: ==28503== Releasing lock... [2024-12-22 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:47:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:48:05 [end_date_ymd] => 2024-12-22 07:48:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:48:05' and `end` < '2024-12-22 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-22 07:48:17] Production.INFO: count ==4 [2024-12-22 07:48:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:48:05 - End Time 2024-12-22 07:48:05 [2024-12-22 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076072', 'tblTempUsageDetail_20' ) start [2024-12-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076072', 'tblTempUsageDetail_20' ) end [2024-12-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076072', 'tblTempVendorCDR_20' ) start [2024-12-22 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076072', 'tblTempVendorCDR_20' ) end [2024-12-22 07:48:17] Production.INFO: ProcessCDR(1,14076072,1,1,2) [2024-12-22 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076072', 'tblTempUsageDetail_20' ) start [2024-12-22 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076072', 'tblTempUsageDetail_20' ) end [2024-12-22 07:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:48:20] Production.INFO: ==28580== Releasing lock... [2024-12-22 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:48:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:49:04 [end_date_ymd] => 2024-12-22 07:49:04 [RateCDR] => 1 ) [2024-12-22 07:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:49:04' and `end` < '2024-12-22 07:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:49:17] Production.INFO: count ==4 [2024-12-22 07:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:49:04 - End Time 2024-12-22 07:49:04 [2024-12-22 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076077', 'tblTempUsageDetail_20' ) start [2024-12-22 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076077', 'tblTempUsageDetail_20' ) end [2024-12-22 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076077', 'tblTempVendorCDR_20' ) start [2024-12-22 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076077', 'tblTempVendorCDR_20' ) end [2024-12-22 07:49:17] Production.INFO: ProcessCDR(1,14076077,1,1,2) [2024-12-22 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076077', 'tblTempUsageDetail_20' ) start [2024-12-22 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076077', 'tblTempUsageDetail_20' ) end [2024-12-22 07:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:49:20] Production.INFO: ==28653== Releasing lock... [2024-12-22 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:49:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:50:05 [end_date_ymd] => 2024-12-22 07:50:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:50:05' and `end` < '2024-12-22 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-22 07:50:17] Production.INFO: count ==2 [2024-12-22 07:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:50:05 - End Time 2024-12-22 07:50:05 [2024-12-22 07:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076082', 'tblTempUsageDetail_20' ) start [2024-12-22 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076082', 'tblTempUsageDetail_20' ) end [2024-12-22 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076082', 'tblTempVendorCDR_20' ) start [2024-12-22 07:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076082', 'tblTempVendorCDR_20' ) end [2024-12-22 07:50:17] Production.INFO: ProcessCDR(1,14076082,1,1,2) [2024-12-22 07:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076082', 'tblTempUsageDetail_20' ) start [2024-12-22 07:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076082', 'tblTempUsageDetail_20' ) end [2024-12-22 07:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:50:20] Production.INFO: ==28732== Releasing lock... [2024-12-22 07:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:50:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:51:04 [end_date_ymd] => 2024-12-22 07:51:04 [RateCDR] => 1 ) [2024-12-22 07:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:51:04' and `end` < '2024-12-22 07:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:51:17] Production.INFO: count ==2 [2024-12-22 07:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:51:04 - End Time 2024-12-22 07:51:04 [2024-12-22 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076088', 'tblTempUsageDetail_20' ) start [2024-12-22 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076088', 'tblTempUsageDetail_20' ) end [2024-12-22 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076088', 'tblTempVendorCDR_20' ) start [2024-12-22 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076088', 'tblTempVendorCDR_20' ) end [2024-12-22 07:51:17] Production.INFO: ProcessCDR(1,14076088,1,1,2) [2024-12-22 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076088', 'tblTempUsageDetail_20' ) start [2024-12-22 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076088', 'tblTempUsageDetail_20' ) end [2024-12-22 07:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:51:20] Production.INFO: ==28817== Releasing lock... [2024-12-22 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:51:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:52:05 [end_date_ymd] => 2024-12-22 07:52:05 [RateCDR] => 1 ) [2024-12-22 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:52:05' and `end` < '2024-12-22 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:52:17] Production.INFO: count ==2 [2024-12-22 07:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:52:05 - End Time 2024-12-22 07:52:05 [2024-12-22 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076093', 'tblTempUsageDetail_20' ) start [2024-12-22 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076093', 'tblTempUsageDetail_20' ) end [2024-12-22 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076093', 'tblTempVendorCDR_20' ) start [2024-12-22 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076093', 'tblTempVendorCDR_20' ) end [2024-12-22 07:52:17] Production.INFO: ProcessCDR(1,14076093,1,1,2) [2024-12-22 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076093', 'tblTempUsageDetail_20' ) start [2024-12-22 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076093', 'tblTempUsageDetail_20' ) end [2024-12-22 07:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:52:20] Production.INFO: ==28890== Releasing lock... [2024-12-22 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:52:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:53:05 [end_date_ymd] => 2024-12-22 07:53:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:53:05' and `end` < '2024-12-22 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-22 07:53:18] Production.INFO: count ==2 [2024-12-22 07:53:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:53:05 - End Time 2024-12-22 07:53:05 [2024-12-22 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076098', 'tblTempUsageDetail_20' ) start [2024-12-22 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076098', 'tblTempUsageDetail_20' ) end [2024-12-22 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076098', 'tblTempVendorCDR_20' ) start [2024-12-22 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076098', 'tblTempVendorCDR_20' ) end [2024-12-22 07:53:18] Production.INFO: ProcessCDR(1,14076098,1,1,2) [2024-12-22 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076098', 'tblTempUsageDetail_20' ) start [2024-12-22 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076098', 'tblTempUsageDetail_20' ) end [2024-12-22 07:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:53:21] Production.INFO: ==28966== Releasing lock... [2024-12-22 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:53:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:54:05 [end_date_ymd] => 2024-12-22 07:54:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:54:05' and `end` < '2024-12-22 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-22 07:54:17] Production.INFO: count ==2 [2024-12-22 07:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:54:05 - End Time 2024-12-22 07:54:05 [2024-12-22 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076103', 'tblTempUsageDetail_20' ) start [2024-12-22 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076103', 'tblTempUsageDetail_20' ) end [2024-12-22 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076103', 'tblTempVendorCDR_20' ) start [2024-12-22 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076103', 'tblTempVendorCDR_20' ) end [2024-12-22 07:54:17] Production.INFO: ProcessCDR(1,14076103,1,1,2) [2024-12-22 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076103', 'tblTempUsageDetail_20' ) start [2024-12-22 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076103', 'tblTempUsageDetail_20' ) end [2024-12-22 07:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:54:20] Production.INFO: ==29040== Releasing lock... [2024-12-22 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:54:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:55:05 [end_date_ymd] => 2024-12-22 07:55:05 [RateCDR] => 1 ) [2024-12-22 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:55:05' and `end` < '2024-12-22 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:55:17] Production.INFO: count ==2 [2024-12-22 07:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:55:05 - End Time 2024-12-22 07:55:05 [2024-12-22 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076108', 'tblTempUsageDetail_20' ) start [2024-12-22 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076108', 'tblTempUsageDetail_20' ) end [2024-12-22 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076108', 'tblTempVendorCDR_20' ) start [2024-12-22 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076108', 'tblTempVendorCDR_20' ) end [2024-12-22 07:55:17] Production.INFO: ProcessCDR(1,14076108,1,1,2) [2024-12-22 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076108', 'tblTempUsageDetail_20' ) start [2024-12-22 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076108', 'tblTempUsageDetail_20' ) end [2024-12-22 07:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:55:20] Production.INFO: ==29153== Releasing lock... [2024-12-22 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:55:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:56:04 [end_date_ymd] => 2024-12-22 07:56:04 [RateCDR] => 1 ) [2024-12-22 07:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:56:04' and `end` < '2024-12-22 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-22 07:56:17] Production.INFO: count ==2 [2024-12-22 07:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:56:04 - End Time 2024-12-22 07:56:04 [2024-12-22 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076113', 'tblTempUsageDetail_20' ) start [2024-12-22 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076113', 'tblTempUsageDetail_20' ) end [2024-12-22 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076113', 'tblTempVendorCDR_20' ) start [2024-12-22 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076113', 'tblTempVendorCDR_20' ) end [2024-12-22 07:56:17] Production.INFO: ProcessCDR(1,14076113,1,1,2) [2024-12-22 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076113', 'tblTempUsageDetail_20' ) start [2024-12-22 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076113', 'tblTempUsageDetail_20' ) end [2024-12-22 07:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:56:20] Production.INFO: ==29226== Releasing lock... [2024-12-22 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:56:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:57:05 [end_date_ymd] => 2024-12-22 07:57:05 [RateCDR] => 1 ) [2024-12-22 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-22 04:57:05' and `end` < '2024-12-22 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-22 07:57:17] Production.INFO: count ==2 [2024-12-22 07:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 04:57:05 - End Time 2024-12-22 07:57:05 [2024-12-22 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076118', 'tblTempUsageDetail_20' ) start [2024-12-22 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076118', 'tblTempUsageDetail_20' ) end [2024-12-22 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076118', 'tblTempVendorCDR_20' ) start [2024-12-22 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076118', 'tblTempVendorCDR_20' ) end [2024-12-22 07:57:17] Production.INFO: ProcessCDR(1,14076118,1,1,2) [2024-12-22 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076118', 'tblTempUsageDetail_20' ) start [2024-12-22 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076118', 'tblTempUsageDetail_20' ) end [2024-12-22 07:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:57:20] Production.INFO: ==29303== Releasing lock... [2024-12-22 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:57:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:58:04 [end_date_ymd] => 2024-12-22 07:58:04 [RateCDR] => 1 ) [2024-12-22 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-22 04:58:04' and `end` < '2024-12-22 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-22 07:58:16] Production.INFO: count ==2 [2024-12-22 07:58:16] Production.ERROR: pbx CDR StartTime 2024-12-22 04:58:04 - End Time 2024-12-22 07:58:04 [2024-12-22 07:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076123', 'tblTempUsageDetail_20' ) start [2024-12-22 07:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076123', 'tblTempUsageDetail_20' ) end [2024-12-22 07:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076123', 'tblTempVendorCDR_20' ) start [2024-12-22 07:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076123', 'tblTempVendorCDR_20' ) end [2024-12-22 07:58:16] Production.INFO: ProcessCDR(1,14076123,1,1,2) [2024-12-22 07:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:58:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076123', 'tblTempUsageDetail_20' ) start [2024-12-22 07:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076123', 'tblTempUsageDetail_20' ) end [2024-12-22 07:58:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:58:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:58:19] Production.INFO: ==29385== Releasing lock... [2024-12-22 07:58:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:58:19] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 04:59:05 [end_date_ymd] => 2024-12-22 07:59:05 [RateCDR] => 1 ) [2024-12-22 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 04:59:05' and `end` < '2024-12-22 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 07:59:18] Production.INFO: count ==2 [2024-12-22 07:59:18] Production.ERROR: pbx CDR StartTime 2024-12-22 04:59:05 - End Time 2024-12-22 07:59:05 [2024-12-22 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076128', 'tblTempUsageDetail_20' ) start [2024-12-22 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076128', 'tblTempUsageDetail_20' ) end [2024-12-22 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076128', 'tblTempVendorCDR_20' ) start [2024-12-22 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076128', 'tblTempVendorCDR_20' ) end [2024-12-22 07:59:18] Production.INFO: ProcessCDR(1,14076128,1,1,2) [2024-12-22 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076128', 'tblTempUsageDetail_20' ) start [2024-12-22 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076128', 'tblTempUsageDetail_20' ) end [2024-12-22 07:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 07:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 07:59:21] Production.INFO: ==29469== Releasing lock... [2024-12-22 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 07:59:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:00:05 [end_date_ymd] => 2024-12-22 08:00:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:00:05' and `end` < '2024-12-22 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-22 08:00:17] Production.INFO: count ==2 [2024-12-22 08:00:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:00:05 - End Time 2024-12-22 08:00:05 [2024-12-22 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076134', 'tblTempUsageDetail_20' ) start [2024-12-22 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076134', 'tblTempUsageDetail_20' ) end [2024-12-22 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076134', 'tblTempVendorCDR_20' ) start [2024-12-22 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076134', 'tblTempVendorCDR_20' ) end [2024-12-22 08:00:17] Production.INFO: ProcessCDR(1,14076134,1,1,2) [2024-12-22 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076134', 'tblTempUsageDetail_20' ) start [2024-12-22 08:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076134', 'tblTempUsageDetail_20' ) end [2024-12-22 08:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:00:20] Production.INFO: ==29556== Releasing lock... [2024-12-22 08:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:00:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:01:05 [end_date_ymd] => 2024-12-22 08:01:05 [RateCDR] => 1 ) [2024-12-22 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:01:05' and `end` < '2024-12-22 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:01:17] Production.INFO: count ==2 [2024-12-22 08:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:01:05 - End Time 2024-12-22 08:01:05 [2024-12-22 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076139', 'tblTempUsageDetail_20' ) start [2024-12-22 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076139', 'tblTempUsageDetail_20' ) end [2024-12-22 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076139', 'tblTempVendorCDR_20' ) start [2024-12-22 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076139', 'tblTempVendorCDR_20' ) end [2024-12-22 08:01:17] Production.INFO: ProcessCDR(1,14076139,1,1,2) [2024-12-22 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076139', 'tblTempUsageDetail_20' ) start [2024-12-22 08:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076139', 'tblTempUsageDetail_20' ) end [2024-12-22 08:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:01:20] Production.INFO: ==29653== Releasing lock... [2024-12-22 08:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:01:20] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:02:06 [end_date_ymd] => 2024-12-22 08:02:06 [RateCDR] => 1 ) [2024-12-22 08:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:02:06' and `end` < '2024-12-22 08:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:02:18] Production.INFO: count ==2 [2024-12-22 08:02:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:02:06 - End Time 2024-12-22 08:02:06 [2024-12-22 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076144', 'tblTempUsageDetail_20' ) start [2024-12-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076144', 'tblTempUsageDetail_20' ) end [2024-12-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076144', 'tblTempVendorCDR_20' ) start [2024-12-22 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076144', 'tblTempVendorCDR_20' ) end [2024-12-22 08:02:18] Production.INFO: ProcessCDR(1,14076144,1,1,2) [2024-12-22 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076144', 'tblTempUsageDetail_20' ) start [2024-12-22 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076144', 'tblTempUsageDetail_20' ) end [2024-12-22 08:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:02:21] Production.INFO: ==29741== Releasing lock... [2024-12-22 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:02:21] Production.INFO: 27.5 MB #Memory Used# [2024-12-22 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:03:05 [end_date_ymd] => 2024-12-22 08:03:05 [RateCDR] => 1 ) [2024-12-22 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:03:05' and `end` < '2024-12-22 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:03:18] Production.INFO: count ==6 [2024-12-22 08:03:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:03:05 - End Time 2024-12-22 08:03:05 [2024-12-22 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076149', 'tblTempUsageDetail_20' ) start [2024-12-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076149', 'tblTempUsageDetail_20' ) end [2024-12-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076149', 'tblTempVendorCDR_20' ) start [2024-12-22 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076149', 'tblTempVendorCDR_20' ) end [2024-12-22 08:03:18] Production.INFO: ProcessCDR(1,14076149,1,1,2) [2024-12-22 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076149', 'tblTempUsageDetail_20' ) start [2024-12-22 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076149', 'tblTempUsageDetail_20' ) end [2024-12-22 08:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:03:21] Production.INFO: ==29823== Releasing lock... [2024-12-22 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:03:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:04:05 [end_date_ymd] => 2024-12-22 08:04:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:04:05' and `end` < '2024-12-22 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-22 08:04:17] Production.INFO: count ==8 [2024-12-22 08:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:04:05 - End Time 2024-12-22 08:04:05 [2024-12-22 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076154', 'tblTempUsageDetail_20' ) start [2024-12-22 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076154', 'tblTempUsageDetail_20' ) end [2024-12-22 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076154', 'tblTempVendorCDR_20' ) start [2024-12-22 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076154', 'tblTempVendorCDR_20' ) end [2024-12-22 08:04:17] Production.INFO: ProcessCDR(1,14076154,1,1,2) [2024-12-22 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076154', 'tblTempUsageDetail_20' ) start [2024-12-22 08:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076154', 'tblTempUsageDetail_20' ) end [2024-12-22 08:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:04:20] Production.INFO: ==29908== Releasing lock... [2024-12-22 08:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:04:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:05:04 [end_date_ymd] => 2024-12-22 08:05:04 [RateCDR] => 1 ) [2024-12-22 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-22 05:05:04' and `end` < '2024-12-22 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-22 08:05:17] Production.INFO: count ==8 [2024-12-22 08:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:05:04 - End Time 2024-12-22 08:05:04 [2024-12-22 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076159', 'tblTempUsageDetail_20' ) start [2024-12-22 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076159', 'tblTempUsageDetail_20' ) end [2024-12-22 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076159', 'tblTempVendorCDR_20' ) start [2024-12-22 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076159', 'tblTempVendorCDR_20' ) end [2024-12-22 08:05:17] Production.INFO: ProcessCDR(1,14076159,1,1,2) [2024-12-22 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076159', 'tblTempUsageDetail_20' ) start [2024-12-22 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076159', 'tblTempUsageDetail_20' ) end [2024-12-22 08:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:05:20] Production.INFO: ==29984== Releasing lock... [2024-12-22 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:05:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:06:05 [end_date_ymd] => 2024-12-22 08:06:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:06:05' and `end` < '2024-12-22 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-22 08:06:17] Production.INFO: count ==14 [2024-12-22 08:06:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:06:05 - End Time 2024-12-22 08:06:05 [2024-12-22 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076164', 'tblTempUsageDetail_20' ) start [2024-12-22 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076164', 'tblTempUsageDetail_20' ) end [2024-12-22 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076164', 'tblTempVendorCDR_20' ) start [2024-12-22 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076164', 'tblTempVendorCDR_20' ) end [2024-12-22 08:06:17] Production.INFO: ProcessCDR(1,14076164,1,1,2) [2024-12-22 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076164', 'tblTempUsageDetail_20' ) start [2024-12-22 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076164', 'tblTempUsageDetail_20' ) end [2024-12-22 08:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:06:20] Production.INFO: ==30056== Releasing lock... [2024-12-22 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:06:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:07:05 [end_date_ymd] => 2024-12-22 08:07:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:07:05' and `end` < '2024-12-22 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-22 08:07:17] Production.INFO: count ==14 [2024-12-22 08:07:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:07:05 - End Time 2024-12-22 08:07:05 [2024-12-22 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076169', 'tblTempUsageDetail_20' ) start [2024-12-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076169', 'tblTempUsageDetail_20' ) end [2024-12-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076169', 'tblTempVendorCDR_20' ) start [2024-12-22 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076169', 'tblTempVendorCDR_20' ) end [2024-12-22 08:07:17] Production.INFO: ProcessCDR(1,14076169,1,1,2) [2024-12-22 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076169', 'tblTempUsageDetail_20' ) start [2024-12-22 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076169', 'tblTempUsageDetail_20' ) end [2024-12-22 08:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:07:20] Production.INFO: ==30128== Releasing lock... [2024-12-22 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:07:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:08:05 [end_date_ymd] => 2024-12-22 08:08:05 [RateCDR] => 1 ) [2024-12-22 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:08:05' and `end` < '2024-12-22 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:08:18] Production.INFO: count ==14 [2024-12-22 08:08:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:08:05 - End Time 2024-12-22 08:08:05 [2024-12-22 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076174', 'tblTempUsageDetail_20' ) start [2024-12-22 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076174', 'tblTempUsageDetail_20' ) end [2024-12-22 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076174', 'tblTempVendorCDR_20' ) start [2024-12-22 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076174', 'tblTempVendorCDR_20' ) end [2024-12-22 08:08:18] Production.INFO: ProcessCDR(1,14076174,1,1,2) [2024-12-22 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076174', 'tblTempUsageDetail_20' ) start [2024-12-22 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076174', 'tblTempUsageDetail_20' ) end [2024-12-22 08:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:08:21] Production.INFO: ==30200== Releasing lock... [2024-12-22 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:08:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:09:05 [end_date_ymd] => 2024-12-22 08:09:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:09:05' and `end` < '2024-12-22 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-22 08:09:19] Production.INFO: count ==14 [2024-12-22 08:09:19] Production.ERROR: pbx CDR StartTime 2024-12-22 05:09:05 - End Time 2024-12-22 08:09:05 [2024-12-22 08:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076179', 'tblTempUsageDetail_20' ) start [2024-12-22 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076179', 'tblTempUsageDetail_20' ) end [2024-12-22 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076179', 'tblTempVendorCDR_20' ) start [2024-12-22 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076179', 'tblTempVendorCDR_20' ) end [2024-12-22 08:09:19] Production.INFO: ProcessCDR(1,14076179,1,1,2) [2024-12-22 08:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076179', 'tblTempUsageDetail_20' ) start [2024-12-22 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076179', 'tblTempUsageDetail_20' ) end [2024-12-22 08:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:09:22] Production.INFO: ==30280== Releasing lock... [2024-12-22 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:09:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:10:05 [end_date_ymd] => 2024-12-22 08:10:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:10:05' and `end` < '2024-12-22 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-22 08:10:17] Production.INFO: count ==20 [2024-12-22 08:10:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:10:05 - End Time 2024-12-22 08:10:05 [2024-12-22 08:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076185', 'tblTempUsageDetail_20' ) start [2024-12-22 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076185', 'tblTempUsageDetail_20' ) end [2024-12-22 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076185', 'tblTempVendorCDR_20' ) start [2024-12-22 08:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076185', 'tblTempVendorCDR_20' ) end [2024-12-22 08:10:17] Production.INFO: ProcessCDR(1,14076185,1,1,2) [2024-12-22 08:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076185', 'tblTempUsageDetail_20' ) start [2024-12-22 08:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076185', 'tblTempUsageDetail_20' ) end [2024-12-22 08:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:10:20] Production.INFO: ==30353== Releasing lock... [2024-12-22 08:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:10:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:11:05 [end_date_ymd] => 2024-12-22 08:11:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:11:05' and `end` < '2024-12-22 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-22 08:11:19] Production.INFO: count ==25 [2024-12-22 08:11:19] Production.ERROR: pbx CDR StartTime 2024-12-22 05:11:05 - End Time 2024-12-22 08:11:05 [2024-12-22 08:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076190', 'tblTempUsageDetail_20' ) start [2024-12-22 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076190', 'tblTempUsageDetail_20' ) end [2024-12-22 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076190', 'tblTempVendorCDR_20' ) start [2024-12-22 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076190', 'tblTempVendorCDR_20' ) end [2024-12-22 08:11:19] Production.INFO: ProcessCDR(1,14076190,1,1,2) [2024-12-22 08:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076190', 'tblTempUsageDetail_20' ) start [2024-12-22 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076190', 'tblTempUsageDetail_20' ) end [2024-12-22 08:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:11:22] Production.INFO: ==30474== Releasing lock... [2024-12-22 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:11:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:12:04 [end_date_ymd] => 2024-12-22 08:12:04 [RateCDR] => 1 ) [2024-12-22 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-22 05:12:04' and `end` < '2024-12-22 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-22 08:12:17] Production.INFO: count ==25 [2024-12-22 08:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:12:04 - End Time 2024-12-22 08:12:04 [2024-12-22 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076195', 'tblTempUsageDetail_20' ) start [2024-12-22 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076195', 'tblTempUsageDetail_20' ) end [2024-12-22 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076195', 'tblTempVendorCDR_20' ) start [2024-12-22 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076195', 'tblTempVendorCDR_20' ) end [2024-12-22 08:12:17] Production.INFO: ProcessCDR(1,14076195,1,1,2) [2024-12-22 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076195', 'tblTempUsageDetail_20' ) start [2024-12-22 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076195', 'tblTempUsageDetail_20' ) end [2024-12-22 08:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:12:20] Production.INFO: ==30547== Releasing lock... [2024-12-22 08:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:12:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:13:05 [end_date_ymd] => 2024-12-22 08:13:05 [RateCDR] => 1 ) [2024-12-22 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:13:05' and `end` < '2024-12-22 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:13:17] Production.INFO: count ==25 [2024-12-22 08:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:13:05 - End Time 2024-12-22 08:13:05 [2024-12-22 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076200', 'tblTempUsageDetail_20' ) start [2024-12-22 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076200', 'tblTempUsageDetail_20' ) end [2024-12-22 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076200', 'tblTempVendorCDR_20' ) start [2024-12-22 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076200', 'tblTempVendorCDR_20' ) end [2024-12-22 08:13:17] Production.INFO: ProcessCDR(1,14076200,1,1,2) [2024-12-22 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076200', 'tblTempUsageDetail_20' ) start [2024-12-22 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076200', 'tblTempUsageDetail_20' ) end [2024-12-22 08:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:13:20] Production.INFO: ==30618== Releasing lock... [2024-12-22 08:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:13:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:14:05 [end_date_ymd] => 2024-12-22 08:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:14:05' and `end` < '2024-12-22 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-22 08:14:19] Production.INFO: count ==25 [2024-12-22 08:14:19] Production.ERROR: pbx CDR StartTime 2024-12-22 05:14:05 - End Time 2024-12-22 08:14:05 [2024-12-22 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076205', 'tblTempUsageDetail_20' ) start [2024-12-22 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076205', 'tblTempUsageDetail_20' ) end [2024-12-22 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076205', 'tblTempVendorCDR_20' ) start [2024-12-22 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076205', 'tblTempVendorCDR_20' ) end [2024-12-22 08:14:19] Production.INFO: ProcessCDR(1,14076205,1,1,2) [2024-12-22 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076205', 'tblTempUsageDetail_20' ) start [2024-12-22 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076205', 'tblTempUsageDetail_20' ) end [2024-12-22 08:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:14:22] Production.INFO: ==30690== Releasing lock... [2024-12-22 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:14:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:15:04 [end_date_ymd] => 2024-12-22 08:15:04 [RateCDR] => 1 ) [2024-12-22 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-22 05:15:04' and `end` < '2024-12-22 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-22 08:15:16] Production.INFO: count ==25 [2024-12-22 08:15:16] Production.ERROR: pbx CDR StartTime 2024-12-22 05:15:04 - End Time 2024-12-22 08:15:04 [2024-12-22 08:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076209', 'tblTempUsageDetail_20' ) start [2024-12-22 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076209', 'tblTempUsageDetail_20' ) end [2024-12-22 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076209', 'tblTempVendorCDR_20' ) start [2024-12-22 08:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076209', 'tblTempVendorCDR_20' ) end [2024-12-22 08:15:16] Production.INFO: ProcessCDR(1,14076209,1,1,2) [2024-12-22 08:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076209', 'tblTempUsageDetail_20' ) start [2024-12-22 08:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076209', 'tblTempUsageDetail_20' ) end [2024-12-22 08:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:15:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:15:20] Production.INFO: ==30761== Releasing lock... [2024-12-22 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:15:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:16:05 [end_date_ymd] => 2024-12-22 08:16:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:16:05' and `end` < '2024-12-22 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-22 08:16:17] Production.INFO: count ==25 [2024-12-22 08:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:16:05 - End Time 2024-12-22 08:16:05 [2024-12-22 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076215', 'tblTempUsageDetail_20' ) start [2024-12-22 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076215', 'tblTempUsageDetail_20' ) end [2024-12-22 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076215', 'tblTempVendorCDR_20' ) start [2024-12-22 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076215', 'tblTempVendorCDR_20' ) end [2024-12-22 08:16:17] Production.INFO: ProcessCDR(1,14076215,1,1,2) [2024-12-22 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076215', 'tblTempUsageDetail_20' ) start [2024-12-22 08:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076215', 'tblTempUsageDetail_20' ) end [2024-12-22 08:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:16:20] Production.INFO: ==30843== Releasing lock... [2024-12-22 08:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:16:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:17:05 [end_date_ymd] => 2024-12-22 08:17:05 [RateCDR] => 1 ) [2024-12-22 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:17:05' and `end` < '2024-12-22 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:17:18] Production.INFO: count ==25 [2024-12-22 08:17:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:17:05 - End Time 2024-12-22 08:17:05 [2024-12-22 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076220', 'tblTempUsageDetail_20' ) start [2024-12-22 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076220', 'tblTempUsageDetail_20' ) end [2024-12-22 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076220', 'tblTempVendorCDR_20' ) start [2024-12-22 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076220', 'tblTempVendorCDR_20' ) end [2024-12-22 08:17:18] Production.INFO: ProcessCDR(1,14076220,1,1,2) [2024-12-22 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076220', 'tblTempUsageDetail_20' ) start [2024-12-22 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076220', 'tblTempUsageDetail_20' ) end [2024-12-22 08:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:17:21] Production.INFO: ==30933== Releasing lock... [2024-12-22 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:17:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:18:05 [end_date_ymd] => 2024-12-22 08:18:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:18:05' and `end` < '2024-12-22 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-22 08:18:17] Production.INFO: count ==25 [2024-12-22 08:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:18:05 - End Time 2024-12-22 08:18:05 [2024-12-22 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076225', 'tblTempUsageDetail_20' ) start [2024-12-22 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076225', 'tblTempUsageDetail_20' ) end [2024-12-22 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076225', 'tblTempVendorCDR_20' ) start [2024-12-22 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076225', 'tblTempVendorCDR_20' ) end [2024-12-22 08:18:17] Production.INFO: ProcessCDR(1,14076225,1,1,2) [2024-12-22 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076225', 'tblTempUsageDetail_20' ) start [2024-12-22 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076225', 'tblTempUsageDetail_20' ) end [2024-12-22 08:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:18:20] Production.INFO: ==31006== Releasing lock... [2024-12-22 08:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:18:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:19:05 [end_date_ymd] => 2024-12-22 08:19:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:19:05' and `end` < '2024-12-22 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-22 08:19:18] Production.INFO: count ==25 [2024-12-22 08:19:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:19:05 - End Time 2024-12-22 08:19:05 [2024-12-22 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076230', 'tblTempUsageDetail_20' ) start [2024-12-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076230', 'tblTempUsageDetail_20' ) end [2024-12-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076230', 'tblTempVendorCDR_20' ) start [2024-12-22 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076230', 'tblTempVendorCDR_20' ) end [2024-12-22 08:19:18] Production.INFO: ProcessCDR(1,14076230,1,1,2) [2024-12-22 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076230', 'tblTempUsageDetail_20' ) start [2024-12-22 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076230', 'tblTempUsageDetail_20' ) end [2024-12-22 08:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:19:21] Production.INFO: ==31081== Releasing lock... [2024-12-22 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:19:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:20:06 [end_date_ymd] => 2024-12-22 08:20:06 [RateCDR] => 1 ) [2024-12-22 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-22 05:20:06' and `end` < '2024-12-22 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-22 08:20:19] Production.INFO: count ==27 [2024-12-22 08:20:19] Production.ERROR: pbx CDR StartTime 2024-12-22 05:20:06 - End Time 2024-12-22 08:20:06 [2024-12-22 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076235', 'tblTempUsageDetail_20' ) start [2024-12-22 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076235', 'tblTempUsageDetail_20' ) end [2024-12-22 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076235', 'tblTempVendorCDR_20' ) start [2024-12-22 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076235', 'tblTempVendorCDR_20' ) end [2024-12-22 08:20:19] Production.INFO: ProcessCDR(1,14076235,1,1,2) [2024-12-22 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076235', 'tblTempUsageDetail_20' ) start [2024-12-22 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076235', 'tblTempUsageDetail_20' ) end [2024-12-22 08:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:20:22] Production.INFO: ==31168== Releasing lock... [2024-12-22 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:20:22] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:21:04 [end_date_ymd] => 2024-12-22 08:21:04 [RateCDR] => 1 ) [2024-12-22 08: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-22 05:21:04' and `end` < '2024-12-22 08: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-22 08:21:16] Production.INFO: count ==27 [2024-12-22 08:21:16] Production.ERROR: pbx CDR StartTime 2024-12-22 05:21:04 - End Time 2024-12-22 08:21:04 [2024-12-22 08:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076241', 'tblTempUsageDetail_20' ) start [2024-12-22 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076241', 'tblTempUsageDetail_20' ) end [2024-12-22 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076241', 'tblTempVendorCDR_20' ) start [2024-12-22 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076241', 'tblTempVendorCDR_20' ) end [2024-12-22 08:21:16] Production.INFO: ProcessCDR(1,14076241,1,1,2) [2024-12-22 08:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076241', 'tblTempUsageDetail_20' ) start [2024-12-22 08:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076241', 'tblTempUsageDetail_20' ) end [2024-12-22 08:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:21:19] Production.INFO: ==31244== Releasing lock... [2024-12-22 08:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:21:19] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:22:05 [end_date_ymd] => 2024-12-22 08:22:05 [RateCDR] => 1 ) [2024-12-22 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:22:05' and `end` < '2024-12-22 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:22:18] Production.INFO: count ==27 [2024-12-22 08:22:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:22:05 - End Time 2024-12-22 08:22:05 [2024-12-22 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076246', 'tblTempUsageDetail_20' ) start [2024-12-22 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076246', 'tblTempUsageDetail_20' ) end [2024-12-22 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076246', 'tblTempVendorCDR_20' ) start [2024-12-22 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076246', 'tblTempVendorCDR_20' ) end [2024-12-22 08:22:18] Production.INFO: ProcessCDR(1,14076246,1,1,2) [2024-12-22 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076246', 'tblTempUsageDetail_20' ) start [2024-12-22 08:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076246', 'tblTempUsageDetail_20' ) end [2024-12-22 08:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:22:21] Production.INFO: ==31328== Releasing lock... [2024-12-22 08:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:22:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:23:05 [end_date_ymd] => 2024-12-22 08:23:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:23:05' and `end` < '2024-12-22 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-22 08:23:18] Production.INFO: count ==27 [2024-12-22 08:23:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:23:05 - End Time 2024-12-22 08:23:05 [2024-12-22 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076251', 'tblTempUsageDetail_20' ) start [2024-12-22 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076251', 'tblTempUsageDetail_20' ) end [2024-12-22 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076251', 'tblTempVendorCDR_20' ) start [2024-12-22 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076251', 'tblTempVendorCDR_20' ) end [2024-12-22 08:23:18] Production.INFO: ProcessCDR(1,14076251,1,1,2) [2024-12-22 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076251', 'tblTempUsageDetail_20' ) start [2024-12-22 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076251', 'tblTempUsageDetail_20' ) end [2024-12-22 08:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:23:21] Production.INFO: ==31412== Releasing lock... [2024-12-22 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:23:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:24:05 [end_date_ymd] => 2024-12-22 08:24:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:24:05' and `end` < '2024-12-22 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-22 08:24:17] Production.INFO: count ==27 [2024-12-22 08:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:24:05 - End Time 2024-12-22 08:24:05 [2024-12-22 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076256', 'tblTempUsageDetail_20' ) start [2024-12-22 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076256', 'tblTempUsageDetail_20' ) end [2024-12-22 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076256', 'tblTempVendorCDR_20' ) start [2024-12-22 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076256', 'tblTempVendorCDR_20' ) end [2024-12-22 08:24:17] Production.INFO: ProcessCDR(1,14076256,1,1,2) [2024-12-22 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076256', 'tblTempUsageDetail_20' ) start [2024-12-22 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076256', 'tblTempUsageDetail_20' ) end [2024-12-22 08:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:24:20] Production.INFO: ==31493== Releasing lock... [2024-12-22 08:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:24:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:25:05 [end_date_ymd] => 2024-12-22 08:25:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:25:05' and `end` < '2024-12-22 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-22 08:25:17] Production.INFO: count ==27 [2024-12-22 08:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:25:05 - End Time 2024-12-22 08:25:05 [2024-12-22 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076261', 'tblTempUsageDetail_20' ) start [2024-12-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076261', 'tblTempUsageDetail_20' ) end [2024-12-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076261', 'tblTempVendorCDR_20' ) start [2024-12-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076261', 'tblTempVendorCDR_20' ) end [2024-12-22 08:25:17] Production.INFO: ProcessCDR(1,14076261,1,1,2) [2024-12-22 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076261', 'tblTempUsageDetail_20' ) start [2024-12-22 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076261', 'tblTempUsageDetail_20' ) end [2024-12-22 08:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:25:21] Production.INFO: ==31573== Releasing lock... [2024-12-22 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:25:21] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:26:05 [end_date_ymd] => 2024-12-22 08:26:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:26:05' and `end` < '2024-12-22 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-22 08:26:17] Production.INFO: count ==27 [2024-12-22 08:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:26:05 - End Time 2024-12-22 08:26:05 [2024-12-22 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076266', 'tblTempUsageDetail_20' ) start [2024-12-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076266', 'tblTempUsageDetail_20' ) end [2024-12-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076266', 'tblTempVendorCDR_20' ) start [2024-12-22 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076266', 'tblTempVendorCDR_20' ) end [2024-12-22 08:26:17] Production.INFO: ProcessCDR(1,14076266,1,1,2) [2024-12-22 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076266', 'tblTempUsageDetail_20' ) start [2024-12-22 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076266', 'tblTempUsageDetail_20' ) end [2024-12-22 08:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:26:20] Production.INFO: ==31654== Releasing lock... [2024-12-22 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:26:20] Production.INFO: 27.75 MB #Memory Used# [2024-12-22 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:27:05 [end_date_ymd] => 2024-12-22 08:27:05 [RateCDR] => 1 ) [2024-12-22 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:27:05' and `end` < '2024-12-22 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:27:17] Production.INFO: count ==34 [2024-12-22 08:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:27:05 - End Time 2024-12-22 08:27:05 [2024-12-22 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076271', 'tblTempUsageDetail_20' ) start [2024-12-22 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076271', 'tblTempUsageDetail_20' ) end [2024-12-22 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076271', 'tblTempVendorCDR_20' ) start [2024-12-22 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076271', 'tblTempVendorCDR_20' ) end [2024-12-22 08:27:17] Production.INFO: ProcessCDR(1,14076271,1,1,2) [2024-12-22 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076271', 'tblTempUsageDetail_20' ) start [2024-12-22 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076271', 'tblTempUsageDetail_20' ) end [2024-12-22 08:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:27:20] Production.INFO: ==31779== Releasing lock... [2024-12-22 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:27:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:28:04 [end_date_ymd] => 2024-12-22 08:28:04 [RateCDR] => 1 ) [2024-12-22 08: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-22 05:28:04' and `end` < '2024-12-22 08: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-22 08:28:16] Production.INFO: count ==34 [2024-12-22 08:28:16] Production.ERROR: pbx CDR StartTime 2024-12-22 05:28:04 - End Time 2024-12-22 08:28:04 [2024-12-22 08:28:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076276', 'tblTempUsageDetail_20' ) start [2024-12-22 08:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076276', 'tblTempUsageDetail_20' ) end [2024-12-22 08:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076276', 'tblTempVendorCDR_20' ) start [2024-12-22 08:28:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076276', 'tblTempVendorCDR_20' ) end [2024-12-22 08:28:16] Production.INFO: ProcessCDR(1,14076276,1,1,2) [2024-12-22 08:28:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076276', 'tblTempUsageDetail_20' ) start [2024-12-22 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076276', 'tblTempUsageDetail_20' ) end [2024-12-22 08:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:28:20] Production.INFO: ==31855== Releasing lock... [2024-12-22 08:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:28:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:29:05 [end_date_ymd] => 2024-12-22 08:29:05 [RateCDR] => 1 ) [2024-12-22 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:29:05' and `end` < '2024-12-22 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:29:18] Production.INFO: count ==34 [2024-12-22 08:29:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:29:05 - End Time 2024-12-22 08:29:05 [2024-12-22 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076281', 'tblTempUsageDetail_20' ) start [2024-12-22 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076281', 'tblTempUsageDetail_20' ) end [2024-12-22 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076281', 'tblTempVendorCDR_20' ) start [2024-12-22 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076281', 'tblTempVendorCDR_20' ) end [2024-12-22 08:29:18] Production.INFO: ProcessCDR(1,14076281,1,1,2) [2024-12-22 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076281', 'tblTempUsageDetail_20' ) start [2024-12-22 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076281', 'tblTempUsageDetail_20' ) end [2024-12-22 08:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:29:21] Production.INFO: ==31933== Releasing lock... [2024-12-22 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:29:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:30:06 [end_date_ymd] => 2024-12-22 08:30:06 [RateCDR] => 1 ) [2024-12-22 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:30:06' and `end` < '2024-12-22 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:30:18] Production.INFO: count ==36 [2024-12-22 08:30:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:30:06 - End Time 2024-12-22 08:30:06 [2024-12-22 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076286', 'tblTempUsageDetail_20' ) start [2024-12-22 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076286', 'tblTempUsageDetail_20' ) end [2024-12-22 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076286', 'tblTempVendorCDR_20' ) start [2024-12-22 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076286', 'tblTempVendorCDR_20' ) end [2024-12-22 08:30:18] Production.INFO: ProcessCDR(1,14076286,1,1,2) [2024-12-22 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076286', 'tblTempUsageDetail_20' ) start [2024-12-22 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076286', 'tblTempUsageDetail_20' ) end [2024-12-22 08:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:30:21] Production.INFO: ==32021== Releasing lock... [2024-12-22 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:30:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:31:05 [end_date_ymd] => 2024-12-22 08:31:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:31:05' and `end` < '2024-12-22 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-22 08:31:17] Production.INFO: count ==36 [2024-12-22 08:31:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:31:05 - End Time 2024-12-22 08:31:05 [2024-12-22 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076292', 'tblTempUsageDetail_20' ) start [2024-12-22 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076292', 'tblTempUsageDetail_20' ) end [2024-12-22 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076292', 'tblTempVendorCDR_20' ) start [2024-12-22 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076292', 'tblTempVendorCDR_20' ) end [2024-12-22 08:31:17] Production.INFO: ProcessCDR(1,14076292,1,1,2) [2024-12-22 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076292', 'tblTempUsageDetail_20' ) start [2024-12-22 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076292', 'tblTempUsageDetail_20' ) end [2024-12-22 08:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:31:20] Production.INFO: ==32105== Releasing lock... [2024-12-22 08:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:31:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:32:05 [end_date_ymd] => 2024-12-22 08:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:32:05' and `end` < '2024-12-22 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-22 08:32:17] Production.INFO: count ==36 [2024-12-22 08:32:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:32:05 - End Time 2024-12-22 08:32:05 [2024-12-22 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076297', 'tblTempUsageDetail_20' ) start [2024-12-22 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076297', 'tblTempUsageDetail_20' ) end [2024-12-22 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076297', 'tblTempVendorCDR_20' ) start [2024-12-22 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076297', 'tblTempVendorCDR_20' ) end [2024-12-22 08:32:17] Production.INFO: ProcessCDR(1,14076297,1,1,2) [2024-12-22 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076297', 'tblTempUsageDetail_20' ) start [2024-12-22 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076297', 'tblTempUsageDetail_20' ) end [2024-12-22 08:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:32:20] Production.INFO: ==32185== Releasing lock... [2024-12-22 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:32:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:33:04 [end_date_ymd] => 2024-12-22 08:33:04 [RateCDR] => 1 ) [2024-12-22 08:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:33:04' and `end` < '2024-12-22 08:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:33:17] Production.INFO: count ==36 [2024-12-22 08:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:33:04 - End Time 2024-12-22 08:33:04 [2024-12-22 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076302', 'tblTempUsageDetail_20' ) start [2024-12-22 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076302', 'tblTempUsageDetail_20' ) end [2024-12-22 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076302', 'tblTempVendorCDR_20' ) start [2024-12-22 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076302', 'tblTempVendorCDR_20' ) end [2024-12-22 08:33:17] Production.INFO: ProcessCDR(1,14076302,1,1,2) [2024-12-22 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076302', 'tblTempUsageDetail_20' ) start [2024-12-22 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076302', 'tblTempUsageDetail_20' ) end [2024-12-22 08:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:33:20] Production.INFO: ==32263== Releasing lock... [2024-12-22 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:33:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:34:05 [end_date_ymd] => 2024-12-22 08:34:05 [RateCDR] => 1 ) [2024-12-22 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:34:05' and `end` < '2024-12-22 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:34:17] Production.INFO: count ==36 [2024-12-22 08:34:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:34:05 - End Time 2024-12-22 08:34:05 [2024-12-22 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076307', 'tblTempUsageDetail_20' ) start [2024-12-22 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076307', 'tblTempUsageDetail_20' ) end [2024-12-22 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076307', 'tblTempVendorCDR_20' ) start [2024-12-22 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076307', 'tblTempVendorCDR_20' ) end [2024-12-22 08:34:17] Production.INFO: ProcessCDR(1,14076307,1,1,2) [2024-12-22 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076307', 'tblTempUsageDetail_20' ) start [2024-12-22 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076307', 'tblTempUsageDetail_20' ) end [2024-12-22 08:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:34:20] Production.INFO: ==32345== Releasing lock... [2024-12-22 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:34:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:35:04 [end_date_ymd] => 2024-12-22 08:35:04 [RateCDR] => 1 ) [2024-12-22 08:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:35:04' and `end` < '2024-12-22 08:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:35:17] Production.INFO: count ==36 [2024-12-22 08:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:35:04 - End Time 2024-12-22 08:35:04 [2024-12-22 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076312', 'tblTempUsageDetail_20' ) start [2024-12-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076312', 'tblTempUsageDetail_20' ) end [2024-12-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076312', 'tblTempVendorCDR_20' ) start [2024-12-22 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076312', 'tblTempVendorCDR_20' ) end [2024-12-22 08:35:17] Production.INFO: ProcessCDR(1,14076312,1,1,2) [2024-12-22 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076312', 'tblTempUsageDetail_20' ) start [2024-12-22 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076312', 'tblTempUsageDetail_20' ) end [2024-12-22 08:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:35:20] Production.INFO: ==32426== Releasing lock... [2024-12-22 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:35:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:36:05 [end_date_ymd] => 2024-12-22 08:36:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:36:05' and `end` < '2024-12-22 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-22 08:36:18] Production.INFO: count ==36 [2024-12-22 08:36:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:36:05 - End Time 2024-12-22 08:36:05 [2024-12-22 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076317', 'tblTempUsageDetail_20' ) start [2024-12-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076317', 'tblTempUsageDetail_20' ) end [2024-12-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076317', 'tblTempVendorCDR_20' ) start [2024-12-22 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076317', 'tblTempVendorCDR_20' ) end [2024-12-22 08:36:18] Production.INFO: ProcessCDR(1,14076317,1,1,2) [2024-12-22 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076317', 'tblTempUsageDetail_20' ) start [2024-12-22 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076317', 'tblTempUsageDetail_20' ) end [2024-12-22 08:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:36:21] Production.INFO: ==32510== Releasing lock... [2024-12-22 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:36:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:37:05 [end_date_ymd] => 2024-12-22 08:37:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:37:05' and `end` < '2024-12-22 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-22 08:37:17] Production.INFO: count ==36 [2024-12-22 08:37:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:37:05 - End Time 2024-12-22 08:37:05 [2024-12-22 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076322', 'tblTempUsageDetail_20' ) start [2024-12-22 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076322', 'tblTempUsageDetail_20' ) end [2024-12-22 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076322', 'tblTempVendorCDR_20' ) start [2024-12-22 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076322', 'tblTempVendorCDR_20' ) end [2024-12-22 08:37:17] Production.INFO: ProcessCDR(1,14076322,1,1,2) [2024-12-22 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076322', 'tblTempUsageDetail_20' ) start [2024-12-22 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076322', 'tblTempUsageDetail_20' ) end [2024-12-22 08:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:37:20] Production.INFO: ==32592== Releasing lock... [2024-12-22 08:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:37:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:38:05 [end_date_ymd] => 2024-12-22 08:38:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:38:05' and `end` < '2024-12-22 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-22 08:38:18] Production.INFO: count ==36 [2024-12-22 08:38:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:38:05 - End Time 2024-12-22 08:38:05 [2024-12-22 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076327', 'tblTempUsageDetail_20' ) start [2024-12-22 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076327', 'tblTempUsageDetail_20' ) end [2024-12-22 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076327', 'tblTempVendorCDR_20' ) start [2024-12-22 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076327', 'tblTempVendorCDR_20' ) end [2024-12-22 08:38:18] Production.INFO: ProcessCDR(1,14076327,1,1,2) [2024-12-22 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076327', 'tblTempUsageDetail_20' ) start [2024-12-22 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076327', 'tblTempUsageDetail_20' ) end [2024-12-22 08:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:38:21] Production.INFO: ==32672== Releasing lock... [2024-12-22 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:38:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:39:05 [end_date_ymd] => 2024-12-22 08:39:05 [RateCDR] => 1 ) [2024-12-22 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:39:05' and `end` < '2024-12-22 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:39:18] Production.INFO: count ==36 [2024-12-22 08:39:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:39:05 - End Time 2024-12-22 08:39:05 [2024-12-22 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076332', 'tblTempUsageDetail_20' ) start [2024-12-22 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076332', 'tblTempUsageDetail_20' ) end [2024-12-22 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076332', 'tblTempVendorCDR_20' ) start [2024-12-22 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076332', 'tblTempVendorCDR_20' ) end [2024-12-22 08:39:18] Production.INFO: ProcessCDR(1,14076332,1,1,2) [2024-12-22 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076332', 'tblTempUsageDetail_20' ) start [2024-12-22 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076332', 'tblTempUsageDetail_20' ) end [2024-12-22 08:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:39:21] Production.INFO: ==32753== Releasing lock... [2024-12-22 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:39:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:40:05 [end_date_ymd] => 2024-12-22 08:40:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:40:05' and `end` < '2024-12-22 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-22 08:40:18] Production.INFO: count ==38 [2024-12-22 08:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:40:05 - End Time 2024-12-22 08:40:05 [2024-12-22 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076338', 'tblTempUsageDetail_20' ) start [2024-12-22 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076338', 'tblTempUsageDetail_20' ) end [2024-12-22 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076338', 'tblTempVendorCDR_20' ) start [2024-12-22 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076338', 'tblTempVendorCDR_20' ) end [2024-12-22 08:40:18] Production.INFO: ProcessCDR(1,14076338,1,1,2) [2024-12-22 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076338', 'tblTempUsageDetail_20' ) start [2024-12-22 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076338', 'tblTempUsageDetail_20' ) end [2024-12-22 08:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:40:21] Production.INFO: ==386== Releasing lock... [2024-12-22 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:40:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:41:05 [end_date_ymd] => 2024-12-22 08:41:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:41:05' and `end` < '2024-12-22 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-22 08:41:18] Production.INFO: count ==38 [2024-12-22 08:41:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:41:05 - End Time 2024-12-22 08:41:05 [2024-12-22 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076343', 'tblTempUsageDetail_20' ) start [2024-12-22 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076343', 'tblTempUsageDetail_20' ) end [2024-12-22 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076343', 'tblTempVendorCDR_20' ) start [2024-12-22 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076343', 'tblTempVendorCDR_20' ) end [2024-12-22 08:41:18] Production.INFO: ProcessCDR(1,14076343,1,1,2) [2024-12-22 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076343', 'tblTempUsageDetail_20' ) start [2024-12-22 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076343', 'tblTempUsageDetail_20' ) end [2024-12-22 08:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:41:22] Production.INFO: ==465== Releasing lock... [2024-12-22 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:41:22] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:42:04 [end_date_ymd] => 2024-12-22 08:42:04 [RateCDR] => 1 ) [2024-12-22 08:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:42:04' and `end` < '2024-12-22 08:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:42:17] Production.INFO: count ==38 [2024-12-22 08:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:42:04 - End Time 2024-12-22 08:42:04 [2024-12-22 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076348', 'tblTempUsageDetail_20' ) start [2024-12-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076348', 'tblTempUsageDetail_20' ) end [2024-12-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076348', 'tblTempVendorCDR_20' ) start [2024-12-22 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076348', 'tblTempVendorCDR_20' ) end [2024-12-22 08:42:17] Production.INFO: ProcessCDR(1,14076348,1,1,2) [2024-12-22 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076348', 'tblTempUsageDetail_20' ) start [2024-12-22 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076348', 'tblTempUsageDetail_20' ) end [2024-12-22 08:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:42:20] Production.INFO: ==551== Releasing lock... [2024-12-22 08:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:42:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:43:05 [end_date_ymd] => 2024-12-22 08:43:05 [RateCDR] => 1 ) [2024-12-22 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:43:05' and `end` < '2024-12-22 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:43:18] Production.INFO: count ==38 [2024-12-22 08:43:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:43:05 - End Time 2024-12-22 08:43:05 [2024-12-22 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076353', 'tblTempUsageDetail_20' ) start [2024-12-22 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076353', 'tblTempUsageDetail_20' ) end [2024-12-22 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076353', 'tblTempVendorCDR_20' ) start [2024-12-22 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076353', 'tblTempVendorCDR_20' ) end [2024-12-22 08:43:18] Production.INFO: ProcessCDR(1,14076353,1,1,2) [2024-12-22 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076353', 'tblTempUsageDetail_20' ) start [2024-12-22 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076353', 'tblTempUsageDetail_20' ) end [2024-12-22 08:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:43:21] Production.INFO: ==705== Releasing lock... [2024-12-22 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:43:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:44:04 [end_date_ymd] => 2024-12-22 08:44:04 [RateCDR] => 1 ) [2024-12-22 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-22 05:44:04' and `end` < '2024-12-22 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-22 08:44:17] Production.INFO: count ==38 [2024-12-22 08:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:44:04 - End Time 2024-12-22 08:44:04 [2024-12-22 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076358', 'tblTempUsageDetail_20' ) start [2024-12-22 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076358', 'tblTempUsageDetail_20' ) end [2024-12-22 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076358', 'tblTempVendorCDR_20' ) start [2024-12-22 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076358', 'tblTempVendorCDR_20' ) end [2024-12-22 08:44:17] Production.INFO: ProcessCDR(1,14076358,1,1,2) [2024-12-22 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076358', 'tblTempUsageDetail_20' ) start [2024-12-22 08:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076358', 'tblTempUsageDetail_20' ) end [2024-12-22 08:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:44:20] Production.INFO: ==785== Releasing lock... [2024-12-22 08:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:44:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:45:05 [end_date_ymd] => 2024-12-22 08:45:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:45:05' and `end` < '2024-12-22 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-22 08:45:17] Production.INFO: count ==42 [2024-12-22 08:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:45:05 - End Time 2024-12-22 08:45:05 [2024-12-22 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076363', 'tblTempUsageDetail_20' ) start [2024-12-22 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076363', 'tblTempUsageDetail_20' ) end [2024-12-22 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076363', 'tblTempVendorCDR_20' ) start [2024-12-22 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076363', 'tblTempVendorCDR_20' ) end [2024-12-22 08:45:17] Production.INFO: ProcessCDR(1,14076363,1,1,2) [2024-12-22 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076363', 'tblTempUsageDetail_20' ) start [2024-12-22 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076363', 'tblTempUsageDetail_20' ) end [2024-12-22 08:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:45:20] Production.INFO: ==870== Releasing lock... [2024-12-22 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:45:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:46:04 [end_date_ymd] => 2024-12-22 08:46:04 [RateCDR] => 1 ) [2024-12-22 08: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-22 05:46:04' and `end` < '2024-12-22 08: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-22 08:46:16] Production.INFO: count ==44 [2024-12-22 08:46:16] Production.ERROR: pbx CDR StartTime 2024-12-22 05:46:04 - End Time 2024-12-22 08:46:04 [2024-12-22 08:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076368', 'tblTempUsageDetail_20' ) start [2024-12-22 08:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076368', 'tblTempUsageDetail_20' ) end [2024-12-22 08:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076368', 'tblTempVendorCDR_20' ) start [2024-12-22 08:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076368', 'tblTempVendorCDR_20' ) end [2024-12-22 08:46:16] Production.INFO: ProcessCDR(1,14076368,1,1,2) [2024-12-22 08:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:46:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076368', 'tblTempUsageDetail_20' ) start [2024-12-22 08:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076368', 'tblTempUsageDetail_20' ) end [2024-12-22 08:46:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:46:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:46:19] Production.INFO: ==951== Releasing lock... [2024-12-22 08:46:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:46:19] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:47:05 [end_date_ymd] => 2024-12-22 08:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:47:05' and `end` < '2024-12-22 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-22 08:47:17] Production.INFO: count ==44 [2024-12-22 08:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:47:05 - End Time 2024-12-22 08:47:05 [2024-12-22 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076373', 'tblTempUsageDetail_20' ) start [2024-12-22 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076373', 'tblTempUsageDetail_20' ) end [2024-12-22 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076373', 'tblTempVendorCDR_20' ) start [2024-12-22 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076373', 'tblTempVendorCDR_20' ) end [2024-12-22 08:47:17] Production.INFO: ProcessCDR(1,14076373,1,1,2) [2024-12-22 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076373', 'tblTempUsageDetail_20' ) start [2024-12-22 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076373', 'tblTempUsageDetail_20' ) end [2024-12-22 08:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:47:21] Production.INFO: ==1030== Releasing lock... [2024-12-22 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:47:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:48:05 [end_date_ymd] => 2024-12-22 08:48:05 [RateCDR] => 1 ) [2024-12-22 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:48:05' and `end` < '2024-12-22 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:48:18] Production.INFO: count ==44 [2024-12-22 08:48:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:48:05 - End Time 2024-12-22 08:48:05 [2024-12-22 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076378', 'tblTempUsageDetail_20' ) start [2024-12-22 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076378', 'tblTempUsageDetail_20' ) end [2024-12-22 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076378', 'tblTempVendorCDR_20' ) start [2024-12-22 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076378', 'tblTempVendorCDR_20' ) end [2024-12-22 08:48:18] Production.INFO: ProcessCDR(1,14076378,1,1,2) [2024-12-22 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076378', 'tblTempUsageDetail_20' ) start [2024-12-22 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076378', 'tblTempUsageDetail_20' ) end [2024-12-22 08:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:48:21] Production.INFO: ==1112== Releasing lock... [2024-12-22 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:48:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:49:05 [end_date_ymd] => 2024-12-22 08:49:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:49:05' and `end` < '2024-12-22 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-22 08:49:17] Production.INFO: count ==44 [2024-12-22 08:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:49:05 - End Time 2024-12-22 08:49:05 [2024-12-22 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076383', 'tblTempUsageDetail_20' ) start [2024-12-22 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076383', 'tblTempUsageDetail_20' ) end [2024-12-22 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076383', 'tblTempVendorCDR_20' ) start [2024-12-22 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076383', 'tblTempVendorCDR_20' ) end [2024-12-22 08:49:17] Production.INFO: ProcessCDR(1,14076383,1,1,2) [2024-12-22 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076383', 'tblTempUsageDetail_20' ) start [2024-12-22 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076383', 'tblTempUsageDetail_20' ) end [2024-12-22 08:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:49:20] Production.INFO: ==1200== Releasing lock... [2024-12-22 08:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:49:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:50:06 [end_date_ymd] => 2024-12-22 08:50:06 [RateCDR] => 1 ) [2024-12-22 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:50:06' and `end` < '2024-12-22 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:50:18] Production.INFO: count ==44 [2024-12-22 08:50:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:50:06 - End Time 2024-12-22 08:50:06 [2024-12-22 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076388', 'tblTempUsageDetail_20' ) start [2024-12-22 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076388', 'tblTempUsageDetail_20' ) end [2024-12-22 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076388', 'tblTempVendorCDR_20' ) start [2024-12-22 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076388', 'tblTempVendorCDR_20' ) end [2024-12-22 08:50:18] Production.INFO: ProcessCDR(1,14076388,1,1,2) [2024-12-22 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076388', 'tblTempUsageDetail_20' ) start [2024-12-22 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076388', 'tblTempUsageDetail_20' ) end [2024-12-22 08:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:50:21] Production.INFO: ==1295== Releasing lock... [2024-12-22 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:50:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:51:04 [end_date_ymd] => 2024-12-22 08:51:04 [RateCDR] => 1 ) [2024-12-22 08: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-22 05:51:04' and `end` < '2024-12-22 08: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-22 08:51:16] Production.INFO: count ==44 [2024-12-22 08:51:16] Production.ERROR: pbx CDR StartTime 2024-12-22 05:51:04 - End Time 2024-12-22 08:51:04 [2024-12-22 08:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076394', 'tblTempUsageDetail_20' ) start [2024-12-22 08:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076394', 'tblTempUsageDetail_20' ) end [2024-12-22 08:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076394', 'tblTempVendorCDR_20' ) start [2024-12-22 08:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076394', 'tblTempVendorCDR_20' ) end [2024-12-22 08:51:16] Production.INFO: ProcessCDR(1,14076394,1,1,2) [2024-12-22 08:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076394', 'tblTempUsageDetail_20' ) start [2024-12-22 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076394', 'tblTempUsageDetail_20' ) end [2024-12-22 08:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:51:20] Production.INFO: ==1385== Releasing lock... [2024-12-22 08:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:51:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:52:05 [end_date_ymd] => 2024-12-22 08:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:52:05' and `end` < '2024-12-22 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-22 08:52:17] Production.INFO: count ==44 [2024-12-22 08:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:52:05 - End Time 2024-12-22 08:52:05 [2024-12-22 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076399', 'tblTempUsageDetail_20' ) start [2024-12-22 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076399', 'tblTempUsageDetail_20' ) end [2024-12-22 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076399', 'tblTempVendorCDR_20' ) start [2024-12-22 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076399', 'tblTempVendorCDR_20' ) end [2024-12-22 08:52:17] Production.INFO: ProcessCDR(1,14076399,1,1,2) [2024-12-22 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076399', 'tblTempUsageDetail_20' ) start [2024-12-22 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076399', 'tblTempUsageDetail_20' ) end [2024-12-22 08:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:52:20] Production.INFO: ==1465== Releasing lock... [2024-12-22 08:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:52:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:53:04 [end_date_ymd] => 2024-12-22 08:53:04 [RateCDR] => 1 ) [2024-12-22 08:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:53:04' and `end` < '2024-12-22 08:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:53:17] Production.INFO: count ==44 [2024-12-22 08:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:53:04 - End Time 2024-12-22 08:53:04 [2024-12-22 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076403', 'tblTempUsageDetail_20' ) start [2024-12-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076403', 'tblTempUsageDetail_20' ) end [2024-12-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076403', 'tblTempVendorCDR_20' ) start [2024-12-22 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076403', 'tblTempVendorCDR_20' ) end [2024-12-22 08:53:17] Production.INFO: ProcessCDR(1,14076403,1,1,2) [2024-12-22 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076403', 'tblTempUsageDetail_20' ) start [2024-12-22 08:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076403', 'tblTempUsageDetail_20' ) end [2024-12-22 08:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:53:20] Production.INFO: ==1579== Releasing lock... [2024-12-22 08:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:53:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:54:05 [end_date_ymd] => 2024-12-22 08:54:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:54:05' and `end` < '2024-12-22 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-22 08:54:17] Production.INFO: count ==44 [2024-12-22 08:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:54:05 - End Time 2024-12-22 08:54:05 [2024-12-22 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076409', 'tblTempUsageDetail_20' ) start [2024-12-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076409', 'tblTempUsageDetail_20' ) end [2024-12-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076409', 'tblTempVendorCDR_20' ) start [2024-12-22 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076409', 'tblTempVendorCDR_20' ) end [2024-12-22 08:54:17] Production.INFO: ProcessCDR(1,14076409,1,1,2) [2024-12-22 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076409', 'tblTempUsageDetail_20' ) start [2024-12-22 08:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076409', 'tblTempUsageDetail_20' ) end [2024-12-22 08:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:54:20] Production.INFO: ==1656== Releasing lock... [2024-12-22 08:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:54:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:55:04 [end_date_ymd] => 2024-12-22 08:55:04 [RateCDR] => 1 ) [2024-12-22 08:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:55:04' and `end` < '2024-12-22 08:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:55:16] Production.INFO: count ==44 [2024-12-22 08:55:16] Production.ERROR: pbx CDR StartTime 2024-12-22 05:55:04 - End Time 2024-12-22 08:55:04 [2024-12-22 08:55:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076414', 'tblTempUsageDetail_20' ) start [2024-12-22 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076414', 'tblTempUsageDetail_20' ) end [2024-12-22 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076414', 'tblTempVendorCDR_20' ) start [2024-12-22 08:55:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076414', 'tblTempVendorCDR_20' ) end [2024-12-22 08:55:16] Production.INFO: ProcessCDR(1,14076414,1,1,2) [2024-12-22 08:55:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:55:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076414', 'tblTempUsageDetail_20' ) start [2024-12-22 08:55:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076414', 'tblTempUsageDetail_20' ) end [2024-12-22 08:55:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:55:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:55:19] Production.INFO: ==1746== Releasing lock... [2024-12-22 08:55:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:55:19] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:56:04 [end_date_ymd] => 2024-12-22 08:56:04 [RateCDR] => 1 ) [2024-12-22 08:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:56:04' and `end` < '2024-12-22 08:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:56:17] Production.INFO: count ==44 [2024-12-22 08:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:56:04 - End Time 2024-12-22 08:56:04 [2024-12-22 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076419', 'tblTempUsageDetail_20' ) start [2024-12-22 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076419', 'tblTempUsageDetail_20' ) end [2024-12-22 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076419', 'tblTempVendorCDR_20' ) start [2024-12-22 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076419', 'tblTempVendorCDR_20' ) end [2024-12-22 08:56:17] Production.INFO: ProcessCDR(1,14076419,1,1,2) [2024-12-22 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076419', 'tblTempUsageDetail_20' ) start [2024-12-22 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076419', 'tblTempUsageDetail_20' ) end [2024-12-22 08:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:56:20] Production.INFO: ==1834== Releasing lock... [2024-12-22 08:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:56:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:57:05 [end_date_ymd] => 2024-12-22 08:57:05 [RateCDR] => 1 ) [2024-12-22 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:57:05' and `end` < '2024-12-22 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:57:18] Production.INFO: count ==44 [2024-12-22 08:57:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:57:05 - End Time 2024-12-22 08:57:05 [2024-12-22 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076424', 'tblTempUsageDetail_20' ) start [2024-12-22 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076424', 'tblTempUsageDetail_20' ) end [2024-12-22 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076424', 'tblTempVendorCDR_20' ) start [2024-12-22 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076424', 'tblTempVendorCDR_20' ) end [2024-12-22 08:57:18] Production.INFO: ProcessCDR(1,14076424,1,1,2) [2024-12-22 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076424', 'tblTempUsageDetail_20' ) start [2024-12-22 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076424', 'tblTempUsageDetail_20' ) end [2024-12-22 08:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:57:21] Production.INFO: ==1917== Releasing lock... [2024-12-22 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:57:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:58:05 [end_date_ymd] => 2024-12-22 08:58:05 [RateCDR] => 1 ) [2024-12-22 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 05:58:05' and `end` < '2024-12-22 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 08:58:18] Production.INFO: count ==44 [2024-12-22 08:58:18] Production.ERROR: pbx CDR StartTime 2024-12-22 05:58:05 - End Time 2024-12-22 08:58:05 [2024-12-22 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076429', 'tblTempUsageDetail_20' ) start [2024-12-22 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076429', 'tblTempUsageDetail_20' ) end [2024-12-22 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076429', 'tblTempVendorCDR_20' ) start [2024-12-22 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076429', 'tblTempVendorCDR_20' ) end [2024-12-22 08:58:18] Production.INFO: ProcessCDR(1,14076429,1,1,2) [2024-12-22 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076429', 'tblTempUsageDetail_20' ) start [2024-12-22 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076429', 'tblTempUsageDetail_20' ) end [2024-12-22 08:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:58:21] Production.INFO: ==2056== Releasing lock... [2024-12-22 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:58:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 05:59:05 [end_date_ymd] => 2024-12-22 08:59:05 [RateCDR] => 1 ) [2024-12-22 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-22 05:59:05' and `end` < '2024-12-22 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-22 08:59:17] Production.INFO: count ==44 [2024-12-22 08:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 05:59:05 - End Time 2024-12-22 08:59:05 [2024-12-22 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076434', 'tblTempUsageDetail_20' ) start [2024-12-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076434', 'tblTempUsageDetail_20' ) end [2024-12-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076434', 'tblTempVendorCDR_20' ) start [2024-12-22 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076434', 'tblTempVendorCDR_20' ) end [2024-12-22 08:59:17] Production.INFO: ProcessCDR(1,14076434,1,1,2) [2024-12-22 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076434', 'tblTempUsageDetail_20' ) start [2024-12-22 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076434', 'tblTempUsageDetail_20' ) end [2024-12-22 08:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 08:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 08:59:20] Production.INFO: ==2200== Releasing lock... [2024-12-22 08:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 08:59:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:00:05 [end_date_ymd] => 2024-12-22 09:00:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:00:05' and `end` < '2024-12-22 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-22 09:00:17] Production.INFO: count ==44 [2024-12-22 09:00:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:00:05 - End Time 2024-12-22 09:00:05 [2024-12-22 09:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076440', 'tblTempUsageDetail_20' ) start [2024-12-22 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076440', 'tblTempUsageDetail_20' ) end [2024-12-22 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076440', 'tblTempVendorCDR_20' ) start [2024-12-22 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076440', 'tblTempVendorCDR_20' ) end [2024-12-22 09:00:17] Production.INFO: ProcessCDR(1,14076440,1,1,2) [2024-12-22 09:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076440', 'tblTempUsageDetail_20' ) start [2024-12-22 09:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076440', 'tblTempUsageDetail_20' ) end [2024-12-22 09:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:00:20] Production.INFO: ==2296== Releasing lock... [2024-12-22 09:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:00:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:01:04 [end_date_ymd] => 2024-12-22 09:01:04 [RateCDR] => 1 ) [2024-12-22 09:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:01:04' and `end` < '2024-12-22 09:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:01:16] Production.INFO: count ==44 [2024-12-22 09:01:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:01:04 - End Time 2024-12-22 09:01:04 [2024-12-22 09:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076445', 'tblTempUsageDetail_20' ) start [2024-12-22 09:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076445', 'tblTempUsageDetail_20' ) end [2024-12-22 09:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076445', 'tblTempVendorCDR_20' ) start [2024-12-22 09:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076445', 'tblTempVendorCDR_20' ) end [2024-12-22 09:01:16] Production.INFO: ProcessCDR(1,14076445,1,1,2) [2024-12-22 09:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:01:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:01:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076445', 'tblTempUsageDetail_20' ) start [2024-12-22 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076445', 'tblTempUsageDetail_20' ) end [2024-12-22 09:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:01:20] Production.INFO: ==2391== Releasing lock... [2024-12-22 09:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:01:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:02:05 [end_date_ymd] => 2024-12-22 09:02:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:02:05' and `end` < '2024-12-22 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-22 09:02:17] Production.INFO: count ==44 [2024-12-22 09:02:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:02:05 - End Time 2024-12-22 09:02:05 [2024-12-22 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076450', 'tblTempUsageDetail_20' ) start [2024-12-22 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076450', 'tblTempUsageDetail_20' ) end [2024-12-22 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076450', 'tblTempVendorCDR_20' ) start [2024-12-22 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076450', 'tblTempVendorCDR_20' ) end [2024-12-22 09:02:17] Production.INFO: ProcessCDR(1,14076450,1,1,2) [2024-12-22 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076450', 'tblTempUsageDetail_20' ) start [2024-12-22 09:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076450', 'tblTempUsageDetail_20' ) end [2024-12-22 09:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:02:20] Production.INFO: ==2475== Releasing lock... [2024-12-22 09:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:02:20] Production.INFO: 28 MB #Memory Used# [2024-12-22 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:03:05 [end_date_ymd] => 2024-12-22 09:03:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:03:05' and `end` < '2024-12-22 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-22 09:03:18] Production.INFO: count ==44 [2024-12-22 09:03:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:03:05 - End Time 2024-12-22 09:03:05 [2024-12-22 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076455', 'tblTempUsageDetail_20' ) start [2024-12-22 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076455', 'tblTempUsageDetail_20' ) end [2024-12-22 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076455', 'tblTempVendorCDR_20' ) start [2024-12-22 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076455', 'tblTempVendorCDR_20' ) end [2024-12-22 09:03:18] Production.INFO: ProcessCDR(1,14076455,1,1,2) [2024-12-22 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076455', 'tblTempUsageDetail_20' ) start [2024-12-22 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076455', 'tblTempUsageDetail_20' ) end [2024-12-22 09:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:03:21] Production.INFO: ==2564== Releasing lock... [2024-12-22 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:03:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:04:06 [end_date_ymd] => 2024-12-22 09:04:06 [RateCDR] => 1 ) [2024-12-22 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:04:06' and `end` < '2024-12-22 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:04:18] Production.INFO: count ==44 [2024-12-22 09:04:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:04:06 - End Time 2024-12-22 09:04:06 [2024-12-22 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076460', 'tblTempUsageDetail_20' ) start [2024-12-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076460', 'tblTempUsageDetail_20' ) end [2024-12-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076460', 'tblTempVendorCDR_20' ) start [2024-12-22 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076460', 'tblTempVendorCDR_20' ) end [2024-12-22 09:04:18] Production.INFO: ProcessCDR(1,14076460,1,1,2) [2024-12-22 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076460', 'tblTempUsageDetail_20' ) start [2024-12-22 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076460', 'tblTempUsageDetail_20' ) end [2024-12-22 09:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:04:21] Production.INFO: ==2656== Releasing lock... [2024-12-22 09:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:04:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:05:05 [end_date_ymd] => 2024-12-22 09:05:05 [RateCDR] => 1 ) [2024-12-22 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:05:05' and `end` < '2024-12-22 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:05:18] Production.INFO: count ==44 [2024-12-22 09:05:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:05:05 - End Time 2024-12-22 09:05:05 [2024-12-22 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076465', 'tblTempUsageDetail_20' ) start [2024-12-22 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076465', 'tblTempUsageDetail_20' ) end [2024-12-22 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076465', 'tblTempVendorCDR_20' ) start [2024-12-22 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076465', 'tblTempVendorCDR_20' ) end [2024-12-22 09:05:18] Production.INFO: ProcessCDR(1,14076465,1,1,2) [2024-12-22 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076465', 'tblTempUsageDetail_20' ) start [2024-12-22 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076465', 'tblTempUsageDetail_20' ) end [2024-12-22 09:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:05:21] Production.INFO: ==2745== Releasing lock... [2024-12-22 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:05:21] Production.INFO: 28 MB #Memory Used# [2024-12-22 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:06:05 [end_date_ymd] => 2024-12-22 09:06:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:06:05' and `end` < '2024-12-22 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-22 09:06:17] Production.INFO: count ==51 [2024-12-22 09:06:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:06:05 - End Time 2024-12-22 09:06:05 [2024-12-22 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076470', 'tblTempUsageDetail_20' ) start [2024-12-22 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076470', 'tblTempUsageDetail_20' ) end [2024-12-22 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076470', 'tblTempVendorCDR_20' ) start [2024-12-22 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076470', 'tblTempVendorCDR_20' ) end [2024-12-22 09:06:17] Production.INFO: ProcessCDR(1,14076470,1,1,2) [2024-12-22 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076470', 'tblTempUsageDetail_20' ) start [2024-12-22 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076470', 'tblTempUsageDetail_20' ) end [2024-12-22 09:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:06:22] Production.INFO: ==2830== Releasing lock... [2024-12-22 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:06:22] Production.INFO: 28 MB #Memory Used# [2024-12-22 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:07:04 [end_date_ymd] => 2024-12-22 09:07:04 [RateCDR] => 1 ) [2024-12-22 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-22 06:07:04' and `end` < '2024-12-22 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-22 09:07:16] Production.INFO: count ==51 [2024-12-22 09:07:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:07:04 - End Time 2024-12-22 09:07:04 [2024-12-22 09:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076475', 'tblTempUsageDetail_20' ) start [2024-12-22 09:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076475', 'tblTempUsageDetail_20' ) end [2024-12-22 09:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076475', 'tblTempVendorCDR_20' ) start [2024-12-22 09:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076475', 'tblTempVendorCDR_20' ) end [2024-12-22 09:07:16] Production.INFO: ProcessCDR(1,14076475,1,1,2) [2024-12-22 09:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076475', 'tblTempUsageDetail_20' ) start [2024-12-22 09:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076475', 'tblTempUsageDetail_20' ) end [2024-12-22 09:07:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:07:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:07:19] Production.INFO: ==2927== Releasing lock... [2024-12-22 09:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:07:19] Production.INFO: 28 MB #Memory Used# [2024-12-22 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:08:05 [end_date_ymd] => 2024-12-22 09:08:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:08:05' and `end` < '2024-12-22 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-22 09:08:17] Production.INFO: count ==65 [2024-12-22 09:08:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:08:05 - End Time 2024-12-22 09:08:05 [2024-12-22 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076480', 'tblTempUsageDetail_20' ) start [2024-12-22 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076480', 'tblTempUsageDetail_20' ) end [2024-12-22 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076480', 'tblTempVendorCDR_20' ) start [2024-12-22 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076480', 'tblTempVendorCDR_20' ) end [2024-12-22 09:08:17] Production.INFO: ProcessCDR(1,14076480,1,1,2) [2024-12-22 09:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076480', 'tblTempUsageDetail_20' ) start [2024-12-22 09:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076480', 'tblTempUsageDetail_20' ) end [2024-12-22 09:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:08:20] Production.INFO: ==3025== Releasing lock... [2024-12-22 09:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:08:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:09:04 [end_date_ymd] => 2024-12-22 09:09:04 [RateCDR] => 1 ) [2024-12-22 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-22 06:09:04' and `end` < '2024-12-22 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-22 09:09:17] Production.INFO: count ==65 [2024-12-22 09:09:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:09:04 - End Time 2024-12-22 09:09:04 [2024-12-22 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076485', 'tblTempUsageDetail_20' ) start [2024-12-22 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076485', 'tblTempUsageDetail_20' ) end [2024-12-22 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076485', 'tblTempVendorCDR_20' ) start [2024-12-22 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076485', 'tblTempVendorCDR_20' ) end [2024-12-22 09:09:17] Production.INFO: ProcessCDR(1,14076485,1,1,2) [2024-12-22 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076485', 'tblTempUsageDetail_20' ) start [2024-12-22 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076485', 'tblTempUsageDetail_20' ) end [2024-12-22 09:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:09:21] Production.INFO: ==3123== Releasing lock... [2024-12-22 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:09:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:10:06 [end_date_ymd] => 2024-12-22 09:10:06 [RateCDR] => 1 ) [2024-12-22 09: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-22 06:10:06' and `end` < '2024-12-22 09: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-22 09:10:18] Production.INFO: count ==65 [2024-12-22 09:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:10:06 - End Time 2024-12-22 09:10:06 [2024-12-22 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076491', 'tblTempUsageDetail_20' ) start [2024-12-22 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076491', 'tblTempUsageDetail_20' ) end [2024-12-22 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076491', 'tblTempVendorCDR_20' ) start [2024-12-22 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076491', 'tblTempVendorCDR_20' ) end [2024-12-22 09:10:18] Production.INFO: ProcessCDR(1,14076491,1,1,2) [2024-12-22 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076491', 'tblTempUsageDetail_20' ) start [2024-12-22 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076491', 'tblTempUsageDetail_20' ) end [2024-12-22 09:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:10:21] Production.INFO: ==3226== Releasing lock... [2024-12-22 09:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:10:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:11:05 [end_date_ymd] => 2024-12-22 09:11:05 [RateCDR] => 1 ) [2024-12-22 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:11:05' and `end` < '2024-12-22 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:11:17] Production.INFO: count ==65 [2024-12-22 09:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:11:05 - End Time 2024-12-22 09:11:05 [2024-12-22 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076496', 'tblTempUsageDetail_20' ) start [2024-12-22 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076496', 'tblTempUsageDetail_20' ) end [2024-12-22 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076496', 'tblTempVendorCDR_20' ) start [2024-12-22 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076496', 'tblTempVendorCDR_20' ) end [2024-12-22 09:11:17] Production.INFO: ProcessCDR(1,14076496,1,1,2) [2024-12-22 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076496', 'tblTempUsageDetail_20' ) start [2024-12-22 09:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076496', 'tblTempUsageDetail_20' ) end [2024-12-22 09:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:11:20] Production.INFO: ==3336== Releasing lock... [2024-12-22 09:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:11:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:12:05 [end_date_ymd] => 2024-12-22 09:12:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:12:05' and `end` < '2024-12-22 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-22 09:12:17] Production.INFO: count ==65 [2024-12-22 09:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:12:05 - End Time 2024-12-22 09:12:05 [2024-12-22 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076499', 'tblTempUsageDetail_20' ) start [2024-12-22 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076499', 'tblTempUsageDetail_20' ) end [2024-12-22 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076499', 'tblTempVendorCDR_20' ) start [2024-12-22 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076499', 'tblTempVendorCDR_20' ) end [2024-12-22 09:12:17] Production.INFO: ProcessCDR(1,14076499,1,1,2) [2024-12-22 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076499', 'tblTempUsageDetail_20' ) start [2024-12-22 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076499', 'tblTempUsageDetail_20' ) end [2024-12-22 09:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:12:20] Production.INFO: ==3437== Releasing lock... [2024-12-22 09:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:12:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:13:06 [end_date_ymd] => 2024-12-22 09:13:06 [RateCDR] => 1 ) [2024-12-22 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:13:06' and `end` < '2024-12-22 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:13:18] Production.INFO: count ==65 [2024-12-22 09:13:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:13:06 - End Time 2024-12-22 09:13:06 [2024-12-22 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076506', 'tblTempUsageDetail_20' ) start [2024-12-22 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076506', 'tblTempUsageDetail_20' ) end [2024-12-22 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076506', 'tblTempVendorCDR_20' ) start [2024-12-22 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076506', 'tblTempVendorCDR_20' ) end [2024-12-22 09:13:18] Production.INFO: ProcessCDR(1,14076506,1,1,2) [2024-12-22 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076506', 'tblTempUsageDetail_20' ) start [2024-12-22 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076506', 'tblTempUsageDetail_20' ) end [2024-12-22 09:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:13:22] Production.INFO: ==3546== Releasing lock... [2024-12-22 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:13:22] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:14:05 [end_date_ymd] => 2024-12-22 09:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:14:05' and `end` < '2024-12-22 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-22 09:14:17] Production.INFO: count ==65 [2024-12-22 09:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:14:05 - End Time 2024-12-22 09:14:05 [2024-12-22 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076511', 'tblTempUsageDetail_20' ) start [2024-12-22 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076511', 'tblTempUsageDetail_20' ) end [2024-12-22 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076511', 'tblTempVendorCDR_20' ) start [2024-12-22 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076511', 'tblTempVendorCDR_20' ) end [2024-12-22 09:14:17] Production.INFO: ProcessCDR(1,14076511,1,1,2) [2024-12-22 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076511', 'tblTempUsageDetail_20' ) start [2024-12-22 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076511', 'tblTempUsageDetail_20' ) end [2024-12-22 09:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:14:20] Production.INFO: ==3678== Releasing lock... [2024-12-22 09:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:14:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:15:05 [end_date_ymd] => 2024-12-22 09:15:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:15:05' and `end` < '2024-12-22 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-22 09:15:18] Production.INFO: count ==65 [2024-12-22 09:15:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:15:05 - End Time 2024-12-22 09:15:05 [2024-12-22 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076516', 'tblTempUsageDetail_20' ) start [2024-12-22 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076516', 'tblTempUsageDetail_20' ) end [2024-12-22 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076516', 'tblTempVendorCDR_20' ) start [2024-12-22 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076516', 'tblTempVendorCDR_20' ) end [2024-12-22 09:15:18] Production.INFO: ProcessCDR(1,14076516,1,1,2) [2024-12-22 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076516', 'tblTempUsageDetail_20' ) start [2024-12-22 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076516', 'tblTempUsageDetail_20' ) end [2024-12-22 09:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:15:21] Production.INFO: ==3779== Releasing lock... [2024-12-22 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:15:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:16:05 [end_date_ymd] => 2024-12-22 09:16:05 [RateCDR] => 1 ) [2024-12-22 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:16:05' and `end` < '2024-12-22 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:16:17] Production.INFO: count ==65 [2024-12-22 09:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:16:05 - End Time 2024-12-22 09:16:05 [2024-12-22 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076521', 'tblTempUsageDetail_20' ) start [2024-12-22 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076521', 'tblTempUsageDetail_20' ) end [2024-12-22 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076521', 'tblTempVendorCDR_20' ) start [2024-12-22 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076521', 'tblTempVendorCDR_20' ) end [2024-12-22 09:16:17] Production.INFO: ProcessCDR(1,14076521,1,1,2) [2024-12-22 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076521', 'tblTempUsageDetail_20' ) start [2024-12-22 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076521', 'tblTempUsageDetail_20' ) end [2024-12-22 09:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:16:20] Production.INFO: ==3876== Releasing lock... [2024-12-22 09:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:16:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:17:05 [end_date_ymd] => 2024-12-22 09:17:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:17:05' and `end` < '2024-12-22 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-22 09:17:17] Production.INFO: count ==65 [2024-12-22 09:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:17:05 - End Time 2024-12-22 09:17:05 [2024-12-22 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076525', 'tblTempUsageDetail_20' ) start [2024-12-22 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076525', 'tblTempUsageDetail_20' ) end [2024-12-22 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076525', 'tblTempVendorCDR_20' ) start [2024-12-22 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076525', 'tblTempVendorCDR_20' ) end [2024-12-22 09:17:17] Production.INFO: ProcessCDR(1,14076525,1,1,2) [2024-12-22 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076525', 'tblTempUsageDetail_20' ) start [2024-12-22 09:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076525', 'tblTempUsageDetail_20' ) end [2024-12-22 09:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:17:20] Production.INFO: ==3981== Releasing lock... [2024-12-22 09:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:17:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:18:04 [end_date_ymd] => 2024-12-22 09:18:04 [RateCDR] => 1 ) [2024-12-22 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-22 06:18:04' and `end` < '2024-12-22 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-22 09:18:18] Production.INFO: count ==65 [2024-12-22 09:18:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:18:04 - End Time 2024-12-22 09:18:04 [2024-12-22 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076531', 'tblTempUsageDetail_20' ) start [2024-12-22 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076531', 'tblTempUsageDetail_20' ) end [2024-12-22 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076531', 'tblTempVendorCDR_20' ) start [2024-12-22 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076531', 'tblTempVendorCDR_20' ) end [2024-12-22 09:18:18] Production.INFO: ProcessCDR(1,14076531,1,1,2) [2024-12-22 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076531', 'tblTempUsageDetail_20' ) start [2024-12-22 09:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076531', 'tblTempUsageDetail_20' ) end [2024-12-22 09:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:18:21] Production.INFO: ==4075== Releasing lock... [2024-12-22 09:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:18:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:19:05 [end_date_ymd] => 2024-12-22 09:19:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:19:05' and `end` < '2024-12-22 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-22 09:19:17] Production.INFO: count ==65 [2024-12-22 09:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:19:05 - End Time 2024-12-22 09:19:05 [2024-12-22 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076536', 'tblTempUsageDetail_20' ) start [2024-12-22 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076536', 'tblTempUsageDetail_20' ) end [2024-12-22 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076536', 'tblTempVendorCDR_20' ) start [2024-12-22 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076536', 'tblTempVendorCDR_20' ) end [2024-12-22 09:19:17] Production.INFO: ProcessCDR(1,14076536,1,1,2) [2024-12-22 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076536', 'tblTempUsageDetail_20' ) start [2024-12-22 09:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076536', 'tblTempUsageDetail_20' ) end [2024-12-22 09:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:19:20] Production.INFO: ==4166== Releasing lock... [2024-12-22 09:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:19:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:20:05 [end_date_ymd] => 2024-12-22 09:20:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:20:05' and `end` < '2024-12-22 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-22 09:20:18] Production.INFO: count ==71 [2024-12-22 09:20:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:20:05 - End Time 2024-12-22 09:20:05 [2024-12-22 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076541', 'tblTempUsageDetail_20' ) start [2024-12-22 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076541', 'tblTempUsageDetail_20' ) end [2024-12-22 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076541', 'tblTempVendorCDR_20' ) start [2024-12-22 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076541', 'tblTempVendorCDR_20' ) end [2024-12-22 09:20:18] Production.INFO: ProcessCDR(1,14076541,1,1,2) [2024-12-22 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076541', 'tblTempUsageDetail_20' ) start [2024-12-22 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076541', 'tblTempUsageDetail_20' ) end [2024-12-22 09:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:20:21] Production.INFO: ==4257== Releasing lock... [2024-12-22 09:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:20:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:21:05 [end_date_ymd] => 2024-12-22 09:21:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:21:05' and `end` < '2024-12-22 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-22 09:21:17] Production.INFO: count ==71 [2024-12-22 09:21:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:21:05 - End Time 2024-12-22 09:21:05 [2024-12-22 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076547', 'tblTempUsageDetail_20' ) start [2024-12-22 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076547', 'tblTempUsageDetail_20' ) end [2024-12-22 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076547', 'tblTempVendorCDR_20' ) start [2024-12-22 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076547', 'tblTempVendorCDR_20' ) end [2024-12-22 09:21:17] Production.INFO: ProcessCDR(1,14076547,1,1,2) [2024-12-22 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076547', 'tblTempUsageDetail_20' ) start [2024-12-22 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076547', 'tblTempUsageDetail_20' ) end [2024-12-22 09:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:21:20] Production.INFO: ==4349== Releasing lock... [2024-12-22 09:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:21:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:22:05 [end_date_ymd] => 2024-12-22 09:22:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:22:05' and `end` < '2024-12-22 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-22 09:22:17] Production.INFO: count ==71 [2024-12-22 09:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:22:05 - End Time 2024-12-22 09:22:05 [2024-12-22 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076552', 'tblTempUsageDetail_20' ) start [2024-12-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076552', 'tblTempUsageDetail_20' ) end [2024-12-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076552', 'tblTempVendorCDR_20' ) start [2024-12-22 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076552', 'tblTempVendorCDR_20' ) end [2024-12-22 09:22:17] Production.INFO: ProcessCDR(1,14076552,1,1,2) [2024-12-22 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076552', 'tblTempUsageDetail_20' ) start [2024-12-22 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076552', 'tblTempUsageDetail_20' ) end [2024-12-22 09:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:22:20] Production.INFO: ==4435== Releasing lock... [2024-12-22 09:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:22:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:23:05 [end_date_ymd] => 2024-12-22 09:23:05 [RateCDR] => 1 ) [2024-12-22 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:23:05' and `end` < '2024-12-22 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:23:17] Production.INFO: count ==71 [2024-12-22 09:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:23:05 - End Time 2024-12-22 09:23:05 [2024-12-22 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076557', 'tblTempUsageDetail_20' ) start [2024-12-22 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076557', 'tblTempUsageDetail_20' ) end [2024-12-22 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076557', 'tblTempVendorCDR_20' ) start [2024-12-22 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076557', 'tblTempVendorCDR_20' ) end [2024-12-22 09:23:17] Production.INFO: ProcessCDR(1,14076557,1,1,2) [2024-12-22 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076557', 'tblTempUsageDetail_20' ) start [2024-12-22 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076557', 'tblTempUsageDetail_20' ) end [2024-12-22 09:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:23:21] Production.INFO: ==4524== Releasing lock... [2024-12-22 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:23:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:24:04 [end_date_ymd] => 2024-12-22 09:24:04 [RateCDR] => 1 ) [2024-12-22 09:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:24:04' and `end` < '2024-12-22 09:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:24:16] Production.INFO: count ==72 [2024-12-22 09:24:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:24:04 - End Time 2024-12-22 09:24:04 [2024-12-22 09:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076562', 'tblTempUsageDetail_20' ) start [2024-12-22 09:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076562', 'tblTempUsageDetail_20' ) end [2024-12-22 09:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076562', 'tblTempVendorCDR_20' ) start [2024-12-22 09:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076562', 'tblTempVendorCDR_20' ) end [2024-12-22 09:24:16] Production.INFO: ProcessCDR(1,14076562,1,1,2) [2024-12-22 09:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076562', 'tblTempUsageDetail_20' ) start [2024-12-22 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076562', 'tblTempUsageDetail_20' ) end [2024-12-22 09:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:24:21] Production.INFO: ==4618== Releasing lock... [2024-12-22 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:24:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:25:04 [end_date_ymd] => 2024-12-22 09:25:04 [RateCDR] => 1 ) [2024-12-22 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-22 06:25:04' and `end` < '2024-12-22 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-22 09:25:16] Production.INFO: count ==73 [2024-12-22 09:25:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:25:04 - End Time 2024-12-22 09:25:04 [2024-12-22 09:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076567', 'tblTempUsageDetail_20' ) start [2024-12-22 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076567', 'tblTempUsageDetail_20' ) end [2024-12-22 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076567', 'tblTempVendorCDR_20' ) start [2024-12-22 09:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076567', 'tblTempVendorCDR_20' ) end [2024-12-22 09:25:16] Production.INFO: ProcessCDR(1,14076567,1,1,2) [2024-12-22 09:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076567', 'tblTempUsageDetail_20' ) start [2024-12-22 09:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076567', 'tblTempUsageDetail_20' ) end [2024-12-22 09:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:25:21] Production.INFO: ==4708== Releasing lock... [2024-12-22 09:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:25:21] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:26:05 [end_date_ymd] => 2024-12-22 09:26:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:26:05' and `end` < '2024-12-22 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-22 09:26:17] Production.INFO: count ==73 [2024-12-22 09:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:26:05 - End Time 2024-12-22 09:26:05 [2024-12-22 09:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076572', 'tblTempUsageDetail_20' ) start [2024-12-22 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076572', 'tblTempUsageDetail_20' ) end [2024-12-22 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076572', 'tblTempVendorCDR_20' ) start [2024-12-22 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076572', 'tblTempVendorCDR_20' ) end [2024-12-22 09:26:17] Production.INFO: ProcessCDR(1,14076572,1,1,2) [2024-12-22 09:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076572', 'tblTempUsageDetail_20' ) start [2024-12-22 09:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076572', 'tblTempUsageDetail_20' ) end [2024-12-22 09:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:26:20] Production.INFO: ==4798== Releasing lock... [2024-12-22 09:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:26:20] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:27:04 [end_date_ymd] => 2024-12-22 09:27:04 [RateCDR] => 1 ) [2024-12-22 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-22 06:27:04' and `end` < '2024-12-22 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-22 09:27:16] Production.INFO: count ==73 [2024-12-22 09:27:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:27:04 - End Time 2024-12-22 09:27:04 [2024-12-22 09:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076577', 'tblTempUsageDetail_20' ) start [2024-12-22 09:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076577', 'tblTempUsageDetail_20' ) end [2024-12-22 09:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076577', 'tblTempVendorCDR_20' ) start [2024-12-22 09:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076577', 'tblTempVendorCDR_20' ) end [2024-12-22 09:27:16] Production.INFO: ProcessCDR(1,14076577,1,1,2) [2024-12-22 09:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:27:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076577', 'tblTempUsageDetail_20' ) start [2024-12-22 09:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076577', 'tblTempUsageDetail_20' ) end [2024-12-22 09:27:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:27:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:27:19] Production.INFO: ==4890== Releasing lock... [2024-12-22 09:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:27:19] Production.INFO: 28.25 MB #Memory Used# [2024-12-22 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:28:05 [end_date_ymd] => 2024-12-22 09:28:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:28:05' and `end` < '2024-12-22 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-22 09:28:17] Production.INFO: count ==75 [2024-12-22 09:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:28:05 - End Time 2024-12-22 09:28:05 [2024-12-22 09:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076582', 'tblTempUsageDetail_20' ) start [2024-12-22 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076582', 'tblTempUsageDetail_20' ) end [2024-12-22 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076582', 'tblTempVendorCDR_20' ) start [2024-12-22 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076582', 'tblTempVendorCDR_20' ) end [2024-12-22 09:28:17] Production.INFO: ProcessCDR(1,14076582,1,1,2) [2024-12-22 09:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076582', 'tblTempUsageDetail_20' ) start [2024-12-22 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076582', 'tblTempUsageDetail_20' ) end [2024-12-22 09:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:28:22] Production.INFO: ==4978== Releasing lock... [2024-12-22 09:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:28:22] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:29:04 [end_date_ymd] => 2024-12-22 09:29:04 [RateCDR] => 1 ) [2024-12-22 09:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:29:04' and `end` < '2024-12-22 09:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:29:16] Production.INFO: count ==82 [2024-12-22 09:29:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:29:04 - End Time 2024-12-22 09:29:04 [2024-12-22 09:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076587', 'tblTempUsageDetail_20' ) start [2024-12-22 09:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076587', 'tblTempUsageDetail_20' ) end [2024-12-22 09:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076587', 'tblTempVendorCDR_20' ) start [2024-12-22 09:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076587', 'tblTempVendorCDR_20' ) end [2024-12-22 09:29:16] Production.INFO: ProcessCDR(1,14076587,1,1,2) [2024-12-22 09:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:29:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076587', 'tblTempUsageDetail_20' ) start [2024-12-22 09:29:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076587', 'tblTempUsageDetail_20' ) end [2024-12-22 09:29:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:29:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:29:19] Production.INFO: ==5069== Releasing lock... [2024-12-22 09:29:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:29:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:30:05 [end_date_ymd] => 2024-12-22 09:30:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:30:05' and `end` < '2024-12-22 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-22 09:30:17] Production.INFO: count ==80 [2024-12-22 09:30:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:30:05 - End Time 2024-12-22 09:30:05 [2024-12-22 09:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076593', 'tblTempUsageDetail_20' ) start [2024-12-22 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076593', 'tblTempUsageDetail_20' ) end [2024-12-22 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076593', 'tblTempVendorCDR_20' ) start [2024-12-22 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076593', 'tblTempVendorCDR_20' ) end [2024-12-22 09:30:17] Production.INFO: ProcessCDR(1,14076593,1,1,2) [2024-12-22 09:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076593', 'tblTempUsageDetail_20' ) start [2024-12-22 09:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076593', 'tblTempUsageDetail_20' ) end [2024-12-22 09:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:30:20] Production.INFO: ==5205== Releasing lock... [2024-12-22 09:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:30:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:31:05 [end_date_ymd] => 2024-12-22 09:31:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:31:05' and `end` < '2024-12-22 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-22 09:31:18] Production.INFO: count ==80 [2024-12-22 09:31:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:31:05 - End Time 2024-12-22 09:31:05 [2024-12-22 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076598', 'tblTempUsageDetail_20' ) start [2024-12-22 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076598', 'tblTempUsageDetail_20' ) end [2024-12-22 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076598', 'tblTempVendorCDR_20' ) start [2024-12-22 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076598', 'tblTempVendorCDR_20' ) end [2024-12-22 09:31:18] Production.INFO: ProcessCDR(1,14076598,1,1,2) [2024-12-22 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076598', 'tblTempUsageDetail_20' ) start [2024-12-22 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076598', 'tblTempUsageDetail_20' ) end [2024-12-22 09:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:31:21] Production.INFO: ==5289== Releasing lock... [2024-12-22 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:31:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:32:04 [end_date_ymd] => 2024-12-22 09:32:04 [RateCDR] => 1 ) [2024-12-22 09:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:32:04' and `end` < '2024-12-22 09:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:32:16] Production.INFO: count ==80 [2024-12-22 09:32:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:32:04 - End Time 2024-12-22 09:32:04 [2024-12-22 09:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076603', 'tblTempUsageDetail_20' ) start [2024-12-22 09:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076603', 'tblTempUsageDetail_20' ) end [2024-12-22 09:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076603', 'tblTempVendorCDR_20' ) start [2024-12-22 09:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076603', 'tblTempVendorCDR_20' ) end [2024-12-22 09:32:16] Production.INFO: ProcessCDR(1,14076603,1,1,2) [2024-12-22 09:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:32:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076603', 'tblTempUsageDetail_20' ) start [2024-12-22 09:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076603', 'tblTempUsageDetail_20' ) end [2024-12-22 09:32:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:32:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:32:19] Production.INFO: ==5382== Releasing lock... [2024-12-22 09:32:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:32:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:33:05 [end_date_ymd] => 2024-12-22 09:33:05 [RateCDR] => 1 ) [2024-12-22 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:33:05' and `end` < '2024-12-22 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:33:17] Production.INFO: count ==80 [2024-12-22 09:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:33:05 - End Time 2024-12-22 09:33:05 [2024-12-22 09:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076608', 'tblTempUsageDetail_20' ) start [2024-12-22 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076608', 'tblTempUsageDetail_20' ) end [2024-12-22 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076608', 'tblTempVendorCDR_20' ) start [2024-12-22 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076608', 'tblTempVendorCDR_20' ) end [2024-12-22 09:33:17] Production.INFO: ProcessCDR(1,14076608,1,1,2) [2024-12-22 09:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076608', 'tblTempUsageDetail_20' ) start [2024-12-22 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076608', 'tblTempUsageDetail_20' ) end [2024-12-22 09:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:33:20] Production.INFO: ==5468== Releasing lock... [2024-12-22 09:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:33:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:34:04 [end_date_ymd] => 2024-12-22 09:34:04 [RateCDR] => 1 ) [2024-12-22 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-22 06:34:04' and `end` < '2024-12-22 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-22 09:34:16] Production.INFO: count ==81 [2024-12-22 09:34:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:34:04 - End Time 2024-12-22 09:34:04 [2024-12-22 09:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076613', 'tblTempUsageDetail_20' ) start [2024-12-22 09:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076613', 'tblTempUsageDetail_20' ) end [2024-12-22 09:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076613', 'tblTempVendorCDR_20' ) start [2024-12-22 09:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076613', 'tblTempVendorCDR_20' ) end [2024-12-22 09:34:16] Production.INFO: ProcessCDR(1,14076613,1,1,2) [2024-12-22 09:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076613', 'tblTempUsageDetail_20' ) start [2024-12-22 09:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076613', 'tblTempUsageDetail_20' ) end [2024-12-22 09:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:34:21] Production.INFO: ==5553== Releasing lock... [2024-12-22 09:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:34:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:35:04 [end_date_ymd] => 2024-12-22 09:35:04 [RateCDR] => 1 ) [2024-12-22 09: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-22 06:35:04' and `end` < '2024-12-22 09: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-22 09:35:16] Production.INFO: count ==81 [2024-12-22 09:35:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:35:04 - End Time 2024-12-22 09:35:04 [2024-12-22 09:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076615', 'tblTempUsageDetail_20' ) start [2024-12-22 09:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076615', 'tblTempUsageDetail_20' ) end [2024-12-22 09:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076615', 'tblTempVendorCDR_20' ) start [2024-12-22 09:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076615', 'tblTempVendorCDR_20' ) end [2024-12-22 09:35:16] Production.INFO: ProcessCDR(1,14076615,1,1,2) [2024-12-22 09:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076615', 'tblTempUsageDetail_20' ) start [2024-12-22 09:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076615', 'tblTempUsageDetail_20' ) end [2024-12-22 09:35:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:35:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:35:19] Production.INFO: ==5654== Releasing lock... [2024-12-22 09:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:35:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:36:05 [end_date_ymd] => 2024-12-22 09:36:05 [RateCDR] => 1 ) [2024-12-22 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:36:05' and `end` < '2024-12-22 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:36:18] Production.INFO: count ==82 [2024-12-22 09:36:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:36:05 - End Time 2024-12-22 09:36:05 [2024-12-22 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076622', 'tblTempUsageDetail_20' ) start [2024-12-22 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076622', 'tblTempUsageDetail_20' ) end [2024-12-22 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076622', 'tblTempVendorCDR_20' ) start [2024-12-22 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076622', 'tblTempVendorCDR_20' ) end [2024-12-22 09:36:18] Production.INFO: ProcessCDR(1,14076622,1,1,2) [2024-12-22 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076622', 'tblTempUsageDetail_20' ) start [2024-12-22 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076622', 'tblTempUsageDetail_20' ) end [2024-12-22 09:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:36:23] Production.INFO: ==5744== Releasing lock... [2024-12-22 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:36:23] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:37:04 [end_date_ymd] => 2024-12-22 09:37:04 [RateCDR] => 1 ) [2024-12-22 09:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:37:04' and `end` < '2024-12-22 09:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:37:16] Production.INFO: count ==82 [2024-12-22 09:37:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:37:04 - End Time 2024-12-22 09:37:04 [2024-12-22 09:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076628', 'tblTempUsageDetail_20' ) start [2024-12-22 09:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076628', 'tblTempUsageDetail_20' ) end [2024-12-22 09:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076628', 'tblTempVendorCDR_20' ) start [2024-12-22 09:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076628', 'tblTempVendorCDR_20' ) end [2024-12-22 09:37:16] Production.INFO: ProcessCDR(1,14076628,1,1,2) [2024-12-22 09:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:37:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076628', 'tblTempUsageDetail_20' ) start [2024-12-22 09:37:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076628', 'tblTempUsageDetail_20' ) end [2024-12-22 09:37:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:37:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:37:19] Production.INFO: ==5830== Releasing lock... [2024-12-22 09:37:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:37:19] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:38:05 [end_date_ymd] => 2024-12-22 09:38:05 [RateCDR] => 1 ) [2024-12-22 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:38:05' and `end` < '2024-12-22 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:38:17] Production.INFO: count ==82 [2024-12-22 09:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:38:05 - End Time 2024-12-22 09:38:05 [2024-12-22 09:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076633', 'tblTempUsageDetail_20' ) start [2024-12-22 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076633', 'tblTempUsageDetail_20' ) end [2024-12-22 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076633', 'tblTempVendorCDR_20' ) start [2024-12-22 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076633', 'tblTempVendorCDR_20' ) end [2024-12-22 09:38:17] Production.INFO: ProcessCDR(1,14076633,1,1,2) [2024-12-22 09:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076633', 'tblTempUsageDetail_20' ) start [2024-12-22 09:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076633', 'tblTempUsageDetail_20' ) end [2024-12-22 09:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:38:20] Production.INFO: ==5922== Releasing lock... [2024-12-22 09:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:38:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:39:04 [end_date_ymd] => 2024-12-22 09:39:04 [RateCDR] => 1 ) [2024-12-22 09:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:39:04' and `end` < '2024-12-22 09:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:39:16] Production.INFO: count ==83 [2024-12-22 09:39:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:39:04 - End Time 2024-12-22 09:39:04 [2024-12-22 09:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076638', 'tblTempUsageDetail_20' ) start [2024-12-22 09:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076638', 'tblTempUsageDetail_20' ) end [2024-12-22 09:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076638', 'tblTempVendorCDR_20' ) start [2024-12-22 09:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076638', 'tblTempVendorCDR_20' ) end [2024-12-22 09:39:16] Production.INFO: ProcessCDR(1,14076638,1,1,2) [2024-12-22 09:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076638', 'tblTempUsageDetail_20' ) start [2024-12-22 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076638', 'tblTempUsageDetail_20' ) end [2024-12-22 09:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:39:21] Production.INFO: ==6005== Releasing lock... [2024-12-22 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:39:21] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:40:05 [end_date_ymd] => 2024-12-22 09:40:05 [RateCDR] => 1 ) [2024-12-22 09:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:40:05' and `end` < '2024-12-22 09:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:40:17] Production.INFO: count ==89 [2024-12-22 09:40:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:40:05 - End Time 2024-12-22 09:40:05 [2024-12-22 09:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076644', 'tblTempUsageDetail_20' ) start [2024-12-22 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076644', 'tblTempUsageDetail_20' ) end [2024-12-22 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076644', 'tblTempVendorCDR_20' ) start [2024-12-22 09:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076644', 'tblTempVendorCDR_20' ) end [2024-12-22 09:40:17] Production.INFO: ProcessCDR(1,14076644,1,1,2) [2024-12-22 09:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076644', 'tblTempUsageDetail_20' ) start [2024-12-22 09:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076644', 'tblTempUsageDetail_20' ) end [2024-12-22 09:40:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:40:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:40:20] Production.INFO: ==6099== Releasing lock... [2024-12-22 09:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:40:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:41:05 [end_date_ymd] => 2024-12-22 09:41:05 [RateCDR] => 1 ) [2024-12-22 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:41:05' and `end` < '2024-12-22 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:41:17] Production.INFO: count ==97 [2024-12-22 09:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:41:05 - End Time 2024-12-22 09:41:05 [2024-12-22 09:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076649', 'tblTempUsageDetail_20' ) start [2024-12-22 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076649', 'tblTempUsageDetail_20' ) end [2024-12-22 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076649', 'tblTempVendorCDR_20' ) start [2024-12-22 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076649', 'tblTempVendorCDR_20' ) end [2024-12-22 09:41:17] Production.INFO: ProcessCDR(1,14076649,1,1,2) [2024-12-22 09:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076649', 'tblTempUsageDetail_20' ) start [2024-12-22 09:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076649', 'tblTempUsageDetail_20' ) end [2024-12-22 09:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:41:20] Production.INFO: ==6200== Releasing lock... [2024-12-22 09:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:41:20] Production.INFO: 28.5 MB #Memory Used# [2024-12-22 09:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:42:04 [end_date_ymd] => 2024-12-22 09:42:04 [RateCDR] => 1 ) [2024-12-22 09:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:42:04' and `end` < '2024-12-22 09:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:42:17] Production.INFO: count ==100 [2024-12-22 09:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:42:04 - End Time 2024-12-22 09:42:04 [2024-12-22 09:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076654', 'tblTempUsageDetail_20' ) start [2024-12-22 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076654', 'tblTempUsageDetail_20' ) end [2024-12-22 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076654', 'tblTempVendorCDR_20' ) start [2024-12-22 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076654', 'tblTempVendorCDR_20' ) end [2024-12-22 09:42:17] Production.INFO: ProcessCDR(1,14076654,1,1,2) [2024-12-22 09:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076654', 'tblTempUsageDetail_20' ) start [2024-12-22 09:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076654', 'tblTempUsageDetail_20' ) end [2024-12-22 09:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:42:22] Production.INFO: ==6290== Releasing lock... [2024-12-22 09:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:42:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:43:05 [end_date_ymd] => 2024-12-22 09:43:05 [RateCDR] => 1 ) [2024-12-22 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:43:05' and `end` < '2024-12-22 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:43:17] Production.INFO: count ==100 [2024-12-22 09:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:43:05 - End Time 2024-12-22 09:43:05 [2024-12-22 09:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076659', 'tblTempUsageDetail_20' ) start [2024-12-22 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076659', 'tblTempUsageDetail_20' ) end [2024-12-22 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076659', 'tblTempVendorCDR_20' ) start [2024-12-22 09:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076659', 'tblTempVendorCDR_20' ) end [2024-12-22 09:43:17] Production.INFO: ProcessCDR(1,14076659,1,1,2) [2024-12-22 09:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076659', 'tblTempUsageDetail_20' ) start [2024-12-22 09:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076659', 'tblTempUsageDetail_20' ) end [2024-12-22 09:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:43:20] Production.INFO: ==6378== Releasing lock... [2024-12-22 09:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:43:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:44:05 [end_date_ymd] => 2024-12-22 09:44:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:44:05' and `end` < '2024-12-22 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-22 09:44:17] Production.INFO: count ==100 [2024-12-22 09:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:44:05 - End Time 2024-12-22 09:44:05 [2024-12-22 09:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076664', 'tblTempUsageDetail_20' ) start [2024-12-22 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076664', 'tblTempUsageDetail_20' ) end [2024-12-22 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076664', 'tblTempVendorCDR_20' ) start [2024-12-22 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076664', 'tblTempVendorCDR_20' ) end [2024-12-22 09:44:17] Production.INFO: ProcessCDR(1,14076664,1,1,2) [2024-12-22 09:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076664', 'tblTempUsageDetail_20' ) start [2024-12-22 09:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076664', 'tblTempUsageDetail_20' ) end [2024-12-22 09:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:44:20] Production.INFO: ==6465== Releasing lock... [2024-12-22 09:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:44:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:45:05 [end_date_ymd] => 2024-12-22 09:45:05 [RateCDR] => 1 ) [2024-12-22 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:45:05' and `end` < '2024-12-22 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:45:17] Production.INFO: count ==100 [2024-12-22 09:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:45:05 - End Time 2024-12-22 09:45:05 [2024-12-22 09:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076669', 'tblTempUsageDetail_20' ) start [2024-12-22 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076669', 'tblTempUsageDetail_20' ) end [2024-12-22 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076669', 'tblTempVendorCDR_20' ) start [2024-12-22 09:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076669', 'tblTempVendorCDR_20' ) end [2024-12-22 09:45:17] Production.INFO: ProcessCDR(1,14076669,1,1,2) [2024-12-22 09:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076669', 'tblTempUsageDetail_20' ) start [2024-12-22 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076669', 'tblTempUsageDetail_20' ) end [2024-12-22 09:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:45:20] Production.INFO: ==6594== Releasing lock... [2024-12-22 09:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:45:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:46:05 [end_date_ymd] => 2024-12-22 09:46:05 [RateCDR] => 1 ) [2024-12-22 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:46:05' and `end` < '2024-12-22 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:46:18] Production.INFO: count ==100 [2024-12-22 09:46:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:46:05 - End Time 2024-12-22 09:46:05 [2024-12-22 09:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076674', 'tblTempUsageDetail_20' ) start [2024-12-22 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076674', 'tblTempUsageDetail_20' ) end [2024-12-22 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076674', 'tblTempVendorCDR_20' ) start [2024-12-22 09:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076674', 'tblTempVendorCDR_20' ) end [2024-12-22 09:46:18] Production.INFO: ProcessCDR(1,14076674,1,1,2) [2024-12-22 09:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076674', 'tblTempUsageDetail_20' ) start [2024-12-22 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076674', 'tblTempUsageDetail_20' ) end [2024-12-22 09:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:46:21] Production.INFO: ==6707== Releasing lock... [2024-12-22 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:46:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:47:04 [end_date_ymd] => 2024-12-22 09:47:04 [RateCDR] => 1 ) [2024-12-22 09:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:47:04' and `end` < '2024-12-22 09:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:47:17] Production.INFO: count ==100 [2024-12-22 09:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:47:04 - End Time 2024-12-22 09:47:04 [2024-12-22 09:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076679', 'tblTempUsageDetail_20' ) start [2024-12-22 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076679', 'tblTempUsageDetail_20' ) end [2024-12-22 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076679', 'tblTempVendorCDR_20' ) start [2024-12-22 09:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076679', 'tblTempVendorCDR_20' ) end [2024-12-22 09:47:17] Production.INFO: ProcessCDR(1,14076679,1,1,2) [2024-12-22 09:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076679', 'tblTempUsageDetail_20' ) start [2024-12-22 09:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076679', 'tblTempUsageDetail_20' ) end [2024-12-22 09:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:47:20] Production.INFO: ==6837== Releasing lock... [2024-12-22 09:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:47:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:48:05 [end_date_ymd] => 2024-12-22 09:48:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:48:05' and `end` < '2024-12-22 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:48:17] Production.INFO: count ==101 [2024-12-22 09:48:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:48:05 - End Time 2024-12-22 09:48:05 [2024-12-22 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076684', 'tblTempUsageDetail_20' ) start [2024-12-22 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076684', 'tblTempUsageDetail_20' ) end [2024-12-22 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076684', 'tblTempVendorCDR_20' ) start [2024-12-22 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076684', 'tblTempVendorCDR_20' ) end [2024-12-22 09:48:17] Production.INFO: ProcessCDR(1,14076684,1,1,2) [2024-12-22 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076684', 'tblTempUsageDetail_20' ) start [2024-12-22 09:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076684', 'tblTempUsageDetail_20' ) end [2024-12-22 09:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:48:20] Production.INFO: ==6939== Releasing lock... [2024-12-22 09:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:48:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:49:04 [end_date_ymd] => 2024-12-22 09:49:04 [RateCDR] => 1 ) [2024-12-22 09: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-22 06:49:04' and `end` < '2024-12-22 09:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:49:16] Production.INFO: count ==103 [2024-12-22 09:49:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:49:04 - End Time 2024-12-22 09:49:04 [2024-12-22 09:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076689', 'tblTempUsageDetail_20' ) start [2024-12-22 09:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076689', 'tblTempUsageDetail_20' ) end [2024-12-22 09:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076689', 'tblTempVendorCDR_20' ) start [2024-12-22 09:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076689', 'tblTempVendorCDR_20' ) end [2024-12-22 09:49:16] Production.INFO: ProcessCDR(1,14076689,1,1,2) [2024-12-22 09:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:49:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076689', 'tblTempUsageDetail_20' ) start [2024-12-22 09:49:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076689', 'tblTempUsageDetail_20' ) end [2024-12-22 09:49:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:49:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:49:19] Production.INFO: ==7025== Releasing lock... [2024-12-22 09:49:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:49:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:50:05 [end_date_ymd] => 2024-12-22 09:50:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:50:05' and `end` < '2024-12-22 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-22 09:50:17] Production.INFO: count ==113 [2024-12-22 09:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:50:05 - End Time 2024-12-22 09:50:05 [2024-12-22 09:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076695', 'tblTempUsageDetail_20' ) start [2024-12-22 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076695', 'tblTempUsageDetail_20' ) end [2024-12-22 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076695', 'tblTempVendorCDR_20' ) start [2024-12-22 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076695', 'tblTempVendorCDR_20' ) end [2024-12-22 09:50:17] Production.INFO: ProcessCDR(1,14076695,1,1,2) [2024-12-22 09:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076695', 'tblTempUsageDetail_20' ) start [2024-12-22 09:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076695', 'tblTempUsageDetail_20' ) end [2024-12-22 09:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:50:21] Production.INFO: ==7121== Releasing lock... [2024-12-22 09:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:50:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:51:04 [end_date_ymd] => 2024-12-22 09:51:04 [RateCDR] => 1 ) [2024-12-22 09: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-22 06:51:04' and `end` < '2024-12-22 09: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-22 09:51:16] Production.INFO: count ==115 [2024-12-22 09:51:16] Production.ERROR: pbx CDR StartTime 2024-12-22 06:51:04 - End Time 2024-12-22 09:51:04 [2024-12-22 09:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076700', 'tblTempUsageDetail_20' ) start [2024-12-22 09:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076700', 'tblTempUsageDetail_20' ) end [2024-12-22 09:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076700', 'tblTempVendorCDR_20' ) start [2024-12-22 09:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076700', 'tblTempVendorCDR_20' ) end [2024-12-22 09:51:16] Production.INFO: ProcessCDR(1,14076700,1,1,2) [2024-12-22 09:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:51:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076700', 'tblTempUsageDetail_20' ) start [2024-12-22 09:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076700', 'tblTempUsageDetail_20' ) end [2024-12-22 09:51:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:51:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:51:19] Production.INFO: ==7216== Releasing lock... [2024-12-22 09:51:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:51:19] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:52:05 [end_date_ymd] => 2024-12-22 09:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:52:05' and `end` < '2024-12-22 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-22 09:52:17] Production.INFO: count ==118 [2024-12-22 09:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:52:05 - End Time 2024-12-22 09:52:05 [2024-12-22 09:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076705', 'tblTempUsageDetail_20' ) start [2024-12-22 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076705', 'tblTempUsageDetail_20' ) end [2024-12-22 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076705', 'tblTempVendorCDR_20' ) start [2024-12-22 09:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076705', 'tblTempVendorCDR_20' ) end [2024-12-22 09:52:17] Production.INFO: ProcessCDR(1,14076705,1,1,2) [2024-12-22 09:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076705', 'tblTempUsageDetail_20' ) start [2024-12-22 09:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076705', 'tblTempUsageDetail_20' ) end [2024-12-22 09:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:52:21] Production.INFO: ==7301== Releasing lock... [2024-12-22 09:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:52:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:53:05 [end_date_ymd] => 2024-12-22 09:53:05 [RateCDR] => 1 ) [2024-12-22 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:53:05' and `end` < '2024-12-22 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:53:19] Production.INFO: count ==119 [2024-12-22 09:53:19] Production.ERROR: pbx CDR StartTime 2024-12-22 06:53:05 - End Time 2024-12-22 09:53:05 [2024-12-22 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076710', 'tblTempUsageDetail_20' ) start [2024-12-22 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076710', 'tblTempUsageDetail_20' ) end [2024-12-22 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076710', 'tblTempVendorCDR_20' ) start [2024-12-22 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076710', 'tblTempVendorCDR_20' ) end [2024-12-22 09:53:19] Production.INFO: ProcessCDR(1,14076710,1,1,2) [2024-12-22 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076710', 'tblTempUsageDetail_20' ) start [2024-12-22 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076710', 'tblTempUsageDetail_20' ) end [2024-12-22 09:53:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:53:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:53:23] Production.INFO: ==7390== Releasing lock... [2024-12-22 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:53:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:54:05 [end_date_ymd] => 2024-12-22 09:54:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:54:05' and `end` < '2024-12-22 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-22 09:54:17] Production.INFO: count ==119 [2024-12-22 09:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:54:05 - End Time 2024-12-22 09:54:05 [2024-12-22 09:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076715', 'tblTempUsageDetail_20' ) start [2024-12-22 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076715', 'tblTempUsageDetail_20' ) end [2024-12-22 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076715', 'tblTempVendorCDR_20' ) start [2024-12-22 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076715', 'tblTempVendorCDR_20' ) end [2024-12-22 09:54:17] Production.INFO: ProcessCDR(1,14076715,1,1,2) [2024-12-22 09:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076715', 'tblTempUsageDetail_20' ) start [2024-12-22 09:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076715', 'tblTempUsageDetail_20' ) end [2024-12-22 09:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:54:20] Production.INFO: ==7481== Releasing lock... [2024-12-22 09:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:54:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:55:05 [end_date_ymd] => 2024-12-22 09:55:05 [RateCDR] => 1 ) [2024-12-22 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:55:05' and `end` < '2024-12-22 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:55:17] Production.INFO: count ==119 [2024-12-22 09:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:55:05 - End Time 2024-12-22 09:55:05 [2024-12-22 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076720', 'tblTempUsageDetail_20' ) start [2024-12-22 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076720', 'tblTempUsageDetail_20' ) end [2024-12-22 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076720', 'tblTempVendorCDR_20' ) start [2024-12-22 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076720', 'tblTempVendorCDR_20' ) end [2024-12-22 09:55:17] Production.INFO: ProcessCDR(1,14076720,1,1,2) [2024-12-22 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076720', 'tblTempUsageDetail_20' ) start [2024-12-22 09:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076720', 'tblTempUsageDetail_20' ) end [2024-12-22 09:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:55:20] Production.INFO: ==7568== Releasing lock... [2024-12-22 09:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:55:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:56:05 [end_date_ymd] => 2024-12-22 09:56:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:56:05' and `end` < '2024-12-22 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-22 09:56:17] Production.INFO: count ==119 [2024-12-22 09:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:56:05 - End Time 2024-12-22 09:56:05 [2024-12-22 09:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076725', 'tblTempUsageDetail_20' ) start [2024-12-22 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076725', 'tblTempUsageDetail_20' ) end [2024-12-22 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076725', 'tblTempVendorCDR_20' ) start [2024-12-22 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076725', 'tblTempVendorCDR_20' ) end [2024-12-22 09:56:17] Production.INFO: ProcessCDR(1,14076725,1,1,2) [2024-12-22 09:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076725', 'tblTempUsageDetail_20' ) start [2024-12-22 09:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076725', 'tblTempUsageDetail_20' ) end [2024-12-22 09:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:56:20] Production.INFO: ==7664== Releasing lock... [2024-12-22 09:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:56:20] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:57:05 [end_date_ymd] => 2024-12-22 09:57:05 [RateCDR] => 1 ) [2024-12-22 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 06:57:05' and `end` < '2024-12-22 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 09:57:18] Production.INFO: count ==119 [2024-12-22 09:57:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:57:05 - End Time 2024-12-22 09:57:05 [2024-12-22 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076730', 'tblTempUsageDetail_20' ) start [2024-12-22 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076730', 'tblTempUsageDetail_20' ) end [2024-12-22 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076730', 'tblTempVendorCDR_20' ) start [2024-12-22 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076730', 'tblTempVendorCDR_20' ) end [2024-12-22 09:57:18] Production.INFO: ProcessCDR(1,14076730,1,1,2) [2024-12-22 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076730', 'tblTempUsageDetail_20' ) start [2024-12-22 09:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076730', 'tblTempUsageDetail_20' ) end [2024-12-22 09:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:57:22] Production.INFO: ==7753== Releasing lock... [2024-12-22 09:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:57:22] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:58:05 [end_date_ymd] => 2024-12-22 09:58:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:58:05' and `end` < '2024-12-22 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-22 09:58:17] Production.INFO: count ==120 [2024-12-22 09:58:17] Production.ERROR: pbx CDR StartTime 2024-12-22 06:58:05 - End Time 2024-12-22 09:58:05 [2024-12-22 09:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076735', 'tblTempUsageDetail_20' ) start [2024-12-22 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076735', 'tblTempUsageDetail_20' ) end [2024-12-22 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076735', 'tblTempVendorCDR_20' ) start [2024-12-22 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076735', 'tblTempVendorCDR_20' ) end [2024-12-22 09:58:17] Production.INFO: ProcessCDR(1,14076735,1,1,2) [2024-12-22 09:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076735', 'tblTempUsageDetail_20' ) start [2024-12-22 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076735', 'tblTempUsageDetail_20' ) end [2024-12-22 09:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:58:21] Production.INFO: ==7842== Releasing lock... [2024-12-22 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:58:21] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 06:59:05 [end_date_ymd] => 2024-12-22 09:59:05 [RateCDR] => 1 ) [2024-12-22 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-22 06:59:05' and `end` < '2024-12-22 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-22 09:59:18] Production.INFO: count ==121 [2024-12-22 09:59:18] Production.ERROR: pbx CDR StartTime 2024-12-22 06:59:05 - End Time 2024-12-22 09:59:05 [2024-12-22 09:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076740', 'tblTempUsageDetail_20' ) start [2024-12-22 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076740', 'tblTempUsageDetail_20' ) end [2024-12-22 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076740', 'tblTempVendorCDR_20' ) start [2024-12-22 09:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076740', 'tblTempVendorCDR_20' ) end [2024-12-22 09:59:18] Production.INFO: ProcessCDR(1,14076740,1,1,2) [2024-12-22 09:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076740', 'tblTempUsageDetail_20' ) start [2024-12-22 09:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076740', 'tblTempUsageDetail_20' ) end [2024-12-22 09:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 09:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 09:59:23] Production.INFO: ==7928== Releasing lock... [2024-12-22 09:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 09:59:23] Production.INFO: 28.75 MB #Memory Used# [2024-12-22 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:00:05 [end_date_ymd] => 2024-12-22 10:00:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:00:05' and `end` < '2024-12-22 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-22 10:00:19] Production.INFO: count ==127 [2024-12-22 10:00:19] Production.ERROR: pbx CDR StartTime 2024-12-22 07:00:05 - End Time 2024-12-22 10:00:05 [2024-12-22 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076746', 'tblTempUsageDetail_20' ) start [2024-12-22 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076746', 'tblTempUsageDetail_20' ) end [2024-12-22 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076746', 'tblTempVendorCDR_20' ) start [2024-12-22 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076746', 'tblTempVendorCDR_20' ) end [2024-12-22 10:00:19] Production.INFO: ProcessCDR(1,14076746,1,1,2) [2024-12-22 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076746', 'tblTempUsageDetail_20' ) start [2024-12-22 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076746', 'tblTempUsageDetail_20' ) end [2024-12-22 10:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:00:22] Production.INFO: ==8016== Releasing lock... [2024-12-22 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:00:22] Production.INFO: 29 MB #Memory Used# [2024-12-22 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:01:05 [end_date_ymd] => 2024-12-22 10:01:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:01:05' and `end` < '2024-12-22 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-22 10:01:17] Production.INFO: count ==133 [2024-12-22 10:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:01:05 - End Time 2024-12-22 10:01:05 [2024-12-22 10:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076751', 'tblTempUsageDetail_20' ) start [2024-12-22 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076751', 'tblTempUsageDetail_20' ) end [2024-12-22 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076751', 'tblTempVendorCDR_20' ) start [2024-12-22 10:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076751', 'tblTempVendorCDR_20' ) end [2024-12-22 10:01:17] Production.INFO: ProcessCDR(1,14076751,1,1,2) [2024-12-22 10:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076751', 'tblTempUsageDetail_20' ) start [2024-12-22 10:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076751', 'tblTempUsageDetail_20' ) end [2024-12-22 10:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:01:20] Production.INFO: ==8170== Releasing lock... [2024-12-22 10:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:01:20] Production.INFO: 29 MB #Memory Used# [2024-12-22 10:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:02:04 [end_date_ymd] => 2024-12-22 10:02:04 [RateCDR] => 1 ) [2024-12-22 10: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-22 07:02:04' and `end` < '2024-12-22 10: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-22 10:02:17] Production.INFO: count ==133 [2024-12-22 10:02:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:02:04 - End Time 2024-12-22 10:02:04 [2024-12-22 10:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076756', 'tblTempUsageDetail_20' ) start [2024-12-22 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076756', 'tblTempUsageDetail_20' ) end [2024-12-22 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076756', 'tblTempVendorCDR_20' ) start [2024-12-22 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076756', 'tblTempVendorCDR_20' ) end [2024-12-22 10:02:17] Production.INFO: ProcessCDR(1,14076756,1,1,2) [2024-12-22 10:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076756', 'tblTempUsageDetail_20' ) start [2024-12-22 10:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076756', 'tblTempUsageDetail_20' ) end [2024-12-22 10:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:02:21] Production.INFO: ==8261== Releasing lock... [2024-12-22 10:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:02:21] Production.INFO: 29 MB #Memory Used# [2024-12-22 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:03:05 [end_date_ymd] => 2024-12-22 10:03:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:03:05' and `end` < '2024-12-22 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-22 10:03:17] Production.INFO: count ==135 [2024-12-22 10:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:03:05 - End Time 2024-12-22 10:03:05 [2024-12-22 10:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076761', 'tblTempUsageDetail_20' ) start [2024-12-22 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076761', 'tblTempUsageDetail_20' ) end [2024-12-22 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076761', 'tblTempVendorCDR_20' ) start [2024-12-22 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076761', 'tblTempVendorCDR_20' ) end [2024-12-22 10:03:17] Production.INFO: ProcessCDR(1,14076761,1,1,2) [2024-12-22 10:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076761', 'tblTempUsageDetail_20' ) start [2024-12-22 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076761', 'tblTempUsageDetail_20' ) end [2024-12-22 10:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:03:22] Production.INFO: ==8352== Releasing lock... [2024-12-22 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:03:22] Production.INFO: 29 MB #Memory Used# [2024-12-22 10:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:04:04 [end_date_ymd] => 2024-12-22 10:04:04 [RateCDR] => 1 ) [2024-12-22 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-22 07:04:04' and `end` < '2024-12-22 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-22 10:04:17] Production.INFO: count ==138 [2024-12-22 10:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:04:04 - End Time 2024-12-22 10:04:04 [2024-12-22 10:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076766', 'tblTempUsageDetail_20' ) start [2024-12-22 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076766', 'tblTempUsageDetail_20' ) end [2024-12-22 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076766', 'tblTempVendorCDR_20' ) start [2024-12-22 10:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076766', 'tblTempVendorCDR_20' ) end [2024-12-22 10:04:17] Production.INFO: ProcessCDR(1,14076766,1,1,2) [2024-12-22 10:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076766', 'tblTempUsageDetail_20' ) start [2024-12-22 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076766', 'tblTempUsageDetail_20' ) end [2024-12-22 10:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:04:21] Production.INFO: ==8442== Releasing lock... [2024-12-22 10:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:04:21] Production.INFO: 29 MB #Memory Used# [2024-12-22 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:05:05 [end_date_ymd] => 2024-12-22 10:05:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:05:05' and `end` < '2024-12-22 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-22 10:05:18] Production.INFO: count ==140 [2024-12-22 10:05:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:05:05 - End Time 2024-12-22 10:05:05 [2024-12-22 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076771', 'tblTempUsageDetail_20' ) start [2024-12-22 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076771', 'tblTempUsageDetail_20' ) end [2024-12-22 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076771', 'tblTempVendorCDR_20' ) start [2024-12-22 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076771', 'tblTempVendorCDR_20' ) end [2024-12-22 10:05:18] Production.INFO: ProcessCDR(1,14076771,1,1,2) [2024-12-22 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076771', 'tblTempUsageDetail_20' ) start [2024-12-22 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076771', 'tblTempUsageDetail_20' ) end [2024-12-22 10:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:05:23] Production.INFO: ==8530== Releasing lock... [2024-12-22 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:05:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 10:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:06:04 [end_date_ymd] => 2024-12-22 10:06:04 [RateCDR] => 1 ) [2024-12-22 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-22 07:06:04' and `end` < '2024-12-22 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-22 10:06:17] Production.INFO: count ==142 [2024-12-22 10:06:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:06:04 - End Time 2024-12-22 10:06:04 [2024-12-22 10:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076776', 'tblTempUsageDetail_20' ) start [2024-12-22 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076776', 'tblTempUsageDetail_20' ) end [2024-12-22 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076776', 'tblTempVendorCDR_20' ) start [2024-12-22 10:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076776', 'tblTempVendorCDR_20' ) end [2024-12-22 10:06:17] Production.INFO: ProcessCDR(1,14076776,1,1,2) [2024-12-22 10:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076776', 'tblTempUsageDetail_20' ) start [2024-12-22 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076776', 'tblTempUsageDetail_20' ) end [2024-12-22 10:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:06:21] Production.INFO: ==8619== Releasing lock... [2024-12-22 10:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:06:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 10:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:07:04 [end_date_ymd] => 2024-12-22 10:07:04 [RateCDR] => 1 ) [2024-12-22 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-22 07:07:04' and `end` < '2024-12-22 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-22 10:07:16] Production.INFO: count ==143 [2024-12-22 10:07:16] Production.ERROR: pbx CDR StartTime 2024-12-22 07:07:04 - End Time 2024-12-22 10:07:04 [2024-12-22 10:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076781', 'tblTempUsageDetail_20' ) start [2024-12-22 10:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076781', 'tblTempUsageDetail_20' ) end [2024-12-22 10:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076781', 'tblTempVendorCDR_20' ) start [2024-12-22 10:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076781', 'tblTempVendorCDR_20' ) end [2024-12-22 10:07:16] Production.INFO: ProcessCDR(1,14076781,1,1,2) [2024-12-22 10:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076781', 'tblTempUsageDetail_20' ) start [2024-12-22 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076781', 'tblTempUsageDetail_20' ) end [2024-12-22 10:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:07:21] Production.INFO: ==8709== Releasing lock... [2024-12-22 10:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:07:21] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:08:05 [end_date_ymd] => 2024-12-22 10:08:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:08:05' and `end` < '2024-12-22 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-22 10:08:18] Production.INFO: count ==144 [2024-12-22 10:08:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:08:05 - End Time 2024-12-22 10:08:05 [2024-12-22 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076786', 'tblTempUsageDetail_20' ) start [2024-12-22 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076786', 'tblTempUsageDetail_20' ) end [2024-12-22 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076786', 'tblTempVendorCDR_20' ) start [2024-12-22 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076786', 'tblTempVendorCDR_20' ) end [2024-12-22 10:08:18] Production.INFO: ProcessCDR(1,14076786,1,1,2) [2024-12-22 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076786', 'tblTempUsageDetail_20' ) start [2024-12-22 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076786', 'tblTempUsageDetail_20' ) end [2024-12-22 10:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:08:23] Production.INFO: ==8803== Releasing lock... [2024-12-22 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:08:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 10:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:09:04 [end_date_ymd] => 2024-12-22 10:09:04 [RateCDR] => 1 ) [2024-12-22 10: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-22 07:09:04' and `end` < '2024-12-22 10: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-22 10:09:19] Production.INFO: count ==145 [2024-12-22 10:09:19] Production.ERROR: pbx CDR StartTime 2024-12-22 07:09:04 - End Time 2024-12-22 10:09:04 [2024-12-22 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076791', 'tblTempUsageDetail_20' ) start [2024-12-22 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076791', 'tblTempUsageDetail_20' ) end [2024-12-22 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076791', 'tblTempVendorCDR_20' ) start [2024-12-22 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076791', 'tblTempVendorCDR_20' ) end [2024-12-22 10:09:19] Production.INFO: ProcessCDR(1,14076791,1,1,2) [2024-12-22 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076791', 'tblTempUsageDetail_20' ) start [2024-12-22 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076791', 'tblTempUsageDetail_20' ) end [2024-12-22 10:09:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:09:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:09:23] Production.INFO: ==8886== Releasing lock... [2024-12-22 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:09:23] Production.INFO: 29 MB #Memory Used# [2024-12-22 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:10:06 [end_date_ymd] => 2024-12-22 10:10:06 [RateCDR] => 1 ) [2024-12-22 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:10:06' and `end` < '2024-12-22 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:10:18] Production.INFO: count ==156 [2024-12-22 10:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:10:06 - End Time 2024-12-22 10:10:06 [2024-12-22 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076796', 'tblTempUsageDetail_20' ) start [2024-12-22 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076796', 'tblTempUsageDetail_20' ) end [2024-12-22 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076796', 'tblTempVendorCDR_20' ) start [2024-12-22 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076796', 'tblTempVendorCDR_20' ) end [2024-12-22 10:10:18] Production.INFO: ProcessCDR(1,14076796,1,1,2) [2024-12-22 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076796', 'tblTempUsageDetail_20' ) start [2024-12-22 10:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076796', 'tblTempUsageDetail_20' ) end [2024-12-22 10:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:10:23] Production.INFO: ==8975== Releasing lock... [2024-12-22 10:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:10:23] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:11:05 [end_date_ymd] => 2024-12-22 10:11:05 [RateCDR] => 1 ) [2024-12-22 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:11:05' and `end` < '2024-12-22 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:11:17] Production.INFO: count ==157 [2024-12-22 10:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:11:05 - End Time 2024-12-22 10:11:05 [2024-12-22 10:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076802', 'tblTempUsageDetail_20' ) start [2024-12-22 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076802', 'tblTempUsageDetail_20' ) end [2024-12-22 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076802', 'tblTempVendorCDR_20' ) start [2024-12-22 10:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076802', 'tblTempVendorCDR_20' ) end [2024-12-22 10:11:17] Production.INFO: ProcessCDR(1,14076802,1,1,2) [2024-12-22 10:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076802', 'tblTempUsageDetail_20' ) start [2024-12-22 10:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076802', 'tblTempUsageDetail_20' ) end [2024-12-22 10:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:11:22] Production.INFO: ==9062== Releasing lock... [2024-12-22 10:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:11:22] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:12:05 [end_date_ymd] => 2024-12-22 10:12:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:12:05' and `end` < '2024-12-22 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-22 10:12:18] Production.INFO: count ==161 [2024-12-22 10:12:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:12:05 - End Time 2024-12-22 10:12:05 [2024-12-22 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076807', 'tblTempUsageDetail_20' ) start [2024-12-22 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076807', 'tblTempUsageDetail_20' ) end [2024-12-22 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076807', 'tblTempVendorCDR_20' ) start [2024-12-22 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076807', 'tblTempVendorCDR_20' ) end [2024-12-22 10:12:18] Production.INFO: ProcessCDR(1,14076807,1,1,2) [2024-12-22 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076807', 'tblTempUsageDetail_20' ) start [2024-12-22 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076807', 'tblTempUsageDetail_20' ) end [2024-12-22 10:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:12:21] Production.INFO: ==9141== Releasing lock... [2024-12-22 10:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:12:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:13:05 [end_date_ymd] => 2024-12-22 10:13:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:13:05' and `end` < '2024-12-22 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-22 10:13:17] Production.INFO: count ==161 [2024-12-22 10:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:13:05 - End Time 2024-12-22 10:13:05 [2024-12-22 10:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076812', 'tblTempUsageDetail_20' ) start [2024-12-22 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076812', 'tblTempUsageDetail_20' ) end [2024-12-22 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076812', 'tblTempVendorCDR_20' ) start [2024-12-22 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076812', 'tblTempVendorCDR_20' ) end [2024-12-22 10:13:17] Production.INFO: ProcessCDR(1,14076812,1,1,2) [2024-12-22 10:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076812', 'tblTempUsageDetail_20' ) start [2024-12-22 10:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076812', 'tblTempUsageDetail_20' ) end [2024-12-22 10:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:13:20] Production.INFO: ==9223== Releasing lock... [2024-12-22 10:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:13:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:14:05 [end_date_ymd] => 2024-12-22 10:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:14:05' and `end` < '2024-12-22 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-22 10:14:18] Production.INFO: count ==161 [2024-12-22 10:14:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:14:05 - End Time 2024-12-22 10:14:05 [2024-12-22 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076817', 'tblTempUsageDetail_20' ) start [2024-12-22 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076817', 'tblTempUsageDetail_20' ) end [2024-12-22 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076817', 'tblTempVendorCDR_20' ) start [2024-12-22 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076817', 'tblTempVendorCDR_20' ) end [2024-12-22 10:14:18] Production.INFO: ProcessCDR(1,14076817,1,1,2) [2024-12-22 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076817', 'tblTempUsageDetail_20' ) start [2024-12-22 10:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076817', 'tblTempUsageDetail_20' ) end [2024-12-22 10:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:14:21] Production.INFO: ==9303== Releasing lock... [2024-12-22 10:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:14:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 10:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:15:04 [end_date_ymd] => 2024-12-22 10:15:04 [RateCDR] => 1 ) [2024-12-22 10:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:15:04' and `end` < '2024-12-22 10:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:15:16] Production.INFO: count ==161 [2024-12-22 10:15:16] Production.ERROR: pbx CDR StartTime 2024-12-22 07:15:04 - End Time 2024-12-22 10:15:04 [2024-12-22 10:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076822', 'tblTempUsageDetail_20' ) start [2024-12-22 10:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076822', 'tblTempUsageDetail_20' ) end [2024-12-22 10:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076822', 'tblTempVendorCDR_20' ) start [2024-12-22 10:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076822', 'tblTempVendorCDR_20' ) end [2024-12-22 10:15:16] Production.INFO: ProcessCDR(1,14076822,1,1,2) [2024-12-22 10:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076822', 'tblTempUsageDetail_20' ) start [2024-12-22 10:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076822', 'tblTempUsageDetail_20' ) end [2024-12-22 10:15:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:15:20] Production.INFO: ==9382== Releasing lock... [2024-12-22 10:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:15:20] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 10:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:16:04 [end_date_ymd] => 2024-12-22 10:16:04 [RateCDR] => 1 ) [2024-12-22 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-22 07:16:04' and `end` < '2024-12-22 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-22 10:16:16] Production.INFO: count ==161 [2024-12-22 10:16:16] Production.ERROR: pbx CDR StartTime 2024-12-22 07:16:04 - End Time 2024-12-22 10:16:04 [2024-12-22 10:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076827', 'tblTempUsageDetail_20' ) start [2024-12-22 10:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076827', 'tblTempUsageDetail_20' ) end [2024-12-22 10:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076827', 'tblTempVendorCDR_20' ) start [2024-12-22 10:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076827', 'tblTempVendorCDR_20' ) end [2024-12-22 10:16:16] Production.INFO: ProcessCDR(1,14076827,1,1,2) [2024-12-22 10:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:16:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076827', 'tblTempUsageDetail_20' ) start [2024-12-22 10:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076827', 'tblTempUsageDetail_20' ) end [2024-12-22 10:16:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:16:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:16:19] Production.INFO: ==9461== Releasing lock... [2024-12-22 10:16:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:16:19] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:17:05 [end_date_ymd] => 2024-12-22 10:17:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:17:05' and `end` < '2024-12-22 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-22 10:17:17] Production.INFO: count ==164 [2024-12-22 10:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:17:05 - End Time 2024-12-22 10:17:05 [2024-12-22 10:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076832', 'tblTempUsageDetail_20' ) start [2024-12-22 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076832', 'tblTempUsageDetail_20' ) end [2024-12-22 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076832', 'tblTempVendorCDR_20' ) start [2024-12-22 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076832', 'tblTempVendorCDR_20' ) end [2024-12-22 10:17:17] Production.INFO: ProcessCDR(1,14076832,1,1,2) [2024-12-22 10:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076832', 'tblTempUsageDetail_20' ) start [2024-12-22 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076832', 'tblTempUsageDetail_20' ) end [2024-12-22 10:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:17:21] Production.INFO: ==9583== Releasing lock... [2024-12-22 10:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:17:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 10:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:18:04 [end_date_ymd] => 2024-12-22 10:18:04 [RateCDR] => 1 ) [2024-12-22 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-22 07:18:04' and `end` < '2024-12-22 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-22 10:18:17] Production.INFO: count ==170 [2024-12-22 10:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:18:04 - End Time 2024-12-22 10:18:04 [2024-12-22 10:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076837', 'tblTempUsageDetail_20' ) start [2024-12-22 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076837', 'tblTempUsageDetail_20' ) end [2024-12-22 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076837', 'tblTempVendorCDR_20' ) start [2024-12-22 10:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076837', 'tblTempVendorCDR_20' ) end [2024-12-22 10:18:17] Production.INFO: ProcessCDR(1,14076837,1,1,2) [2024-12-22 10:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076837', 'tblTempUsageDetail_20' ) start [2024-12-22 10:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076837', 'tblTempUsageDetail_20' ) end [2024-12-22 10:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:18:20] Production.INFO: ==9663== Releasing lock... [2024-12-22 10:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:18:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:19:05 [end_date_ymd] => 2024-12-22 10:19:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:19:05' and `end` < '2024-12-22 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-22 10:19:17] Production.INFO: count ==170 [2024-12-22 10:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:19:05 - End Time 2024-12-22 10:19:05 [2024-12-22 10:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076842', 'tblTempUsageDetail_20' ) start [2024-12-22 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076842', 'tblTempUsageDetail_20' ) end [2024-12-22 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076842', 'tblTempVendorCDR_20' ) start [2024-12-22 10:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076842', 'tblTempVendorCDR_20' ) end [2024-12-22 10:19:17] Production.INFO: ProcessCDR(1,14076842,1,1,2) [2024-12-22 10:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076842', 'tblTempUsageDetail_20' ) start [2024-12-22 10:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076842', 'tblTempUsageDetail_20' ) end [2024-12-22 10:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:19:20] Production.INFO: ==9742== Releasing lock... [2024-12-22 10:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:19:20] Production.INFO: 29.25 MB #Memory Used# [2024-12-22 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:20:05 [end_date_ymd] => 2024-12-22 10:20:05 [RateCDR] => 1 ) [2024-12-22 10:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:20:05' and `end` < '2024-12-22 10:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:20:17] Production.INFO: count ==183 [2024-12-22 10:20:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:20:05 - End Time 2024-12-22 10:20:05 [2024-12-22 10:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076848', 'tblTempUsageDetail_20' ) start [2024-12-22 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076848', 'tblTempUsageDetail_20' ) end [2024-12-22 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076848', 'tblTempVendorCDR_20' ) start [2024-12-22 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076848', 'tblTempVendorCDR_20' ) end [2024-12-22 10:20:17] Production.INFO: ProcessCDR(1,14076848,1,1,2) [2024-12-22 10:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076848', 'tblTempUsageDetail_20' ) start [2024-12-22 10:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076848', 'tblTempUsageDetail_20' ) end [2024-12-22 10:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:20:20] Production.INFO: ==9828== Releasing lock... [2024-12-22 10:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:20:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:21:04 [end_date_ymd] => 2024-12-22 10:21:04 [RateCDR] => 1 ) [2024-12-22 10:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:21:04' and `end` < '2024-12-22 10:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:21:18] Production.INFO: count ==199 [2024-12-22 10:21:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:21:04 - End Time 2024-12-22 10:21:04 [2024-12-22 10:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076853', 'tblTempUsageDetail_20' ) start [2024-12-22 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076853', 'tblTempUsageDetail_20' ) end [2024-12-22 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076853', 'tblTempVendorCDR_20' ) start [2024-12-22 10:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076853', 'tblTempVendorCDR_20' ) end [2024-12-22 10:21:18] Production.INFO: ProcessCDR(1,14076853,1,1,2) [2024-12-22 10:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076853', 'tblTempUsageDetail_20' ) start [2024-12-22 10:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076853', 'tblTempUsageDetail_20' ) end [2024-12-22 10:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:21:21] Production.INFO: ==9909== Releasing lock... [2024-12-22 10:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:21:21] Production.INFO: 29.5 MB #Memory Used# [2024-12-22 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:22:05 [end_date_ymd] => 2024-12-22 10:22:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:22:05' and `end` < '2024-12-22 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-22 10:22:17] Production.INFO: count ==205 [2024-12-22 10:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:22:05 - End Time 2024-12-22 10:22:05 [2024-12-22 10:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076858', 'tblTempUsageDetail_20' ) start [2024-12-22 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076858', 'tblTempUsageDetail_20' ) end [2024-12-22 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076858', 'tblTempVendorCDR_20' ) start [2024-12-22 10:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076858', 'tblTempVendorCDR_20' ) end [2024-12-22 10:22:17] Production.INFO: ProcessCDR(1,14076858,1,1,2) [2024-12-22 10:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076858', 'tblTempUsageDetail_20' ) start [2024-12-22 10:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076858', 'tblTempUsageDetail_20' ) end [2024-12-22 10:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:22:20] Production.INFO: ==9990== Releasing lock... [2024-12-22 10:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:22:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 10:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:23:04 [end_date_ymd] => 2024-12-22 10:23:04 [RateCDR] => 1 ) [2024-12-22 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-22 07:23:04' and `end` < '2024-12-22 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-22 10:23:17] Production.INFO: count ==205 [2024-12-22 10:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:23:04 - End Time 2024-12-22 10:23:04 [2024-12-22 10:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076863', 'tblTempUsageDetail_20' ) start [2024-12-22 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076863', 'tblTempUsageDetail_20' ) end [2024-12-22 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076863', 'tblTempVendorCDR_20' ) start [2024-12-22 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076863', 'tblTempVendorCDR_20' ) end [2024-12-22 10:23:17] Production.INFO: ProcessCDR(1,14076863,1,1,2) [2024-12-22 10:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076863', 'tblTempUsageDetail_20' ) start [2024-12-22 10:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076863', 'tblTempUsageDetail_20' ) end [2024-12-22 10:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:23:20] Production.INFO: ==10065== Releasing lock... [2024-12-22 10:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:23:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:24:05 [end_date_ymd] => 2024-12-22 10:24:05 [RateCDR] => 1 ) [2024-12-22 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:24:05' and `end` < '2024-12-22 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:24:17] Production.INFO: count ==205 [2024-12-22 10:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:24:05 - End Time 2024-12-22 10:24:05 [2024-12-22 10:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076868', 'tblTempUsageDetail_20' ) start [2024-12-22 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076868', 'tblTempUsageDetail_20' ) end [2024-12-22 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076868', 'tblTempVendorCDR_20' ) start [2024-12-22 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076868', 'tblTempVendorCDR_20' ) end [2024-12-22 10:24:17] Production.INFO: ProcessCDR(1,14076868,1,1,2) [2024-12-22 10:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076868', 'tblTempUsageDetail_20' ) start [2024-12-22 10:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076868', 'tblTempUsageDetail_20' ) end [2024-12-22 10:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:24:20] Production.INFO: ==10155== Releasing lock... [2024-12-22 10:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:24:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:25:04 [end_date_ymd] => 2024-12-22 10:25:04 [RateCDR] => 1 ) [2024-12-22 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-22 07:25:04' and `end` < '2024-12-22 10:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:25:17] Production.INFO: count ==205 [2024-12-22 10:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:25:04 - End Time 2024-12-22 10:25:04 [2024-12-22 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076873', 'tblTempUsageDetail_20' ) start [2024-12-22 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076873', 'tblTempUsageDetail_20' ) end [2024-12-22 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076873', 'tblTempVendorCDR_20' ) start [2024-12-22 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076873', 'tblTempVendorCDR_20' ) end [2024-12-22 10:25:17] Production.INFO: ProcessCDR(1,14076873,1,1,2) [2024-12-22 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076873', 'tblTempUsageDetail_20' ) start [2024-12-22 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076873', 'tblTempUsageDetail_20' ) end [2024-12-22 10:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:25:20] Production.INFO: ==10229== Releasing lock... [2024-12-22 10:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:25:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 10:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:26:04 [end_date_ymd] => 2024-12-22 10:26:04 [RateCDR] => 1 ) [2024-12-22 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-22 07:26:04' and `end` < '2024-12-22 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-22 10:26:17] Production.INFO: count ==205 [2024-12-22 10:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:26:04 - End Time 2024-12-22 10:26:04 [2024-12-22 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076878', 'tblTempUsageDetail_20' ) start [2024-12-22 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076878', 'tblTempUsageDetail_20' ) end [2024-12-22 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076878', 'tblTempVendorCDR_20' ) start [2024-12-22 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076878', 'tblTempVendorCDR_20' ) end [2024-12-22 10:26:17] Production.INFO: ProcessCDR(1,14076878,1,1,2) [2024-12-22 10:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076878', 'tblTempUsageDetail_20' ) start [2024-12-22 10:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076878', 'tblTempUsageDetail_20' ) end [2024-12-22 10:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:26:20] Production.INFO: ==10312== Releasing lock... [2024-12-22 10:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:26:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:27:05 [end_date_ymd] => 2024-12-22 10:27:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:27:05' and `end` < '2024-12-22 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-22 10:27:17] Production.INFO: count ==205 [2024-12-22 10:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:27:05 - End Time 2024-12-22 10:27:05 [2024-12-22 10:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076883', 'tblTempUsageDetail_20' ) start [2024-12-22 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076883', 'tblTempUsageDetail_20' ) end [2024-12-22 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076883', 'tblTempVendorCDR_20' ) start [2024-12-22 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076883', 'tblTempVendorCDR_20' ) end [2024-12-22 10:27:17] Production.INFO: ProcessCDR(1,14076883,1,1,2) [2024-12-22 10:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076883', 'tblTempUsageDetail_20' ) start [2024-12-22 10:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076883', 'tblTempUsageDetail_20' ) end [2024-12-22 10:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:27:20] Production.INFO: ==10393== Releasing lock... [2024-12-22 10:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:27:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 10:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:28:04 [end_date_ymd] => 2024-12-22 10:28:04 [RateCDR] => 1 ) [2024-12-22 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-22 07:28:04' and `end` < '2024-12-22 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-22 10:28:16] Production.INFO: count ==205 [2024-12-22 10:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:28:04 - End Time 2024-12-22 10:28:04 [2024-12-22 10:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076888', 'tblTempUsageDetail_20' ) start [2024-12-22 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076888', 'tblTempUsageDetail_20' ) end [2024-12-22 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076888', 'tblTempVendorCDR_20' ) start [2024-12-22 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076888', 'tblTempVendorCDR_20' ) end [2024-12-22 10:28:17] Production.INFO: ProcessCDR(1,14076888,1,1,2) [2024-12-22 10:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:28:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:28:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076888', 'tblTempUsageDetail_20' ) start [2024-12-22 10:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076888', 'tblTempUsageDetail_20' ) end [2024-12-22 10:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:28:20] Production.INFO: ==10467== Releasing lock... [2024-12-22 10:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:28:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:29:05 [end_date_ymd] => 2024-12-22 10:29:05 [RateCDR] => 1 ) [2024-12-22 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:29:05' and `end` < '2024-12-22 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:29:17] Production.INFO: count ==205 [2024-12-22 10:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:29:05 - End Time 2024-12-22 10:29:05 [2024-12-22 10:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076893', 'tblTempUsageDetail_20' ) start [2024-12-22 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076893', 'tblTempUsageDetail_20' ) end [2024-12-22 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076893', 'tblTempVendorCDR_20' ) start [2024-12-22 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076893', 'tblTempVendorCDR_20' ) end [2024-12-22 10:29:17] Production.INFO: ProcessCDR(1,14076893,1,1,2) [2024-12-22 10:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076893', 'tblTempUsageDetail_20' ) start [2024-12-22 10:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076893', 'tblTempUsageDetail_20' ) end [2024-12-22 10:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:29:20] Production.INFO: ==10550== Releasing lock... [2024-12-22 10:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:29:20] Production.INFO: 30 MB #Memory Used# [2024-12-22 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:30:05 [end_date_ymd] => 2024-12-22 10:30:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:30:05' and `end` < '2024-12-22 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-22 10:30:17] Production.INFO: count ==215 [2024-12-22 10:30:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:30:05 - End Time 2024-12-22 10:30:05 [2024-12-22 10:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076899', 'tblTempUsageDetail_20' ) start [2024-12-22 10:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076899', 'tblTempUsageDetail_20' ) end [2024-12-22 10:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076899', 'tblTempVendorCDR_20' ) start [2024-12-22 10:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076899', 'tblTempVendorCDR_20' ) end [2024-12-22 10:30:17] Production.INFO: ProcessCDR(1,14076899,1,1,2) [2024-12-22 10:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076899', 'tblTempUsageDetail_20' ) start [2024-12-22 10:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076899', 'tblTempUsageDetail_20' ) end [2024-12-22 10:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:30:21] Production.INFO: ==10624== Releasing lock... [2024-12-22 10:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:30:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:31:04 [end_date_ymd] => 2024-12-22 10:31:04 [RateCDR] => 1 ) [2024-12-22 10:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:31:04' and `end` < '2024-12-22 10:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:31:16] Production.INFO: count ==225 [2024-12-22 10:31:16] Production.ERROR: pbx CDR StartTime 2024-12-22 07:31:04 - End Time 2024-12-22 10:31:04 [2024-12-22 10:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076904', 'tblTempUsageDetail_20' ) start [2024-12-22 10:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076904', 'tblTempUsageDetail_20' ) end [2024-12-22 10:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076904', 'tblTempVendorCDR_20' ) start [2024-12-22 10:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076904', 'tblTempVendorCDR_20' ) end [2024-12-22 10:31:16] Production.INFO: ProcessCDR(1,14076904,1,1,2) [2024-12-22 10:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076904', 'tblTempUsageDetail_20' ) start [2024-12-22 10:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076904', 'tblTempUsageDetail_20' ) end [2024-12-22 10:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:31:20] Production.INFO: ==10710== Releasing lock... [2024-12-22 10:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:31:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:32:05 [end_date_ymd] => 2024-12-22 10:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:32:05' and `end` < '2024-12-22 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-22 10:32:17] Production.INFO: count ==225 [2024-12-22 10:32:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:32:05 - End Time 2024-12-22 10:32:05 [2024-12-22 10:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076909', 'tblTempUsageDetail_20' ) start [2024-12-22 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076909', 'tblTempUsageDetail_20' ) end [2024-12-22 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076909', 'tblTempVendorCDR_20' ) start [2024-12-22 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076909', 'tblTempVendorCDR_20' ) end [2024-12-22 10:32:17] Production.INFO: ProcessCDR(1,14076909,1,1,2) [2024-12-22 10:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076909', 'tblTempUsageDetail_20' ) start [2024-12-22 10:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076909', 'tblTempUsageDetail_20' ) end [2024-12-22 10:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:32:21] Production.INFO: ==10826== Releasing lock... [2024-12-22 10:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:32:21] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 10:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:33:04 [end_date_ymd] => 2024-12-22 10:33:04 [RateCDR] => 1 ) [2024-12-22 10: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-22 07:33:04' and `end` < '2024-12-22 10: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-22 10:33:17] Production.INFO: count ==225 [2024-12-22 10:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:33:04 - End Time 2024-12-22 10:33:04 [2024-12-22 10:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076914', 'tblTempUsageDetail_20' ) start [2024-12-22 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076914', 'tblTempUsageDetail_20' ) end [2024-12-22 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076914', 'tblTempVendorCDR_20' ) start [2024-12-22 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076914', 'tblTempVendorCDR_20' ) end [2024-12-22 10:33:17] Production.INFO: ProcessCDR(1,14076914,1,1,2) [2024-12-22 10:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076914', 'tblTempUsageDetail_20' ) start [2024-12-22 10:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076914', 'tblTempUsageDetail_20' ) end [2024-12-22 10:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:33:20] Production.INFO: ==10905== Releasing lock... [2024-12-22 10:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:33:20] Production.INFO: 29.75 MB #Memory Used# [2024-12-22 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:34:05 [end_date_ymd] => 2024-12-22 10:34:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:34:05' and `end` < '2024-12-22 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-22 10:34:18] Production.INFO: count ==230 [2024-12-22 10:34:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:34:05 - End Time 2024-12-22 10:34:05 [2024-12-22 10:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076919', 'tblTempUsageDetail_20' ) start [2024-12-22 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076919', 'tblTempUsageDetail_20' ) end [2024-12-22 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076919', 'tblTempVendorCDR_20' ) start [2024-12-22 10:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076919', 'tblTempVendorCDR_20' ) end [2024-12-22 10:34:18] Production.INFO: ProcessCDR(1,14076919,1,1,2) [2024-12-22 10:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076919', 'tblTempUsageDetail_20' ) start [2024-12-22 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076919', 'tblTempUsageDetail_20' ) end [2024-12-22 10:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:34:21] Production.INFO: ==10996== Releasing lock... [2024-12-22 10:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:34:21] Production.INFO: 30 MB #Memory Used# [2024-12-22 10:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:35:04 [end_date_ymd] => 2024-12-22 10:35:04 [RateCDR] => 1 ) [2024-12-22 10:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:35:04' and `end` < '2024-12-22 10:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:35:18] Production.INFO: count ==233 [2024-12-22 10:35:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:35:04 - End Time 2024-12-22 10:35:04 [2024-12-22 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076924', 'tblTempUsageDetail_20' ) start [2024-12-22 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076924', 'tblTempUsageDetail_20' ) end [2024-12-22 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076924', 'tblTempVendorCDR_20' ) start [2024-12-22 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076924', 'tblTempVendorCDR_20' ) end [2024-12-22 10:35:18] Production.INFO: ProcessCDR(1,14076924,1,1,2) [2024-12-22 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076924', 'tblTempUsageDetail_20' ) start [2024-12-22 10:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076924', 'tblTempUsageDetail_20' ) end [2024-12-22 10:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:35:21] Production.INFO: ==11070== Releasing lock... [2024-12-22 10:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:35:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-22 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:36:05 [end_date_ymd] => 2024-12-22 10:36:05 [RateCDR] => 1 ) [2024-12-22 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:36:05' and `end` < '2024-12-22 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:36:18] Production.INFO: count ==233 [2024-12-22 10:36:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:36:05 - End Time 2024-12-22 10:36:05 [2024-12-22 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076929', 'tblTempUsageDetail_20' ) start [2024-12-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076929', 'tblTempUsageDetail_20' ) end [2024-12-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076929', 'tblTempVendorCDR_20' ) start [2024-12-22 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076929', 'tblTempVendorCDR_20' ) end [2024-12-22 10:36:18] Production.INFO: ProcessCDR(1,14076929,1,1,2) [2024-12-22 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076929', 'tblTempUsageDetail_20' ) start [2024-12-22 10:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076929', 'tblTempUsageDetail_20' ) end [2024-12-22 10:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:36:21] Production.INFO: ==11149== Releasing lock... [2024-12-22 10:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:36:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-22 10:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:37:04 [end_date_ymd] => 2024-12-22 10:37:04 [RateCDR] => 1 ) [2024-12-22 10:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:37:04' and `end` < '2024-12-22 10:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:37:16] Production.INFO: count ==233 [2024-12-22 10:37:16] Production.ERROR: pbx CDR StartTime 2024-12-22 07:37:04 - End Time 2024-12-22 10:37:04 [2024-12-22 10:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076934', 'tblTempUsageDetail_20' ) start [2024-12-22 10:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076934', 'tblTempUsageDetail_20' ) end [2024-12-22 10:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076934', 'tblTempVendorCDR_20' ) start [2024-12-22 10:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076934', 'tblTempVendorCDR_20' ) end [2024-12-22 10:37:16] Production.INFO: ProcessCDR(1,14076934,1,1,2) [2024-12-22 10:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076934', 'tblTempUsageDetail_20' ) start [2024-12-22 10:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076934', 'tblTempUsageDetail_20' ) end [2024-12-22 10:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:37:20] Production.INFO: ==11227== Releasing lock... [2024-12-22 10:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:37:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-22 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:38:05 [end_date_ymd] => 2024-12-22 10:38:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:38:05' and `end` < '2024-12-22 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-22 10:38:18] Production.INFO: count ==233 [2024-12-22 10:38:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:38:05 - End Time 2024-12-22 10:38:05 [2024-12-22 10:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076939', 'tblTempUsageDetail_20' ) start [2024-12-22 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076939', 'tblTempUsageDetail_20' ) end [2024-12-22 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076939', 'tblTempVendorCDR_20' ) start [2024-12-22 10:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076939', 'tblTempVendorCDR_20' ) end [2024-12-22 10:38:18] Production.INFO: ProcessCDR(1,14076939,1,1,2) [2024-12-22 10:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076939', 'tblTempUsageDetail_20' ) start [2024-12-22 10:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076939', 'tblTempUsageDetail_20' ) end [2024-12-22 10:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:38:21] Production.INFO: ==11306== Releasing lock... [2024-12-22 10:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:38:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-22 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:39:05 [end_date_ymd] => 2024-12-22 10:39:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:39:05' and `end` < '2024-12-22 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-22 10:39:18] Production.INFO: count ==252 [2024-12-22 10:39:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:39:05 - End Time 2024-12-22 10:39:05 [2024-12-22 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076944', 'tblTempUsageDetail_20' ) start [2024-12-22 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076944', 'tblTempUsageDetail_20' ) end [2024-12-22 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076944', 'tblTempVendorCDR_20' ) start [2024-12-22 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076944', 'tblTempVendorCDR_20' ) end [2024-12-22 10:39:18] Production.INFO: ProcessCDR(1,14076944,1,1,2) [2024-12-22 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076944', 'tblTempUsageDetail_20' ) start [2024-12-22 10:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076944', 'tblTempUsageDetail_20' ) end [2024-12-22 10:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:39:21] Production.INFO: ==11383== Releasing lock... [2024-12-22 10:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:39:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-22 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:40:05 [end_date_ymd] => 2024-12-22 10:40:05 [RateCDR] => 1 ) [2024-12-22 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:40:05' and `end` < '2024-12-22 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:40:18] Production.INFO: count ==259 [2024-12-22 10:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:40:05 - End Time 2024-12-22 10:40:05 [2024-12-22 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076950', 'tblTempUsageDetail_20' ) start [2024-12-22 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076950', 'tblTempUsageDetail_20' ) end [2024-12-22 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076950', 'tblTempVendorCDR_20' ) start [2024-12-22 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076950', 'tblTempVendorCDR_20' ) end [2024-12-22 10:40:18] Production.INFO: ProcessCDR(1,14076950,1,1,2) [2024-12-22 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076950', 'tblTempUsageDetail_20' ) start [2024-12-22 10:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076950', 'tblTempUsageDetail_20' ) end [2024-12-22 10:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:40:21] Production.INFO: ==11463== Releasing lock... [2024-12-22 10:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:40:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-22 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:41:05 [end_date_ymd] => 2024-12-22 10:41:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:41:05' and `end` < '2024-12-22 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-22 10:41:17] Production.INFO: count ==271 [2024-12-22 10:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:41:05 - End Time 2024-12-22 10:41:05 [2024-12-22 10:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076955', 'tblTempUsageDetail_20' ) start [2024-12-22 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076955', 'tblTempUsageDetail_20' ) end [2024-12-22 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076955', 'tblTempVendorCDR_20' ) start [2024-12-22 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076955', 'tblTempVendorCDR_20' ) end [2024-12-22 10:41:17] Production.INFO: ProcessCDR(1,14076955,1,1,2) [2024-12-22 10:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076955', 'tblTempUsageDetail_20' ) start [2024-12-22 10:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076955', 'tblTempUsageDetail_20' ) end [2024-12-22 10:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:41:20] Production.INFO: ==11547== Releasing lock... [2024-12-22 10:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:41:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-22 10:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:42:04 [end_date_ymd] => 2024-12-22 10:42:04 [RateCDR] => 1 ) [2024-12-22 10:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:42:04' and `end` < '2024-12-22 10:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:42:17] Production.INFO: count ==271 [2024-12-22 10:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:42:04 - End Time 2024-12-22 10:42:04 [2024-12-22 10:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076960', 'tblTempUsageDetail_20' ) start [2024-12-22 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076960', 'tblTempUsageDetail_20' ) end [2024-12-22 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076960', 'tblTempVendorCDR_20' ) start [2024-12-22 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076960', 'tblTempVendorCDR_20' ) end [2024-12-22 10:42:17] Production.INFO: ProcessCDR(1,14076960,1,1,2) [2024-12-22 10:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076960', 'tblTempUsageDetail_20' ) start [2024-12-22 10:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076960', 'tblTempUsageDetail_20' ) end [2024-12-22 10:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:42:20] Production.INFO: ==11621== Releasing lock... [2024-12-22 10:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:42:20] Production.INFO: 30.5 MB #Memory Used# [2024-12-22 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:43:05 [end_date_ymd] => 2024-12-22 10:43:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:43:05' and `end` < '2024-12-22 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-22 10:43:18] Production.INFO: count ==274 [2024-12-22 10:43:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:43:05 - End Time 2024-12-22 10:43:05 [2024-12-22 10:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076965', 'tblTempUsageDetail_20' ) start [2024-12-22 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076965', 'tblTempUsageDetail_20' ) end [2024-12-22 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076965', 'tblTempVendorCDR_20' ) start [2024-12-22 10:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076965', 'tblTempVendorCDR_20' ) end [2024-12-22 10:43:18] Production.INFO: ProcessCDR(1,14076965,1,1,2) [2024-12-22 10:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076965', 'tblTempUsageDetail_20' ) start [2024-12-22 10:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076965', 'tblTempUsageDetail_20' ) end [2024-12-22 10:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:43:21] Production.INFO: ==11702== Releasing lock... [2024-12-22 10:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:43:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-22 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:44:05 [end_date_ymd] => 2024-12-22 10:44:05 [RateCDR] => 1 ) [2024-12-22 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:44:05' and `end` < '2024-12-22 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:44:17] Production.INFO: count ==274 [2024-12-22 10:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:44:05 - End Time 2024-12-22 10:44:05 [2024-12-22 10:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076970', 'tblTempUsageDetail_20' ) start [2024-12-22 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076970', 'tblTempUsageDetail_20' ) end [2024-12-22 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076970', 'tblTempVendorCDR_20' ) start [2024-12-22 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076970', 'tblTempVendorCDR_20' ) end [2024-12-22 10:44:17] Production.INFO: ProcessCDR(1,14076970,1,1,2) [2024-12-22 10:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076970', 'tblTempUsageDetail_20' ) start [2024-12-22 10:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076970', 'tblTempUsageDetail_20' ) end [2024-12-22 10:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:44:20] Production.INFO: ==11779== Releasing lock... [2024-12-22 10:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:44:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-22 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:45:05 [end_date_ymd] => 2024-12-22 10:45:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:45:05' and `end` < '2024-12-22 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-22 10:45:17] Production.INFO: count ==274 [2024-12-22 10:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:45:05 - End Time 2024-12-22 10:45:05 [2024-12-22 10:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076975', 'tblTempUsageDetail_20' ) start [2024-12-22 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076975', 'tblTempUsageDetail_20' ) end [2024-12-22 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076975', 'tblTempVendorCDR_20' ) start [2024-12-22 10:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076975', 'tblTempVendorCDR_20' ) end [2024-12-22 10:45:17] Production.INFO: ProcessCDR(1,14076975,1,1,2) [2024-12-22 10:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076975', 'tblTempUsageDetail_20' ) start [2024-12-22 10:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076975', 'tblTempUsageDetail_20' ) end [2024-12-22 10:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:45:20] Production.INFO: ==11855== Releasing lock... [2024-12-22 10:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:45:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-22 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:46:06 [end_date_ymd] => 2024-12-22 10:46:06 [RateCDR] => 1 ) [2024-12-22 10:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:46:06' and `end` < '2024-12-22 10:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:46:18] Production.INFO: count ==275 [2024-12-22 10:46:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:46:06 - End Time 2024-12-22 10:46:06 [2024-12-22 10:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076980', 'tblTempUsageDetail_20' ) start [2024-12-22 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076980', 'tblTempUsageDetail_20' ) end [2024-12-22 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076980', 'tblTempVendorCDR_20' ) start [2024-12-22 10:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076980', 'tblTempVendorCDR_20' ) end [2024-12-22 10:46:18] Production.INFO: ProcessCDR(1,14076980,1,1,2) [2024-12-22 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076980', 'tblTempUsageDetail_20' ) start [2024-12-22 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076980', 'tblTempUsageDetail_20' ) end [2024-12-22 10:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:46:21] Production.INFO: ==11929== Releasing lock... [2024-12-22 10:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:46:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-22 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:47:04 [end_date_ymd] => 2024-12-22 10:47:04 [RateCDR] => 1 ) [2024-12-22 10:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:47:04' and `end` < '2024-12-22 10:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:47:17] Production.INFO: count ==275 [2024-12-22 10:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:47:04 - End Time 2024-12-22 10:47:04 [2024-12-22 10:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076985', 'tblTempUsageDetail_20' ) start [2024-12-22 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076985', 'tblTempUsageDetail_20' ) end [2024-12-22 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076985', 'tblTempVendorCDR_20' ) start [2024-12-22 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076985', 'tblTempVendorCDR_20' ) end [2024-12-22 10:47:17] Production.INFO: ProcessCDR(1,14076985,1,1,2) [2024-12-22 10:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076985', 'tblTempUsageDetail_20' ) start [2024-12-22 10:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076985', 'tblTempUsageDetail_20' ) end [2024-12-22 10:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:47:20] Production.INFO: ==12004== Releasing lock... [2024-12-22 10:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:47:20] Production.INFO: 30.25 MB #Memory Used# [2024-12-22 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:48:05 [end_date_ymd] => 2024-12-22 10:48:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:48:05' and `end` < '2024-12-22 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-22 10:48:18] Production.INFO: count ==275 [2024-12-22 10:48:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:48:05 - End Time 2024-12-22 10:48:05 [2024-12-22 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076990', 'tblTempUsageDetail_20' ) start [2024-12-22 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076990', 'tblTempUsageDetail_20' ) end [2024-12-22 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076990', 'tblTempVendorCDR_20' ) start [2024-12-22 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076990', 'tblTempVendorCDR_20' ) end [2024-12-22 10:48:18] Production.INFO: ProcessCDR(1,14076990,1,1,2) [2024-12-22 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076990', 'tblTempUsageDetail_20' ) start [2024-12-22 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076990', 'tblTempUsageDetail_20' ) end [2024-12-22 10:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:48:21] Production.INFO: ==12120== Releasing lock... [2024-12-22 10:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:48:21] Production.INFO: 30.25 MB #Memory Used# [2024-12-22 10:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:49:04 [end_date_ymd] => 2024-12-22 10:49:04 [RateCDR] => 1 ) [2024-12-22 10:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:49:04' and `end` < '2024-12-22 10:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:49:16] Production.INFO: count ==278 [2024-12-22 10:49:16] Production.ERROR: pbx CDR StartTime 2024-12-22 07:49:04 - End Time 2024-12-22 10:49:04 [2024-12-22 10:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076995', 'tblTempUsageDetail_20' ) start [2024-12-22 10:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14076995', 'tblTempUsageDetail_20' ) end [2024-12-22 10:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076995', 'tblTempVendorCDR_20' ) start [2024-12-22 10:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14076995', 'tblTempVendorCDR_20' ) end [2024-12-22 10:49:16] Production.INFO: ProcessCDR(1,14076995,1,1,2) [2024-12-22 10:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14076995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14076995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14076995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14076995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076995', 'tblTempUsageDetail_20' ) start [2024-12-22 10:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14076995', 'tblTempUsageDetail_20' ) end [2024-12-22 10:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:49:21] Production.INFO: ==12192== Releasing lock... [2024-12-22 10:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:49:21] Production.INFO: 30.5 MB #Memory Used# [2024-12-22 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:50:05 [end_date_ymd] => 2024-12-22 10:50:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:50:05' and `end` < '2024-12-22 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-22 10:50:17] Production.INFO: count ==287 [2024-12-22 10:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:50:05 - End Time 2024-12-22 10:50:05 [2024-12-22 10:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077001', 'tblTempUsageDetail_20' ) start [2024-12-22 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077001', 'tblTempUsageDetail_20' ) end [2024-12-22 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077001', 'tblTempVendorCDR_20' ) start [2024-12-22 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077001', 'tblTempVendorCDR_20' ) end [2024-12-22 10:50:18] Production.INFO: ProcessCDR(1,14077001,1,1,2) [2024-12-22 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077001', 'tblTempUsageDetail_20' ) start [2024-12-22 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077001', 'tblTempUsageDetail_20' ) end [2024-12-22 10:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:50:22] Production.INFO: ==12274== Releasing lock... [2024-12-22 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:50:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-22 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:51:05 [end_date_ymd] => 2024-12-22 10:51:05 [RateCDR] => 1 ) [2024-12-22 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:51:05' and `end` < '2024-12-22 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:51:17] Production.INFO: count ==314 [2024-12-22 10:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:51:05 - End Time 2024-12-22 10:51:05 [2024-12-22 10:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077006', 'tblTempUsageDetail_20' ) start [2024-12-22 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077006', 'tblTempUsageDetail_20' ) end [2024-12-22 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077006', 'tblTempVendorCDR_20' ) start [2024-12-22 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077006', 'tblTempVendorCDR_20' ) end [2024-12-22 10:51:17] Production.INFO: ProcessCDR(1,14077006,1,1,2) [2024-12-22 10:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077006', 'tblTempUsageDetail_20' ) start [2024-12-22 10:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077006', 'tblTempUsageDetail_20' ) end [2024-12-22 10:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:51:22] Production.INFO: ==12348== Releasing lock... [2024-12-22 10:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:51:22] Production.INFO: 30.5 MB #Memory Used# [2024-12-22 10:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:52:04 [end_date_ymd] => 2024-12-22 10:52:04 [RateCDR] => 1 ) [2024-12-22 10: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-22 07:52:04' and `end` < '2024-12-22 10: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-22 10:52:16] Production.INFO: count ==315 [2024-12-22 10:52:16] Production.ERROR: pbx CDR StartTime 2024-12-22 07:52:04 - End Time 2024-12-22 10:52:04 [2024-12-22 10:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077011', 'tblTempUsageDetail_20' ) start [2024-12-22 10:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077011', 'tblTempUsageDetail_20' ) end [2024-12-22 10:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077011', 'tblTempVendorCDR_20' ) start [2024-12-22 10:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077011', 'tblTempVendorCDR_20' ) end [2024-12-22 10:52:16] Production.INFO: ProcessCDR(1,14077011,1,1,2) [2024-12-22 10:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:52:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077011', 'tblTempUsageDetail_20' ) start [2024-12-22 10:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077011', 'tblTempUsageDetail_20' ) end [2024-12-22 10:52:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:52:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:52:19] Production.INFO: ==12423== Releasing lock... [2024-12-22 10:52:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:52:19] Production.INFO: 30.5 MB #Memory Used# [2024-12-22 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:53:05 [end_date_ymd] => 2024-12-22 10:53:05 [RateCDR] => 1 ) [2024-12-22 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:53:05' and `end` < '2024-12-22 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:53:17] Production.INFO: count ==316 [2024-12-22 10:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:53:05 - End Time 2024-12-22 10:53:05 [2024-12-22 10:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077016', 'tblTempUsageDetail_20' ) start [2024-12-22 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077016', 'tblTempUsageDetail_20' ) end [2024-12-22 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077016', 'tblTempVendorCDR_20' ) start [2024-12-22 10:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077016', 'tblTempVendorCDR_20' ) end [2024-12-22 10:53:17] Production.INFO: ProcessCDR(1,14077016,1,1,2) [2024-12-22 10:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077016', 'tblTempUsageDetail_20' ) start [2024-12-22 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077016', 'tblTempUsageDetail_20' ) end [2024-12-22 10:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:53:22] Production.INFO: ==12496== Releasing lock... [2024-12-22 10:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:53:22] Production.INFO: 31 MB #Memory Used# [2024-12-22 10:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:54:04 [end_date_ymd] => 2024-12-22 10:54:04 [RateCDR] => 1 ) [2024-12-22 10:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:54:04' and `end` < '2024-12-22 10:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:54:18] Production.INFO: count ==317 [2024-12-22 10:54:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:54:04 - End Time 2024-12-22 10:54:04 [2024-12-22 10:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077017', 'tblTempUsageDetail_20' ) start [2024-12-22 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077017', 'tblTempUsageDetail_20' ) end [2024-12-22 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077017', 'tblTempVendorCDR_20' ) start [2024-12-22 10:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077017', 'tblTempVendorCDR_20' ) end [2024-12-22 10:54:18] Production.INFO: ProcessCDR(1,14077017,1,1,2) [2024-12-22 10:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077017', 'tblTempUsageDetail_20' ) start [2024-12-22 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077017', 'tblTempUsageDetail_20' ) end [2024-12-22 10:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:54:23] Production.INFO: ==12569== Releasing lock... [2024-12-22 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:54:23] Production.INFO: 30.75 MB #Memory Used# [2024-12-22 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:55:05 [end_date_ymd] => 2024-12-22 10:55:05 [RateCDR] => 1 ) [2024-12-22 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:55:05' and `end` < '2024-12-22 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:55:17] Production.INFO: count ==318 [2024-12-22 10:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:55:05 - End Time 2024-12-22 10:55:05 [2024-12-22 10:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077026', 'tblTempUsageDetail_20' ) start [2024-12-22 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077026', 'tblTempUsageDetail_20' ) end [2024-12-22 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077026', 'tblTempVendorCDR_20' ) start [2024-12-22 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077026', 'tblTempVendorCDR_20' ) end [2024-12-22 10:55:17] Production.INFO: ProcessCDR(1,14077026,1,1,2) [2024-12-22 10:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077026', 'tblTempUsageDetail_20' ) start [2024-12-22 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077026', 'tblTempUsageDetail_20' ) end [2024-12-22 10:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:55:22] Production.INFO: ==12645== Releasing lock... [2024-12-22 10:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:55:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-22 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:56:05 [end_date_ymd] => 2024-12-22 10:56:05 [RateCDR] => 1 ) [2024-12-22 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:56:05' and `end` < '2024-12-22 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:56:18] Production.INFO: count ==320 [2024-12-22 10:56:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:56:05 - End Time 2024-12-22 10:56:05 [2024-12-22 10:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077031', 'tblTempUsageDetail_20' ) start [2024-12-22 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077031', 'tblTempUsageDetail_20' ) end [2024-12-22 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077031', 'tblTempVendorCDR_20' ) start [2024-12-22 10:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077031', 'tblTempVendorCDR_20' ) end [2024-12-22 10:56:18] Production.INFO: ProcessCDR(1,14077031,1,1,2) [2024-12-22 10:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077031', 'tblTempUsageDetail_20' ) start [2024-12-22 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077031', 'tblTempUsageDetail_20' ) end [2024-12-22 10:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:56:22] Production.INFO: ==12719== Releasing lock... [2024-12-22 10:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:56:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-22 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:57:05 [end_date_ymd] => 2024-12-22 10:57:05 [RateCDR] => 1 ) [2024-12-22 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 07:57:05' and `end` < '2024-12-22 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:57:17] Production.INFO: count ==321 [2024-12-22 10:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 07:57:05 - End Time 2024-12-22 10:57:05 [2024-12-22 10:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077036', 'tblTempUsageDetail_20' ) start [2024-12-22 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077036', 'tblTempUsageDetail_20' ) end [2024-12-22 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077036', 'tblTempVendorCDR_20' ) start [2024-12-22 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077036', 'tblTempVendorCDR_20' ) end [2024-12-22 10:57:17] Production.INFO: ProcessCDR(1,14077036,1,1,2) [2024-12-22 10:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077036', 'tblTempUsageDetail_20' ) start [2024-12-22 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077036', 'tblTempUsageDetail_20' ) end [2024-12-22 10:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:57:22] Production.INFO: ==12814== Releasing lock... [2024-12-22 10:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:57:22] Production.INFO: 31 MB #Memory Used# [2024-12-22 10:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:58:04 [end_date_ymd] => 2024-12-22 10:58:04 [RateCDR] => 1 ) [2024-12-22 10: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-22 07:58:04' and `end` < '2024-12-22 10:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 10:58:16] Production.INFO: count ==334 [2024-12-22 10:58:16] Production.ERROR: pbx CDR StartTime 2024-12-22 07:58:04 - End Time 2024-12-22 10:58:04 [2024-12-22 10:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077041', 'tblTempUsageDetail_20' ) start [2024-12-22 10:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077041', 'tblTempUsageDetail_20' ) end [2024-12-22 10:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077041', 'tblTempVendorCDR_20' ) start [2024-12-22 10:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077041', 'tblTempVendorCDR_20' ) end [2024-12-22 10:58:16] Production.INFO: ProcessCDR(1,14077041,1,1,2) [2024-12-22 10:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077041', 'tblTempUsageDetail_20' ) start [2024-12-22 10:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077041', 'tblTempUsageDetail_20' ) end [2024-12-22 10:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:58:21] Production.INFO: ==12885== Releasing lock... [2024-12-22 10:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:58:21] Production.INFO: 30.75 MB #Memory Used# [2024-12-22 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 07:59:05 [end_date_ymd] => 2024-12-22 10:59:05 [RateCDR] => 1 ) [2024-12-22 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-22 07:59:05' and `end` < '2024-12-22 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-22 10:59:18] Production.INFO: count ==337 [2024-12-22 10:59:18] Production.ERROR: pbx CDR StartTime 2024-12-22 07:59:05 - End Time 2024-12-22 10:59:05 [2024-12-22 10:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077046', 'tblTempUsageDetail_20' ) start [2024-12-22 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077046', 'tblTempUsageDetail_20' ) end [2024-12-22 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077046', 'tblTempVendorCDR_20' ) start [2024-12-22 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077046', 'tblTempVendorCDR_20' ) end [2024-12-22 10:59:18] Production.INFO: ProcessCDR(1,14077046,1,1,2) [2024-12-22 10:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 10:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077046', 'tblTempUsageDetail_20' ) start [2024-12-22 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077046', 'tblTempUsageDetail_20' ) end [2024-12-22 10:59:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 10:59:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 10:59:23] Production.INFO: ==12961== Releasing lock... [2024-12-22 10:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 10:59:23] Production.INFO: 31 MB #Memory Used# [2024-12-22 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:00:05 [end_date_ymd] => 2024-12-22 11:00:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:00:05' and `end` < '2024-12-22 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-22 11:00:18] Production.INFO: count ==346 [2024-12-22 11:00:18] Production.ERROR: pbx CDR StartTime 2024-12-22 08:00:05 - End Time 2024-12-22 11:00:05 [2024-12-22 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077052', 'tblTempUsageDetail_20' ) start [2024-12-22 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077052', 'tblTempUsageDetail_20' ) end [2024-12-22 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077052', 'tblTempVendorCDR_20' ) start [2024-12-22 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077052', 'tblTempVendorCDR_20' ) end [2024-12-22 11:00:18] Production.INFO: ProcessCDR(1,14077052,1,1,2) [2024-12-22 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077052', 'tblTempUsageDetail_20' ) start [2024-12-22 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077052', 'tblTempUsageDetail_20' ) end [2024-12-22 11:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:00:22] Production.INFO: ==13038== Releasing lock... [2024-12-22 11:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:00:22] Production.INFO: 30.75 MB #Memory Used# [2024-12-22 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:01:05 [end_date_ymd] => 2024-12-22 11:01:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:01:05' and `end` < '2024-12-22 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-22 11:01:17] Production.INFO: count ==363 [2024-12-22 11:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:01:05 - End Time 2024-12-22 11:01:05 [2024-12-22 11:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077057', 'tblTempUsageDetail_20' ) start [2024-12-22 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077057', 'tblTempUsageDetail_20' ) end [2024-12-22 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077057', 'tblTempVendorCDR_20' ) start [2024-12-22 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077057', 'tblTempVendorCDR_20' ) end [2024-12-22 11:01:17] Production.INFO: ProcessCDR(1,14077057,1,1,2) [2024-12-22 11:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077057', 'tblTempUsageDetail_20' ) start [2024-12-22 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077057', 'tblTempUsageDetail_20' ) end [2024-12-22 11:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:01:22] Production.INFO: ==13124== Releasing lock... [2024-12-22 11:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:01:22] Production.INFO: 31 MB #Memory Used# [2024-12-22 11:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:02:04 [end_date_ymd] => 2024-12-22 11:02:04 [RateCDR] => 1 ) [2024-12-22 11:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:02:04' and `end` < '2024-12-22 11:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:02:17] Production.INFO: count ==363 [2024-12-22 11:02:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:02:04 - End Time 2024-12-22 11:02:04 [2024-12-22 11:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077062', 'tblTempUsageDetail_20' ) start [2024-12-22 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077062', 'tblTempUsageDetail_20' ) end [2024-12-22 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077062', 'tblTempVendorCDR_20' ) start [2024-12-22 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077062', 'tblTempVendorCDR_20' ) end [2024-12-22 11:02:17] Production.INFO: ProcessCDR(1,14077062,1,1,2) [2024-12-22 11:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077062', 'tblTempUsageDetail_20' ) start [2024-12-22 11:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077062', 'tblTempUsageDetail_20' ) end [2024-12-22 11:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:02:20] Production.INFO: ==13277== Releasing lock... [2024-12-22 11:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:02:20] Production.INFO: 31 MB #Memory Used# [2024-12-22 11:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:03:04 [end_date_ymd] => 2024-12-22 11:03:04 [RateCDR] => 1 ) [2024-12-22 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-22 08:03:04' and `end` < '2024-12-22 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-22 11:03:16] Production.INFO: count ==358 [2024-12-22 11:03:16] Production.ERROR: pbx CDR StartTime 2024-12-22 08:03:04 - End Time 2024-12-22 11:03:04 [2024-12-22 11:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077067', 'tblTempUsageDetail_20' ) start [2024-12-22 11:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077067', 'tblTempUsageDetail_20' ) end [2024-12-22 11:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077067', 'tblTempVendorCDR_20' ) start [2024-12-22 11:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077067', 'tblTempVendorCDR_20' ) end [2024-12-22 11:03:16] Production.INFO: ProcessCDR(1,14077067,1,1,2) [2024-12-22 11:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077067', 'tblTempUsageDetail_20' ) start [2024-12-22 11:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077067', 'tblTempUsageDetail_20' ) end [2024-12-22 11:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:03:21] Production.INFO: ==13349== Releasing lock... [2024-12-22 11:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:03:21] Production.INFO: 31 MB #Memory Used# [2024-12-22 11:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:04:04 [end_date_ymd] => 2024-12-22 11:04:04 [RateCDR] => 1 ) [2024-12-22 11:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:04:04' and `end` < '2024-12-22 11:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:04:17] Production.INFO: count ==359 [2024-12-22 11:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:04:04 - End Time 2024-12-22 11:04:04 [2024-12-22 11:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077072', 'tblTempUsageDetail_20' ) start [2024-12-22 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077072', 'tblTempUsageDetail_20' ) end [2024-12-22 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077072', 'tblTempVendorCDR_20' ) start [2024-12-22 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077072', 'tblTempVendorCDR_20' ) end [2024-12-22 11:04:17] Production.INFO: ProcessCDR(1,14077072,1,1,2) [2024-12-22 11:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077072', 'tblTempUsageDetail_20' ) start [2024-12-22 11:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077072', 'tblTempUsageDetail_20' ) end [2024-12-22 11:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:04:21] Production.INFO: ==13464== Releasing lock... [2024-12-22 11:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:04:21] Production.INFO: 31 MB #Memory Used# [2024-12-22 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:05:05 [end_date_ymd] => 2024-12-22 11:05:05 [RateCDR] => 1 ) [2024-12-22 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:05:05' and `end` < '2024-12-22 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:05:17] Production.INFO: count ==360 [2024-12-22 11:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:05:05 - End Time 2024-12-22 11:05:05 [2024-12-22 11:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077077', 'tblTempUsageDetail_20' ) start [2024-12-22 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077077', 'tblTempUsageDetail_20' ) end [2024-12-22 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077077', 'tblTempVendorCDR_20' ) start [2024-12-22 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077077', 'tblTempVendorCDR_20' ) end [2024-12-22 11:05:17] Production.INFO: ProcessCDR(1,14077077,1,1,2) [2024-12-22 11:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077077', 'tblTempUsageDetail_20' ) start [2024-12-22 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077077', 'tblTempUsageDetail_20' ) end [2024-12-22 11:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:05:22] Production.INFO: ==13621== Releasing lock... [2024-12-22 11:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:05:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-22 11:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:06:04 [end_date_ymd] => 2024-12-22 11:06:04 [RateCDR] => 1 ) [2024-12-22 11:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:06:04' and `end` < '2024-12-22 11:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:06:16] Production.INFO: count ==360 [2024-12-22 11:06:16] Production.ERROR: pbx CDR StartTime 2024-12-22 08:06:04 - End Time 2024-12-22 11:06:04 [2024-12-22 11:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077082', 'tblTempUsageDetail_20' ) start [2024-12-22 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077082', 'tblTempUsageDetail_20' ) end [2024-12-22 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077082', 'tblTempVendorCDR_20' ) start [2024-12-22 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077082', 'tblTempVendorCDR_20' ) end [2024-12-22 11:06:17] Production.INFO: ProcessCDR(1,14077082,1,1,2) [2024-12-22 11:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077082', 'tblTempUsageDetail_20' ) start [2024-12-22 11:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077082', 'tblTempUsageDetail_20' ) end [2024-12-22 11:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:06:21] Production.INFO: ==13692== Releasing lock... [2024-12-22 11:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:06:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-22 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:07:05 [end_date_ymd] => 2024-12-22 11:07:05 [RateCDR] => 1 ) [2024-12-22 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:07:05' and `end` < '2024-12-22 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:07:17] Production.INFO: count ==361 [2024-12-22 11:07:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:07:05 - End Time 2024-12-22 11:07:05 [2024-12-22 11:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077087', 'tblTempUsageDetail_20' ) start [2024-12-22 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077087', 'tblTempUsageDetail_20' ) end [2024-12-22 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077087', 'tblTempVendorCDR_20' ) start [2024-12-22 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077087', 'tblTempVendorCDR_20' ) end [2024-12-22 11:07:17] Production.INFO: ProcessCDR(1,14077087,1,1,2) [2024-12-22 11:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077087', 'tblTempUsageDetail_20' ) start [2024-12-22 11:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077087', 'tblTempUsageDetail_20' ) end [2024-12-22 11:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:07:22] Production.INFO: ==13766== Releasing lock... [2024-12-22 11:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:07:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-22 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:08:05 [end_date_ymd] => 2024-12-22 11:08:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:08:05' and `end` < '2024-12-22 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-22 11:08:17] Production.INFO: count ==361 [2024-12-22 11:08:18] Production.ERROR: pbx CDR StartTime 2024-12-22 08:08:05 - End Time 2024-12-22 11:08:05 [2024-12-22 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077092', 'tblTempUsageDetail_20' ) start [2024-12-22 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077092', 'tblTempUsageDetail_20' ) end [2024-12-22 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077092', 'tblTempVendorCDR_20' ) start [2024-12-22 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077092', 'tblTempVendorCDR_20' ) end [2024-12-22 11:08:18] Production.INFO: ProcessCDR(1,14077092,1,1,2) [2024-12-22 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077092', 'tblTempUsageDetail_20' ) start [2024-12-22 11:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077092', 'tblTempUsageDetail_20' ) end [2024-12-22 11:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:08:21] Production.INFO: ==13877== Releasing lock... [2024-12-22 11:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:08:21] Production.INFO: 31.25 MB #Memory Used# [2024-12-22 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:09:05 [end_date_ymd] => 2024-12-22 11:09:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:09:05' and `end` < '2024-12-22 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-22 11:09:19] Production.INFO: count ==361 [2024-12-22 11:09:19] Production.ERROR: pbx CDR StartTime 2024-12-22 08:09:05 - End Time 2024-12-22 11:09:05 [2024-12-22 11:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077097', 'tblTempUsageDetail_20' ) start [2024-12-22 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077097', 'tblTempUsageDetail_20' ) end [2024-12-22 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077097', 'tblTempVendorCDR_20' ) start [2024-12-22 11:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077097', 'tblTempVendorCDR_20' ) end [2024-12-22 11:09:19] Production.INFO: ProcessCDR(1,14077097,1,1,2) [2024-12-22 11:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077097', 'tblTempUsageDetail_20' ) start [2024-12-22 11:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077097', 'tblTempUsageDetail_20' ) end [2024-12-22 11:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:09:22] Production.INFO: ==13988== Releasing lock... [2024-12-22 11:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:09:22] Production.INFO: 31.25 MB #Memory Used# [2024-12-22 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:10:06 [end_date_ymd] => 2024-12-22 11:10:06 [RateCDR] => 1 ) [2024-12-22 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:10:06' and `end` < '2024-12-22 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:10:18] Production.INFO: count ==362 [2024-12-22 11:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 08:10:06 - End Time 2024-12-22 11:10:06 [2024-12-22 11:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077102', 'tblTempUsageDetail_20' ) start [2024-12-22 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077102', 'tblTempUsageDetail_20' ) end [2024-12-22 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077102', 'tblTempVendorCDR_20' ) start [2024-12-22 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077102', 'tblTempVendorCDR_20' ) end [2024-12-22 11:10:18] Production.INFO: ProcessCDR(1,14077102,1,1,2) [2024-12-22 11:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077102', 'tblTempUsageDetail_20' ) start [2024-12-22 11:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077102', 'tblTempUsageDetail_20' ) end [2024-12-22 11:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:10:21] Production.INFO: ==14061== Releasing lock... [2024-12-22 11:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:10:21] Production.INFO: 31 MB #Memory Used# [2024-12-22 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:11:05 [end_date_ymd] => 2024-12-22 11:11:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:11:05' and `end` < '2024-12-22 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-22 11:11:17] Production.INFO: count ==367 [2024-12-22 11:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:11:05 - End Time 2024-12-22 11:11:05 [2024-12-22 11:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077108', 'tblTempUsageDetail_20' ) start [2024-12-22 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077108', 'tblTempUsageDetail_20' ) end [2024-12-22 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077108', 'tblTempVendorCDR_20' ) start [2024-12-22 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077108', 'tblTempVendorCDR_20' ) end [2024-12-22 11:11:17] Production.INFO: ProcessCDR(1,14077108,1,1,2) [2024-12-22 11:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077108', 'tblTempUsageDetail_20' ) start [2024-12-22 11:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077108', 'tblTempUsageDetail_20' ) end [2024-12-22 11:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:11:20] Production.INFO: ==14140== Releasing lock... [2024-12-22 11:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:11:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:12:04 [end_date_ymd] => 2024-12-22 11:12:04 [RateCDR] => 1 ) [2024-12-22 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-22 08:12:04' and `end` < '2024-12-22 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-22 11:12:17] Production.INFO: count ==367 [2024-12-22 11:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:12:04 - End Time 2024-12-22 11:12:04 [2024-12-22 11:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077113', 'tblTempUsageDetail_20' ) start [2024-12-22 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077113', 'tblTempUsageDetail_20' ) end [2024-12-22 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077113', 'tblTempVendorCDR_20' ) start [2024-12-22 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077113', 'tblTempVendorCDR_20' ) end [2024-12-22 11:12:17] Production.INFO: ProcessCDR(1,14077113,1,1,2) [2024-12-22 11:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077113', 'tblTempUsageDetail_20' ) start [2024-12-22 11:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077113', 'tblTempUsageDetail_20' ) end [2024-12-22 11:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:12:21] Production.INFO: ==14291== Releasing lock... [2024-12-22 11:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:12:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:13:05 [end_date_ymd] => 2024-12-22 11:13:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:13:05' and `end` < '2024-12-22 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-22 11:13:17] Production.INFO: count ==368 [2024-12-22 11:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:13:05 - End Time 2024-12-22 11:13:05 [2024-12-22 11:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077118', 'tblTempUsageDetail_20' ) start [2024-12-22 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077118', 'tblTempUsageDetail_20' ) end [2024-12-22 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077118', 'tblTempVendorCDR_20' ) start [2024-12-22 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077118', 'tblTempVendorCDR_20' ) end [2024-12-22 11:13:17] Production.INFO: ProcessCDR(1,14077118,1,1,2) [2024-12-22 11:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077118', 'tblTempUsageDetail_20' ) start [2024-12-22 11:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077118', 'tblTempUsageDetail_20' ) end [2024-12-22 11:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:13:22] Production.INFO: ==14364== Releasing lock... [2024-12-22 11:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:13:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:14:05 [end_date_ymd] => 2024-12-22 11:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:14:05' and `end` < '2024-12-22 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-22 11:14:17] Production.INFO: count ==368 [2024-12-22 11:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:14:05 - End Time 2024-12-22 11:14:05 [2024-12-22 11:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077123', 'tblTempUsageDetail_20' ) start [2024-12-22 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077123', 'tblTempUsageDetail_20' ) end [2024-12-22 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077123', 'tblTempVendorCDR_20' ) start [2024-12-22 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077123', 'tblTempVendorCDR_20' ) end [2024-12-22 11:14:17] Production.INFO: ProcessCDR(1,14077123,1,1,2) [2024-12-22 11:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077123', 'tblTempUsageDetail_20' ) start [2024-12-22 11:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077123', 'tblTempUsageDetail_20' ) end [2024-12-22 11:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:14:21] Production.INFO: ==14439== Releasing lock... [2024-12-22 11:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:14:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:15:05 [end_date_ymd] => 2024-12-22 11:15:05 [RateCDR] => 1 ) [2024-12-22 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:15:05' and `end` < '2024-12-22 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:15:17] Production.INFO: count ==368 [2024-12-22 11:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:15:05 - End Time 2024-12-22 11:15:05 [2024-12-22 11:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077128', 'tblTempUsageDetail_20' ) start [2024-12-22 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077128', 'tblTempUsageDetail_20' ) end [2024-12-22 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077128', 'tblTempVendorCDR_20' ) start [2024-12-22 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077128', 'tblTempVendorCDR_20' ) end [2024-12-22 11:15:17] Production.INFO: ProcessCDR(1,14077128,1,1,2) [2024-12-22 11:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077128', 'tblTempUsageDetail_20' ) start [2024-12-22 11:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077128', 'tblTempUsageDetail_20' ) end [2024-12-22 11:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:15:20] Production.INFO: ==14587== Releasing lock... [2024-12-22 11:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:15:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:16:05 [end_date_ymd] => 2024-12-22 11:16:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:16:05' and `end` < '2024-12-22 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-22 11:16:19] Production.INFO: count ==368 [2024-12-22 11:16:19] Production.ERROR: pbx CDR StartTime 2024-12-22 08:16:05 - End Time 2024-12-22 11:16:05 [2024-12-22 11:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077133', 'tblTempUsageDetail_20' ) start [2024-12-22 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077133', 'tblTempUsageDetail_20' ) end [2024-12-22 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077133', 'tblTempVendorCDR_20' ) start [2024-12-22 11:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077133', 'tblTempVendorCDR_20' ) end [2024-12-22 11:16:19] Production.INFO: ProcessCDR(1,14077133,1,1,2) [2024-12-22 11:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077133', 'tblTempUsageDetail_20' ) start [2024-12-22 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077133', 'tblTempUsageDetail_20' ) end [2024-12-22 11:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:16:22] Production.INFO: ==14661== Releasing lock... [2024-12-22 11:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:16:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:17:05 [end_date_ymd] => 2024-12-22 11:17:05 [RateCDR] => 1 ) [2024-12-22 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:17:05' and `end` < '2024-12-22 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:17:18] Production.INFO: count ==368 [2024-12-22 11:17:18] Production.ERROR: pbx CDR StartTime 2024-12-22 08:17:05 - End Time 2024-12-22 11:17:05 [2024-12-22 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077138', 'tblTempUsageDetail_20' ) start [2024-12-22 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077138', 'tblTempUsageDetail_20' ) end [2024-12-22 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077138', 'tblTempVendorCDR_20' ) start [2024-12-22 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077138', 'tblTempVendorCDR_20' ) end [2024-12-22 11:17:18] Production.INFO: ProcessCDR(1,14077138,1,1,2) [2024-12-22 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077138', 'tblTempUsageDetail_20' ) start [2024-12-22 11:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077138', 'tblTempUsageDetail_20' ) end [2024-12-22 11:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:17:21] Production.INFO: ==14735== Releasing lock... [2024-12-22 11:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:17:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:18:05 [end_date_ymd] => 2024-12-22 11:18:05 [RateCDR] => 1 ) [2024-12-22 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:18:05' and `end` < '2024-12-22 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:18:17] Production.INFO: count ==368 [2024-12-22 11:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:18:05 - End Time 2024-12-22 11:18:05 [2024-12-22 11:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077143', 'tblTempUsageDetail_20' ) start [2024-12-22 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077143', 'tblTempUsageDetail_20' ) end [2024-12-22 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077143', 'tblTempVendorCDR_20' ) start [2024-12-22 11:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077143', 'tblTempVendorCDR_20' ) end [2024-12-22 11:18:18] Production.INFO: ProcessCDR(1,14077143,1,1,2) [2024-12-22 11:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077143', 'tblTempUsageDetail_20' ) start [2024-12-22 11:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077143', 'tblTempUsageDetail_20' ) end [2024-12-22 11:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:18:21] Production.INFO: ==14806== Releasing lock... [2024-12-22 11:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:18:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:19:05 [end_date_ymd] => 2024-12-22 11:19:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:19:05' and `end` < '2024-12-22 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-22 11:19:17] Production.INFO: count ==372 [2024-12-22 11:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:19:05 - End Time 2024-12-22 11:19:05 [2024-12-22 11:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077148', 'tblTempUsageDetail_20' ) start [2024-12-22 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077148', 'tblTempUsageDetail_20' ) end [2024-12-22 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077148', 'tblTempVendorCDR_20' ) start [2024-12-22 11:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077148', 'tblTempVendorCDR_20' ) end [2024-12-22 11:19:17] Production.INFO: ProcessCDR(1,14077148,1,1,2) [2024-12-22 11:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077148', 'tblTempUsageDetail_20' ) start [2024-12-22 11:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077148', 'tblTempUsageDetail_20' ) end [2024-12-22 11:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:19:20] Production.INFO: ==14919== Releasing lock... [2024-12-22 11:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:19:20] Production.INFO: 30.75 MB #Memory Used# [2024-12-22 11:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:20:05 [end_date_ymd] => 2024-12-22 11:20:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:20:05' and `end` < '2024-12-22 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-22 11:20:17] Production.INFO: count ==383 [2024-12-22 11:20:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:20:05 - End Time 2024-12-22 11:20:05 [2024-12-22 11:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077153', 'tblTempUsageDetail_20' ) start [2024-12-22 11:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077153', 'tblTempUsageDetail_20' ) end [2024-12-22 11:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077153', 'tblTempVendorCDR_20' ) start [2024-12-22 11:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077153', 'tblTempVendorCDR_20' ) end [2024-12-22 11:20:17] Production.INFO: ProcessCDR(1,14077153,1,1,2) [2024-12-22 11:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077153', 'tblTempUsageDetail_20' ) start [2024-12-22 11:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077153', 'tblTempUsageDetail_20' ) end [2024-12-22 11:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:20:21] Production.INFO: ==14996== Releasing lock... [2024-12-22 11:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:20:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:21:05 [end_date_ymd] => 2024-12-22 11:21:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:21:05' and `end` < '2024-12-22 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-22 11:21:19] Production.INFO: count ==408 [2024-12-22 11:21:19] Production.ERROR: pbx CDR StartTime 2024-12-22 08:21:05 - End Time 2024-12-22 11:21:05 [2024-12-22 11:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077159', 'tblTempUsageDetail_20' ) start [2024-12-22 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077159', 'tblTempUsageDetail_20' ) end [2024-12-22 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077159', 'tblTempVendorCDR_20' ) start [2024-12-22 11:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077159', 'tblTempVendorCDR_20' ) end [2024-12-22 11:21:19] Production.INFO: ProcessCDR(1,14077159,1,1,2) [2024-12-22 11:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077159', 'tblTempUsageDetail_20' ) start [2024-12-22 11:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077159', 'tblTempUsageDetail_20' ) end [2024-12-22 11:21:24] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:21:24] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:21:24] Production.INFO: ==15071== Releasing lock... [2024-12-22 11:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:21:24] Production.INFO: 31.25 MB #Memory Used# [2024-12-22 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:22:05 [end_date_ymd] => 2024-12-22 11:22:05 [RateCDR] => 1 ) [2024-12-22 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:22:05' and `end` < '2024-12-22 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:22:17] Production.INFO: count ==411 [2024-12-22 11:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:22:05 - End Time 2024-12-22 11:22:05 [2024-12-22 11:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077164', 'tblTempUsageDetail_20' ) start [2024-12-22 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077164', 'tblTempUsageDetail_20' ) end [2024-12-22 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077164', 'tblTempVendorCDR_20' ) start [2024-12-22 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077164', 'tblTempVendorCDR_20' ) end [2024-12-22 11:22:17] Production.INFO: ProcessCDR(1,14077164,1,1,2) [2024-12-22 11:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077164', 'tblTempUsageDetail_20' ) start [2024-12-22 11:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077164', 'tblTempUsageDetail_20' ) end [2024-12-22 11:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:22:20] Production.INFO: ==15144== Releasing lock... [2024-12-22 11:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:22:20] Production.INFO: 31.25 MB #Memory Used# [2024-12-22 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:23:04 [end_date_ymd] => 2024-12-22 11:23:04 [RateCDR] => 1 ) [2024-12-22 11: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-22 08:23:04' and `end` < '2024-12-22 11: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-22 11:23:17] Production.INFO: count ==418 [2024-12-22 11:23:18] Production.ERROR: pbx CDR StartTime 2024-12-22 08:23:04 - End Time 2024-12-22 11:23:04 [2024-12-22 11:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077169', 'tblTempUsageDetail_20' ) start [2024-12-22 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077169', 'tblTempUsageDetail_20' ) end [2024-12-22 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077169', 'tblTempVendorCDR_20' ) start [2024-12-22 11:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077169', 'tblTempVendorCDR_20' ) end [2024-12-22 11:23:18] Production.INFO: ProcessCDR(1,14077169,1,1,2) [2024-12-22 11:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077169', 'tblTempUsageDetail_20' ) start [2024-12-22 11:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077169', 'tblTempUsageDetail_20' ) end [2024-12-22 11:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:23:22] Production.INFO: ==15217== Releasing lock... [2024-12-22 11:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:23:22] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:24:05 [end_date_ymd] => 2024-12-22 11:24:05 [RateCDR] => 1 ) [2024-12-22 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:24:05' and `end` < '2024-12-22 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:24:17] Production.INFO: count ==418 [2024-12-22 11:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:24:05 - End Time 2024-12-22 11:24:05 [2024-12-22 11:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077174', 'tblTempUsageDetail_20' ) start [2024-12-22 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077174', 'tblTempUsageDetail_20' ) end [2024-12-22 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077174', 'tblTempVendorCDR_20' ) start [2024-12-22 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077174', 'tblTempVendorCDR_20' ) end [2024-12-22 11:24:17] Production.INFO: ProcessCDR(1,14077174,1,1,2) [2024-12-22 11:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077174', 'tblTempUsageDetail_20' ) start [2024-12-22 11:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077174', 'tblTempUsageDetail_20' ) end [2024-12-22 11:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:24:21] Production.INFO: ==15292== Releasing lock... [2024-12-22 11:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:24:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:25:04 [end_date_ymd] => 2024-12-22 11:25:04 [RateCDR] => 1 ) [2024-12-22 11:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:25:04' and `end` < '2024-12-22 11:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:25:17] Production.INFO: count ==418 [2024-12-22 11:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:25:04 - End Time 2024-12-22 11:25:04 [2024-12-22 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077179', 'tblTempUsageDetail_20' ) start [2024-12-22 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077179', 'tblTempUsageDetail_20' ) end [2024-12-22 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077179', 'tblTempVendorCDR_20' ) start [2024-12-22 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077179', 'tblTempVendorCDR_20' ) end [2024-12-22 11:25:17] Production.INFO: ProcessCDR(1,14077179,1,1,2) [2024-12-22 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077179', 'tblTempUsageDetail_20' ) start [2024-12-22 11:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077179', 'tblTempUsageDetail_20' ) end [2024-12-22 11:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:25:20] Production.INFO: ==15364== Releasing lock... [2024-12-22 11:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:25:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:26:05 [end_date_ymd] => 2024-12-22 11:26:05 [RateCDR] => 1 ) [2024-12-22 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:26:05' and `end` < '2024-12-22 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:26:17] Production.INFO: count ==418 [2024-12-22 11:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:26:05 - End Time 2024-12-22 11:26:05 [2024-12-22 11:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077184', 'tblTempUsageDetail_20' ) start [2024-12-22 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077184', 'tblTempUsageDetail_20' ) end [2024-12-22 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077184', 'tblTempVendorCDR_20' ) start [2024-12-22 11:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077184', 'tblTempVendorCDR_20' ) end [2024-12-22 11:26:17] Production.INFO: ProcessCDR(1,14077184,1,1,2) [2024-12-22 11:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077184', 'tblTempUsageDetail_20' ) start [2024-12-22 11:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077184', 'tblTempUsageDetail_20' ) end [2024-12-22 11:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:26:20] Production.INFO: ==15436== Releasing lock... [2024-12-22 11:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:26:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:27:04 [end_date_ymd] => 2024-12-22 11:27:04 [RateCDR] => 1 ) [2024-12-22 11: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-22 08:27:04' and `end` < '2024-12-22 11: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-22 11:27:17] Production.INFO: count ==417 [2024-12-22 11:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:27:04 - End Time 2024-12-22 11:27:04 [2024-12-22 11:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077186', 'tblTempUsageDetail_20' ) start [2024-12-22 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077186', 'tblTempUsageDetail_20' ) end [2024-12-22 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077186', 'tblTempVendorCDR_20' ) start [2024-12-22 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077186', 'tblTempVendorCDR_20' ) end [2024-12-22 11:27:17] Production.INFO: ProcessCDR(1,14077186,1,1,2) [2024-12-22 11:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077186', 'tblTempUsageDetail_20' ) start [2024-12-22 11:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077186', 'tblTempUsageDetail_20' ) end [2024-12-22 11:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:27:20] Production.INFO: ==15507== Releasing lock... [2024-12-22 11:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:27:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:28:05 [end_date_ymd] => 2024-12-22 11:28:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:28:05' and `end` < '2024-12-22 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-22 11:28:17] Production.INFO: count ==417 [2024-12-22 11:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:28:05 - End Time 2024-12-22 11:28:05 [2024-12-22 11:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077194', 'tblTempUsageDetail_20' ) start [2024-12-22 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077194', 'tblTempUsageDetail_20' ) end [2024-12-22 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077194', 'tblTempVendorCDR_20' ) start [2024-12-22 11:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077194', 'tblTempVendorCDR_20' ) end [2024-12-22 11:28:17] Production.INFO: ProcessCDR(1,14077194,1,1,2) [2024-12-22 11:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077194', 'tblTempUsageDetail_20' ) start [2024-12-22 11:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077194', 'tblTempUsageDetail_20' ) end [2024-12-22 11:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:28:20] Production.INFO: ==15613== Releasing lock... [2024-12-22 11:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:28:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:29:04 [end_date_ymd] => 2024-12-22 11:29:04 [RateCDR] => 1 ) [2024-12-22 11:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:29:04' and `end` < '2024-12-22 11:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:29:16] Production.INFO: count ==417 [2024-12-22 11:29:16] Production.ERROR: pbx CDR StartTime 2024-12-22 08:29:04 - End Time 2024-12-22 11:29:04 [2024-12-22 11:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077199', 'tblTempUsageDetail_20' ) start [2024-12-22 11:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077199', 'tblTempUsageDetail_20' ) end [2024-12-22 11:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077199', 'tblTempVendorCDR_20' ) start [2024-12-22 11:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077199', 'tblTempVendorCDR_20' ) end [2024-12-22 11:29:16] Production.INFO: ProcessCDR(1,14077199,1,1,2) [2024-12-22 11:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:29:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:29:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077199', 'tblTempUsageDetail_20' ) start [2024-12-22 11:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077199', 'tblTempUsageDetail_20' ) end [2024-12-22 11:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:29:20] Production.INFO: ==15748== Releasing lock... [2024-12-22 11:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:29:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:30:05 [end_date_ymd] => 2024-12-22 11:30:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:30:05' and `end` < '2024-12-22 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-22 11:30:17] Production.INFO: count ==423 [2024-12-22 11:30:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:30:05 - End Time 2024-12-22 11:30:05 [2024-12-22 11:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077204', 'tblTempUsageDetail_20' ) start [2024-12-22 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077204', 'tblTempUsageDetail_20' ) end [2024-12-22 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077204', 'tblTempVendorCDR_20' ) start [2024-12-22 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077204', 'tblTempVendorCDR_20' ) end [2024-12-22 11:30:18] Production.INFO: ProcessCDR(1,14077204,1,1,2) [2024-12-22 11:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077204', 'tblTempUsageDetail_20' ) start [2024-12-22 11:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077204', 'tblTempUsageDetail_20' ) end [2024-12-22 11:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:30:21] Production.INFO: ==15835== Releasing lock... [2024-12-22 11:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:30:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-22 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:31:05 [end_date_ymd] => 2024-12-22 11:31:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:31:05' and `end` < '2024-12-22 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-22 11:31:17] Production.INFO: count ==443 [2024-12-22 11:31:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:31:05 - End Time 2024-12-22 11:31:05 [2024-12-22 11:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077210', 'tblTempUsageDetail_20' ) start [2024-12-22 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077210', 'tblTempUsageDetail_20' ) end [2024-12-22 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077210', 'tblTempVendorCDR_20' ) start [2024-12-22 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077210', 'tblTempVendorCDR_20' ) end [2024-12-22 11:31:17] Production.INFO: ProcessCDR(1,14077210,1,1,2) [2024-12-22 11:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077210', 'tblTempUsageDetail_20' ) start [2024-12-22 11:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077210', 'tblTempUsageDetail_20' ) end [2024-12-22 11:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:31:20] Production.INFO: ==15909== Releasing lock... [2024-12-22 11:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:31:20] Production.INFO: 32 MB #Memory Used# [2024-12-22 11:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:32:04 [end_date_ymd] => 2024-12-22 11:32:04 [RateCDR] => 1 ) [2024-12-22 11: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-22 08:32:04' and `end` < '2024-12-22 11: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-22 11:32:17] Production.INFO: count ==444 [2024-12-22 11:32:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:32:04 - End Time 2024-12-22 11:32:04 [2024-12-22 11:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077215', 'tblTempUsageDetail_20' ) start [2024-12-22 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077215', 'tblTempUsageDetail_20' ) end [2024-12-22 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077215', 'tblTempVendorCDR_20' ) start [2024-12-22 11:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077215', 'tblTempVendorCDR_20' ) end [2024-12-22 11:32:17] Production.INFO: ProcessCDR(1,14077215,1,1,2) [2024-12-22 11:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077215', 'tblTempUsageDetail_20' ) start [2024-12-22 11:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077215', 'tblTempUsageDetail_20' ) end [2024-12-22 11:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:32:21] Production.INFO: ==15982== Releasing lock... [2024-12-22 11:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:32:21] Production.INFO: 32 MB #Memory Used# [2024-12-22 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:33:05 [end_date_ymd] => 2024-12-22 11:33:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:33:05' and `end` < '2024-12-22 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-22 11:33:17] Production.INFO: count ==450 [2024-12-22 11:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:33:05 - End Time 2024-12-22 11:33:05 [2024-12-22 11:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077220', 'tblTempUsageDetail_20' ) start [2024-12-22 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077220', 'tblTempUsageDetail_20' ) end [2024-12-22 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077220', 'tblTempVendorCDR_20' ) start [2024-12-22 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077220', 'tblTempVendorCDR_20' ) end [2024-12-22 11:33:17] Production.INFO: ProcessCDR(1,14077220,1,1,2) [2024-12-22 11:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077220', 'tblTempUsageDetail_20' ) start [2024-12-22 11:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077220', 'tblTempUsageDetail_20' ) end [2024-12-22 11:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:33:21] Production.INFO: ==16055== Releasing lock... [2024-12-22 11:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:33:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:34:04 [end_date_ymd] => 2024-12-22 11:34:04 [RateCDR] => 1 ) [2024-12-22 11:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:34:04' and `end` < '2024-12-22 11:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:34:16] Production.INFO: count ==452 [2024-12-22 11:34:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:34:04 - End Time 2024-12-22 11:34:04 [2024-12-22 11:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077225', 'tblTempUsageDetail_20' ) start [2024-12-22 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077225', 'tblTempUsageDetail_20' ) end [2024-12-22 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077225', 'tblTempVendorCDR_20' ) start [2024-12-22 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077225', 'tblTempVendorCDR_20' ) end [2024-12-22 11:34:17] Production.INFO: ProcessCDR(1,14077225,1,1,2) [2024-12-22 11:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077225', 'tblTempUsageDetail_20' ) start [2024-12-22 11:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077225', 'tblTempUsageDetail_20' ) end [2024-12-22 11:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:34:21] Production.INFO: ==16134== Releasing lock... [2024-12-22 11:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:34:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:35:05 [end_date_ymd] => 2024-12-22 11:35:05 [RateCDR] => 1 ) [2024-12-22 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:35:05' and `end` < '2024-12-22 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:35:17] Production.INFO: count ==453 [2024-12-22 11:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:35:05 - End Time 2024-12-22 11:35:05 [2024-12-22 11:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077230', 'tblTempUsageDetail_20' ) start [2024-12-22 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077230', 'tblTempUsageDetail_20' ) end [2024-12-22 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077230', 'tblTempVendorCDR_20' ) start [2024-12-22 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077230', 'tblTempVendorCDR_20' ) end [2024-12-22 11:35:17] Production.INFO: ProcessCDR(1,14077230,1,1,2) [2024-12-22 11:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077230', 'tblTempUsageDetail_20' ) start [2024-12-22 11:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077230', 'tblTempUsageDetail_20' ) end [2024-12-22 11:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:35:20] Production.INFO: ==16248== Releasing lock... [2024-12-22 11:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:35:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:36:06 [end_date_ymd] => 2024-12-22 11:36:06 [RateCDR] => 1 ) [2024-12-22 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:36:06' and `end` < '2024-12-22 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:36:18] Production.INFO: count ==453 [2024-12-22 11:36:18] Production.ERROR: pbx CDR StartTime 2024-12-22 08:36:06 - End Time 2024-12-22 11:36:06 [2024-12-22 11:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077235', 'tblTempUsageDetail_20' ) start [2024-12-22 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077235', 'tblTempUsageDetail_20' ) end [2024-12-22 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077235', 'tblTempVendorCDR_20' ) start [2024-12-22 11:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077235', 'tblTempVendorCDR_20' ) end [2024-12-22 11:36:18] Production.INFO: ProcessCDR(1,14077235,1,1,2) [2024-12-22 11:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077235', 'tblTempUsageDetail_20' ) start [2024-12-22 11:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077235', 'tblTempUsageDetail_20' ) end [2024-12-22 11:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:36:21] Production.INFO: ==16319== Releasing lock... [2024-12-22 11:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:36:21] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:37:05 [end_date_ymd] => 2024-12-22 11:37:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:37:05' and `end` < '2024-12-22 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-22 11:37:17] Production.INFO: count ==453 [2024-12-22 11:37:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:37:05 - End Time 2024-12-22 11:37:05 [2024-12-22 11:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077240', 'tblTempUsageDetail_20' ) start [2024-12-22 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077240', 'tblTempUsageDetail_20' ) end [2024-12-22 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077240', 'tblTempVendorCDR_20' ) start [2024-12-22 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077240', 'tblTempVendorCDR_20' ) end [2024-12-22 11:37:17] Production.INFO: ProcessCDR(1,14077240,1,1,2) [2024-12-22 11:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077240', 'tblTempUsageDetail_20' ) start [2024-12-22 11:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077240', 'tblTempUsageDetail_20' ) end [2024-12-22 11:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:37:20] Production.INFO: ==16393== Releasing lock... [2024-12-22 11:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:37:20] Production.INFO: 31.5 MB #Memory Used# [2024-12-22 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:38:05 [end_date_ymd] => 2024-12-22 11:38:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:38:05' and `end` < '2024-12-22 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-22 11:38:17] Production.INFO: count ==467 [2024-12-22 11:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:38:05 - End Time 2024-12-22 11:38:05 [2024-12-22 11:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077245', 'tblTempUsageDetail_20' ) start [2024-12-22 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077245', 'tblTempUsageDetail_20' ) end [2024-12-22 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077245', 'tblTempVendorCDR_20' ) start [2024-12-22 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077245', 'tblTempVendorCDR_20' ) end [2024-12-22 11:38:17] Production.INFO: ProcessCDR(1,14077245,1,1,2) [2024-12-22 11:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077245', 'tblTempUsageDetail_20' ) start [2024-12-22 11:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077245', 'tblTempUsageDetail_20' ) end [2024-12-22 11:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:38:21] Production.INFO: ==16467== Releasing lock... [2024-12-22 11:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:38:21] Production.INFO: 32 MB #Memory Used# [2024-12-22 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:39:04 [end_date_ymd] => 2024-12-22 11:39:04 [RateCDR] => 1 ) [2024-12-22 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-22 08:39:04' and `end` < '2024-12-22 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-22 11:39:17] Production.INFO: count ==467 [2024-12-22 11:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:39:04 - End Time 2024-12-22 11:39:04 [2024-12-22 11:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077250', 'tblTempUsageDetail_20' ) start [2024-12-22 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077250', 'tblTempUsageDetail_20' ) end [2024-12-22 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077250', 'tblTempVendorCDR_20' ) start [2024-12-22 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077250', 'tblTempVendorCDR_20' ) end [2024-12-22 11:39:17] Production.INFO: ProcessCDR(1,14077250,1,1,2) [2024-12-22 11:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077250', 'tblTempUsageDetail_20' ) start [2024-12-22 11:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077250', 'tblTempUsageDetail_20' ) end [2024-12-22 11:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:39:20] Production.INFO: ==16537== Releasing lock... [2024-12-22 11:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:39:20] Production.INFO: 32 MB #Memory Used# [2024-12-22 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:40:06 [end_date_ymd] => 2024-12-22 11:40:06 [RateCDR] => 1 ) [2024-12-22 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:40:06' and `end` < '2024-12-22 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:40:18] Production.INFO: count ==473 [2024-12-22 11:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 08:40:06 - End Time 2024-12-22 11:40:06 [2024-12-22 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077256', 'tblTempUsageDetail_20' ) start [2024-12-22 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077256', 'tblTempUsageDetail_20' ) end [2024-12-22 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077256', 'tblTempVendorCDR_20' ) start [2024-12-22 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077256', 'tblTempVendorCDR_20' ) end [2024-12-22 11:40:18] Production.INFO: ProcessCDR(1,14077256,1,1,2) [2024-12-22 11:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077256', 'tblTempUsageDetail_20' ) start [2024-12-22 11:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077256', 'tblTempUsageDetail_20' ) end [2024-12-22 11:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:40:21] Production.INFO: ==16611== Releasing lock... [2024-12-22 11:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:40:21] Production.INFO: 31.75 MB #Memory Used# [2024-12-22 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:41:04 [end_date_ymd] => 2024-12-22 11:41:04 [RateCDR] => 1 ) [2024-12-22 11:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:41:04' and `end` < '2024-12-22 11:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:41:17] Production.INFO: count ==483 [2024-12-22 11:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:41:04 - End Time 2024-12-22 11:41:04 [2024-12-22 11:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077261', 'tblTempUsageDetail_20' ) start [2024-12-22 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077261', 'tblTempUsageDetail_20' ) end [2024-12-22 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077261', 'tblTempVendorCDR_20' ) start [2024-12-22 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077261', 'tblTempVendorCDR_20' ) end [2024-12-22 11:41:18] Production.INFO: ProcessCDR(1,14077261,1,1,2) [2024-12-22 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077261', 'tblTempUsageDetail_20' ) start [2024-12-22 11:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077261', 'tblTempUsageDetail_20' ) end [2024-12-22 11:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:41:20] Production.INFO: ==16684== Releasing lock... [2024-12-22 11:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:41:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-22 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:42:05 [end_date_ymd] => 2024-12-22 11:42:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:42:05' and `end` < '2024-12-22 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-22 11:42:17] Production.INFO: count ==484 [2024-12-22 11:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:42:05 - End Time 2024-12-22 11:42:05 [2024-12-22 11:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077266', 'tblTempUsageDetail_20' ) start [2024-12-22 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077266', 'tblTempUsageDetail_20' ) end [2024-12-22 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077266', 'tblTempVendorCDR_20' ) start [2024-12-22 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077266', 'tblTempVendorCDR_20' ) end [2024-12-22 11:42:17] Production.INFO: ProcessCDR(1,14077266,1,1,2) [2024-12-22 11:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077266', 'tblTempUsageDetail_20' ) start [2024-12-22 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077266', 'tblTempUsageDetail_20' ) end [2024-12-22 11:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:42:22] Production.INFO: ==16758== Releasing lock... [2024-12-22 11:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:42:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-22 11:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:43:04 [end_date_ymd] => 2024-12-22 11:43:04 [RateCDR] => 1 ) [2024-12-22 11:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:43:04' and `end` < '2024-12-22 11:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:43:17] Production.INFO: count ==489 [2024-12-22 11:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:43:04 - End Time 2024-12-22 11:43:04 [2024-12-22 11:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077271', 'tblTempUsageDetail_20' ) start [2024-12-22 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077271', 'tblTempUsageDetail_20' ) end [2024-12-22 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077271', 'tblTempVendorCDR_20' ) start [2024-12-22 11:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077271', 'tblTempVendorCDR_20' ) end [2024-12-22 11:43:17] Production.INFO: ProcessCDR(1,14077271,1,1,2) [2024-12-22 11:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077271', 'tblTempUsageDetail_20' ) start [2024-12-22 11:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077271', 'tblTempUsageDetail_20' ) end [2024-12-22 11:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:43:20] Production.INFO: ==16828== Releasing lock... [2024-12-22 11:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:43:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-22 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:44:05 [end_date_ymd] => 2024-12-22 11:44:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:44:05' and `end` < '2024-12-22 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-22 11:44:19] Production.INFO: count ==490 [2024-12-22 11:44:19] Production.ERROR: pbx CDR StartTime 2024-12-22 08:44:05 - End Time 2024-12-22 11:44:05 [2024-12-22 11:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077276', 'tblTempUsageDetail_20' ) start [2024-12-22 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077276', 'tblTempUsageDetail_20' ) end [2024-12-22 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077276', 'tblTempVendorCDR_20' ) start [2024-12-22 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077276', 'tblTempVendorCDR_20' ) end [2024-12-22 11:44:19] Production.INFO: ProcessCDR(1,14077276,1,1,2) [2024-12-22 11:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077276', 'tblTempUsageDetail_20' ) start [2024-12-22 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077276', 'tblTempUsageDetail_20' ) end [2024-12-22 11:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:44:23] Production.INFO: ==16901== Releasing lock... [2024-12-22 11:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:44:23] Production.INFO: 32 MB #Memory Used# [2024-12-22 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:45:04 [end_date_ymd] => 2024-12-22 11:45:04 [RateCDR] => 1 ) [2024-12-22 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-22 08:45:04' and `end` < '2024-12-22 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-22 11:45:17] Production.INFO: count ==484 [2024-12-22 11:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:45:04 - End Time 2024-12-22 11:45:04 [2024-12-22 11:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077281', 'tblTempUsageDetail_20' ) start [2024-12-22 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077281', 'tblTempUsageDetail_20' ) end [2024-12-22 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077281', 'tblTempVendorCDR_20' ) start [2024-12-22 11:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077281', 'tblTempVendorCDR_20' ) end [2024-12-22 11:45:17] Production.INFO: ProcessCDR(1,14077281,1,1,2) [2024-12-22 11:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077281', 'tblTempUsageDetail_20' ) start [2024-12-22 11:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077281', 'tblTempUsageDetail_20' ) end [2024-12-22 11:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:45:20] Production.INFO: ==16973== Releasing lock... [2024-12-22 11:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:45:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-22 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:46:05 [end_date_ymd] => 2024-12-22 11:46:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:46:05' and `end` < '2024-12-22 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-22 11:46:17] Production.INFO: count ==485 [2024-12-22 11:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:46:05 - End Time 2024-12-22 11:46:05 [2024-12-22 11:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077286', 'tblTempUsageDetail_20' ) start [2024-12-22 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077286', 'tblTempUsageDetail_20' ) end [2024-12-22 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077286', 'tblTempVendorCDR_20' ) start [2024-12-22 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077286', 'tblTempVendorCDR_20' ) end [2024-12-22 11:46:17] Production.INFO: ProcessCDR(1,14077286,1,1,2) [2024-12-22 11:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077286', 'tblTempUsageDetail_20' ) start [2024-12-22 11:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077286', 'tblTempUsageDetail_20' ) end [2024-12-22 11:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:46:21] Production.INFO: ==17044== Releasing lock... [2024-12-22 11:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:46:21] Production.INFO: 32.5 MB #Memory Used# [2024-12-22 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:47:05 [end_date_ymd] => 2024-12-22 11:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:47:05' and `end` < '2024-12-22 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-22 11:47:17] Production.INFO: count ==485 [2024-12-22 11:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:47:05 - End Time 2024-12-22 11:47:05 [2024-12-22 11:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077291', 'tblTempUsageDetail_20' ) start [2024-12-22 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077291', 'tblTempUsageDetail_20' ) end [2024-12-22 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077291', 'tblTempVendorCDR_20' ) start [2024-12-22 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077291', 'tblTempVendorCDR_20' ) end [2024-12-22 11:47:17] Production.INFO: ProcessCDR(1,14077291,1,1,2) [2024-12-22 11:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077291', 'tblTempUsageDetail_20' ) start [2024-12-22 11:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077291', 'tblTempUsageDetail_20' ) end [2024-12-22 11:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:47:20] Production.INFO: ==17114== Releasing lock... [2024-12-22 11:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:47:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-22 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:48:05 [end_date_ymd] => 2024-12-22 11:48:05 [RateCDR] => 1 ) [2024-12-22 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:48:05' and `end` < '2024-12-22 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:48:18] Production.INFO: count ==488 [2024-12-22 11:48:18] Production.ERROR: pbx CDR StartTime 2024-12-22 08:48:05 - End Time 2024-12-22 11:48:05 [2024-12-22 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077296', 'tblTempUsageDetail_20' ) start [2024-12-22 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077296', 'tblTempUsageDetail_20' ) end [2024-12-22 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077296', 'tblTempVendorCDR_20' ) start [2024-12-22 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077296', 'tblTempVendorCDR_20' ) end [2024-12-22 11:48:18] Production.INFO: ProcessCDR(1,14077296,1,1,2) [2024-12-22 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077296', 'tblTempUsageDetail_20' ) start [2024-12-22 11:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077296', 'tblTempUsageDetail_20' ) end [2024-12-22 11:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:48:21] Production.INFO: ==17189== Releasing lock... [2024-12-22 11:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:48:21] Production.INFO: 32 MB #Memory Used# [2024-12-22 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:49:05 [end_date_ymd] => 2024-12-22 11:49:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:49:05' and `end` < '2024-12-22 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-22 11:49:17] Production.INFO: count ==488 [2024-12-22 11:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:49:05 - End Time 2024-12-22 11:49:05 [2024-12-22 11:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077301', 'tblTempUsageDetail_20' ) start [2024-12-22 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077301', 'tblTempUsageDetail_20' ) end [2024-12-22 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077301', 'tblTempVendorCDR_20' ) start [2024-12-22 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077301', 'tblTempVendorCDR_20' ) end [2024-12-22 11:49:17] Production.INFO: ProcessCDR(1,14077301,1,1,2) [2024-12-22 11:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077301', 'tblTempUsageDetail_20' ) start [2024-12-22 11:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077301', 'tblTempUsageDetail_20' ) end [2024-12-22 11:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:49:20] Production.INFO: ==17263== Releasing lock... [2024-12-22 11:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:49:20] Production.INFO: 32 MB #Memory Used# [2024-12-22 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:50:05 [end_date_ymd] => 2024-12-22 11:50:05 [RateCDR] => 1 ) [2024-12-22 11:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:50:05' and `end` < '2024-12-22 11:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:50:17] Production.INFO: count ==496 [2024-12-22 11:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:50:05 - End Time 2024-12-22 11:50:05 [2024-12-22 11:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077306', 'tblTempUsageDetail_20' ) start [2024-12-22 11:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077306', 'tblTempUsageDetail_20' ) end [2024-12-22 11:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077306', 'tblTempVendorCDR_20' ) start [2024-12-22 11:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077306', 'tblTempVendorCDR_20' ) end [2024-12-22 11:50:17] Production.INFO: ProcessCDR(1,14077306,1,1,2) [2024-12-22 11:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077306', 'tblTempUsageDetail_20' ) start [2024-12-22 11:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077306', 'tblTempUsageDetail_20' ) end [2024-12-22 11:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:50:20] Production.INFO: ==17337== Releasing lock... [2024-12-22 11:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:50:20] Production.INFO: 32 MB #Memory Used# [2024-12-22 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:51:05 [end_date_ymd] => 2024-12-22 11:51:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:51:05' and `end` < '2024-12-22 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-22 11:51:17] Production.INFO: count ==523 [2024-12-22 11:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:51:05 - End Time 2024-12-22 11:51:05 [2024-12-22 11:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077312', 'tblTempUsageDetail_20' ) start [2024-12-22 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077312', 'tblTempUsageDetail_20' ) end [2024-12-22 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077312', 'tblTempVendorCDR_20' ) start [2024-12-22 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077312', 'tblTempVendorCDR_20' ) end [2024-12-22 11:51:17] Production.INFO: ProcessCDR(1,14077312,1,1,2) [2024-12-22 11:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077312', 'tblTempUsageDetail_20' ) start [2024-12-22 11:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077312', 'tblTempUsageDetail_20' ) end [2024-12-22 11:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:51:20] Production.INFO: ==17452== Releasing lock... [2024-12-22 11:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:51:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-22 11:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:52:04 [end_date_ymd] => 2024-12-22 11:52:04 [RateCDR] => 1 ) [2024-12-22 11:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:52:04' and `end` < '2024-12-22 11:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:52:17] Production.INFO: count ==527 [2024-12-22 11:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:52:04 - End Time 2024-12-22 11:52:04 [2024-12-22 11:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077317', 'tblTempUsageDetail_20' ) start [2024-12-22 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077317', 'tblTempUsageDetail_20' ) end [2024-12-22 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077317', 'tblTempVendorCDR_20' ) start [2024-12-22 11:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077317', 'tblTempVendorCDR_20' ) end [2024-12-22 11:52:17] Production.INFO: ProcessCDR(1,14077317,1,1,2) [2024-12-22 11:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077317', 'tblTempUsageDetail_20' ) start [2024-12-22 11:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077317', 'tblTempUsageDetail_20' ) end [2024-12-22 11:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:52:20] Production.INFO: ==17521== Releasing lock... [2024-12-22 11:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:52:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-22 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:53:05 [end_date_ymd] => 2024-12-22 11:53:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:53:05' and `end` < '2024-12-22 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-22 11:53:17] Production.INFO: count ==527 [2024-12-22 11:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:53:05 - End Time 2024-12-22 11:53:05 [2024-12-22 11:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077322', 'tblTempUsageDetail_20' ) start [2024-12-22 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077322', 'tblTempUsageDetail_20' ) end [2024-12-22 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077322', 'tblTempVendorCDR_20' ) start [2024-12-22 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077322', 'tblTempVendorCDR_20' ) end [2024-12-22 11:53:17] Production.INFO: ProcessCDR(1,14077322,1,1,2) [2024-12-22 11:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077322', 'tblTempUsageDetail_20' ) start [2024-12-22 11:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077322', 'tblTempUsageDetail_20' ) end [2024-12-22 11:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:53:20] Production.INFO: ==17594== Releasing lock... [2024-12-22 11:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:53:20] Production.INFO: 32.5 MB #Memory Used# [2024-12-22 11:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:54:04 [end_date_ymd] => 2024-12-22 11:54:04 [RateCDR] => 1 ) [2024-12-22 11:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:54:04' and `end` < '2024-12-22 11:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:54:16] Production.INFO: count ==528 [2024-12-22 11:54:16] Production.ERROR: pbx CDR StartTime 2024-12-22 08:54:04 - End Time 2024-12-22 11:54:04 [2024-12-22 11:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077327', 'tblTempUsageDetail_20' ) start [2024-12-22 11:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077327', 'tblTempUsageDetail_20' ) end [2024-12-22 11:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077327', 'tblTempVendorCDR_20' ) start [2024-12-22 11:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077327', 'tblTempVendorCDR_20' ) end [2024-12-22 11:54:16] Production.INFO: ProcessCDR(1,14077327,1,1,2) [2024-12-22 11:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077327', 'tblTempUsageDetail_20' ) start [2024-12-22 11:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077327', 'tblTempUsageDetail_20' ) end [2024-12-22 11:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:54:21] Production.INFO: ==17664== Releasing lock... [2024-12-22 11:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:54:21] Production.INFO: 32.25 MB #Memory Used# [2024-12-22 11:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:55:04 [end_date_ymd] => 2024-12-22 11:55:04 [RateCDR] => 1 ) [2024-12-22 11: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-22 08:55:04' and `end` < '2024-12-22 11: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-22 11:55:16] Production.INFO: count ==528 [2024-12-22 11:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:55:04 - End Time 2024-12-22 11:55:04 [2024-12-22 11:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077332', 'tblTempUsageDetail_20' ) start [2024-12-22 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077332', 'tblTempUsageDetail_20' ) end [2024-12-22 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077332', 'tblTempVendorCDR_20' ) start [2024-12-22 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077332', 'tblTempVendorCDR_20' ) end [2024-12-22 11:55:17] Production.INFO: ProcessCDR(1,14077332,1,1,2) [2024-12-22 11:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077332', 'tblTempUsageDetail_20' ) start [2024-12-22 11:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077332', 'tblTempUsageDetail_20' ) end [2024-12-22 11:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:55:20] Production.INFO: ==17740== Releasing lock... [2024-12-22 11:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:55:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-22 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:56:05 [end_date_ymd] => 2024-12-22 11:56:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:56:05' and `end` < '2024-12-22 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-22 11:56:17] Production.INFO: count ==528 [2024-12-22 11:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:56:05 - End Time 2024-12-22 11:56:05 [2024-12-22 11:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077337', 'tblTempUsageDetail_20' ) start [2024-12-22 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077337', 'tblTempUsageDetail_20' ) end [2024-12-22 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077337', 'tblTempVendorCDR_20' ) start [2024-12-22 11:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077337', 'tblTempVendorCDR_20' ) end [2024-12-22 11:56:17] Production.INFO: ProcessCDR(1,14077337,1,1,2) [2024-12-22 11:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077337', 'tblTempUsageDetail_20' ) start [2024-12-22 11:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077337', 'tblTempUsageDetail_20' ) end [2024-12-22 11:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:56:20] Production.INFO: ==17815== Releasing lock... [2024-12-22 11:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:56:20] Production.INFO: 32.25 MB #Memory Used# [2024-12-22 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:57:05 [end_date_ymd] => 2024-12-22 11:57:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:57:05' and `end` < '2024-12-22 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-22 11:57:18] Production.INFO: count ==530 [2024-12-22 11:57:18] Production.ERROR: pbx CDR StartTime 2024-12-22 08:57:05 - End Time 2024-12-22 11:57:05 [2024-12-22 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077342', 'tblTempUsageDetail_20' ) start [2024-12-22 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077342', 'tblTempUsageDetail_20' ) end [2024-12-22 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077342', 'tblTempVendorCDR_20' ) start [2024-12-22 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077342', 'tblTempVendorCDR_20' ) end [2024-12-22 11:57:18] Production.INFO: ProcessCDR(1,14077342,1,1,2) [2024-12-22 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077342', 'tblTempUsageDetail_20' ) start [2024-12-22 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077342', 'tblTempUsageDetail_20' ) end [2024-12-22 11:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:57:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:57:22] Production.INFO: ==17886== Releasing lock... [2024-12-22 11:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:57:22] Production.INFO: 32.25 MB #Memory Used# [2024-12-22 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:58:05 [end_date_ymd] => 2024-12-22 11:58:05 [RateCDR] => 1 ) [2024-12-22 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-22 08:58:05' and `end` < '2024-12-22 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-22 11:58:19] Production.INFO: count ==533 [2024-12-22 11:58:19] Production.ERROR: pbx CDR StartTime 2024-12-22 08:58:05 - End Time 2024-12-22 11:58:05 [2024-12-22 11:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077347', 'tblTempUsageDetail_20' ) start [2024-12-22 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077347', 'tblTempUsageDetail_20' ) end [2024-12-22 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077347', 'tblTempVendorCDR_20' ) start [2024-12-22 11:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077347', 'tblTempVendorCDR_20' ) end [2024-12-22 11:58:19] Production.INFO: ProcessCDR(1,14077347,1,1,2) [2024-12-22 11:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077347', 'tblTempUsageDetail_20' ) start [2024-12-22 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077347', 'tblTempUsageDetail_20' ) end [2024-12-22 11:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:58:24] Production.INFO: ==17957== Releasing lock... [2024-12-22 11:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:58:24] Production.INFO: 32.5 MB #Memory Used# [2024-12-22 11:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 08:59:04 [end_date_ymd] => 2024-12-22 11:59:04 [RateCDR] => 1 ) [2024-12-22 11:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 08:59:04' and `end` < '2024-12-22 11:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 11:59:16] Production.INFO: count ==536 [2024-12-22 11:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 08:59:04 - End Time 2024-12-22 11:59:04 [2024-12-22 11:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077352', 'tblTempUsageDetail_20' ) start [2024-12-22 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077352', 'tblTempUsageDetail_20' ) end [2024-12-22 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077352', 'tblTempVendorCDR_20' ) start [2024-12-22 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077352', 'tblTempVendorCDR_20' ) end [2024-12-22 11:59:17] Production.INFO: ProcessCDR(1,14077352,1,1,2) [2024-12-22 11:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 11:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077352', 'tblTempUsageDetail_20' ) start [2024-12-22 11:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077352', 'tblTempUsageDetail_20' ) end [2024-12-22 11:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 11:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 11:59:21] Production.INFO: ==18026== Releasing lock... [2024-12-22 11:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 11:59:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-22 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:00:05 [end_date_ymd] => 2024-12-22 12:00:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:00:05' and `end` < '2024-12-22 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-22 12:00:17] Production.INFO: count ==547 [2024-12-22 12:00:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:00:05 - End Time 2024-12-22 12:00:05 [2024-12-22 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077358', 'tblTempUsageDetail_20' ) start [2024-12-22 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077358', 'tblTempUsageDetail_20' ) end [2024-12-22 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077358', 'tblTempVendorCDR_20' ) start [2024-12-22 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077358', 'tblTempVendorCDR_20' ) end [2024-12-22 12:00:18] Production.INFO: ProcessCDR(1,14077358,1,1,2) [2024-12-22 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077358', 'tblTempUsageDetail_20' ) start [2024-12-22 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077358', 'tblTempUsageDetail_20' ) end [2024-12-22 12:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:00:22] Production.INFO: ==18102== Releasing lock... [2024-12-22 12:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:00:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-22 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:01:05 [end_date_ymd] => 2024-12-22 12:01:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:01:05' and `end` < '2024-12-22 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-22 12:01:17] Production.INFO: count ==580 [2024-12-22 12:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:01:05 - End Time 2024-12-22 12:01:05 [2024-12-22 12:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077363', 'tblTempUsageDetail_20' ) start [2024-12-22 12:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077363', 'tblTempUsageDetail_20' ) end [2024-12-22 12:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077363', 'tblTempVendorCDR_20' ) start [2024-12-22 12:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077363', 'tblTempVendorCDR_20' ) end [2024-12-22 12:01:17] Production.INFO: ProcessCDR(1,14077363,1,1,2) [2024-12-22 12:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077363', 'tblTempUsageDetail_20' ) start [2024-12-22 12:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077363', 'tblTempUsageDetail_20' ) end [2024-12-22 12:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:01:21] Production.INFO: ==18188== Releasing lock... [2024-12-22 12:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:01:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-22 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:02:05 [end_date_ymd] => 2024-12-22 12:02:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:02:05' and `end` < '2024-12-22 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-22 12:02:18] Production.INFO: count ==583 [2024-12-22 12:02:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:02:05 - End Time 2024-12-22 12:02:05 [2024-12-22 12:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077368', 'tblTempUsageDetail_20' ) start [2024-12-22 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077368', 'tblTempUsageDetail_20' ) end [2024-12-22 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077368', 'tblTempVendorCDR_20' ) start [2024-12-22 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077368', 'tblTempVendorCDR_20' ) end [2024-12-22 12:02:18] Production.INFO: ProcessCDR(1,14077368,1,1,2) [2024-12-22 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077368', 'tblTempUsageDetail_20' ) start [2024-12-22 12:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077368', 'tblTempUsageDetail_20' ) end [2024-12-22 12:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:02:22] Production.INFO: ==18263== Releasing lock... [2024-12-22 12:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:02:22] Production.INFO: 32.75 MB #Memory Used# [2024-12-22 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:03:05 [end_date_ymd] => 2024-12-22 12:03:05 [RateCDR] => 1 ) [2024-12-22 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:03:05' and `end` < '2024-12-22 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:03:19] Production.INFO: count ==591 [2024-12-22 12:03:19] Production.ERROR: pbx CDR StartTime 2024-12-22 09:03:05 - End Time 2024-12-22 12:03:05 [2024-12-22 12:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077373', 'tblTempUsageDetail_20' ) start [2024-12-22 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077373', 'tblTempUsageDetail_20' ) end [2024-12-22 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077373', 'tblTempVendorCDR_20' ) start [2024-12-22 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077373', 'tblTempVendorCDR_20' ) end [2024-12-22 12:03:19] Production.INFO: ProcessCDR(1,14077373,1,1,2) [2024-12-22 12:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077373', 'tblTempUsageDetail_20' ) start [2024-12-22 12:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077373', 'tblTempUsageDetail_20' ) end [2024-12-22 12:03:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:03:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:03:23] Production.INFO: ==18341== Releasing lock... [2024-12-22 12:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:03:23] Production.INFO: 33 MB #Memory Used# [2024-12-22 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:04:05 [end_date_ymd] => 2024-12-22 12:04:05 [RateCDR] => 1 ) [2024-12-22 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:04:05' and `end` < '2024-12-22 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:04:17] Production.INFO: count ==591 [2024-12-22 12:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:04:05 - End Time 2024-12-22 12:04:05 [2024-12-22 12:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077378', 'tblTempUsageDetail_20' ) start [2024-12-22 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077378', 'tblTempUsageDetail_20' ) end [2024-12-22 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077378', 'tblTempVendorCDR_20' ) start [2024-12-22 12:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077378', 'tblTempVendorCDR_20' ) end [2024-12-22 12:04:17] Production.INFO: ProcessCDR(1,14077378,1,1,2) [2024-12-22 12:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077378', 'tblTempUsageDetail_20' ) start [2024-12-22 12:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077378', 'tblTempUsageDetail_20' ) end [2024-12-22 12:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:04:20] Production.INFO: ==18410== Releasing lock... [2024-12-22 12:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:04:20] Production.INFO: 33 MB #Memory Used# [2024-12-22 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:05:05 [end_date_ymd] => 2024-12-22 12:05:05 [RateCDR] => 1 ) [2024-12-22 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:05:05' and `end` < '2024-12-22 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:05:18] Production.INFO: count ==595 [2024-12-22 12:05:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:05:05 - End Time 2024-12-22 12:05:05 [2024-12-22 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077383', 'tblTempUsageDetail_20' ) start [2024-12-22 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077383', 'tblTempUsageDetail_20' ) end [2024-12-22 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077383', 'tblTempVendorCDR_20' ) start [2024-12-22 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077383', 'tblTempVendorCDR_20' ) end [2024-12-22 12:05:18] Production.INFO: ProcessCDR(1,14077383,1,1,2) [2024-12-22 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077383', 'tblTempUsageDetail_20' ) start [2024-12-22 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077383', 'tblTempUsageDetail_20' ) end [2024-12-22 12:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:05:22] Production.INFO: ==18486== Releasing lock... [2024-12-22 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:05:22] Production.INFO: 33 MB #Memory Used# [2024-12-22 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:06:05 [end_date_ymd] => 2024-12-22 12:06:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:06:05' and `end` < '2024-12-22 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-22 12:06:17] Production.INFO: count ==590 [2024-12-22 12:06:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:06:05 - End Time 2024-12-22 12:06:05 [2024-12-22 12:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077388', 'tblTempUsageDetail_20' ) start [2024-12-22 12:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077388', 'tblTempUsageDetail_20' ) end [2024-12-22 12:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077388', 'tblTempVendorCDR_20' ) start [2024-12-22 12:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077388', 'tblTempVendorCDR_20' ) end [2024-12-22 12:06:17] Production.INFO: ProcessCDR(1,14077388,1,1,2) [2024-12-22 12:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077388', 'tblTempUsageDetail_20' ) start [2024-12-22 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077388', 'tblTempUsageDetail_20' ) end [2024-12-22 12:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:06:21] Production.INFO: ==18602== Releasing lock... [2024-12-22 12:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:06:21] Production.INFO: 33 MB #Memory Used# [2024-12-22 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:07:05 [end_date_ymd] => 2024-12-22 12:07:05 [RateCDR] => 1 ) [2024-12-22 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:07:05' and `end` < '2024-12-22 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:07:18] Production.INFO: count ==592 [2024-12-22 12:07:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:07:05 - End Time 2024-12-22 12:07:05 [2024-12-22 12:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077393', 'tblTempUsageDetail_20' ) start [2024-12-22 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077393', 'tblTempUsageDetail_20' ) end [2024-12-22 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077393', 'tblTempVendorCDR_20' ) start [2024-12-22 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077393', 'tblTempVendorCDR_20' ) end [2024-12-22 12:07:18] Production.INFO: ProcessCDR(1,14077393,1,1,2) [2024-12-22 12:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077393', 'tblTempUsageDetail_20' ) start [2024-12-22 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077393', 'tblTempUsageDetail_20' ) end [2024-12-22 12:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:07:23] Production.INFO: ==18674== Releasing lock... [2024-12-22 12:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:07:23] Production.INFO: 33 MB #Memory Used# [2024-12-22 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:08:05 [end_date_ymd] => 2024-12-22 12:08:05 [RateCDR] => 1 ) [2024-12-22 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:08:05' and `end` < '2024-12-22 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:08:17] Production.INFO: count ==578 [2024-12-22 12:08:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:08:05 - End Time 2024-12-22 12:08:05 [2024-12-22 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077398', 'tblTempUsageDetail_20' ) start [2024-12-22 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077398', 'tblTempUsageDetail_20' ) end [2024-12-22 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077398', 'tblTempVendorCDR_20' ) start [2024-12-22 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077398', 'tblTempVendorCDR_20' ) end [2024-12-22 12:08:18] Production.INFO: ProcessCDR(1,14077398,1,1,2) [2024-12-22 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077398', 'tblTempUsageDetail_20' ) start [2024-12-22 12:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077398', 'tblTempUsageDetail_20' ) end [2024-12-22 12:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:08:21] Production.INFO: ==18752== Releasing lock... [2024-12-22 12:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:08:21] Production.INFO: 33 MB #Memory Used# [2024-12-22 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:09:05 [end_date_ymd] => 2024-12-22 12:09:05 [RateCDR] => 1 ) [2024-12-22 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:09:05' and `end` < '2024-12-22 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:09:17] Production.INFO: count ==579 [2024-12-22 12:09:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:09:05 - End Time 2024-12-22 12:09:05 [2024-12-22 12:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077403', 'tblTempUsageDetail_20' ) start [2024-12-22 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077403', 'tblTempUsageDetail_20' ) end [2024-12-22 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077403', 'tblTempVendorCDR_20' ) start [2024-12-22 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077403', 'tblTempVendorCDR_20' ) end [2024-12-22 12:09:17] Production.INFO: ProcessCDR(1,14077403,1,1,2) [2024-12-22 12:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077403', 'tblTempUsageDetail_20' ) start [2024-12-22 12:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077403', 'tblTempUsageDetail_20' ) end [2024-12-22 12:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:09:21] Production.INFO: ==18827== Releasing lock... [2024-12-22 12:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:09:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-22 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:10:05 [end_date_ymd] => 2024-12-22 12:10:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:10:05' and `end` < '2024-12-22 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-22 12:10:17] Production.INFO: count ==587 [2024-12-22 12:10:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:10:05 - End Time 2024-12-22 12:10:05 [2024-12-22 12:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077409', 'tblTempUsageDetail_20' ) start [2024-12-22 12:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077409', 'tblTempUsageDetail_20' ) end [2024-12-22 12:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077409', 'tblTempVendorCDR_20' ) start [2024-12-22 12:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077409', 'tblTempVendorCDR_20' ) end [2024-12-22 12:10:17] Production.INFO: ProcessCDR(1,14077409,1,1,2) [2024-12-22 12:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077409', 'tblTempUsageDetail_20' ) start [2024-12-22 12:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077409', 'tblTempUsageDetail_20' ) end [2024-12-22 12:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:10:20] Production.INFO: ==18905== Releasing lock... [2024-12-22 12:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:10:20] Production.INFO: 32.75 MB #Memory Used# [2024-12-22 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:11:05 [end_date_ymd] => 2024-12-22 12:11:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:11:05' and `end` < '2024-12-22 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-22 12:11:18] Production.INFO: count ==613 [2024-12-22 12:11:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:11:05 - End Time 2024-12-22 12:11:05 [2024-12-22 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077414', 'tblTempUsageDetail_20' ) start [2024-12-22 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077414', 'tblTempUsageDetail_20' ) end [2024-12-22 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077414', 'tblTempVendorCDR_20' ) start [2024-12-22 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077414', 'tblTempVendorCDR_20' ) end [2024-12-22 12:11:18] Production.INFO: ProcessCDR(1,14077414,1,1,2) [2024-12-22 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077414', 'tblTempUsageDetail_20' ) start [2024-12-22 12:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077414', 'tblTempUsageDetail_20' ) end [2024-12-22 12:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:11:22] Production.INFO: ==18977== Releasing lock... [2024-12-22 12:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:11:22] Production.INFO: 33 MB #Memory Used# [2024-12-22 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:12:05 [end_date_ymd] => 2024-12-22 12:12:05 [RateCDR] => 1 ) [2024-12-22 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:12:05' and `end` < '2024-12-22 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:12:18] Production.INFO: count ==614 [2024-12-22 12:12:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:12:05 - End Time 2024-12-22 12:12:05 [2024-12-22 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077419', 'tblTempUsageDetail_20' ) start [2024-12-22 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077419', 'tblTempUsageDetail_20' ) end [2024-12-22 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077419', 'tblTempVendorCDR_20' ) start [2024-12-22 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077419', 'tblTempVendorCDR_20' ) end [2024-12-22 12:12:18] Production.INFO: ProcessCDR(1,14077419,1,1,2) [2024-12-22 12:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077419', 'tblTempUsageDetail_20' ) start [2024-12-22 12:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077419', 'tblTempUsageDetail_20' ) end [2024-12-22 12:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:12:21] Production.INFO: ==19052== Releasing lock... [2024-12-22 12:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:12:21] Production.INFO: 33 MB #Memory Used# [2024-12-22 12:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:13:04 [end_date_ymd] => 2024-12-22 12:13:04 [RateCDR] => 1 ) [2024-12-22 12: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-22 09:13:04' and `end` < '2024-12-22 12: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-22 12:13:16] Production.INFO: count ==616 [2024-12-22 12:13:16] Production.ERROR: pbx CDR StartTime 2024-12-22 09:13:04 - End Time 2024-12-22 12:13:04 [2024-12-22 12:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077424', 'tblTempUsageDetail_20' ) start [2024-12-22 12:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077424', 'tblTempUsageDetail_20' ) end [2024-12-22 12:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077424', 'tblTempVendorCDR_20' ) start [2024-12-22 12:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077424', 'tblTempVendorCDR_20' ) end [2024-12-22 12:13:16] Production.INFO: ProcessCDR(1,14077424,1,1,2) [2024-12-22 12:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077424', 'tblTempUsageDetail_20' ) start [2024-12-22 12:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077424', 'tblTempUsageDetail_20' ) end [2024-12-22 12:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:13:21] Production.INFO: ==19126== Releasing lock... [2024-12-22 12:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:13:21] Production.INFO: 33 MB #Memory Used# [2024-12-22 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:14:05 [end_date_ymd] => 2024-12-22 12:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:14:05' and `end` < '2024-12-22 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-22 12:14:17] Production.INFO: count ==620 [2024-12-22 12:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:14:05 - End Time 2024-12-22 12:14:05 [2024-12-22 12:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077428', 'tblTempUsageDetail_20' ) start [2024-12-22 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077428', 'tblTempUsageDetail_20' ) end [2024-12-22 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077428', 'tblTempVendorCDR_20' ) start [2024-12-22 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077428', 'tblTempVendorCDR_20' ) end [2024-12-22 12:14:17] Production.INFO: ProcessCDR(1,14077428,1,1,2) [2024-12-22 12:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077428', 'tblTempUsageDetail_20' ) start [2024-12-22 12:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077428', 'tblTempUsageDetail_20' ) end [2024-12-22 12:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:14:21] Production.INFO: ==19203== Releasing lock... [2024-12-22 12:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:14:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-22 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:15:05 [end_date_ymd] => 2024-12-22 12:15:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:15:05' and `end` < '2024-12-22 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-22 12:15:17] Production.INFO: count ==621 [2024-12-22 12:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:15:05 - End Time 2024-12-22 12:15:05 [2024-12-22 12:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077434', 'tblTempUsageDetail_20' ) start [2024-12-22 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077434', 'tblTempUsageDetail_20' ) end [2024-12-22 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077434', 'tblTempVendorCDR_20' ) start [2024-12-22 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077434', 'tblTempVendorCDR_20' ) end [2024-12-22 12:15:17] Production.INFO: ProcessCDR(1,14077434,1,1,2) [2024-12-22 12:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077434', 'tblTempUsageDetail_20' ) start [2024-12-22 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077434', 'tblTempUsageDetail_20' ) end [2024-12-22 12:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:15:21] Production.INFO: ==19286== Releasing lock... [2024-12-22 12:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:15:21] Production.INFO: 32.75 MB #Memory Used# [2024-12-22 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:16:05 [end_date_ymd] => 2024-12-22 12:16:05 [RateCDR] => 1 ) [2024-12-22 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:16:05' and `end` < '2024-12-22 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:16:17] Production.INFO: count ==624 [2024-12-22 12:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:16:05 - End Time 2024-12-22 12:16:05 [2024-12-22 12:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077439', 'tblTempUsageDetail_20' ) start [2024-12-22 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077439', 'tblTempUsageDetail_20' ) end [2024-12-22 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077439', 'tblTempVendorCDR_20' ) start [2024-12-22 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077439', 'tblTempVendorCDR_20' ) end [2024-12-22 12:16:17] Production.INFO: ProcessCDR(1,14077439,1,1,2) [2024-12-22 12:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077439', 'tblTempUsageDetail_20' ) start [2024-12-22 12:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077439', 'tblTempUsageDetail_20' ) end [2024-12-22 12:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:16:21] Production.INFO: ==19357== Releasing lock... [2024-12-22 12:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:16:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:17:05 [end_date_ymd] => 2024-12-22 12:17:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:17:05' and `end` < '2024-12-22 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-22 12:17:17] Production.INFO: count ==626 [2024-12-22 12:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:17:05 - End Time 2024-12-22 12:17:05 [2024-12-22 12:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077444', 'tblTempUsageDetail_20' ) start [2024-12-22 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077444', 'tblTempUsageDetail_20' ) end [2024-12-22 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077444', 'tblTempVendorCDR_20' ) start [2024-12-22 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077444', 'tblTempVendorCDR_20' ) end [2024-12-22 12:17:17] Production.INFO: ProcessCDR(1,14077444,1,1,2) [2024-12-22 12:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077444', 'tblTempUsageDetail_20' ) start [2024-12-22 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077444', 'tblTempUsageDetail_20' ) end [2024-12-22 12:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:17:22] Production.INFO: ==19444== Releasing lock... [2024-12-22 12:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:17:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:18:05 [end_date_ymd] => 2024-12-22 12:18:05 [RateCDR] => 1 ) [2024-12-22 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:18:05' and `end` < '2024-12-22 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:18:17] Production.INFO: count ==634 [2024-12-22 12:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:18:05 - End Time 2024-12-22 12:18:05 [2024-12-22 12:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077449', 'tblTempUsageDetail_20' ) start [2024-12-22 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077449', 'tblTempUsageDetail_20' ) end [2024-12-22 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077449', 'tblTempVendorCDR_20' ) start [2024-12-22 12:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077449', 'tblTempVendorCDR_20' ) end [2024-12-22 12:18:17] Production.INFO: ProcessCDR(1,14077449,1,1,2) [2024-12-22 12:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077449', 'tblTempUsageDetail_20' ) start [2024-12-22 12:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077449', 'tblTempUsageDetail_20' ) end [2024-12-22 12:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:18:21] Production.INFO: ==19516== Releasing lock... [2024-12-22 12:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:18:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:19:05 [end_date_ymd] => 2024-12-22 12:19:05 [RateCDR] => 1 ) [2024-12-22 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:19:05' and `end` < '2024-12-22 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:19:17] Production.INFO: count ==637 [2024-12-22 12:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:19:05 - End Time 2024-12-22 12:19:05 [2024-12-22 12:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077454', 'tblTempUsageDetail_20' ) start [2024-12-22 12:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077454', 'tblTempUsageDetail_20' ) end [2024-12-22 12:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077454', 'tblTempVendorCDR_20' ) start [2024-12-22 12:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077454', 'tblTempVendorCDR_20' ) end [2024-12-22 12:19:17] Production.INFO: ProcessCDR(1,14077454,1,1,2) [2024-12-22 12:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077454', 'tblTempUsageDetail_20' ) start [2024-12-22 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077454', 'tblTempUsageDetail_20' ) end [2024-12-22 12:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:19:21] Production.INFO: ==19593== Releasing lock... [2024-12-22 12:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:19:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:20:05 [end_date_ymd] => 2024-12-22 12:20:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:20:05' and `end` < '2024-12-22 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-22 12:20:17] Production.INFO: count ==642 [2024-12-22 12:20:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:20:05 - End Time 2024-12-22 12:20:05 [2024-12-22 12:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077460', 'tblTempUsageDetail_20' ) start [2024-12-22 12:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077460', 'tblTempUsageDetail_20' ) end [2024-12-22 12:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077460', 'tblTempVendorCDR_20' ) start [2024-12-22 12:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077460', 'tblTempVendorCDR_20' ) end [2024-12-22 12:20:17] Production.INFO: ProcessCDR(1,14077460,1,1,2) [2024-12-22 12:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077460', 'tblTempUsageDetail_20' ) start [2024-12-22 12:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077460', 'tblTempUsageDetail_20' ) end [2024-12-22 12:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:20:21] Production.INFO: ==19668== Releasing lock... [2024-12-22 12:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:20:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:21:05 [end_date_ymd] => 2024-12-22 12:21:05 [RateCDR] => 1 ) [2024-12-22 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:21:05' and `end` < '2024-12-22 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:21:17] Production.INFO: count ==679 [2024-12-22 12:21:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:21:05 - End Time 2024-12-22 12:21:05 [2024-12-22 12:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077465', 'tblTempUsageDetail_20' ) start [2024-12-22 12:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077465', 'tblTempUsageDetail_20' ) end [2024-12-22 12:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077465', 'tblTempVendorCDR_20' ) start [2024-12-22 12:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077465', 'tblTempVendorCDR_20' ) end [2024-12-22 12:21:17] Production.INFO: ProcessCDR(1,14077465,1,1,2) [2024-12-22 12:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077465', 'tblTempUsageDetail_20' ) start [2024-12-22 12:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077465', 'tblTempUsageDetail_20' ) end [2024-12-22 12:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:21:21] Production.INFO: ==19749== Releasing lock... [2024-12-22 12:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:21:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:22:05 [end_date_ymd] => 2024-12-22 12:22:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:22:05' and `end` < '2024-12-22 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-22 12:22:17] Production.INFO: count ==682 [2024-12-22 12:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:22:05 - End Time 2024-12-22 12:22:05 [2024-12-22 12:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077468', 'tblTempUsageDetail_20' ) start [2024-12-22 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077468', 'tblTempUsageDetail_20' ) end [2024-12-22 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077468', 'tblTempVendorCDR_20' ) start [2024-12-22 12:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077468', 'tblTempVendorCDR_20' ) end [2024-12-22 12:22:17] Production.INFO: ProcessCDR(1,14077468,1,1,2) [2024-12-22 12:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077468', 'tblTempUsageDetail_20' ) start [2024-12-22 12:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077468', 'tblTempUsageDetail_20' ) end [2024-12-22 12:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:22:20] Production.INFO: ==19864== Releasing lock... [2024-12-22 12:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:22:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:23:05 [end_date_ymd] => 2024-12-22 12:23:05 [RateCDR] => 1 ) [2024-12-22 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:23:05' and `end` < '2024-12-22 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:23:18] Production.INFO: count ==690 [2024-12-22 12:23:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:23:05 - End Time 2024-12-22 12:23:05 [2024-12-22 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077475', 'tblTempUsageDetail_20' ) start [2024-12-22 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077475', 'tblTempUsageDetail_20' ) end [2024-12-22 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077475', 'tblTempVendorCDR_20' ) start [2024-12-22 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077475', 'tblTempVendorCDR_20' ) end [2024-12-22 12:23:18] Production.INFO: ProcessCDR(1,14077475,1,1,2) [2024-12-22 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077475', 'tblTempUsageDetail_20' ) start [2024-12-22 12:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077475', 'tblTempUsageDetail_20' ) end [2024-12-22 12:23:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:23:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:23:23] Production.INFO: ==19940== Releasing lock... [2024-12-22 12:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:23:23] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 12:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:24:04 [end_date_ymd] => 2024-12-22 12:24:04 [RateCDR] => 1 ) [2024-12-22 12:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:24:04' and `end` < '2024-12-22 12:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:24:16] Production.INFO: count ==689 [2024-12-22 12:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:24:04 - End Time 2024-12-22 12:24:04 [2024-12-22 12:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077480', 'tblTempUsageDetail_20' ) start [2024-12-22 12:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077480', 'tblTempUsageDetail_20' ) end [2024-12-22 12:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077480', 'tblTempVendorCDR_20' ) start [2024-12-22 12:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077480', 'tblTempVendorCDR_20' ) end [2024-12-22 12:24:17] Production.INFO: ProcessCDR(1,14077480,1,1,2) [2024-12-22 12:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077480', 'tblTempUsageDetail_20' ) start [2024-12-22 12:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077480', 'tblTempUsageDetail_20' ) end [2024-12-22 12:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:24:20] Production.INFO: ==20017== Releasing lock... [2024-12-22 12:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:24:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:25:05 [end_date_ymd] => 2024-12-22 12:25:05 [RateCDR] => 1 ) [2024-12-22 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:25:05' and `end` < '2024-12-22 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:25:17] Production.INFO: count ==688 [2024-12-22 12:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:25:05 - End Time 2024-12-22 12:25:05 [2024-12-22 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077485', 'tblTempUsageDetail_20' ) start [2024-12-22 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077485', 'tblTempUsageDetail_20' ) end [2024-12-22 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077485', 'tblTempVendorCDR_20' ) start [2024-12-22 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077485', 'tblTempVendorCDR_20' ) end [2024-12-22 12:25:17] Production.INFO: ProcessCDR(1,14077485,1,1,2) [2024-12-22 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077485', 'tblTempUsageDetail_20' ) start [2024-12-22 12:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077485', 'tblTempUsageDetail_20' ) end [2024-12-22 12:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:25:20] Production.INFO: ==20092== Releasing lock... [2024-12-22 12:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:25:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:26:06 [end_date_ymd] => 2024-12-22 12:26:06 [RateCDR] => 1 ) [2024-12-22 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:26:06' and `end` < '2024-12-22 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:26:18] Production.INFO: count ==688 [2024-12-22 12:26:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:26:06 - End Time 2024-12-22 12:26:06 [2024-12-22 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077490', 'tblTempUsageDetail_20' ) start [2024-12-22 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077490', 'tblTempUsageDetail_20' ) end [2024-12-22 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077490', 'tblTempVendorCDR_20' ) start [2024-12-22 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077490', 'tblTempVendorCDR_20' ) end [2024-12-22 12:26:18] Production.INFO: ProcessCDR(1,14077490,1,1,2) [2024-12-22 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077490', 'tblTempUsageDetail_20' ) start [2024-12-22 12:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077490', 'tblTempUsageDetail_20' ) end [2024-12-22 12:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:26:21] Production.INFO: ==20166== Releasing lock... [2024-12-22 12:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:26:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:27:05 [end_date_ymd] => 2024-12-22 12:27:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:27:05' and `end` < '2024-12-22 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-22 12:27:17] Production.INFO: count ==689 [2024-12-22 12:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:27:05 - End Time 2024-12-22 12:27:05 [2024-12-22 12:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077495', 'tblTempUsageDetail_20' ) start [2024-12-22 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077495', 'tblTempUsageDetail_20' ) end [2024-12-22 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077495', 'tblTempVendorCDR_20' ) start [2024-12-22 12:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077495', 'tblTempVendorCDR_20' ) end [2024-12-22 12:27:17] Production.INFO: ProcessCDR(1,14077495,1,1,2) [2024-12-22 12:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077495', 'tblTempUsageDetail_20' ) start [2024-12-22 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077495', 'tblTempUsageDetail_20' ) end [2024-12-22 12:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:27:21] Production.INFO: ==20239== Releasing lock... [2024-12-22 12:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:27:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:28:05 [end_date_ymd] => 2024-12-22 12:28:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:28:05' and `end` < '2024-12-22 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-22 12:28:17] Production.INFO: count ==682 [2024-12-22 12:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:28:05 - End Time 2024-12-22 12:28:05 [2024-12-22 12:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077500', 'tblTempUsageDetail_20' ) start [2024-12-22 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077500', 'tblTempUsageDetail_20' ) end [2024-12-22 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077500', 'tblTempVendorCDR_20' ) start [2024-12-22 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077500', 'tblTempVendorCDR_20' ) end [2024-12-22 12:28:17] Production.INFO: ProcessCDR(1,14077500,1,1,2) [2024-12-22 12:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077500', 'tblTempUsageDetail_20' ) start [2024-12-22 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077500', 'tblTempUsageDetail_20' ) end [2024-12-22 12:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:28:22] Production.INFO: ==20321== Releasing lock... [2024-12-22 12:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:28:22] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:29:05 [end_date_ymd] => 2024-12-22 12:29:05 [RateCDR] => 1 ) [2024-12-22 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:29:05' and `end` < '2024-12-22 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:29:19] Production.INFO: count ==683 [2024-12-22 12:29:19] Production.ERROR: pbx CDR StartTime 2024-12-22 09:29:05 - End Time 2024-12-22 12:29:05 [2024-12-22 12:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077505', 'tblTempUsageDetail_20' ) start [2024-12-22 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077505', 'tblTempUsageDetail_20' ) end [2024-12-22 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077505', 'tblTempVendorCDR_20' ) start [2024-12-22 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077505', 'tblTempVendorCDR_20' ) end [2024-12-22 12:29:19] Production.INFO: ProcessCDR(1,14077505,1,1,2) [2024-12-22 12:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077505', 'tblTempUsageDetail_20' ) start [2024-12-22 12:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077505', 'tblTempUsageDetail_20' ) end [2024-12-22 12:29:24] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:29:24] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:29:24] Production.INFO: ==20391== Releasing lock... [2024-12-22 12:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:29:24] Production.INFO: 34 MB #Memory Used# [2024-12-22 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:30:05 [end_date_ymd] => 2024-12-22 12:30:05 [RateCDR] => 1 ) [2024-12-22 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:30:05' and `end` < '2024-12-22 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:30:17] Production.INFO: count ==694 [2024-12-22 12:30:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:30:05 - End Time 2024-12-22 12:30:05 [2024-12-22 12:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077511', 'tblTempUsageDetail_20' ) start [2024-12-22 12:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077511', 'tblTempUsageDetail_20' ) end [2024-12-22 12:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077511', 'tblTempVendorCDR_20' ) start [2024-12-22 12:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077511', 'tblTempVendorCDR_20' ) end [2024-12-22 12:30:17] Production.INFO: ProcessCDR(1,14077511,1,1,2) [2024-12-22 12:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077511', 'tblTempUsageDetail_20' ) start [2024-12-22 12:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077511', 'tblTempUsageDetail_20' ) end [2024-12-22 12:30:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:30:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:30:20] Production.INFO: ==20470== Releasing lock... [2024-12-22 12:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:30:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 12:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:31:04 [end_date_ymd] => 2024-12-22 12:31:04 [RateCDR] => 1 ) [2024-12-22 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-22 09:31:04' and `end` < '2024-12-22 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-22 12:31:16] Production.INFO: count ==732 [2024-12-22 12:31:16] Production.ERROR: pbx CDR StartTime 2024-12-22 09:31:04 - End Time 2024-12-22 12:31:04 [2024-12-22 12:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077516', 'tblTempUsageDetail_20' ) start [2024-12-22 12:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077516', 'tblTempUsageDetail_20' ) end [2024-12-22 12:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077516', 'tblTempVendorCDR_20' ) start [2024-12-22 12:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077516', 'tblTempVendorCDR_20' ) end [2024-12-22 12:31:16] Production.INFO: ProcessCDR(1,14077516,1,1,2) [2024-12-22 12:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077516', 'tblTempUsageDetail_20' ) start [2024-12-22 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077516', 'tblTempUsageDetail_20' ) end [2024-12-22 12:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:31:21] Production.INFO: ==20548== Releasing lock... [2024-12-22 12:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:31:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:32:05 [end_date_ymd] => 2024-12-22 12:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:32:05' and `end` < '2024-12-22 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-22 12:32:17] Production.INFO: count ==735 [2024-12-22 12:32:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:32:05 - End Time 2024-12-22 12:32:05 [2024-12-22 12:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077521', 'tblTempUsageDetail_20' ) start [2024-12-22 12:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077521', 'tblTempUsageDetail_20' ) end [2024-12-22 12:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077521', 'tblTempVendorCDR_20' ) start [2024-12-22 12:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077521', 'tblTempVendorCDR_20' ) end [2024-12-22 12:32:17] Production.INFO: ProcessCDR(1,14077521,1,1,2) [2024-12-22 12:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077521', 'tblTempUsageDetail_20' ) start [2024-12-22 12:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077521', 'tblTempUsageDetail_20' ) end [2024-12-22 12:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:32:20] Production.INFO: ==20626== Releasing lock... [2024-12-22 12:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:32:20] Production.INFO: 34 MB #Memory Used# [2024-12-22 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:33:05 [end_date_ymd] => 2024-12-22 12:33:05 [RateCDR] => 1 ) [2024-12-22 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:33:05' and `end` < '2024-12-22 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:33:17] Production.INFO: count ==737 [2024-12-22 12:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:33:05 - End Time 2024-12-22 12:33:05 [2024-12-22 12:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077526', 'tblTempUsageDetail_20' ) start [2024-12-22 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077526', 'tblTempUsageDetail_20' ) end [2024-12-22 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077526', 'tblTempVendorCDR_20' ) start [2024-12-22 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077526', 'tblTempVendorCDR_20' ) end [2024-12-22 12:33:17] Production.INFO: ProcessCDR(1,14077526,1,1,2) [2024-12-22 12:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077526', 'tblTempUsageDetail_20' ) start [2024-12-22 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077526', 'tblTempUsageDetail_20' ) end [2024-12-22 12:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:33:22] Production.INFO: ==20699== Releasing lock... [2024-12-22 12:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:33:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:34:05 [end_date_ymd] => 2024-12-22 12:34:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:34:05' and `end` < '2024-12-22 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-22 12:34:17] Production.INFO: count ==737 [2024-12-22 12:34:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:34:05 - End Time 2024-12-22 12:34:05 [2024-12-22 12:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077531', 'tblTempUsageDetail_20' ) start [2024-12-22 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077531', 'tblTempUsageDetail_20' ) end [2024-12-22 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077531', 'tblTempVendorCDR_20' ) start [2024-12-22 12:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077531', 'tblTempVendorCDR_20' ) end [2024-12-22 12:34:17] Production.INFO: ProcessCDR(1,14077531,1,1,2) [2024-12-22 12:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077531', 'tblTempUsageDetail_20' ) start [2024-12-22 12:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077531', 'tblTempUsageDetail_20' ) end [2024-12-22 12:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:34:22] Production.INFO: ==20775== Releasing lock... [2024-12-22 12:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:34:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:35:05 [end_date_ymd] => 2024-12-22 12:35:05 [RateCDR] => 1 ) [2024-12-22 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:35:05' and `end` < '2024-12-22 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:35:18] Production.INFO: count ==738 [2024-12-22 12:35:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:35:05 - End Time 2024-12-22 12:35:05 [2024-12-22 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077536', 'tblTempUsageDetail_20' ) start [2024-12-22 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077536', 'tblTempUsageDetail_20' ) end [2024-12-22 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077536', 'tblTempVendorCDR_20' ) start [2024-12-22 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077536', 'tblTempVendorCDR_20' ) end [2024-12-22 12:35:18] Production.INFO: ProcessCDR(1,14077536,1,1,2) [2024-12-22 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077536', 'tblTempUsageDetail_20' ) start [2024-12-22 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077536', 'tblTempUsageDetail_20' ) end [2024-12-22 12:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:35:22] Production.INFO: ==20852== Releasing lock... [2024-12-22 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:35:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 12:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:36:04 [end_date_ymd] => 2024-12-22 12:36:04 [RateCDR] => 1 ) [2024-12-22 12:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:36:04' and `end` < '2024-12-22 12:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:36:17] Production.INFO: count ==738 [2024-12-22 12:36:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:36:04 - End Time 2024-12-22 12:36:04 [2024-12-22 12:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077541', 'tblTempUsageDetail_20' ) start [2024-12-22 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077541', 'tblTempUsageDetail_20' ) end [2024-12-22 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077541', 'tblTempVendorCDR_20' ) start [2024-12-22 12:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077541', 'tblTempVendorCDR_20' ) end [2024-12-22 12:36:17] Production.INFO: ProcessCDR(1,14077541,1,1,2) [2024-12-22 12:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077541', 'tblTempUsageDetail_20' ) start [2024-12-22 12:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077541', 'tblTempUsageDetail_20' ) end [2024-12-22 12:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:36:21] Production.INFO: ==20925== Releasing lock... [2024-12-22 12:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:36:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:37:04 [end_date_ymd] => 2024-12-22 12:37:04 [RateCDR] => 1 ) [2024-12-22 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-22 09:37:04' and `end` < '2024-12-22 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-22 12:37:20] Production.INFO: count ==739 [2024-12-22 12:37:20] Production.ERROR: pbx CDR StartTime 2024-12-22 09:37:04 - End Time 2024-12-22 12:37:04 [2024-12-22 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077546', 'tblTempUsageDetail_20' ) start [2024-12-22 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077546', 'tblTempUsageDetail_20' ) end [2024-12-22 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077546', 'tblTempVendorCDR_20' ) start [2024-12-22 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077546', 'tblTempVendorCDR_20' ) end [2024-12-22 12:37:20] Production.INFO: ProcessCDR(1,14077546,1,1,2) [2024-12-22 12:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077546', 'tblTempUsageDetail_20' ) start [2024-12-22 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077546', 'tblTempUsageDetail_20' ) end [2024-12-22 12:37:25] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:37:25] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:37:25] Production.INFO: ==20997== Releasing lock... [2024-12-22 12:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:37:25] Production.INFO: 34 MB #Memory Used# [2024-12-22 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:38:05 [end_date_ymd] => 2024-12-22 12:38:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:38:05' and `end` < '2024-12-22 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-22 12:38:18] Production.INFO: count ==739 [2024-12-22 12:38:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:38:05 - End Time 2024-12-22 12:38:05 [2024-12-22 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077551', 'tblTempUsageDetail_20' ) start [2024-12-22 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077551', 'tblTempUsageDetail_20' ) end [2024-12-22 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077551', 'tblTempVendorCDR_20' ) start [2024-12-22 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077551', 'tblTempVendorCDR_20' ) end [2024-12-22 12:38:18] Production.INFO: ProcessCDR(1,14077551,1,1,2) [2024-12-22 12:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077551', 'tblTempUsageDetail_20' ) start [2024-12-22 12:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077551', 'tblTempUsageDetail_20' ) end [2024-12-22 12:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:38:21] Production.INFO: ==21110== Releasing lock... [2024-12-22 12:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:38:21] Production.INFO: 34 MB #Memory Used# [2024-12-22 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:39:05 [end_date_ymd] => 2024-12-22 12:39:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:39:05' and `end` < '2024-12-22 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-22 12:39:17] Production.INFO: count ==739 [2024-12-22 12:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:39:05 - End Time 2024-12-22 12:39:05 [2024-12-22 12:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077556', 'tblTempUsageDetail_20' ) start [2024-12-22 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077556', 'tblTempUsageDetail_20' ) end [2024-12-22 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077556', 'tblTempVendorCDR_20' ) start [2024-12-22 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077556', 'tblTempVendorCDR_20' ) end [2024-12-22 12:39:17] Production.INFO: ProcessCDR(1,14077556,1,1,2) [2024-12-22 12:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077556', 'tblTempUsageDetail_20' ) start [2024-12-22 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077556', 'tblTempUsageDetail_20' ) end [2024-12-22 12:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:39:22] Production.INFO: ==21185== Releasing lock... [2024-12-22 12:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:39:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:40:05 [end_date_ymd] => 2024-12-22 12:40:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:40:05' and `end` < '2024-12-22 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-22 12:40:17] Production.INFO: count ==742 [2024-12-22 12:40:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:40:05 - End Time 2024-12-22 12:40:05 [2024-12-22 12:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077561', 'tblTempUsageDetail_20' ) start [2024-12-22 12:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077561', 'tblTempUsageDetail_20' ) end [2024-12-22 12:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077561', 'tblTempVendorCDR_20' ) start [2024-12-22 12:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077561', 'tblTempVendorCDR_20' ) end [2024-12-22 12:40:17] Production.INFO: ProcessCDR(1,14077561,1,1,2) [2024-12-22 12:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077561', 'tblTempUsageDetail_20' ) start [2024-12-22 12:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077561', 'tblTempUsageDetail_20' ) end [2024-12-22 12:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:40:21] Production.INFO: ==21260== Releasing lock... [2024-12-22 12:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:40:21] Production.INFO: 34 MB #Memory Used# [2024-12-22 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:41:04 [end_date_ymd] => 2024-12-22 12:41:04 [RateCDR] => 1 ) [2024-12-22 12:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:41:04' and `end` < '2024-12-22 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-22 12:41:17] Production.INFO: count ==751 [2024-12-22 12:41:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:41:04 - End Time 2024-12-22 12:41:04 [2024-12-22 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077567', 'tblTempUsageDetail_20' ) start [2024-12-22 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077567', 'tblTempUsageDetail_20' ) end [2024-12-22 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077567', 'tblTempVendorCDR_20' ) start [2024-12-22 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077567', 'tblTempVendorCDR_20' ) end [2024-12-22 12:41:18] Production.INFO: ProcessCDR(1,14077567,1,1,2) [2024-12-22 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077567', 'tblTempUsageDetail_20' ) start [2024-12-22 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077567', 'tblTempUsageDetail_20' ) end [2024-12-22 12:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:41:22] Production.INFO: ==21338== Releasing lock... [2024-12-22 12:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:41:22] Production.INFO: 34 MB #Memory Used# [2024-12-22 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:42:05 [end_date_ymd] => 2024-12-22 12:42:05 [RateCDR] => 1 ) [2024-12-22 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:42:05' and `end` < '2024-12-22 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:42:17] Production.INFO: count ==752 [2024-12-22 12:42:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:42:05 - End Time 2024-12-22 12:42:05 [2024-12-22 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077572', 'tblTempUsageDetail_20' ) start [2024-12-22 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077572', 'tblTempUsageDetail_20' ) end [2024-12-22 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077572', 'tblTempVendorCDR_20' ) start [2024-12-22 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077572', 'tblTempVendorCDR_20' ) end [2024-12-22 12:42:18] Production.INFO: ProcessCDR(1,14077572,1,1,2) [2024-12-22 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077572', 'tblTempUsageDetail_20' ) start [2024-12-22 12:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077572', 'tblTempUsageDetail_20' ) end [2024-12-22 12:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:42:22] Production.INFO: ==21413== Releasing lock... [2024-12-22 12:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:42:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-22 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:43:04 [end_date_ymd] => 2024-12-22 12:43:04 [RateCDR] => 1 ) [2024-12-22 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-22 09:43:04' and `end` < '2024-12-22 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-22 12:43:16] Production.INFO: count ==755 [2024-12-22 12:43:16] Production.ERROR: pbx CDR StartTime 2024-12-22 09:43:04 - End Time 2024-12-22 12:43:04 [2024-12-22 12:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077577', 'tblTempUsageDetail_20' ) start [2024-12-22 12:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077577', 'tblTempUsageDetail_20' ) end [2024-12-22 12:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077577', 'tblTempVendorCDR_20' ) start [2024-12-22 12:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077577', 'tblTempVendorCDR_20' ) end [2024-12-22 12:43:16] Production.INFO: ProcessCDR(1,14077577,1,1,2) [2024-12-22 12:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077577', 'tblTempUsageDetail_20' ) start [2024-12-22 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077577', 'tblTempUsageDetail_20' ) end [2024-12-22 12:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:43:21] Production.INFO: ==21488== Releasing lock... [2024-12-22 12:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:43:21] Production.INFO: 34 MB #Memory Used# [2024-12-22 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:44:05 [end_date_ymd] => 2024-12-22 12:44:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:44:05' and `end` < '2024-12-22 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-22 12:44:17] Production.INFO: count ==758 [2024-12-22 12:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:44:05 - End Time 2024-12-22 12:44:05 [2024-12-22 12:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077582', 'tblTempUsageDetail_20' ) start [2024-12-22 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077582', 'tblTempUsageDetail_20' ) end [2024-12-22 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077582', 'tblTempVendorCDR_20' ) start [2024-12-22 12:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077582', 'tblTempVendorCDR_20' ) end [2024-12-22 12:44:17] Production.INFO: ProcessCDR(1,14077582,1,1,2) [2024-12-22 12:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077582', 'tblTempUsageDetail_20' ) start [2024-12-22 12:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077582', 'tblTempUsageDetail_20' ) end [2024-12-22 12:44:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:44:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:44:22] Production.INFO: ==21564== Releasing lock... [2024-12-22 12:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:44:22] Production.INFO: 34 MB #Memory Used# [2024-12-22 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:45:04 [end_date_ymd] => 2024-12-22 12:45:04 [RateCDR] => 1 ) [2024-12-22 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-22 09:45:04' and `end` < '2024-12-22 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-22 12:45:16] Production.INFO: count ==760 [2024-12-22 12:45:16] Production.ERROR: pbx CDR StartTime 2024-12-22 09:45:04 - End Time 2024-12-22 12:45:04 [2024-12-22 12:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077587', 'tblTempUsageDetail_20' ) start [2024-12-22 12:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077587', 'tblTempUsageDetail_20' ) end [2024-12-22 12:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077587', 'tblTempVendorCDR_20' ) start [2024-12-22 12:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077587', 'tblTempVendorCDR_20' ) end [2024-12-22 12:45:16] Production.INFO: ProcessCDR(1,14077587,1,1,2) [2024-12-22 12:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077587', 'tblTempUsageDetail_20' ) start [2024-12-22 12:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077587', 'tblTempUsageDetail_20' ) end [2024-12-22 12:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:45:21] Production.INFO: ==21637== Releasing lock... [2024-12-22 12:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:45:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-22 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:46:05 [end_date_ymd] => 2024-12-22 12:46:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:46:05' and `end` < '2024-12-22 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-22 12:46:17] Production.INFO: count ==762 [2024-12-22 12:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:46:05 - End Time 2024-12-22 12:46:05 [2024-12-22 12:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077592', 'tblTempUsageDetail_20' ) start [2024-12-22 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077592', 'tblTempUsageDetail_20' ) end [2024-12-22 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077592', 'tblTempVendorCDR_20' ) start [2024-12-22 12:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077592', 'tblTempVendorCDR_20' ) end [2024-12-22 12:46:17] Production.INFO: ProcessCDR(1,14077592,1,1,2) [2024-12-22 12:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077592', 'tblTempUsageDetail_20' ) start [2024-12-22 12:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077592', 'tblTempUsageDetail_20' ) end [2024-12-22 12:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:46:22] Production.INFO: ==21710== Releasing lock... [2024-12-22 12:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:46:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:47:05 [end_date_ymd] => 2024-12-22 12:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:47:05' and `end` < '2024-12-22 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-22 12:47:18] Production.INFO: count ==764 [2024-12-22 12:47:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:47:05 - End Time 2024-12-22 12:47:05 [2024-12-22 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077597', 'tblTempUsageDetail_20' ) start [2024-12-22 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077597', 'tblTempUsageDetail_20' ) end [2024-12-22 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077597', 'tblTempVendorCDR_20' ) start [2024-12-22 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077597', 'tblTempVendorCDR_20' ) end [2024-12-22 12:47:18] Production.INFO: ProcessCDR(1,14077597,1,1,2) [2024-12-22 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077597', 'tblTempUsageDetail_20' ) start [2024-12-22 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077597', 'tblTempUsageDetail_20' ) end [2024-12-22 12:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:47:22] Production.INFO: ==21783== Releasing lock... [2024-12-22 12:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:47:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-22 12:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:48:04 [end_date_ymd] => 2024-12-22 12:48:04 [RateCDR] => 1 ) [2024-12-22 12: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-22 09:48:04' and `end` < '2024-12-22 12: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-22 12:48:18] Production.INFO: count ==762 [2024-12-22 12:48:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:48:04 - End Time 2024-12-22 12:48:04 [2024-12-22 12:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077602', 'tblTempUsageDetail_20' ) start [2024-12-22 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077602', 'tblTempUsageDetail_20' ) end [2024-12-22 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077602', 'tblTempVendorCDR_20' ) start [2024-12-22 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077602', 'tblTempVendorCDR_20' ) end [2024-12-22 12:48:18] Production.INFO: ProcessCDR(1,14077602,1,1,2) [2024-12-22 12:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077602', 'tblTempUsageDetail_20' ) start [2024-12-22 12:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077602', 'tblTempUsageDetail_20' ) end [2024-12-22 12:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:48:22] Production.INFO: ==21860== Releasing lock... [2024-12-22 12:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:48:22] Production.INFO: 34 MB #Memory Used# [2024-12-22 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:49:05 [end_date_ymd] => 2024-12-22 12:49:05 [RateCDR] => 1 ) [2024-12-22 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:49:05' and `end` < '2024-12-22 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:49:17] Production.INFO: count ==762 [2024-12-22 12:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:49:05 - End Time 2024-12-22 12:49:05 [2024-12-22 12:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077607', 'tblTempUsageDetail_20' ) start [2024-12-22 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077607', 'tblTempUsageDetail_20' ) end [2024-12-22 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077607', 'tblTempVendorCDR_20' ) start [2024-12-22 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077607', 'tblTempVendorCDR_20' ) end [2024-12-22 12:49:17] Production.INFO: ProcessCDR(1,14077607,1,1,2) [2024-12-22 12:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077607', 'tblTempUsageDetail_20' ) start [2024-12-22 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077607', 'tblTempUsageDetail_20' ) end [2024-12-22 12:49:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:49:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:49:22] Production.INFO: ==21933== Releasing lock... [2024-12-22 12:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:49:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:50:05 [end_date_ymd] => 2024-12-22 12:50:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:50:05' and `end` < '2024-12-22 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-22 12:50:17] Production.INFO: count ==762 [2024-12-22 12:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:50:05 - End Time 2024-12-22 12:50:05 [2024-12-22 12:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077613', 'tblTempUsageDetail_20' ) start [2024-12-22 12:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077613', 'tblTempUsageDetail_20' ) end [2024-12-22 12:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077613', 'tblTempVendorCDR_20' ) start [2024-12-22 12:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077613', 'tblTempVendorCDR_20' ) end [2024-12-22 12:50:17] Production.INFO: ProcessCDR(1,14077613,1,1,2) [2024-12-22 12:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077613', 'tblTempUsageDetail_20' ) start [2024-12-22 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077613', 'tblTempUsageDetail_20' ) end [2024-12-22 12:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:50:22] Production.INFO: ==22010== Releasing lock... [2024-12-22 12:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:50:22] Production.INFO: 34 MB #Memory Used# [2024-12-22 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:51:05 [end_date_ymd] => 2024-12-22 12:51:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:51:05' and `end` < '2024-12-22 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-22 12:51:17] Production.INFO: count ==778 [2024-12-22 12:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:51:05 - End Time 2024-12-22 12:51:05 [2024-12-22 12:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077618', 'tblTempUsageDetail_20' ) start [2024-12-22 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077618', 'tblTempUsageDetail_20' ) end [2024-12-22 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077618', 'tblTempVendorCDR_20' ) start [2024-12-22 12:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077618', 'tblTempVendorCDR_20' ) end [2024-12-22 12:51:17] Production.INFO: ProcessCDR(1,14077618,1,1,2) [2024-12-22 12:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077618', 'tblTempUsageDetail_20' ) start [2024-12-22 12:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077618', 'tblTempUsageDetail_20' ) end [2024-12-22 12:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:51:22] Production.INFO: ==22086== Releasing lock... [2024-12-22 12:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:51:22] Production.INFO: 34 MB #Memory Used# [2024-12-22 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:52:05 [end_date_ymd] => 2024-12-22 12:52:05 [RateCDR] => 1 ) [2024-12-22 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:52:05' and `end` < '2024-12-22 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:52:17] Production.INFO: count ==783 [2024-12-22 12:52:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:52:05 - End Time 2024-12-22 12:52:05 [2024-12-22 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077623', 'tblTempUsageDetail_20' ) start [2024-12-22 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077623', 'tblTempUsageDetail_20' ) end [2024-12-22 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077623', 'tblTempVendorCDR_20' ) start [2024-12-22 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077623', 'tblTempVendorCDR_20' ) end [2024-12-22 12:52:18] Production.INFO: ProcessCDR(1,14077623,1,1,2) [2024-12-22 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077623', 'tblTempUsageDetail_20' ) start [2024-12-22 12:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077623', 'tblTempUsageDetail_20' ) end [2024-12-22 12:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:52:22] Production.INFO: ==22164== Releasing lock... [2024-12-22 12:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:52:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:53:04 [end_date_ymd] => 2024-12-22 12:53:04 [RateCDR] => 1 ) [2024-12-22 12:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:53:04' and `end` < '2024-12-22 12:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:53:16] Production.INFO: count ==785 [2024-12-22 12:53:16] Production.ERROR: pbx CDR StartTime 2024-12-22 09:53:04 - End Time 2024-12-22 12:53:04 [2024-12-22 12:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077628', 'tblTempUsageDetail_20' ) start [2024-12-22 12:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077628', 'tblTempUsageDetail_20' ) end [2024-12-22 12:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077628', 'tblTempVendorCDR_20' ) start [2024-12-22 12:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077628', 'tblTempVendorCDR_20' ) end [2024-12-22 12:53:16] Production.INFO: ProcessCDR(1,14077628,1,1,2) [2024-12-22 12:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077628', 'tblTempUsageDetail_20' ) start [2024-12-22 12:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077628', 'tblTempUsageDetail_20' ) end [2024-12-22 12:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:53:20] Production.INFO: ==22274== Releasing lock... [2024-12-22 12:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:53:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-22 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:54:05 [end_date_ymd] => 2024-12-22 12:54:05 [RateCDR] => 1 ) [2024-12-22 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:54:05' and `end` < '2024-12-22 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:54:18] Production.INFO: count ==788 [2024-12-22 12:54:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:54:05 - End Time 2024-12-22 12:54:05 [2024-12-22 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077633', 'tblTempUsageDetail_20' ) start [2024-12-22 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077633', 'tblTempUsageDetail_20' ) end [2024-12-22 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077633', 'tblTempVendorCDR_20' ) start [2024-12-22 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077633', 'tblTempVendorCDR_20' ) end [2024-12-22 12:54:18] Production.INFO: ProcessCDR(1,14077633,1,1,2) [2024-12-22 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077633', 'tblTempUsageDetail_20' ) start [2024-12-22 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077633', 'tblTempUsageDetail_20' ) end [2024-12-22 12:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:54:23] Production.INFO: ==22349== Releasing lock... [2024-12-22 12:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:54:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:55:05 [end_date_ymd] => 2024-12-22 12:55:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:55:05' and `end` < '2024-12-22 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-22 12:55:18] Production.INFO: count ==790 [2024-12-22 12:55:18] Production.ERROR: pbx CDR StartTime 2024-12-22 09:55:05 - End Time 2024-12-22 12:55:05 [2024-12-22 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077638', 'tblTempUsageDetail_20' ) start [2024-12-22 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077638', 'tblTempUsageDetail_20' ) end [2024-12-22 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077638', 'tblTempVendorCDR_20' ) start [2024-12-22 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077638', 'tblTempVendorCDR_20' ) end [2024-12-22 12:55:18] Production.INFO: ProcessCDR(1,14077638,1,1,2) [2024-12-22 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077638', 'tblTempUsageDetail_20' ) start [2024-12-22 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077638', 'tblTempUsageDetail_20' ) end [2024-12-22 12:55:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:55:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:55:22] Production.INFO: ==22428== Releasing lock... [2024-12-22 12:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:55:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:56:05 [end_date_ymd] => 2024-12-22 12:56:05 [RateCDR] => 1 ) [2024-12-22 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:56:05' and `end` < '2024-12-22 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:56:17] Production.INFO: count ==792 [2024-12-22 12:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:56:05 - End Time 2024-12-22 12:56:05 [2024-12-22 12:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077643', 'tblTempUsageDetail_20' ) start [2024-12-22 12:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077643', 'tblTempUsageDetail_20' ) end [2024-12-22 12:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077643', 'tblTempVendorCDR_20' ) start [2024-12-22 12:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077643', 'tblTempVendorCDR_20' ) end [2024-12-22 12:56:17] Production.INFO: ProcessCDR(1,14077643,1,1,2) [2024-12-22 12:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077643', 'tblTempUsageDetail_20' ) start [2024-12-22 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077643', 'tblTempUsageDetail_20' ) end [2024-12-22 12:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:56:22] Production.INFO: ==22501== Releasing lock... [2024-12-22 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:56:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:57:04 [end_date_ymd] => 2024-12-22 12:57:04 [RateCDR] => 1 ) [2024-12-22 12:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 09:57:04' and `end` < '2024-12-22 12:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 12:57:16] Production.INFO: count ==794 [2024-12-22 12:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:57:04 - End Time 2024-12-22 12:57:04 [2024-12-22 12:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077648', 'tblTempUsageDetail_20' ) start [2024-12-22 12:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077648', 'tblTempUsageDetail_20' ) end [2024-12-22 12:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077648', 'tblTempVendorCDR_20' ) start [2024-12-22 12:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077648', 'tblTempVendorCDR_20' ) end [2024-12-22 12:57:17] Production.INFO: ProcessCDR(1,14077648,1,1,2) [2024-12-22 12:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077648', 'tblTempUsageDetail_20' ) start [2024-12-22 12:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077648', 'tblTempUsageDetail_20' ) end [2024-12-22 12:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:57:21] Production.INFO: ==22578== Releasing lock... [2024-12-22 12:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:57:21] Production.INFO: 34.25 MB #Memory Used# [2024-12-22 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:58:05 [end_date_ymd] => 2024-12-22 12:58:05 [RateCDR] => 1 ) [2024-12-22 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-22 09:58:05' and `end` < '2024-12-22 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-22 12:58:19] Production.INFO: count ==795 [2024-12-22 12:58:19] Production.ERROR: pbx CDR StartTime 2024-12-22 09:58:05 - End Time 2024-12-22 12:58:05 [2024-12-22 12:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077653', 'tblTempUsageDetail_20' ) start [2024-12-22 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077653', 'tblTempUsageDetail_20' ) end [2024-12-22 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077653', 'tblTempVendorCDR_20' ) start [2024-12-22 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077653', 'tblTempVendorCDR_20' ) end [2024-12-22 12:58:19] Production.INFO: ProcessCDR(1,14077653,1,1,2) [2024-12-22 12:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077653', 'tblTempUsageDetail_20' ) start [2024-12-22 12:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077653', 'tblTempUsageDetail_20' ) end [2024-12-22 12:58:24] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:58:24] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:58:24] Production.INFO: ==22651== Releasing lock... [2024-12-22 12:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:58:24] Production.INFO: 34 MB #Memory Used# [2024-12-22 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 09:59:04 [end_date_ymd] => 2024-12-22 12:59:04 [RateCDR] => 1 ) [2024-12-22 12: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-22 09:59:04' and `end` < '2024-12-22 12: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-22 12:59:16] Production.INFO: count ==796 [2024-12-22 12:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 09:59:04 - End Time 2024-12-22 12:59:04 [2024-12-22 12:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077658', 'tblTempUsageDetail_20' ) start [2024-12-22 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077658', 'tblTempUsageDetail_20' ) end [2024-12-22 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077658', 'tblTempVendorCDR_20' ) start [2024-12-22 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077658', 'tblTempVendorCDR_20' ) end [2024-12-22 12:59:17] Production.INFO: ProcessCDR(1,14077658,1,1,2) [2024-12-22 12:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 12:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077658', 'tblTempUsageDetail_20' ) start [2024-12-22 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077658', 'tblTempUsageDetail_20' ) end [2024-12-22 12:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 12:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 12:59:21] Production.INFO: ==22727== Releasing lock... [2024-12-22 12:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 12:59:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:00:05 [end_date_ymd] => 2024-12-22 13:00:05 [RateCDR] => 1 ) [2024-12-22 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:00:05' and `end` < '2024-12-22 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:00:18] Production.INFO: count ==798 [2024-12-22 13:00:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:00:05 - End Time 2024-12-22 13:00:05 [2024-12-22 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077664', 'tblTempUsageDetail_20' ) start [2024-12-22 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077664', 'tblTempUsageDetail_20' ) end [2024-12-22 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077664', 'tblTempVendorCDR_20' ) start [2024-12-22 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077664', 'tblTempVendorCDR_20' ) end [2024-12-22 13:00:18] Production.INFO: ProcessCDR(1,14077664,1,1,2) [2024-12-22 13:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077664', 'tblTempUsageDetail_20' ) start [2024-12-22 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077664', 'tblTempUsageDetail_20' ) end [2024-12-22 13:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:00:22] Production.INFO: ==22804== Releasing lock... [2024-12-22 13:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:00:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:01:05 [end_date_ymd] => 2024-12-22 13:01:05 [RateCDR] => 1 ) [2024-12-22 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:01:05' and `end` < '2024-12-22 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:01:17] Production.INFO: count ==822 [2024-12-22 13:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:01:05 - End Time 2024-12-22 13:01:05 [2024-12-22 13:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077669', 'tblTempUsageDetail_20' ) start [2024-12-22 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077669', 'tblTempUsageDetail_20' ) end [2024-12-22 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077669', 'tblTempVendorCDR_20' ) start [2024-12-22 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077669', 'tblTempVendorCDR_20' ) end [2024-12-22 13:01:17] Production.INFO: ProcessCDR(1,14077669,1,1,2) [2024-12-22 13:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077669', 'tblTempUsageDetail_20' ) start [2024-12-22 13:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077669', 'tblTempUsageDetail_20' ) end [2024-12-22 13:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:01:20] Production.INFO: ==22893== Releasing lock... [2024-12-22 13:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:01:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:02:05 [end_date_ymd] => 2024-12-22 13:02:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:02:05' and `end` < '2024-12-22 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-22 13:02:19] Production.INFO: count ==826 [2024-12-22 13:02:19] Production.ERROR: pbx CDR StartTime 2024-12-22 10:02:05 - End Time 2024-12-22 13:02:05 [2024-12-22 13:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077674', 'tblTempUsageDetail_20' ) start [2024-12-22 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077674', 'tblTempUsageDetail_20' ) end [2024-12-22 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077674', 'tblTempVendorCDR_20' ) start [2024-12-22 13:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077674', 'tblTempVendorCDR_20' ) end [2024-12-22 13:02:19] Production.INFO: ProcessCDR(1,14077674,1,1,2) [2024-12-22 13:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077674', 'tblTempUsageDetail_20' ) start [2024-12-22 13:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077674', 'tblTempUsageDetail_20' ) end [2024-12-22 13:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:02:22] Production.INFO: ==22965== Releasing lock... [2024-12-22 13:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:02:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 13:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:03:04 [end_date_ymd] => 2024-12-22 13:03:04 [RateCDR] => 1 ) [2024-12-22 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-22 10:03:04' and `end` < '2024-12-22 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-22 13:03:17] Production.INFO: count ==824 [2024-12-22 13:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:03:04 - End Time 2024-12-22 13:03:04 [2024-12-22 13:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077679', 'tblTempUsageDetail_20' ) start [2024-12-22 13:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077679', 'tblTempUsageDetail_20' ) end [2024-12-22 13:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077679', 'tblTempVendorCDR_20' ) start [2024-12-22 13:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077679', 'tblTempVendorCDR_20' ) end [2024-12-22 13:03:17] Production.INFO: ProcessCDR(1,14077679,1,1,2) [2024-12-22 13:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077679', 'tblTempUsageDetail_20' ) start [2024-12-22 13:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077679', 'tblTempUsageDetail_20' ) end [2024-12-22 13:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:03:20] Production.INFO: ==23035== Releasing lock... [2024-12-22 13:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:03:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:04:05 [end_date_ymd] => 2024-12-22 13:04:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:04:05' and `end` < '2024-12-22 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-22 13:04:17] Production.INFO: count ==822 [2024-12-22 13:04:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:04:05 - End Time 2024-12-22 13:04:05 [2024-12-22 13:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077684', 'tblTempUsageDetail_20' ) start [2024-12-22 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077684', 'tblTempUsageDetail_20' ) end [2024-12-22 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077684', 'tblTempVendorCDR_20' ) start [2024-12-22 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077684', 'tblTempVendorCDR_20' ) end [2024-12-22 13:04:18] Production.INFO: ProcessCDR(1,14077684,1,1,2) [2024-12-22 13:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077684', 'tblTempUsageDetail_20' ) start [2024-12-22 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077684', 'tblTempUsageDetail_20' ) end [2024-12-22 13:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:04:22] Production.INFO: ==23111== Releasing lock... [2024-12-22 13:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:04:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:05:05 [end_date_ymd] => 2024-12-22 13:05:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:05:05' and `end` < '2024-12-22 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-22 13:05:18] Production.INFO: count ==821 [2024-12-22 13:05:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:05:05 - End Time 2024-12-22 13:05:05 [2024-12-22 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077689', 'tblTempUsageDetail_20' ) start [2024-12-22 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077689', 'tblTempUsageDetail_20' ) end [2024-12-22 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077689', 'tblTempVendorCDR_20' ) start [2024-12-22 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077689', 'tblTempVendorCDR_20' ) end [2024-12-22 13:05:19] Production.INFO: ProcessCDR(1,14077689,1,1,2) [2024-12-22 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077689', 'tblTempUsageDetail_20' ) start [2024-12-22 13:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077689', 'tblTempUsageDetail_20' ) end [2024-12-22 13:05:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:05:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:05:23] Production.INFO: ==23187== Releasing lock... [2024-12-22 13:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:05:23] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:06:05 [end_date_ymd] => 2024-12-22 13:06:05 [RateCDR] => 1 ) [2024-12-22 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:06:05' and `end` < '2024-12-22 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:06:19] Production.INFO: count ==823 [2024-12-22 13:06:19] Production.ERROR: pbx CDR StartTime 2024-12-22 10:06:05 - End Time 2024-12-22 13:06:05 [2024-12-22 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077694', 'tblTempUsageDetail_20' ) start [2024-12-22 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077694', 'tblTempUsageDetail_20' ) end [2024-12-22 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077694', 'tblTempVendorCDR_20' ) start [2024-12-22 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077694', 'tblTempVendorCDR_20' ) end [2024-12-22 13:06:19] Production.INFO: ProcessCDR(1,14077694,1,1,2) [2024-12-22 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077694', 'tblTempUsageDetail_20' ) start [2024-12-22 13:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077694', 'tblTempUsageDetail_20' ) end [2024-12-22 13:06:24] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:06:24] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:06:24] Production.INFO: ==23260== Releasing lock... [2024-12-22 13:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:06:24] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:07:05 [end_date_ymd] => 2024-12-22 13:07:05 [RateCDR] => 1 ) [2024-12-22 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:07:05' and `end` < '2024-12-22 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:07:20] Production.INFO: count ==822 [2024-12-22 13:07:20] Production.ERROR: pbx CDR StartTime 2024-12-22 10:07:05 - End Time 2024-12-22 13:07:05 [2024-12-22 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077699', 'tblTempUsageDetail_20' ) start [2024-12-22 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077699', 'tblTempUsageDetail_20' ) end [2024-12-22 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077699', 'tblTempVendorCDR_20' ) start [2024-12-22 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077699', 'tblTempVendorCDR_20' ) end [2024-12-22 13:07:20] Production.INFO: ProcessCDR(1,14077699,1,1,2) [2024-12-22 13:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077699', 'tblTempUsageDetail_20' ) start [2024-12-22 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077699', 'tblTempUsageDetail_20' ) end [2024-12-22 13:07:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:07:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:07:23] Production.INFO: ==23335== Releasing lock... [2024-12-22 13:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:07:23] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 13:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:08:04 [end_date_ymd] => 2024-12-22 13:08:04 [RateCDR] => 1 ) [2024-12-22 13:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:08:04' and `end` < '2024-12-22 13:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:08:18] Production.INFO: count ==821 [2024-12-22 13:08:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:08:04 - End Time 2024-12-22 13:08:04 [2024-12-22 13:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077704', 'tblTempUsageDetail_20' ) start [2024-12-22 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077704', 'tblTempUsageDetail_20' ) end [2024-12-22 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077704', 'tblTempVendorCDR_20' ) start [2024-12-22 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077704', 'tblTempVendorCDR_20' ) end [2024-12-22 13:08:18] Production.INFO: ProcessCDR(1,14077704,1,1,2) [2024-12-22 13:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077704', 'tblTempUsageDetail_20' ) start [2024-12-22 13:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077704', 'tblTempUsageDetail_20' ) end [2024-12-22 13:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:08:21] Production.INFO: ==23406== Releasing lock... [2024-12-22 13:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:08:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:09:05 [end_date_ymd] => 2024-12-22 13:09:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:09:05' and `end` < '2024-12-22 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-22 13:09:17] Production.INFO: count ==821 [2024-12-22 13:09:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:09:05 - End Time 2024-12-22 13:09:05 [2024-12-22 13:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077709', 'tblTempUsageDetail_20' ) start [2024-12-22 13:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077709', 'tblTempUsageDetail_20' ) end [2024-12-22 13:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077709', 'tblTempVendorCDR_20' ) start [2024-12-22 13:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077709', 'tblTempVendorCDR_20' ) end [2024-12-22 13:09:17] Production.INFO: ProcessCDR(1,14077709,1,1,2) [2024-12-22 13:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077709', 'tblTempUsageDetail_20' ) start [2024-12-22 13:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077709', 'tblTempUsageDetail_20' ) end [2024-12-22 13:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:09:21] Production.INFO: ==23521== Releasing lock... [2024-12-22 13:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:09:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:10:06 [end_date_ymd] => 2024-12-22 13:10:06 [RateCDR] => 1 ) [2024-12-22 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:10:06' and `end` < '2024-12-22 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:10:18] Production.INFO: count ==823 [2024-12-22 13:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:10:06 - End Time 2024-12-22 13:10:06 [2024-12-22 13:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077714', 'tblTempUsageDetail_20' ) start [2024-12-22 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077714', 'tblTempUsageDetail_20' ) end [2024-12-22 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077714', 'tblTempVendorCDR_20' ) start [2024-12-22 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077714', 'tblTempVendorCDR_20' ) end [2024-12-22 13:10:18] Production.INFO: ProcessCDR(1,14077714,1,1,2) [2024-12-22 13:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077714', 'tblTempUsageDetail_20' ) start [2024-12-22 13:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077714', 'tblTempUsageDetail_20' ) end [2024-12-22 13:10:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:10:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:10:23] Production.INFO: ==23596== Releasing lock... [2024-12-22 13:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:10:23] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:11:05 [end_date_ymd] => 2024-12-22 13:11:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:11:05' and `end` < '2024-12-22 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-22 13:11:18] Production.INFO: count ==857 [2024-12-22 13:11:19] Production.ERROR: pbx CDR StartTime 2024-12-22 10:11:05 - End Time 2024-12-22 13:11:05 [2024-12-22 13:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077720', 'tblTempUsageDetail_20' ) start [2024-12-22 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077720', 'tblTempUsageDetail_20' ) end [2024-12-22 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077720', 'tblTempVendorCDR_20' ) start [2024-12-22 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077720', 'tblTempVendorCDR_20' ) end [2024-12-22 13:11:19] Production.INFO: ProcessCDR(1,14077720,1,1,2) [2024-12-22 13:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077720', 'tblTempUsageDetail_20' ) start [2024-12-22 13:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077720', 'tblTempUsageDetail_20' ) end [2024-12-22 13:11:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:11:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:11:23] Production.INFO: ==23672== Releasing lock... [2024-12-22 13:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:11:23] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 13:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:12:04 [end_date_ymd] => 2024-12-22 13:12:04 [RateCDR] => 1 ) [2024-12-22 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-22 10:12:04' and `end` < '2024-12-22 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-22 13:12:17] Production.INFO: count ==858 [2024-12-22 13:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:12:04 - End Time 2024-12-22 13:12:04 [2024-12-22 13:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077725', 'tblTempUsageDetail_20' ) start [2024-12-22 13:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077725', 'tblTempUsageDetail_20' ) end [2024-12-22 13:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077725', 'tblTempVendorCDR_20' ) start [2024-12-22 13:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077725', 'tblTempVendorCDR_20' ) end [2024-12-22 13:12:17] Production.INFO: ProcessCDR(1,14077725,1,1,2) [2024-12-22 13:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077725', 'tblTempUsageDetail_20' ) start [2024-12-22 13:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077725', 'tblTempUsageDetail_20' ) end [2024-12-22 13:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:12:21] Production.INFO: ==23747== Releasing lock... [2024-12-22 13:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:12:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:13:05 [end_date_ymd] => 2024-12-22 13:13:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:13:05' and `end` < '2024-12-22 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-22 13:13:17] Production.INFO: count ==858 [2024-12-22 13:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:13:05 - End Time 2024-12-22 13:13:05 [2024-12-22 13:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077730', 'tblTempUsageDetail_20' ) start [2024-12-22 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077730', 'tblTempUsageDetail_20' ) end [2024-12-22 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077730', 'tblTempVendorCDR_20' ) start [2024-12-22 13:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077730', 'tblTempVendorCDR_20' ) end [2024-12-22 13:13:17] Production.INFO: ProcessCDR(1,14077730,1,1,2) [2024-12-22 13:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077730', 'tblTempUsageDetail_20' ) start [2024-12-22 13:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077730', 'tblTempUsageDetail_20' ) end [2024-12-22 13:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:13:20] Production.INFO: ==23820== Releasing lock... [2024-12-22 13:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:13:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 13:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:14:04 [end_date_ymd] => 2024-12-22 13:14:04 [RateCDR] => 1 ) [2024-12-22 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-22 10:14:04' and `end` < '2024-12-22 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-22 13:14:16] Production.INFO: count ==861 [2024-12-22 13:14:16] Production.ERROR: pbx CDR StartTime 2024-12-22 10:14:04 - End Time 2024-12-22 13:14:04 [2024-12-22 13:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077734', 'tblTempUsageDetail_20' ) start [2024-12-22 13:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077734', 'tblTempUsageDetail_20' ) end [2024-12-22 13:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077734', 'tblTempVendorCDR_20' ) start [2024-12-22 13:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077734', 'tblTempVendorCDR_20' ) end [2024-12-22 13:14:16] Production.INFO: ProcessCDR(1,14077734,1,1,2) [2024-12-22 13:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077734', 'tblTempUsageDetail_20' ) start [2024-12-22 13:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077734', 'tblTempUsageDetail_20' ) end [2024-12-22 13:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:14:21] Production.INFO: ==23895== Releasing lock... [2024-12-22 13:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:14:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:15:04 [end_date_ymd] => 2024-12-22 13:15:04 [RateCDR] => 1 ) [2024-12-22 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-22 10:15:04' and `end` < '2024-12-22 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-22 13:15:17] Production.INFO: count ==863 [2024-12-22 13:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:15:04 - End Time 2024-12-22 13:15:04 [2024-12-22 13:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077740', 'tblTempUsageDetail_20' ) start [2024-12-22 13:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077740', 'tblTempUsageDetail_20' ) end [2024-12-22 13:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077740', 'tblTempVendorCDR_20' ) start [2024-12-22 13:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077740', 'tblTempVendorCDR_20' ) end [2024-12-22 13:15:17] Production.INFO: ProcessCDR(1,14077740,1,1,2) [2024-12-22 13:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077740', 'tblTempUsageDetail_20' ) start [2024-12-22 13:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077740', 'tblTempUsageDetail_20' ) end [2024-12-22 13:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:15:22] Production.INFO: ==23969== Releasing lock... [2024-12-22 13:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:15:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:16:04 [end_date_ymd] => 2024-12-22 13:16:04 [RateCDR] => 1 ) [2024-12-22 13:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:16:04' and `end` < '2024-12-22 13:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:16:16] Production.INFO: count ==871 [2024-12-22 13:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:16:04 - End Time 2024-12-22 13:16:04 [2024-12-22 13:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077745', 'tblTempUsageDetail_20' ) start [2024-12-22 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077745', 'tblTempUsageDetail_20' ) end [2024-12-22 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077745', 'tblTempVendorCDR_20' ) start [2024-12-22 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077745', 'tblTempVendorCDR_20' ) end [2024-12-22 13:16:17] Production.INFO: ProcessCDR(1,14077745,1,1,2) [2024-12-22 13:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077745', 'tblTempUsageDetail_20' ) start [2024-12-22 13:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077745', 'tblTempUsageDetail_20' ) end [2024-12-22 13:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:16:21] Production.INFO: ==24039== Releasing lock... [2024-12-22 13:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:16:21] Production.INFO: 35 MB #Memory Used# [2024-12-22 13:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:17:04 [end_date_ymd] => 2024-12-22 13:17:04 [RateCDR] => 1 ) [2024-12-22 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-22 10:17:04' and `end` < '2024-12-22 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-22 13:17:17] Production.INFO: count ==868 [2024-12-22 13:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:17:04 - End Time 2024-12-22 13:17:04 [2024-12-22 13:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077750', 'tblTempUsageDetail_20' ) start [2024-12-22 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077750', 'tblTempUsageDetail_20' ) end [2024-12-22 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077750', 'tblTempVendorCDR_20' ) start [2024-12-22 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077750', 'tblTempVendorCDR_20' ) end [2024-12-22 13:17:17] Production.INFO: ProcessCDR(1,14077750,1,1,2) [2024-12-22 13:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077750', 'tblTempUsageDetail_20' ) start [2024-12-22 13:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077750', 'tblTempUsageDetail_20' ) end [2024-12-22 13:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:17:20] Production.INFO: ==24113== Releasing lock... [2024-12-22 13:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:17:20] Production.INFO: 35 MB #Memory Used# [2024-12-22 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:18:05 [end_date_ymd] => 2024-12-22 13:18:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:18:05' and `end` < '2024-12-22 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-22 13:18:17] Production.INFO: count ==867 [2024-12-22 13:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:18:05 - End Time 2024-12-22 13:18:05 [2024-12-22 13:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077755', 'tblTempUsageDetail_20' ) start [2024-12-22 13:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077755', 'tblTempUsageDetail_20' ) end [2024-12-22 13:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077755', 'tblTempVendorCDR_20' ) start [2024-12-22 13:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077755', 'tblTempVendorCDR_20' ) end [2024-12-22 13:18:17] Production.INFO: ProcessCDR(1,14077755,1,1,2) [2024-12-22 13:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077755', 'tblTempUsageDetail_20' ) start [2024-12-22 13:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077755', 'tblTempUsageDetail_20' ) end [2024-12-22 13:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:18:21] Production.INFO: ==24187== Releasing lock... [2024-12-22 13:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:18:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:19:05 [end_date_ymd] => 2024-12-22 13:19:05 [RateCDR] => 1 ) [2024-12-22 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:19:05' and `end` < '2024-12-22 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:19:17] Production.INFO: count ==867 [2024-12-22 13:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:19:05 - End Time 2024-12-22 13:19:05 [2024-12-22 13:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077760', 'tblTempUsageDetail_20' ) start [2024-12-22 13:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077760', 'tblTempUsageDetail_20' ) end [2024-12-22 13:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077760', 'tblTempVendorCDR_20' ) start [2024-12-22 13:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077760', 'tblTempVendorCDR_20' ) end [2024-12-22 13:19:17] Production.INFO: ProcessCDR(1,14077760,1,1,2) [2024-12-22 13:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077760', 'tblTempUsageDetail_20' ) start [2024-12-22 13:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077760', 'tblTempUsageDetail_20' ) end [2024-12-22 13:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:19:21] Production.INFO: ==24262== Releasing lock... [2024-12-22 13:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:19:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:20:06 [end_date_ymd] => 2024-12-22 13:20:06 [RateCDR] => 1 ) [2024-12-22 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-22 10:20:06' and `end` < '2024-12-22 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-22 13:20:19] Production.INFO: count ==865 [2024-12-22 13:20:19] Production.ERROR: pbx CDR StartTime 2024-12-22 10:20:06 - End Time 2024-12-22 13:20:06 [2024-12-22 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077766', 'tblTempUsageDetail_20' ) start [2024-12-22 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077766', 'tblTempUsageDetail_20' ) end [2024-12-22 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077766', 'tblTempVendorCDR_20' ) start [2024-12-22 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077766', 'tblTempVendorCDR_20' ) end [2024-12-22 13:20:19] Production.INFO: ProcessCDR(1,14077766,1,1,2) [2024-12-22 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077766', 'tblTempUsageDetail_20' ) start [2024-12-22 13:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077766', 'tblTempUsageDetail_20' ) end [2024-12-22 13:20:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:20:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:20:23] Production.INFO: ==24338== Releasing lock... [2024-12-22 13:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:20:23] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:21:05 [end_date_ymd] => 2024-12-22 13:21:05 [RateCDR] => 1 ) [2024-12-22 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:21:05' and `end` < '2024-12-22 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:21:17] Production.INFO: count ==882 [2024-12-22 13:21:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:21:05 - End Time 2024-12-22 13:21:05 [2024-12-22 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077771', 'tblTempUsageDetail_20' ) start [2024-12-22 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077771', 'tblTempUsageDetail_20' ) end [2024-12-22 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077771', 'tblTempVendorCDR_20' ) start [2024-12-22 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077771', 'tblTempVendorCDR_20' ) end [2024-12-22 13:21:18] Production.INFO: ProcessCDR(1,14077771,1,1,2) [2024-12-22 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077771', 'tblTempUsageDetail_20' ) start [2024-12-22 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077771', 'tblTempUsageDetail_20' ) end [2024-12-22 13:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:21:22] Production.INFO: ==24414== Releasing lock... [2024-12-22 13:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:21:22] Production.INFO: 35 MB #Memory Used# [2024-12-22 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:22:05 [end_date_ymd] => 2024-12-22 13:22:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:22:05' and `end` < '2024-12-22 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-22 13:22:17] Production.INFO: count ==882 [2024-12-22 13:22:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:22:05 - End Time 2024-12-22 13:22:05 [2024-12-22 13:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077776', 'tblTempUsageDetail_20' ) start [2024-12-22 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077776', 'tblTempUsageDetail_20' ) end [2024-12-22 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077776', 'tblTempVendorCDR_20' ) start [2024-12-22 13:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077776', 'tblTempVendorCDR_20' ) end [2024-12-22 13:22:18] Production.INFO: ProcessCDR(1,14077776,1,1,2) [2024-12-22 13:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077776', 'tblTempUsageDetail_20' ) start [2024-12-22 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077776', 'tblTempUsageDetail_20' ) end [2024-12-22 13:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:22:22] Production.INFO: ==24490== Releasing lock... [2024-12-22 13:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:22:22] Production.INFO: 35 MB #Memory Used# [2024-12-22 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:23:05 [end_date_ymd] => 2024-12-22 13:23:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:23:05' and `end` < '2024-12-22 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-22 13:23:17] Production.INFO: count ==883 [2024-12-22 13:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:23:05 - End Time 2024-12-22 13:23:05 [2024-12-22 13:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077781', 'tblTempUsageDetail_20' ) start [2024-12-22 13:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077781', 'tblTempUsageDetail_20' ) end [2024-12-22 13:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077781', 'tblTempVendorCDR_20' ) start [2024-12-22 13:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077781', 'tblTempVendorCDR_20' ) end [2024-12-22 13:23:17] Production.INFO: ProcessCDR(1,14077781,1,1,2) [2024-12-22 13:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077781', 'tblTempUsageDetail_20' ) start [2024-12-22 13:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077781', 'tblTempUsageDetail_20' ) end [2024-12-22 13:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:23:21] Production.INFO: ==24558== Releasing lock... [2024-12-22 13:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:23:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:24:05 [end_date_ymd] => 2024-12-22 13:24:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:24:05' and `end` < '2024-12-22 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-22 13:24:17] Production.INFO: count ==887 [2024-12-22 13:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:24:05 - End Time 2024-12-22 13:24:05 [2024-12-22 13:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077786', 'tblTempUsageDetail_20' ) start [2024-12-22 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077786', 'tblTempUsageDetail_20' ) end [2024-12-22 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077786', 'tblTempVendorCDR_20' ) start [2024-12-22 13:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077786', 'tblTempVendorCDR_20' ) end [2024-12-22 13:24:17] Production.INFO: ProcessCDR(1,14077786,1,1,2) [2024-12-22 13:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077786', 'tblTempUsageDetail_20' ) start [2024-12-22 13:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077786', 'tblTempUsageDetail_20' ) end [2024-12-22 13:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:24:22] Production.INFO: ==24633== Releasing lock... [2024-12-22 13:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:24:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:25:04 [end_date_ymd] => 2024-12-22 13:25:04 [RateCDR] => 1 ) [2024-12-22 13: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-22 10:25:04' and `end` < '2024-12-22 13: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-22 13:25:17] Production.INFO: count ==888 [2024-12-22 13:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:25:04 - End Time 2024-12-22 13:25:04 [2024-12-22 13:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077791', 'tblTempUsageDetail_20' ) start [2024-12-22 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077791', 'tblTempUsageDetail_20' ) end [2024-12-22 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077791', 'tblTempVendorCDR_20' ) start [2024-12-22 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077791', 'tblTempVendorCDR_20' ) end [2024-12-22 13:25:17] Production.INFO: ProcessCDR(1,14077791,1,1,2) [2024-12-22 13:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077791', 'tblTempUsageDetail_20' ) start [2024-12-22 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077791', 'tblTempUsageDetail_20' ) end [2024-12-22 13:25:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:25:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:25:21] Production.INFO: ==24745== Releasing lock... [2024-12-22 13:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:25:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:26:05 [end_date_ymd] => 2024-12-22 13:26:05 [RateCDR] => 1 ) [2024-12-22 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:26:05' and `end` < '2024-12-22 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:26:17] Production.INFO: count ==889 [2024-12-22 13:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:26:05 - End Time 2024-12-22 13:26:05 [2024-12-22 13:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077796', 'tblTempUsageDetail_20' ) start [2024-12-22 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077796', 'tblTempUsageDetail_20' ) end [2024-12-22 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077796', 'tblTempVendorCDR_20' ) start [2024-12-22 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077796', 'tblTempVendorCDR_20' ) end [2024-12-22 13:26:17] Production.INFO: ProcessCDR(1,14077796,1,1,2) [2024-12-22 13:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077796', 'tblTempUsageDetail_20' ) start [2024-12-22 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077796', 'tblTempUsageDetail_20' ) end [2024-12-22 13:26:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:26:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:26:22] Production.INFO: ==24818== Releasing lock... [2024-12-22 13:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:26:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:27:05 [end_date_ymd] => 2024-12-22 13:27:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:27:05' and `end` < '2024-12-22 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-22 13:27:17] Production.INFO: count ==893 [2024-12-22 13:27:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:27:05 - End Time 2024-12-22 13:27:05 [2024-12-22 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077801', 'tblTempUsageDetail_20' ) start [2024-12-22 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077801', 'tblTempUsageDetail_20' ) end [2024-12-22 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077801', 'tblTempVendorCDR_20' ) start [2024-12-22 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077801', 'tblTempVendorCDR_20' ) end [2024-12-22 13:27:18] Production.INFO: ProcessCDR(1,14077801,1,1,2) [2024-12-22 13:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077801', 'tblTempUsageDetail_20' ) start [2024-12-22 13:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077801', 'tblTempUsageDetail_20' ) end [2024-12-22 13:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:27:21] Production.INFO: ==24901== Releasing lock... [2024-12-22 13:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:27:21] Production.INFO: 35 MB #Memory Used# [2024-12-22 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:28:05 [end_date_ymd] => 2024-12-22 13:28:05 [RateCDR] => 1 ) [2024-12-22 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:28:05' and `end` < '2024-12-22 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:28:17] Production.INFO: count ==899 [2024-12-22 13:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:28:05 - End Time 2024-12-22 13:28:05 [2024-12-22 13:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077806', 'tblTempUsageDetail_20' ) start [2024-12-22 13:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077806', 'tblTempUsageDetail_20' ) end [2024-12-22 13:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077806', 'tblTempVendorCDR_20' ) start [2024-12-22 13:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077806', 'tblTempVendorCDR_20' ) end [2024-12-22 13:28:17] Production.INFO: ProcessCDR(1,14077806,1,1,2) [2024-12-22 13:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077806', 'tblTempUsageDetail_20' ) start [2024-12-22 13:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077806', 'tblTempUsageDetail_20' ) end [2024-12-22 13:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:28:22] Production.INFO: ==24975== Releasing lock... [2024-12-22 13:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:28:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:29:05 [end_date_ymd] => 2024-12-22 13:29:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:29:05' and `end` < '2024-12-22 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-22 13:29:18] Production.INFO: count ==900 [2024-12-22 13:29:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:29:05 - End Time 2024-12-22 13:29:05 [2024-12-22 13:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077811', 'tblTempUsageDetail_20' ) start [2024-12-22 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077811', 'tblTempUsageDetail_20' ) end [2024-12-22 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077811', 'tblTempVendorCDR_20' ) start [2024-12-22 13:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077811', 'tblTempVendorCDR_20' ) end [2024-12-22 13:29:18] Production.INFO: ProcessCDR(1,14077811,1,1,2) [2024-12-22 13:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077811', 'tblTempUsageDetail_20' ) start [2024-12-22 13:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077811', 'tblTempUsageDetail_20' ) end [2024-12-22 13:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:29:22] Production.INFO: ==25049== Releasing lock... [2024-12-22 13:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:29:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:30:06 [end_date_ymd] => 2024-12-22 13:30:06 [RateCDR] => 1 ) [2024-12-22 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-22 10:30:06' and `end` < '2024-12-22 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-22 13:30:18] Production.INFO: count ==899 [2024-12-22 13:30:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:30:06 - End Time 2024-12-22 13:30:06 [2024-12-22 13:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077816', 'tblTempUsageDetail_20' ) start [2024-12-22 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077816', 'tblTempUsageDetail_20' ) end [2024-12-22 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077816', 'tblTempVendorCDR_20' ) start [2024-12-22 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077816', 'tblTempVendorCDR_20' ) end [2024-12-22 13:30:18] Production.INFO: ProcessCDR(1,14077816,1,1,2) [2024-12-22 13:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077816', 'tblTempUsageDetail_20' ) start [2024-12-22 13:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077816', 'tblTempUsageDetail_20' ) end [2024-12-22 13:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:30:21] Production.INFO: ==25123== Releasing lock... [2024-12-22 13:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:30:21] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:31:04 [end_date_ymd] => 2024-12-22 13:31:04 [RateCDR] => 1 ) [2024-12-22 13:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:31:04' and `end` < '2024-12-22 13:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:31:17] Production.INFO: count ==905 [2024-12-22 13:31:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:31:04 - End Time 2024-12-22 13:31:04 [2024-12-22 13:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077822', 'tblTempUsageDetail_20' ) start [2024-12-22 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077822', 'tblTempUsageDetail_20' ) end [2024-12-22 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077822', 'tblTempVendorCDR_20' ) start [2024-12-22 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077822', 'tblTempVendorCDR_20' ) end [2024-12-22 13:31:17] Production.INFO: ProcessCDR(1,14077822,1,1,2) [2024-12-22 13:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077822', 'tblTempUsageDetail_20' ) start [2024-12-22 13:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077822', 'tblTempUsageDetail_20' ) end [2024-12-22 13:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:31:21] Production.INFO: ==25197== Releasing lock... [2024-12-22 13:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:31:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:32:05 [end_date_ymd] => 2024-12-22 13:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:32:05' and `end` < '2024-12-22 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-22 13:32:17] Production.INFO: count ==911 [2024-12-22 13:32:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:32:05 - End Time 2024-12-22 13:32:05 [2024-12-22 13:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077827', 'tblTempUsageDetail_20' ) start [2024-12-22 13:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077827', 'tblTempUsageDetail_20' ) end [2024-12-22 13:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077827', 'tblTempVendorCDR_20' ) start [2024-12-22 13:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077827', 'tblTempVendorCDR_20' ) end [2024-12-22 13:32:17] Production.INFO: ProcessCDR(1,14077827,1,1,2) [2024-12-22 13:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077827', 'tblTempUsageDetail_20' ) start [2024-12-22 13:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077827', 'tblTempUsageDetail_20' ) end [2024-12-22 13:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:32:21] Production.INFO: ==25271== Releasing lock... [2024-12-22 13:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:32:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 13:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:33:04 [end_date_ymd] => 2024-12-22 13:33:04 [RateCDR] => 1 ) [2024-12-22 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-22 10:33:04' and `end` < '2024-12-22 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-22 13:33:16] Production.INFO: count ==911 [2024-12-22 13:33:16] Production.ERROR: pbx CDR StartTime 2024-12-22 10:33:04 - End Time 2024-12-22 13:33:04 [2024-12-22 13:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077832', 'tblTempUsageDetail_20' ) start [2024-12-22 13:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077832', 'tblTempUsageDetail_20' ) end [2024-12-22 13:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077832', 'tblTempVendorCDR_20' ) start [2024-12-22 13:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077832', 'tblTempVendorCDR_20' ) end [2024-12-22 13:33:16] Production.INFO: ProcessCDR(1,14077832,1,1,2) [2024-12-22 13:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:33:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077832', 'tblTempUsageDetail_20' ) start [2024-12-22 13:33:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077832', 'tblTempUsageDetail_20' ) end [2024-12-22 13:33:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:33:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:33:19] Production.INFO: ==25348== Releasing lock... [2024-12-22 13:33:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:33:19] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:34:05 [end_date_ymd] => 2024-12-22 13:34:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:34:05' and `end` < '2024-12-22 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-22 13:34:18] Production.INFO: count ==909 [2024-12-22 13:34:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:34:05 - End Time 2024-12-22 13:34:05 [2024-12-22 13:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077837', 'tblTempUsageDetail_20' ) start [2024-12-22 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077837', 'tblTempUsageDetail_20' ) end [2024-12-22 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077837', 'tblTempVendorCDR_20' ) start [2024-12-22 13:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077837', 'tblTempVendorCDR_20' ) end [2024-12-22 13:34:18] Production.INFO: ProcessCDR(1,14077837,1,1,2) [2024-12-22 13:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077837', 'tblTempUsageDetail_20' ) start [2024-12-22 13:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077837', 'tblTempUsageDetail_20' ) end [2024-12-22 13:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:34:21] Production.INFO: ==25420== Releasing lock... [2024-12-22 13:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:34:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:35:05 [end_date_ymd] => 2024-12-22 13:35:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:35:05' and `end` < '2024-12-22 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-22 13:35:18] Production.INFO: count ==916 [2024-12-22 13:35:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:35:05 - End Time 2024-12-22 13:35:05 [2024-12-22 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077842', 'tblTempUsageDetail_20' ) start [2024-12-22 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077842', 'tblTempUsageDetail_20' ) end [2024-12-22 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077842', 'tblTempVendorCDR_20' ) start [2024-12-22 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077842', 'tblTempVendorCDR_20' ) end [2024-12-22 13:35:18] Production.INFO: ProcessCDR(1,14077842,1,1,2) [2024-12-22 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077842', 'tblTempUsageDetail_20' ) start [2024-12-22 13:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077842', 'tblTempUsageDetail_20' ) end [2024-12-22 13:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:35:21] Production.INFO: ==25498== Releasing lock... [2024-12-22 13:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:35:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:36:05 [end_date_ymd] => 2024-12-22 13:36:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:36:05' and `end` < '2024-12-22 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-22 13:36:18] Production.INFO: count ==916 [2024-12-22 13:36:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:36:05 - End Time 2024-12-22 13:36:05 [2024-12-22 13:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077847', 'tblTempUsageDetail_20' ) start [2024-12-22 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077847', 'tblTempUsageDetail_20' ) end [2024-12-22 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077847', 'tblTempVendorCDR_20' ) start [2024-12-22 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077847', 'tblTempVendorCDR_20' ) end [2024-12-22 13:36:18] Production.INFO: ProcessCDR(1,14077847,1,1,2) [2024-12-22 13:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077847', 'tblTempUsageDetail_20' ) start [2024-12-22 13:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077847', 'tblTempUsageDetail_20' ) end [2024-12-22 13:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:36:21] Production.INFO: ==25569== Releasing lock... [2024-12-22 13:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:36:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:37:05 [end_date_ymd] => 2024-12-22 13:37:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:37:05' and `end` < '2024-12-22 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-22 13:37:17] Production.INFO: count ==917 [2024-12-22 13:37:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:37:05 - End Time 2024-12-22 13:37:05 [2024-12-22 13:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077852', 'tblTempUsageDetail_20' ) start [2024-12-22 13:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077852', 'tblTempUsageDetail_20' ) end [2024-12-22 13:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077852', 'tblTempVendorCDR_20' ) start [2024-12-22 13:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077852', 'tblTempVendorCDR_20' ) end [2024-12-22 13:37:17] Production.INFO: ProcessCDR(1,14077852,1,1,2) [2024-12-22 13:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077852', 'tblTempUsageDetail_20' ) start [2024-12-22 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077852', 'tblTempUsageDetail_20' ) end [2024-12-22 13:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:37:22] Production.INFO: ==25642== Releasing lock... [2024-12-22 13:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:37:22] Production.INFO: 35 MB #Memory Used# [2024-12-22 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:38:05 [end_date_ymd] => 2024-12-22 13:38:05 [RateCDR] => 1 ) [2024-12-22 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:38:05' and `end` < '2024-12-22 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:38:18] Production.INFO: count ==923 [2024-12-22 13:38:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:38:05 - End Time 2024-12-22 13:38:05 [2024-12-22 13:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077857', 'tblTempUsageDetail_20' ) start [2024-12-22 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077857', 'tblTempUsageDetail_20' ) end [2024-12-22 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077857', 'tblTempVendorCDR_20' ) start [2024-12-22 13:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077857', 'tblTempVendorCDR_20' ) end [2024-12-22 13:38:18] Production.INFO: ProcessCDR(1,14077857,1,1,2) [2024-12-22 13:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077857', 'tblTempUsageDetail_20' ) start [2024-12-22 13:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077857', 'tblTempUsageDetail_20' ) end [2024-12-22 13:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:38:21] Production.INFO: ==25712== Releasing lock... [2024-12-22 13:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:38:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:39:05 [end_date_ymd] => 2024-12-22 13:39:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:39:05' and `end` < '2024-12-22 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-22 13:39:18] Production.INFO: count ==920 [2024-12-22 13:39:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:39:05 - End Time 2024-12-22 13:39:05 [2024-12-22 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077862', 'tblTempUsageDetail_20' ) start [2024-12-22 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077862', 'tblTempUsageDetail_20' ) end [2024-12-22 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077862', 'tblTempVendorCDR_20' ) start [2024-12-22 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077862', 'tblTempVendorCDR_20' ) end [2024-12-22 13:39:18] Production.INFO: ProcessCDR(1,14077862,1,1,2) [2024-12-22 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077862', 'tblTempUsageDetail_20' ) start [2024-12-22 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077862', 'tblTempUsageDetail_20' ) end [2024-12-22 13:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:39:22] Production.INFO: ==25787== Releasing lock... [2024-12-22 13:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:39:22] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:40:05 [end_date_ymd] => 2024-12-22 13:40:05 [RateCDR] => 1 ) [2024-12-22 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:40:05' and `end` < '2024-12-22 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:40:17] Production.INFO: count ==921 [2024-12-22 13:40:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:40:05 - End Time 2024-12-22 13:40:05 [2024-12-22 13:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077868', 'tblTempUsageDetail_20' ) start [2024-12-22 13:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077868', 'tblTempUsageDetail_20' ) end [2024-12-22 13:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077868', 'tblTempVendorCDR_20' ) start [2024-12-22 13:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077868', 'tblTempVendorCDR_20' ) end [2024-12-22 13:40:17] Production.INFO: ProcessCDR(1,14077868,1,1,2) [2024-12-22 13:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077868', 'tblTempUsageDetail_20' ) start [2024-12-22 13:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077868', 'tblTempUsageDetail_20' ) end [2024-12-22 13:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:40:22] Production.INFO: ==25905== Releasing lock... [2024-12-22 13:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:40:22] Production.INFO: 35 MB #Memory Used# [2024-12-22 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:41:05 [end_date_ymd] => 2024-12-22 13:41:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:41:05' and `end` < '2024-12-22 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-22 13:41:17] Production.INFO: count ==939 [2024-12-22 13:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:41:05 - End Time 2024-12-22 13:41:05 [2024-12-22 13:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077873', 'tblTempUsageDetail_20' ) start [2024-12-22 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077873', 'tblTempUsageDetail_20' ) end [2024-12-22 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077873', 'tblTempVendorCDR_20' ) start [2024-12-22 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077873', 'tblTempVendorCDR_20' ) end [2024-12-22 13:41:17] Production.INFO: ProcessCDR(1,14077873,1,1,2) [2024-12-22 13:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077873', 'tblTempUsageDetail_20' ) start [2024-12-22 13:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077873', 'tblTempUsageDetail_20' ) end [2024-12-22 13:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:41:20] Production.INFO: ==25981== Releasing lock... [2024-12-22 13:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:41:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:42:05 [end_date_ymd] => 2024-12-22 13:42:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:42:05' and `end` < '2024-12-22 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-22 13:42:18] Production.INFO: count ==940 [2024-12-22 13:42:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:42:05 - End Time 2024-12-22 13:42:05 [2024-12-22 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077878', 'tblTempUsageDetail_20' ) start [2024-12-22 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077878', 'tblTempUsageDetail_20' ) end [2024-12-22 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077878', 'tblTempVendorCDR_20' ) start [2024-12-22 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077878', 'tblTempVendorCDR_20' ) end [2024-12-22 13:42:18] Production.INFO: ProcessCDR(1,14077878,1,1,2) [2024-12-22 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077878', 'tblTempUsageDetail_20' ) start [2024-12-22 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077878', 'tblTempUsageDetail_20' ) end [2024-12-22 13:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:42:22] Production.INFO: ==26056== Releasing lock... [2024-12-22 13:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:42:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-22 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:43:05 [end_date_ymd] => 2024-12-22 13:43:05 [RateCDR] => 1 ) [2024-12-22 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:43:05' and `end` < '2024-12-22 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:43:17] Production.INFO: count ==939 [2024-12-22 13:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:43:05 - End Time 2024-12-22 13:43:05 [2024-12-22 13:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077883', 'tblTempUsageDetail_20' ) start [2024-12-22 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077883', 'tblTempUsageDetail_20' ) end [2024-12-22 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077883', 'tblTempVendorCDR_20' ) start [2024-12-22 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077883', 'tblTempVendorCDR_20' ) end [2024-12-22 13:43:17] Production.INFO: ProcessCDR(1,14077883,1,1,2) [2024-12-22 13:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077883', 'tblTempUsageDetail_20' ) start [2024-12-22 13:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077883', 'tblTempUsageDetail_20' ) end [2024-12-22 13:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:43:20] Production.INFO: ==26128== Releasing lock... [2024-12-22 13:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:43:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:44:05 [end_date_ymd] => 2024-12-22 13:44:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:44:05' and `end` < '2024-12-22 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-22 13:44:18] Production.INFO: count ==939 [2024-12-22 13:44:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:44:05 - End Time 2024-12-22 13:44:05 [2024-12-22 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077888', 'tblTempUsageDetail_20' ) start [2024-12-22 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077888', 'tblTempUsageDetail_20' ) end [2024-12-22 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077888', 'tblTempVendorCDR_20' ) start [2024-12-22 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077888', 'tblTempVendorCDR_20' ) end [2024-12-22 13:44:18] Production.INFO: ProcessCDR(1,14077888,1,1,2) [2024-12-22 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077888', 'tblTempUsageDetail_20' ) start [2024-12-22 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077888', 'tblTempUsageDetail_20' ) end [2024-12-22 13:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:44:21] Production.INFO: ==26201== Releasing lock... [2024-12-22 13:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:44:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:45:05 [end_date_ymd] => 2024-12-22 13:45:05 [RateCDR] => 1 ) [2024-12-22 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:45:05' and `end` < '2024-12-22 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:45:17] Production.INFO: count ==939 [2024-12-22 13:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:45:05 - End Time 2024-12-22 13:45:05 [2024-12-22 13:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077893', 'tblTempUsageDetail_20' ) start [2024-12-22 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077893', 'tblTempUsageDetail_20' ) end [2024-12-22 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077893', 'tblTempVendorCDR_20' ) start [2024-12-22 13:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077893', 'tblTempVendorCDR_20' ) end [2024-12-22 13:45:17] Production.INFO: ProcessCDR(1,14077893,1,1,2) [2024-12-22 13:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077893', 'tblTempUsageDetail_20' ) start [2024-12-22 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077893', 'tblTempUsageDetail_20' ) end [2024-12-22 13:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:45:22] Production.INFO: ==26275== Releasing lock... [2024-12-22 13:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:45:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-22 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:46:05 [end_date_ymd] => 2024-12-22 13:46:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:46:05' and `end` < '2024-12-22 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-22 13:46:17] Production.INFO: count ==940 [2024-12-22 13:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:46:05 - End Time 2024-12-22 13:46:05 [2024-12-22 13:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077898', 'tblTempUsageDetail_20' ) start [2024-12-22 13:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077898', 'tblTempUsageDetail_20' ) end [2024-12-22 13:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077898', 'tblTempVendorCDR_20' ) start [2024-12-22 13:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077898', 'tblTempVendorCDR_20' ) end [2024-12-22 13:46:17] Production.INFO: ProcessCDR(1,14077898,1,1,2) [2024-12-22 13:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077898', 'tblTempUsageDetail_20' ) start [2024-12-22 13:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077898', 'tblTempUsageDetail_20' ) end [2024-12-22 13:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:46:20] Production.INFO: ==26347== Releasing lock... [2024-12-22 13:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:46:20] Production.INFO: 36 MB #Memory Used# [2024-12-22 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:47:05 [end_date_ymd] => 2024-12-22 13:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:47:05' and `end` < '2024-12-22 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-22 13:47:18] Production.INFO: count ==940 [2024-12-22 13:47:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:47:05 - End Time 2024-12-22 13:47:05 [2024-12-22 13:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077903', 'tblTempUsageDetail_20' ) start [2024-12-22 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077903', 'tblTempUsageDetail_20' ) end [2024-12-22 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077903', 'tblTempVendorCDR_20' ) start [2024-12-22 13:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077903', 'tblTempVendorCDR_20' ) end [2024-12-22 13:47:18] Production.INFO: ProcessCDR(1,14077903,1,1,2) [2024-12-22 13:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077903', 'tblTempUsageDetail_20' ) start [2024-12-22 13:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077903', 'tblTempUsageDetail_20' ) end [2024-12-22 13:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:47:21] Production.INFO: ==26428== Releasing lock... [2024-12-22 13:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:47:21] Production.INFO: 36 MB #Memory Used# [2024-12-22 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:48:05 [end_date_ymd] => 2024-12-22 13:48:05 [RateCDR] => 1 ) [2024-12-22 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:48:05' and `end` < '2024-12-22 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:48:19] Production.INFO: count ==945 [2024-12-22 13:48:19] Production.ERROR: pbx CDR StartTime 2024-12-22 10:48:05 - End Time 2024-12-22 13:48:05 [2024-12-22 13:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077908', 'tblTempUsageDetail_20' ) start [2024-12-22 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077908', 'tblTempUsageDetail_20' ) end [2024-12-22 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077908', 'tblTempVendorCDR_20' ) start [2024-12-22 13:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077908', 'tblTempVendorCDR_20' ) end [2024-12-22 13:48:19] Production.INFO: ProcessCDR(1,14077908,1,1,2) [2024-12-22 13:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077908', 'tblTempUsageDetail_20' ) start [2024-12-22 13:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077908', 'tblTempUsageDetail_20' ) end [2024-12-22 13:48:24] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:48:24] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:48:24] Production.INFO: ==26503== Releasing lock... [2024-12-22 13:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:48:24] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:49:04 [end_date_ymd] => 2024-12-22 13:49:04 [RateCDR] => 1 ) [2024-12-22 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-22 10:49:04' and `end` < '2024-12-22 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-22 13:49:16] Production.INFO: count ==942 [2024-12-22 13:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:49:04 - End Time 2024-12-22 13:49:04 [2024-12-22 13:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077913', 'tblTempUsageDetail_20' ) start [2024-12-22 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077913', 'tblTempUsageDetail_20' ) end [2024-12-22 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077913', 'tblTempVendorCDR_20' ) start [2024-12-22 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077913', 'tblTempVendorCDR_20' ) end [2024-12-22 13:49:17] Production.INFO: ProcessCDR(1,14077913,1,1,2) [2024-12-22 13:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077913', 'tblTempUsageDetail_20' ) start [2024-12-22 13:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077913', 'tblTempUsageDetail_20' ) end [2024-12-22 13:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:49:20] Production.INFO: ==26580== Releasing lock... [2024-12-22 13:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:49:20] Production.INFO: 35.75 MB #Memory Used# [2024-12-22 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:50:05 [end_date_ymd] => 2024-12-22 13:50:05 [RateCDR] => 1 ) [2024-12-22 13:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:50:05' and `end` < '2024-12-22 13:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:50:17] Production.INFO: count ==939 [2024-12-22 13:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:50:05 - End Time 2024-12-22 13:50:05 [2024-12-22 13:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077918', 'tblTempUsageDetail_20' ) start [2024-12-22 13:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077918', 'tblTempUsageDetail_20' ) end [2024-12-22 13:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077918', 'tblTempVendorCDR_20' ) start [2024-12-22 13:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077918', 'tblTempVendorCDR_20' ) end [2024-12-22 13:50:18] Production.INFO: ProcessCDR(1,14077918,1,1,2) [2024-12-22 13:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077918', 'tblTempUsageDetail_20' ) start [2024-12-22 13:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077918', 'tblTempUsageDetail_20' ) end [2024-12-22 13:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:50:20] Production.INFO: ==26661== Releasing lock... [2024-12-22 13:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:50:20] Production.INFO: 36 MB #Memory Used# [2024-12-22 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:51:04 [end_date_ymd] => 2024-12-22 13:51:04 [RateCDR] => 1 ) [2024-12-22 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-22 10:51:04' and `end` < '2024-12-22 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-22 13:51:16] Production.INFO: count ==952 [2024-12-22 13:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:51:04 - End Time 2024-12-22 13:51:04 [2024-12-22 13:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077924', 'tblTempUsageDetail_20' ) start [2024-12-22 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077924', 'tblTempUsageDetail_20' ) end [2024-12-22 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077924', 'tblTempVendorCDR_20' ) start [2024-12-22 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077924', 'tblTempVendorCDR_20' ) end [2024-12-22 13:51:17] Production.INFO: ProcessCDR(1,14077924,1,1,2) [2024-12-22 13:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077924', 'tblTempUsageDetail_20' ) start [2024-12-22 13:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077924', 'tblTempUsageDetail_20' ) end [2024-12-22 13:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:51:21] Production.INFO: ==26739== Releasing lock... [2024-12-22 13:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:51:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-22 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:52:05 [end_date_ymd] => 2024-12-22 13:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:52:05' and `end` < '2024-12-22 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-22 13:52:18] Production.INFO: count ==956 [2024-12-22 13:52:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:52:05 - End Time 2024-12-22 13:52:05 [2024-12-22 13:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077929', 'tblTempUsageDetail_20' ) start [2024-12-22 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077929', 'tblTempUsageDetail_20' ) end [2024-12-22 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077929', 'tblTempVendorCDR_20' ) start [2024-12-22 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077929', 'tblTempVendorCDR_20' ) end [2024-12-22 13:52:18] Production.INFO: ProcessCDR(1,14077929,1,1,2) [2024-12-22 13:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077929', 'tblTempUsageDetail_20' ) start [2024-12-22 13:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077929', 'tblTempUsageDetail_20' ) end [2024-12-22 13:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:52:21] Production.INFO: ==26818== Releasing lock... [2024-12-22 13:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:52:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-22 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:53:04 [end_date_ymd] => 2024-12-22 13:53:04 [RateCDR] => 1 ) [2024-12-22 13: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-22 10:53:04' and `end` < '2024-12-22 13: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-22 13:53:17] Production.INFO: count ==955 [2024-12-22 13:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:53:04 - End Time 2024-12-22 13:53:04 [2024-12-22 13:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077934', 'tblTempUsageDetail_20' ) start [2024-12-22 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077934', 'tblTempUsageDetail_20' ) end [2024-12-22 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077934', 'tblTempVendorCDR_20' ) start [2024-12-22 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077934', 'tblTempVendorCDR_20' ) end [2024-12-22 13:53:17] Production.INFO: ProcessCDR(1,14077934,1,1,2) [2024-12-22 13:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077934', 'tblTempUsageDetail_20' ) start [2024-12-22 13:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077934', 'tblTempUsageDetail_20' ) end [2024-12-22 13:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:53:20] Production.INFO: ==26891== Releasing lock... [2024-12-22 13:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:53:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:54:05 [end_date_ymd] => 2024-12-22 13:54:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:54:05' and `end` < '2024-12-22 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-22 13:54:18] Production.INFO: count ==957 [2024-12-22 13:54:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:54:05 - End Time 2024-12-22 13:54:05 [2024-12-22 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077939', 'tblTempUsageDetail_20' ) start [2024-12-22 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077939', 'tblTempUsageDetail_20' ) end [2024-12-22 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077939', 'tblTempVendorCDR_20' ) start [2024-12-22 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077939', 'tblTempVendorCDR_20' ) end [2024-12-22 13:54:18] Production.INFO: ProcessCDR(1,14077939,1,1,2) [2024-12-22 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077939', 'tblTempUsageDetail_20' ) start [2024-12-22 13:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077939', 'tblTempUsageDetail_20' ) end [2024-12-22 13:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:54:21] Production.INFO: ==26972== Releasing lock... [2024-12-22 13:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:54:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:55:05 [end_date_ymd] => 2024-12-22 13:55:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:55:05' and `end` < '2024-12-22 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-22 13:55:17] Production.INFO: count ==956 [2024-12-22 13:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:55:05 - End Time 2024-12-22 13:55:05 [2024-12-22 13:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077944', 'tblTempUsageDetail_20' ) start [2024-12-22 13:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077944', 'tblTempUsageDetail_20' ) end [2024-12-22 13:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077944', 'tblTempVendorCDR_20' ) start [2024-12-22 13:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077944', 'tblTempVendorCDR_20' ) end [2024-12-22 13:55:17] Production.INFO: ProcessCDR(1,14077944,1,1,2) [2024-12-22 13:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077944', 'tblTempUsageDetail_20' ) start [2024-12-22 13:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077944', 'tblTempUsageDetail_20' ) end [2024-12-22 13:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:55:20] Production.INFO: ==27049== Releasing lock... [2024-12-22 13:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:55:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:56:05 [end_date_ymd] => 2024-12-22 13:56:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:56:05' and `end` < '2024-12-22 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-22 13:56:19] Production.INFO: count ==954 [2024-12-22 13:56:20] Production.ERROR: pbx CDR StartTime 2024-12-22 10:56:05 - End Time 2024-12-22 13:56:05 [2024-12-22 13:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077949', 'tblTempUsageDetail_20' ) start [2024-12-22 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077949', 'tblTempUsageDetail_20' ) end [2024-12-22 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077949', 'tblTempVendorCDR_20' ) start [2024-12-22 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077949', 'tblTempVendorCDR_20' ) end [2024-12-22 13:56:20] Production.INFO: ProcessCDR(1,14077949,1,1,2) [2024-12-22 13:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077949', 'tblTempUsageDetail_20' ) start [2024-12-22 13:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077949', 'tblTempUsageDetail_20' ) end [2024-12-22 13:56:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:56:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:56:23] Production.INFO: ==27173== Releasing lock... [2024-12-22 13:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:56:23] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:57:05 [end_date_ymd] => 2024-12-22 13:57:05 [RateCDR] => 1 ) [2024-12-22 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:57:05' and `end` < '2024-12-22 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:57:18] Production.INFO: count ==953 [2024-12-22 13:57:18] Production.ERROR: pbx CDR StartTime 2024-12-22 10:57:05 - End Time 2024-12-22 13:57:05 [2024-12-22 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077954', 'tblTempUsageDetail_20' ) start [2024-12-22 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077954', 'tblTempUsageDetail_20' ) end [2024-12-22 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077954', 'tblTempVendorCDR_20' ) start [2024-12-22 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077954', 'tblTempVendorCDR_20' ) end [2024-12-22 13:57:18] Production.INFO: ProcessCDR(1,14077954,1,1,2) [2024-12-22 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077954', 'tblTempUsageDetail_20' ) start [2024-12-22 13:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077954', 'tblTempUsageDetail_20' ) end [2024-12-22 13:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:57:21] Production.INFO: ==27256== Releasing lock... [2024-12-22 13:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:57:21] Production.INFO: 36 MB #Memory Used# [2024-12-22 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:58:05 [end_date_ymd] => 2024-12-22 13:58:05 [RateCDR] => 1 ) [2024-12-22 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-22 10:58:05' and `end` < '2024-12-22 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-22 13:58:17] Production.INFO: count ==946 [2024-12-22 13:58:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:58:05 - End Time 2024-12-22 13:58:05 [2024-12-22 13:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077959', 'tblTempUsageDetail_20' ) start [2024-12-22 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077959', 'tblTempUsageDetail_20' ) end [2024-12-22 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077959', 'tblTempVendorCDR_20' ) start [2024-12-22 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077959', 'tblTempVendorCDR_20' ) end [2024-12-22 13:58:17] Production.INFO: ProcessCDR(1,14077959,1,1,2) [2024-12-22 13:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077959', 'tblTempUsageDetail_20' ) start [2024-12-22 13:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077959', 'tblTempUsageDetail_20' ) end [2024-12-22 13:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:58:22] Production.INFO: ==27334== Releasing lock... [2024-12-22 13:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:58:22] Production.INFO: 36 MB #Memory Used# [2024-12-22 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 10:59:05 [end_date_ymd] => 2024-12-22 13:59:05 [RateCDR] => 1 ) [2024-12-22 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 10:59:05' and `end` < '2024-12-22 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 13:59:17] Production.INFO: count ==952 [2024-12-22 13:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 10:59:05 - End Time 2024-12-22 13:59:05 [2024-12-22 13:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077964', 'tblTempUsageDetail_20' ) start [2024-12-22 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077964', 'tblTempUsageDetail_20' ) end [2024-12-22 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077964', 'tblTempVendorCDR_20' ) start [2024-12-22 13:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077964', 'tblTempVendorCDR_20' ) end [2024-12-22 13:59:17] Production.INFO: ProcessCDR(1,14077964,1,1,2) [2024-12-22 13:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 13:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077964', 'tblTempUsageDetail_20' ) start [2024-12-22 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077964', 'tblTempUsageDetail_20' ) end [2024-12-22 13:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 13:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 13:59:22] Production.INFO: ==27412== Releasing lock... [2024-12-22 13:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 13:59:22] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 14:00:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:00:04 [end_date_ymd] => 2024-12-22 14:00:04 [RateCDR] => 1 ) [2024-12-22 14:00:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:00:04' and `end` < '2024-12-22 14:00:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:00:17] Production.INFO: count ==955 [2024-12-22 14:00:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:00:04 - End Time 2024-12-22 14:00:04 [2024-12-22 14:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077969', 'tblTempUsageDetail_20' ) start [2024-12-22 14:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077969', 'tblTempUsageDetail_20' ) end [2024-12-22 14:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077969', 'tblTempVendorCDR_20' ) start [2024-12-22 14:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077969', 'tblTempVendorCDR_20' ) end [2024-12-22 14:00:17] Production.INFO: ProcessCDR(1,14077969,1,1,2) [2024-12-22 14:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077969', 'tblTempUsageDetail_20' ) start [2024-12-22 14:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077969', 'tblTempUsageDetail_20' ) end [2024-12-22 14:00:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:00:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:00:20] Production.INFO: ==27493== Releasing lock... [2024-12-22 14:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:00:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:01:05 [end_date_ymd] => 2024-12-22 14:01:05 [RateCDR] => 1 ) [2024-12-22 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:01:05' and `end` < '2024-12-22 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:01:17] Production.INFO: count ==978 [2024-12-22 14:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:01:05 - End Time 2024-12-22 14:01:05 [2024-12-22 14:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077975', 'tblTempUsageDetail_20' ) start [2024-12-22 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077975', 'tblTempUsageDetail_20' ) end [2024-12-22 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077975', 'tblTempVendorCDR_20' ) start [2024-12-22 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077975', 'tblTempVendorCDR_20' ) end [2024-12-22 14:01:17] Production.INFO: ProcessCDR(1,14077975,1,1,2) [2024-12-22 14:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077975', 'tblTempUsageDetail_20' ) start [2024-12-22 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077975', 'tblTempUsageDetail_20' ) end [2024-12-22 14:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:01:22] Production.INFO: ==27598== Releasing lock... [2024-12-22 14:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:01:22] Production.INFO: 35.75 MB #Memory Used# [2024-12-22 14:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:02:04 [end_date_ymd] => 2024-12-22 14:02:04 [RateCDR] => 1 ) [2024-12-22 14: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-22 11:02:04' and `end` < '2024-12-22 14: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-22 14:02:18] Production.INFO: count ==978 [2024-12-22 14:02:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:02:04 - End Time 2024-12-22 14:02:04 [2024-12-22 14:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077980', 'tblTempUsageDetail_20' ) start [2024-12-22 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077980', 'tblTempUsageDetail_20' ) end [2024-12-22 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077980', 'tblTempVendorCDR_20' ) start [2024-12-22 14:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077980', 'tblTempVendorCDR_20' ) end [2024-12-22 14:02:18] Production.INFO: ProcessCDR(1,14077980,1,1,2) [2024-12-22 14:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077980', 'tblTempUsageDetail_20' ) start [2024-12-22 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077980', 'tblTempUsageDetail_20' ) end [2024-12-22 14:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:02:21] Production.INFO: ==27680== Releasing lock... [2024-12-22 14:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:02:21] Production.INFO: 35.75 MB #Memory Used# [2024-12-22 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:03:05 [end_date_ymd] => 2024-12-22 14:03:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:03:05' and `end` < '2024-12-22 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-22 14:03:19] Production.INFO: count ==980 [2024-12-22 14:03:19] Production.ERROR: pbx CDR StartTime 2024-12-22 11:03:05 - End Time 2024-12-22 14:03:05 [2024-12-22 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077985', 'tblTempUsageDetail_20' ) start [2024-12-22 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077985', 'tblTempUsageDetail_20' ) end [2024-12-22 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077985', 'tblTempVendorCDR_20' ) start [2024-12-22 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077985', 'tblTempVendorCDR_20' ) end [2024-12-22 14:03:19] Production.INFO: ProcessCDR(1,14077985,1,1,2) [2024-12-22 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077985', 'tblTempUsageDetail_20' ) start [2024-12-22 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077985', 'tblTempUsageDetail_20' ) end [2024-12-22 14:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:03:22] Production.INFO: ==27759== Releasing lock... [2024-12-22 14:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:03:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-22 14:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:04:04 [end_date_ymd] => 2024-12-22 14:04:04 [RateCDR] => 1 ) [2024-12-22 14: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-22 11:04:04' and `end` < '2024-12-22 14: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-22 14:04:16] Production.INFO: count ==979 [2024-12-22 14:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:04:04 - End Time 2024-12-22 14:04:04 [2024-12-22 14:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077990', 'tblTempUsageDetail_20' ) start [2024-12-22 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077990', 'tblTempUsageDetail_20' ) end [2024-12-22 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077990', 'tblTempVendorCDR_20' ) start [2024-12-22 14:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077990', 'tblTempVendorCDR_20' ) end [2024-12-22 14:04:17] Production.INFO: ProcessCDR(1,14077990,1,1,2) [2024-12-22 14:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077990', 'tblTempUsageDetail_20' ) start [2024-12-22 14:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077990', 'tblTempUsageDetail_20' ) end [2024-12-22 14:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:04:20] Production.INFO: ==27839== Releasing lock... [2024-12-22 14:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:04:20] Production.INFO: 36 MB #Memory Used# [2024-12-22 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:05:05 [end_date_ymd] => 2024-12-22 14:05:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:05:05' and `end` < '2024-12-22 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-22 14:05:17] Production.INFO: count ==980 [2024-12-22 14:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:05:05 - End Time 2024-12-22 14:05:05 [2024-12-22 14:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077995', 'tblTempUsageDetail_20' ) start [2024-12-22 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14077995', 'tblTempUsageDetail_20' ) end [2024-12-22 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077995', 'tblTempVendorCDR_20' ) start [2024-12-22 14:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14077995', 'tblTempVendorCDR_20' ) end [2024-12-22 14:05:17] Production.INFO: ProcessCDR(1,14077995,1,1,2) [2024-12-22 14:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14077995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14077995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14077995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14077995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077995', 'tblTempUsageDetail_20' ) start [2024-12-22 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14077995', 'tblTempUsageDetail_20' ) end [2024-12-22 14:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:05:22] Production.INFO: ==27930== Releasing lock... [2024-12-22 14:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:05:22] Production.INFO: 36 MB #Memory Used# [2024-12-22 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:06:05 [end_date_ymd] => 2024-12-22 14:06:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:06:05' and `end` < '2024-12-22 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-22 14:06:18] Production.INFO: count ==990 [2024-12-22 14:06:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:06:05 - End Time 2024-12-22 14:06:05 [2024-12-22 14:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078000', 'tblTempUsageDetail_20' ) start [2024-12-22 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078000', 'tblTempUsageDetail_20' ) end [2024-12-22 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078000', 'tblTempVendorCDR_20' ) start [2024-12-22 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078000', 'tblTempVendorCDR_20' ) end [2024-12-22 14:06:18] Production.INFO: ProcessCDR(1,14078000,1,1,2) [2024-12-22 14:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078000', 'tblTempUsageDetail_20' ) start [2024-12-22 14:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078000', 'tblTempUsageDetail_20' ) end [2024-12-22 14:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:06:22] Production.INFO: ==28018== Releasing lock... [2024-12-22 14:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:06:22] Production.INFO: 36 MB #Memory Used# [2024-12-22 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:07:05 [end_date_ymd] => 2024-12-22 14:07:05 [RateCDR] => 1 ) [2024-12-22 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:07:05' and `end` < '2024-12-22 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:07:17] Production.INFO: count ==1007 [2024-12-22 14:07:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:07:05 - End Time 2024-12-22 14:07:05 [2024-12-22 14:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078005', 'tblTempUsageDetail_20' ) start [2024-12-22 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078005', 'tblTempUsageDetail_20' ) end [2024-12-22 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078005', 'tblTempVendorCDR_20' ) start [2024-12-22 14:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078005', 'tblTempVendorCDR_20' ) end [2024-12-22 14:07:18] Production.INFO: ProcessCDR(1,14078005,1,1,2) [2024-12-22 14:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078005', 'tblTempUsageDetail_20' ) start [2024-12-22 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078005', 'tblTempUsageDetail_20' ) end [2024-12-22 14:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:07:22] Production.INFO: ==28097== Releasing lock... [2024-12-22 14:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:07:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-22 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:08:05 [end_date_ymd] => 2024-12-22 14:08:05 [RateCDR] => 1 ) [2024-12-22 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:08:05' and `end` < '2024-12-22 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:08:17] Production.INFO: count ==1013 [2024-12-22 14:08:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:08:05 - End Time 2024-12-22 14:08:05 [2024-12-22 14:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078010', 'tblTempUsageDetail_20' ) start [2024-12-22 14:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078010', 'tblTempUsageDetail_20' ) end [2024-12-22 14:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078010', 'tblTempVendorCDR_20' ) start [2024-12-22 14:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078010', 'tblTempVendorCDR_20' ) end [2024-12-22 14:08:17] Production.INFO: ProcessCDR(1,14078010,1,1,2) [2024-12-22 14:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078010', 'tblTempUsageDetail_20' ) start [2024-12-22 14:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078010', 'tblTempUsageDetail_20' ) end [2024-12-22 14:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:08:22] Production.INFO: ==28189== Releasing lock... [2024-12-22 14:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:08:22] Production.INFO: 36 MB #Memory Used# [2024-12-22 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:09:05 [end_date_ymd] => 2024-12-22 14:09:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:09:05' and `end` < '2024-12-22 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-22 14:09:17] Production.INFO: count ==1016 [2024-12-22 14:09:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:09:05 - End Time 2024-12-22 14:09:05 [2024-12-22 14:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078015', 'tblTempUsageDetail_20' ) start [2024-12-22 14:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078015', 'tblTempUsageDetail_20' ) end [2024-12-22 14:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078015', 'tblTempVendorCDR_20' ) start [2024-12-22 14:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078015', 'tblTempVendorCDR_20' ) end [2024-12-22 14:09:17] Production.INFO: ProcessCDR(1,14078015,1,1,2) [2024-12-22 14:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078015', 'tblTempUsageDetail_20' ) start [2024-12-22 14:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078015', 'tblTempUsageDetail_20' ) end [2024-12-22 14:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:09:21] Production.INFO: ==28272== Releasing lock... [2024-12-22 14:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:09:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-22 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:10:05 [end_date_ymd] => 2024-12-22 14:10:05 [RateCDR] => 1 ) [2024-12-22 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:10:05' and `end` < '2024-12-22 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-22 14:10:18] Production.INFO: count ==1023 [2024-12-22 14:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:10:05 - End Time 2024-12-22 14:10:05 [2024-12-22 14:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078021', 'tblTempUsageDetail_20' ) start [2024-12-22 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078021', 'tblTempUsageDetail_20' ) end [2024-12-22 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078021', 'tblTempVendorCDR_20' ) start [2024-12-22 14:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078021', 'tblTempVendorCDR_20' ) end [2024-12-22 14:10:18] Production.INFO: ProcessCDR(1,14078021,1,1,2) [2024-12-22 14:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078021', 'tblTempUsageDetail_20' ) start [2024-12-22 14:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078021', 'tblTempUsageDetail_20' ) end [2024-12-22 14:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:10:21] Production.INFO: ==28365== Releasing lock... [2024-12-22 14:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:10:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-22 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:11:04 [end_date_ymd] => 2024-12-22 14:11:04 [RateCDR] => 1 ) [2024-12-22 14:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:11:04' and `end` < '2024-12-22 14:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:11:17] Production.INFO: count ==1086 [2024-12-22 14:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:11:04 - End Time 2024-12-22 14:11:04 [2024-12-22 14:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078026', 'tblTempUsageDetail_20' ) start [2024-12-22 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078026', 'tblTempUsageDetail_20' ) end [2024-12-22 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078026', 'tblTempVendorCDR_20' ) start [2024-12-22 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078026', 'tblTempVendorCDR_20' ) end [2024-12-22 14:11:17] Production.INFO: ProcessCDR(1,14078026,1,1,2) [2024-12-22 14:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078026', 'tblTempUsageDetail_20' ) start [2024-12-22 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078026', 'tblTempUsageDetail_20' ) end [2024-12-22 14:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:11:22] Production.INFO: ==28451== Releasing lock... [2024-12-22 14:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:11:22] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:12:05 [end_date_ymd] => 2024-12-22 14:12:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:12:05' and `end` < '2024-12-22 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-22 14:12:17] Production.INFO: count ==1103 [2024-12-22 14:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:12:05 - End Time 2024-12-22 14:12:05 [2024-12-22 14:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078031', 'tblTempUsageDetail_20' ) start [2024-12-22 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078031', 'tblTempUsageDetail_20' ) end [2024-12-22 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078031', 'tblTempVendorCDR_20' ) start [2024-12-22 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078031', 'tblTempVendorCDR_20' ) end [2024-12-22 14:12:18] Production.INFO: ProcessCDR(1,14078031,1,1,2) [2024-12-22 14:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078031', 'tblTempUsageDetail_20' ) start [2024-12-22 14:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078031', 'tblTempUsageDetail_20' ) end [2024-12-22 14:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:12:21] Production.INFO: ==28577== Releasing lock... [2024-12-22 14:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:12:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:13:04 [end_date_ymd] => 2024-12-22 14:13:04 [RateCDR] => 1 ) [2024-12-22 14:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:13:04' and `end` < '2024-12-22 14:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:13:17] Production.INFO: count ==1105 [2024-12-22 14:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:13:04 - End Time 2024-12-22 14:13:04 [2024-12-22 14:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078036', 'tblTempUsageDetail_20' ) start [2024-12-22 14:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078036', 'tblTempUsageDetail_20' ) end [2024-12-22 14:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078036', 'tblTempVendorCDR_20' ) start [2024-12-22 14:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078036', 'tblTempVendorCDR_20' ) end [2024-12-22 14:13:17] Production.INFO: ProcessCDR(1,14078036,1,1,2) [2024-12-22 14:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078036', 'tblTempUsageDetail_20' ) start [2024-12-22 14:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078036', 'tblTempUsageDetail_20' ) end [2024-12-22 14:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:13:20] Production.INFO: ==28661== Releasing lock... [2024-12-22 14:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:13:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:14:05 [end_date_ymd] => 2024-12-22 14:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:14:05' and `end` < '2024-12-22 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-22 14:14:20] Production.INFO: count ==1105 [2024-12-22 14:14:20] Production.ERROR: pbx CDR StartTime 2024-12-22 11:14:05 - End Time 2024-12-22 14:14:05 [2024-12-22 14:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078041', 'tblTempUsageDetail_20' ) start [2024-12-22 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078041', 'tblTempUsageDetail_20' ) end [2024-12-22 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078041', 'tblTempVendorCDR_20' ) start [2024-12-22 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078041', 'tblTempVendorCDR_20' ) end [2024-12-22 14:14:20] Production.INFO: ProcessCDR(1,14078041,1,1,2) [2024-12-22 14:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078041', 'tblTempUsageDetail_20' ) start [2024-12-22 14:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078041', 'tblTempUsageDetail_20' ) end [2024-12-22 14:14:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:14:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:14:23] Production.INFO: ==28747== Releasing lock... [2024-12-22 14:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:14:23] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:15:04 [end_date_ymd] => 2024-12-22 14:15:04 [RateCDR] => 1 ) [2024-12-22 14: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-22 11:15:04' and `end` < '2024-12-22 14: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-22 14:15:16] Production.INFO: count ==1105 [2024-12-22 14:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:15:04 - End Time 2024-12-22 14:15:04 [2024-12-22 14:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078046', 'tblTempUsageDetail_20' ) start [2024-12-22 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078046', 'tblTempUsageDetail_20' ) end [2024-12-22 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078046', 'tblTempVendorCDR_20' ) start [2024-12-22 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078046', 'tblTempVendorCDR_20' ) end [2024-12-22 14:15:17] Production.INFO: ProcessCDR(1,14078046,1,1,2) [2024-12-22 14:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078046', 'tblTempUsageDetail_20' ) start [2024-12-22 14:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078046', 'tblTempUsageDetail_20' ) end [2024-12-22 14:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:15:20] Production.INFO: ==28830== Releasing lock... [2024-12-22 14:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:15:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:16:05 [end_date_ymd] => 2024-12-22 14:16:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:16:05' and `end` < '2024-12-22 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-22 14:16:17] Production.INFO: count ==1105 [2024-12-22 14:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:16:05 - End Time 2024-12-22 14:16:05 [2024-12-22 14:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078051', 'tblTempUsageDetail_20' ) start [2024-12-22 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078051', 'tblTempUsageDetail_20' ) end [2024-12-22 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078051', 'tblTempVendorCDR_20' ) start [2024-12-22 14:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078051', 'tblTempVendorCDR_20' ) end [2024-12-22 14:16:17] Production.INFO: ProcessCDR(1,14078051,1,1,2) [2024-12-22 14:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078051', 'tblTempUsageDetail_20' ) start [2024-12-22 14:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078051', 'tblTempUsageDetail_20' ) end [2024-12-22 14:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:16:21] Production.INFO: ==28919== Releasing lock... [2024-12-22 14:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:16:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:17:04 [end_date_ymd] => 2024-12-22 14:17:04 [RateCDR] => 1 ) [2024-12-22 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-22 11:17:04' and `end` < '2024-12-22 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-22 14:17:17] Production.INFO: count ==1112 [2024-12-22 14:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:17:04 - End Time 2024-12-22 14:17:04 [2024-12-22 14:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078056', 'tblTempUsageDetail_20' ) start [2024-12-22 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078056', 'tblTempUsageDetail_20' ) end [2024-12-22 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078056', 'tblTempVendorCDR_20' ) start [2024-12-22 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078056', 'tblTempVendorCDR_20' ) end [2024-12-22 14:17:17] Production.INFO: ProcessCDR(1,14078056,1,1,2) [2024-12-22 14:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078056', 'tblTempUsageDetail_20' ) start [2024-12-22 14:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078056', 'tblTempUsageDetail_20' ) end [2024-12-22 14:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:17:21] Production.INFO: ==28997== Releasing lock... [2024-12-22 14:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:17:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:18:05 [end_date_ymd] => 2024-12-22 14:18:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:18:05' and `end` < '2024-12-22 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-22 14:18:17] Production.INFO: count ==1112 [2024-12-22 14:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:18:05 - End Time 2024-12-22 14:18:05 [2024-12-22 14:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078061', 'tblTempUsageDetail_20' ) start [2024-12-22 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078061', 'tblTempUsageDetail_20' ) end [2024-12-22 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078061', 'tblTempVendorCDR_20' ) start [2024-12-22 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078061', 'tblTempVendorCDR_20' ) end [2024-12-22 14:18:17] Production.INFO: ProcessCDR(1,14078061,1,1,2) [2024-12-22 14:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078061', 'tblTempUsageDetail_20' ) start [2024-12-22 14:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078061', 'tblTempUsageDetail_20' ) end [2024-12-22 14:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:18:20] Production.INFO: ==29085== Releasing lock... [2024-12-22 14:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:18:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:19:05 [end_date_ymd] => 2024-12-22 14:19:05 [RateCDR] => 1 ) [2024-12-22 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:19:05' and `end` < '2024-12-22 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:19:18] Production.INFO: count ==1109 [2024-12-22 14:19:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:19:05 - End Time 2024-12-22 14:19:05 [2024-12-22 14:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078066', 'tblTempUsageDetail_20' ) start [2024-12-22 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078066', 'tblTempUsageDetail_20' ) end [2024-12-22 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078066', 'tblTempVendorCDR_20' ) start [2024-12-22 14:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078066', 'tblTempVendorCDR_20' ) end [2024-12-22 14:19:18] Production.INFO: ProcessCDR(1,14078066,1,1,2) [2024-12-22 14:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078066', 'tblTempUsageDetail_20' ) start [2024-12-22 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078066', 'tblTempUsageDetail_20' ) end [2024-12-22 14:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:19:22] Production.INFO: ==29165== Releasing lock... [2024-12-22 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:19:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:20:05 [end_date_ymd] => 2024-12-22 14:20:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:20:05' and `end` < '2024-12-22 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-22 14:20:17] Production.INFO: count ==1101 [2024-12-22 14:20:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:20:05 - End Time 2024-12-22 14:20:05 [2024-12-22 14:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078072', 'tblTempUsageDetail_20' ) start [2024-12-22 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078072', 'tblTempUsageDetail_20' ) end [2024-12-22 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078072', 'tblTempVendorCDR_20' ) start [2024-12-22 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078072', 'tblTempVendorCDR_20' ) end [2024-12-22 14:20:18] Production.INFO: ProcessCDR(1,14078072,1,1,2) [2024-12-22 14:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078072', 'tblTempUsageDetail_20' ) start [2024-12-22 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078072', 'tblTempUsageDetail_20' ) end [2024-12-22 14:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:20:22] Production.INFO: ==29253== Releasing lock... [2024-12-22 14:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:20:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-22 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:21:05 [end_date_ymd] => 2024-12-22 14:21:05 [RateCDR] => 1 ) [2024-12-22 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:21:05' and `end` < '2024-12-22 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:21:18] Production.INFO: count ==1094 [2024-12-22 14:21:19] Production.ERROR: pbx CDR StartTime 2024-12-22 11:21:05 - End Time 2024-12-22 14:21:05 [2024-12-22 14:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078077', 'tblTempUsageDetail_20' ) start [2024-12-22 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078077', 'tblTempUsageDetail_20' ) end [2024-12-22 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078077', 'tblTempVendorCDR_20' ) start [2024-12-22 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078077', 'tblTempVendorCDR_20' ) end [2024-12-22 14:21:19] Production.INFO: ProcessCDR(1,14078077,1,1,2) [2024-12-22 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078077', 'tblTempUsageDetail_20' ) start [2024-12-22 14:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078077', 'tblTempUsageDetail_20' ) end [2024-12-22 14:21:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:21:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:21:22] Production.INFO: ==29340== Releasing lock... [2024-12-22 14:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:21:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 14:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:22:04 [end_date_ymd] => 2024-12-22 14:22:04 [RateCDR] => 1 ) [2024-12-22 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-22 11:22:04' and `end` < '2024-12-22 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-22 14:22:16] Production.INFO: count ==1094 [2024-12-22 14:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:22:04 - End Time 2024-12-22 14:22:04 [2024-12-22 14:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078082', 'tblTempUsageDetail_20' ) start [2024-12-22 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078082', 'tblTempUsageDetail_20' ) end [2024-12-22 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078082', 'tblTempVendorCDR_20' ) start [2024-12-22 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078082', 'tblTempVendorCDR_20' ) end [2024-12-22 14:22:17] Production.INFO: ProcessCDR(1,14078082,1,1,2) [2024-12-22 14:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078082', 'tblTempUsageDetail_20' ) start [2024-12-22 14:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078082', 'tblTempUsageDetail_20' ) end [2024-12-22 14:22:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:22:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:22:22] Production.INFO: ==29423== Releasing lock... [2024-12-22 14:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:22:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-22 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:23:05 [end_date_ymd] => 2024-12-22 14:23:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:23:05' and `end` < '2024-12-22 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-22 14:23:17] Production.INFO: count ==1085 [2024-12-22 14:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:23:05 - End Time 2024-12-22 14:23:05 [2024-12-22 14:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078087', 'tblTempUsageDetail_20' ) start [2024-12-22 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078087', 'tblTempUsageDetail_20' ) end [2024-12-22 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078087', 'tblTempVendorCDR_20' ) start [2024-12-22 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078087', 'tblTempVendorCDR_20' ) end [2024-12-22 14:23:17] Production.INFO: ProcessCDR(1,14078087,1,1,2) [2024-12-22 14:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078087', 'tblTempUsageDetail_20' ) start [2024-12-22 14:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078087', 'tblTempUsageDetail_20' ) end [2024-12-22 14:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:23:20] Production.INFO: ==29515== Releasing lock... [2024-12-22 14:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:23:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:24:05 [end_date_ymd] => 2024-12-22 14:24:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:24:05' and `end` < '2024-12-22 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-22 14:24:17] Production.INFO: count ==1091 [2024-12-22 14:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:24:05 - End Time 2024-12-22 14:24:05 [2024-12-22 14:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078092', 'tblTempUsageDetail_20' ) start [2024-12-22 14:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078092', 'tblTempUsageDetail_20' ) end [2024-12-22 14:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078092', 'tblTempVendorCDR_20' ) start [2024-12-22 14:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078092', 'tblTempVendorCDR_20' ) end [2024-12-22 14:24:17] Production.INFO: ProcessCDR(1,14078092,1,1,2) [2024-12-22 14:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078092', 'tblTempUsageDetail_20' ) start [2024-12-22 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078092', 'tblTempUsageDetail_20' ) end [2024-12-22 14:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:24:21] Production.INFO: ==29596== Releasing lock... [2024-12-22 14:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:24:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:25:05 [end_date_ymd] => 2024-12-22 14:25:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:25:05' and `end` < '2024-12-22 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-22 14:25:17] Production.INFO: count ==1092 [2024-12-22 14:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:25:05 - End Time 2024-12-22 14:25:05 [2024-12-22 14:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078097', 'tblTempUsageDetail_20' ) start [2024-12-22 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078097', 'tblTempUsageDetail_20' ) end [2024-12-22 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078097', 'tblTempVendorCDR_20' ) start [2024-12-22 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078097', 'tblTempVendorCDR_20' ) end [2024-12-22 14:25:17] Production.INFO: ProcessCDR(1,14078097,1,1,2) [2024-12-22 14:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078097', 'tblTempUsageDetail_20' ) start [2024-12-22 14:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078097', 'tblTempUsageDetail_20' ) end [2024-12-22 14:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:25:20] Production.INFO: ==29687== Releasing lock... [2024-12-22 14:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:25:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 14:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:26:04 [end_date_ymd] => 2024-12-22 14:26:04 [RateCDR] => 1 ) [2024-12-22 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-22 11:26:04' and `end` < '2024-12-22 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-22 14:26:16] Production.INFO: count ==1093 [2024-12-22 14:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:26:04 - End Time 2024-12-22 14:26:04 [2024-12-22 14:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078102', 'tblTempUsageDetail_20' ) start [2024-12-22 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078102', 'tblTempUsageDetail_20' ) end [2024-12-22 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078102', 'tblTempVendorCDR_20' ) start [2024-12-22 14:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078102', 'tblTempVendorCDR_20' ) end [2024-12-22 14:26:17] Production.INFO: ProcessCDR(1,14078102,1,1,2) [2024-12-22 14:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078102', 'tblTempUsageDetail_20' ) start [2024-12-22 14:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078102', 'tblTempUsageDetail_20' ) end [2024-12-22 14:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:26:20] Production.INFO: ==29775== Releasing lock... [2024-12-22 14:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:26:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:27:05 [end_date_ymd] => 2024-12-22 14:27:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:27:05' and `end` < '2024-12-22 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-22 14:27:17] Production.INFO: count ==1092 [2024-12-22 14:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:27:05 - End Time 2024-12-22 14:27:05 [2024-12-22 14:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078107', 'tblTempUsageDetail_20' ) start [2024-12-22 14:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078107', 'tblTempUsageDetail_20' ) end [2024-12-22 14:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078107', 'tblTempVendorCDR_20' ) start [2024-12-22 14:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078107', 'tblTempVendorCDR_20' ) end [2024-12-22 14:27:17] Production.INFO: ProcessCDR(1,14078107,1,1,2) [2024-12-22 14:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078107', 'tblTempUsageDetail_20' ) start [2024-12-22 14:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078107', 'tblTempUsageDetail_20' ) end [2024-12-22 14:27:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:27:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:27:22] Production.INFO: ==29892== Releasing lock... [2024-12-22 14:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:27:22] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:28:05 [end_date_ymd] => 2024-12-22 14:28:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:28:05' and `end` < '2024-12-22 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-22 14:28:17] Production.INFO: count ==1093 [2024-12-22 14:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:28:05 - End Time 2024-12-22 14:28:05 [2024-12-22 14:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078112', 'tblTempUsageDetail_20' ) start [2024-12-22 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078112', 'tblTempUsageDetail_20' ) end [2024-12-22 14:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078112', 'tblTempVendorCDR_20' ) start [2024-12-22 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078112', 'tblTempVendorCDR_20' ) end [2024-12-22 14:28:18] Production.INFO: ProcessCDR(1,14078112,1,1,2) [2024-12-22 14:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078112', 'tblTempUsageDetail_20' ) start [2024-12-22 14:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078112', 'tblTempUsageDetail_20' ) end [2024-12-22 14:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:28:22] Production.INFO: ==29983== Releasing lock... [2024-12-22 14:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:28:22] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 14:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:29:04 [end_date_ymd] => 2024-12-22 14:29:04 [RateCDR] => 1 ) [2024-12-22 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-22 11:29:04' and `end` < '2024-12-22 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-22 14:29:17] Production.INFO: count ==1096 [2024-12-22 14:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:29:04 - End Time 2024-12-22 14:29:04 [2024-12-22 14:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078117', 'tblTempUsageDetail_20' ) start [2024-12-22 14:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078117', 'tblTempUsageDetail_20' ) end [2024-12-22 14:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078117', 'tblTempVendorCDR_20' ) start [2024-12-22 14:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078117', 'tblTempVendorCDR_20' ) end [2024-12-22 14:29:17] Production.INFO: ProcessCDR(1,14078117,1,1,2) [2024-12-22 14:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078117', 'tblTempUsageDetail_20' ) start [2024-12-22 14:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078117', 'tblTempUsageDetail_20' ) end [2024-12-22 14:29:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:29:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:29:22] Production.INFO: ==30067== Releasing lock... [2024-12-22 14:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:29:22] Production.INFO: 36.5 MB #Memory Used# [2024-12-22 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:30:06 [end_date_ymd] => 2024-12-22 14:30:06 [RateCDR] => 1 ) [2024-12-22 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:30:06' and `end` < '2024-12-22 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:30:18] Production.INFO: count ==1101 [2024-12-22 14:30:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:30:06 - End Time 2024-12-22 14:30:06 [2024-12-22 14:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078123', 'tblTempUsageDetail_20' ) start [2024-12-22 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078123', 'tblTempUsageDetail_20' ) end [2024-12-22 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078123', 'tblTempVendorCDR_20' ) start [2024-12-22 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078123', 'tblTempVendorCDR_20' ) end [2024-12-22 14:30:18] Production.INFO: ProcessCDR(1,14078123,1,1,2) [2024-12-22 14:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078123', 'tblTempUsageDetail_20' ) start [2024-12-22 14:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078123', 'tblTempUsageDetail_20' ) end [2024-12-22 14:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:30:23] Production.INFO: ==30151== Releasing lock... [2024-12-22 14:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:30:23] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:31:05 [end_date_ymd] => 2024-12-22 14:31:05 [RateCDR] => 1 ) [2024-12-22 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:31:05' and `end` < '2024-12-22 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:31:17] Production.INFO: count ==1123 [2024-12-22 14:31:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:31:05 - End Time 2024-12-22 14:31:05 [2024-12-22 14:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078128', 'tblTempUsageDetail_20' ) start [2024-12-22 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078128', 'tblTempUsageDetail_20' ) end [2024-12-22 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078128', 'tblTempVendorCDR_20' ) start [2024-12-22 14:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078128', 'tblTempVendorCDR_20' ) end [2024-12-22 14:31:17] Production.INFO: ProcessCDR(1,14078128,1,1,2) [2024-12-22 14:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078128', 'tblTempUsageDetail_20' ) start [2024-12-22 14:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078128', 'tblTempUsageDetail_20' ) end [2024-12-22 14:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:31:20] Production.INFO: ==30237== Releasing lock... [2024-12-22 14:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:31:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:32:05 [end_date_ymd] => 2024-12-22 14:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:32:05' and `end` < '2024-12-22 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-22 14:32:18] Production.INFO: count ==1122 [2024-12-22 14:32:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:32:05 - End Time 2024-12-22 14:32:05 [2024-12-22 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078133', 'tblTempUsageDetail_20' ) start [2024-12-22 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078133', 'tblTempUsageDetail_20' ) end [2024-12-22 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078133', 'tblTempVendorCDR_20' ) start [2024-12-22 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078133', 'tblTempVendorCDR_20' ) end [2024-12-22 14:32:18] Production.INFO: ProcessCDR(1,14078133,1,1,2) [2024-12-22 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078133', 'tblTempUsageDetail_20' ) start [2024-12-22 14:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078133', 'tblTempUsageDetail_20' ) end [2024-12-22 14:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:32:21] Production.INFO: ==30326== Releasing lock... [2024-12-22 14:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:32:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:33:05 [end_date_ymd] => 2024-12-22 14:33:05 [RateCDR] => 1 ) [2024-12-22 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:33:05' and `end` < '2024-12-22 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:33:18] Production.INFO: count ==1119 [2024-12-22 14:33:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:33:05 - End Time 2024-12-22 14:33:05 [2024-12-22 14:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078138', 'tblTempUsageDetail_20' ) start [2024-12-22 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078138', 'tblTempUsageDetail_20' ) end [2024-12-22 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078138', 'tblTempVendorCDR_20' ) start [2024-12-22 14:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078138', 'tblTempVendorCDR_20' ) end [2024-12-22 14:33:18] Production.INFO: ProcessCDR(1,14078138,1,1,2) [2024-12-22 14:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078138', 'tblTempUsageDetail_20' ) start [2024-12-22 14:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078138', 'tblTempUsageDetail_20' ) end [2024-12-22 14:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:33:21] Production.INFO: ==30405== Releasing lock... [2024-12-22 14:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:33:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:34:05 [end_date_ymd] => 2024-12-22 14:34:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:34:05' and `end` < '2024-12-22 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-22 14:34:17] Production.INFO: count ==1122 [2024-12-22 14:34:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:34:05 - End Time 2024-12-22 14:34:05 [2024-12-22 14:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078143', 'tblTempUsageDetail_20' ) start [2024-12-22 14:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078143', 'tblTempUsageDetail_20' ) end [2024-12-22 14:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078143', 'tblTempVendorCDR_20' ) start [2024-12-22 14:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078143', 'tblTempVendorCDR_20' ) end [2024-12-22 14:34:17] Production.INFO: ProcessCDR(1,14078143,1,1,2) [2024-12-22 14:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078143', 'tblTempUsageDetail_20' ) start [2024-12-22 14:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078143', 'tblTempUsageDetail_20' ) end [2024-12-22 14:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:34:20] Production.INFO: ==30493== Releasing lock... [2024-12-22 14:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:34:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:35:04 [end_date_ymd] => 2024-12-22 14:35:04 [RateCDR] => 1 ) [2024-12-22 14:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:35:04' and `end` < '2024-12-22 14:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:35:17] Production.INFO: count ==1122 [2024-12-22 14:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:35:04 - End Time 2024-12-22 14:35:04 [2024-12-22 14:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078148', 'tblTempUsageDetail_20' ) start [2024-12-22 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078148', 'tblTempUsageDetail_20' ) end [2024-12-22 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078148', 'tblTempVendorCDR_20' ) start [2024-12-22 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078148', 'tblTempVendorCDR_20' ) end [2024-12-22 14:35:17] Production.INFO: ProcessCDR(1,14078148,1,1,2) [2024-12-22 14:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078148', 'tblTempUsageDetail_20' ) start [2024-12-22 14:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078148', 'tblTempUsageDetail_20' ) end [2024-12-22 14:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:35:20] Production.INFO: ==30585== Releasing lock... [2024-12-22 14:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:35:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:36:04 [end_date_ymd] => 2024-12-22 14:36:04 [RateCDR] => 1 ) [2024-12-22 14:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:36:04' and `end` < '2024-12-22 14:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:36:16] Production.INFO: count ==1131 [2024-12-22 14:36:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:36:04 - End Time 2024-12-22 14:36:04 [2024-12-22 14:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078153', 'tblTempUsageDetail_20' ) start [2024-12-22 14:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078153', 'tblTempUsageDetail_20' ) end [2024-12-22 14:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078153', 'tblTempVendorCDR_20' ) start [2024-12-22 14:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078153', 'tblTempVendorCDR_20' ) end [2024-12-22 14:36:17] Production.INFO: ProcessCDR(1,14078153,1,1,2) [2024-12-22 14:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078153', 'tblTempUsageDetail_20' ) start [2024-12-22 14:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078153', 'tblTempUsageDetail_20' ) end [2024-12-22 14:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:36:20] Production.INFO: ==30666== Releasing lock... [2024-12-22 14:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:36:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:37:05 [end_date_ymd] => 2024-12-22 14:37:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:37:05' and `end` < '2024-12-22 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-22 14:37:17] Production.INFO: count ==1134 [2024-12-22 14:37:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:37:05 - End Time 2024-12-22 14:37:05 [2024-12-22 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078158', 'tblTempUsageDetail_20' ) start [2024-12-22 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078158', 'tblTempUsageDetail_20' ) end [2024-12-22 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078158', 'tblTempVendorCDR_20' ) start [2024-12-22 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078158', 'tblTempVendorCDR_20' ) end [2024-12-22 14:37:18] Production.INFO: ProcessCDR(1,14078158,1,1,2) [2024-12-22 14:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078158', 'tblTempUsageDetail_20' ) start [2024-12-22 14:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078158', 'tblTempUsageDetail_20' ) end [2024-12-22 14:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:37:21] Production.INFO: ==30754== Releasing lock... [2024-12-22 14:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:37:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:38:05 [end_date_ymd] => 2024-12-22 14:38:05 [RateCDR] => 1 ) [2024-12-22 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:38:05' and `end` < '2024-12-22 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:38:18] Production.INFO: count ==1122 [2024-12-22 14:38:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:38:05 - End Time 2024-12-22 14:38:05 [2024-12-22 14:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078163', 'tblTempUsageDetail_20' ) start [2024-12-22 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078163', 'tblTempUsageDetail_20' ) end [2024-12-22 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078163', 'tblTempVendorCDR_20' ) start [2024-12-22 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078163', 'tblTempVendorCDR_20' ) end [2024-12-22 14:38:18] Production.INFO: ProcessCDR(1,14078163,1,1,2) [2024-12-22 14:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078163', 'tblTempUsageDetail_20' ) start [2024-12-22 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078163', 'tblTempUsageDetail_20' ) end [2024-12-22 14:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:38:21] Production.INFO: ==30837== Releasing lock... [2024-12-22 14:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:38:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:39:05 [end_date_ymd] => 2024-12-22 14:39:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:39:05' and `end` < '2024-12-22 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-22 14:39:17] Production.INFO: count ==1127 [2024-12-22 14:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:39:05 - End Time 2024-12-22 14:39:05 [2024-12-22 14:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078168', 'tblTempUsageDetail_20' ) start [2024-12-22 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078168', 'tblTempUsageDetail_20' ) end [2024-12-22 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078168', 'tblTempVendorCDR_20' ) start [2024-12-22 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078168', 'tblTempVendorCDR_20' ) end [2024-12-22 14:39:17] Production.INFO: ProcessCDR(1,14078168,1,1,2) [2024-12-22 14:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078168', 'tblTempUsageDetail_20' ) start [2024-12-22 14:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078168', 'tblTempUsageDetail_20' ) end [2024-12-22 14:39:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:39:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:39:22] Production.INFO: ==30933== Releasing lock... [2024-12-22 14:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:39:22] Production.INFO: 37 MB #Memory Used# [2024-12-22 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:40:05 [end_date_ymd] => 2024-12-22 14:40:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:40:05' and `end` < '2024-12-22 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-22 14:40:17] Production.INFO: count ==1130 [2024-12-22 14:40:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:40:05 - End Time 2024-12-22 14:40:05 [2024-12-22 14:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078174', 'tblTempUsageDetail_20' ) start [2024-12-22 14:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078174', 'tblTempUsageDetail_20' ) end [2024-12-22 14:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078174', 'tblTempVendorCDR_20' ) start [2024-12-22 14:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078174', 'tblTempVendorCDR_20' ) end [2024-12-22 14:40:17] Production.INFO: ProcessCDR(1,14078174,1,1,2) [2024-12-22 14:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078174', 'tblTempUsageDetail_20' ) start [2024-12-22 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078174', 'tblTempUsageDetail_20' ) end [2024-12-22 14:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:40:22] Production.INFO: ==31017== Releasing lock... [2024-12-22 14:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:40:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:41:05 [end_date_ymd] => 2024-12-22 14:41:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:41:05' and `end` < '2024-12-22 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-22 14:41:17] Production.INFO: count ==1159 [2024-12-22 14:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:41:05 - End Time 2024-12-22 14:41:05 [2024-12-22 14:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078179', 'tblTempUsageDetail_20' ) start [2024-12-22 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078179', 'tblTempUsageDetail_20' ) end [2024-12-22 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078179', 'tblTempVendorCDR_20' ) start [2024-12-22 14:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078179', 'tblTempVendorCDR_20' ) end [2024-12-22 14:41:17] Production.INFO: ProcessCDR(1,14078179,1,1,2) [2024-12-22 14:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078179', 'tblTempUsageDetail_20' ) start [2024-12-22 14:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078179', 'tblTempUsageDetail_20' ) end [2024-12-22 14:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:41:21] Production.INFO: ==31103== Releasing lock... [2024-12-22 14:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:41:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:42:05 [end_date_ymd] => 2024-12-22 14:42:05 [RateCDR] => 1 ) [2024-12-22 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:42:05' and `end` < '2024-12-22 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:42:18] Production.INFO: count ==1159 [2024-12-22 14:42:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:42:05 - End Time 2024-12-22 14:42:05 [2024-12-22 14:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078184', 'tblTempUsageDetail_20' ) start [2024-12-22 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078184', 'tblTempUsageDetail_20' ) end [2024-12-22 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078184', 'tblTempVendorCDR_20' ) start [2024-12-22 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078184', 'tblTempVendorCDR_20' ) end [2024-12-22 14:42:18] Production.INFO: ProcessCDR(1,14078184,1,1,2) [2024-12-22 14:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078184', 'tblTempUsageDetail_20' ) start [2024-12-22 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078184', 'tblTempUsageDetail_20' ) end [2024-12-22 14:42:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:42:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:42:22] Production.INFO: ==31182== Releasing lock... [2024-12-22 14:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:42:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:43:05 [end_date_ymd] => 2024-12-22 14:43:05 [RateCDR] => 1 ) [2024-12-22 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:43:05' and `end` < '2024-12-22 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:43:17] Production.INFO: count ==1153 [2024-12-22 14:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:43:05 - End Time 2024-12-22 14:43:05 [2024-12-22 14:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078189', 'tblTempUsageDetail_20' ) start [2024-12-22 14:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078189', 'tblTempUsageDetail_20' ) end [2024-12-22 14:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078189', 'tblTempVendorCDR_20' ) start [2024-12-22 14:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078189', 'tblTempVendorCDR_20' ) end [2024-12-22 14:43:17] Production.INFO: ProcessCDR(1,14078189,1,1,2) [2024-12-22 14:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078189', 'tblTempUsageDetail_20' ) start [2024-12-22 14:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078189', 'tblTempUsageDetail_20' ) end [2024-12-22 14:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:43:21] Production.INFO: ==31333== Releasing lock... [2024-12-22 14:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:43:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 14:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:44:04 [end_date_ymd] => 2024-12-22 14:44:04 [RateCDR] => 1 ) [2024-12-22 14:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:44:04' and `end` < '2024-12-22 14:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:44:17] Production.INFO: count ==1156 [2024-12-22 14:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:44:04 - End Time 2024-12-22 14:44:04 [2024-12-22 14:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078194', 'tblTempUsageDetail_20' ) start [2024-12-22 14:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078194', 'tblTempUsageDetail_20' ) end [2024-12-22 14:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078194', 'tblTempVendorCDR_20' ) start [2024-12-22 14:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078194', 'tblTempVendorCDR_20' ) end [2024-12-22 14:44:17] Production.INFO: ProcessCDR(1,14078194,1,1,2) [2024-12-22 14:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078194', 'tblTempUsageDetail_20' ) start [2024-12-22 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078194', 'tblTempUsageDetail_20' ) end [2024-12-22 14:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:44:21] Production.INFO: ==31457== Releasing lock... [2024-12-22 14:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:44:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:45:05 [end_date_ymd] => 2024-12-22 14:45:05 [RateCDR] => 1 ) [2024-12-22 14:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:45:05' and `end` < '2024-12-22 14:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:45:17] Production.INFO: count ==1163 [2024-12-22 14:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:45:05 - End Time 2024-12-22 14:45:05 [2024-12-22 14:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078199', 'tblTempUsageDetail_20' ) start [2024-12-22 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078199', 'tblTempUsageDetail_20' ) end [2024-12-22 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078199', 'tblTempVendorCDR_20' ) start [2024-12-22 14:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078199', 'tblTempVendorCDR_20' ) end [2024-12-22 14:45:17] Production.INFO: ProcessCDR(1,14078199,1,1,2) [2024-12-22 14:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078199', 'tblTempUsageDetail_20' ) start [2024-12-22 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078199', 'tblTempUsageDetail_20' ) end [2024-12-22 14:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:45:22] Production.INFO: ==31558== Releasing lock... [2024-12-22 14:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:45:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:46:05 [end_date_ymd] => 2024-12-22 14:46:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:46:05' and `end` < '2024-12-22 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-22 14:46:17] Production.INFO: count ==1171 [2024-12-22 14:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:46:05 - End Time 2024-12-22 14:46:05 [2024-12-22 14:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078204', 'tblTempUsageDetail_20' ) start [2024-12-22 14:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078204', 'tblTempUsageDetail_20' ) end [2024-12-22 14:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078204', 'tblTempVendorCDR_20' ) start [2024-12-22 14:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078204', 'tblTempVendorCDR_20' ) end [2024-12-22 14:46:17] Production.INFO: ProcessCDR(1,14078204,1,1,2) [2024-12-22 14:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078204', 'tblTempUsageDetail_20' ) start [2024-12-22 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078204', 'tblTempUsageDetail_20' ) end [2024-12-22 14:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:46:22] Production.INFO: ==31646== Releasing lock... [2024-12-22 14:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:46:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:47:05 [end_date_ymd] => 2024-12-22 14:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:47:05' and `end` < '2024-12-22 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-22 14:47:17] Production.INFO: count ==1191 [2024-12-22 14:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:47:05 - End Time 2024-12-22 14:47:05 [2024-12-22 14:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078209', 'tblTempUsageDetail_20' ) start [2024-12-22 14:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078209', 'tblTempUsageDetail_20' ) end [2024-12-22 14:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078209', 'tblTempVendorCDR_20' ) start [2024-12-22 14:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078209', 'tblTempVendorCDR_20' ) end [2024-12-22 14:47:17] Production.INFO: ProcessCDR(1,14078209,1,1,2) [2024-12-22 14:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078209', 'tblTempUsageDetail_20' ) start [2024-12-22 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078209', 'tblTempUsageDetail_20' ) end [2024-12-22 14:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:47:22] Production.INFO: ==31727== Releasing lock... [2024-12-22 14:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:47:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:48:05 [end_date_ymd] => 2024-12-22 14:48:05 [RateCDR] => 1 ) [2024-12-22 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:48:05' and `end` < '2024-12-22 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:48:17] Production.INFO: count ==1193 [2024-12-22 14:48:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:48:05 - End Time 2024-12-22 14:48:05 [2024-12-22 14:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078214', 'tblTempUsageDetail_20' ) start [2024-12-22 14:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078214', 'tblTempUsageDetail_20' ) end [2024-12-22 14:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078214', 'tblTempVendorCDR_20' ) start [2024-12-22 14:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078214', 'tblTempVendorCDR_20' ) end [2024-12-22 14:48:17] Production.INFO: ProcessCDR(1,14078214,1,1,2) [2024-12-22 14:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078214', 'tblTempUsageDetail_20' ) start [2024-12-22 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078214', 'tblTempUsageDetail_20' ) end [2024-12-22 14:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:48:22] Production.INFO: ==31809== Releasing lock... [2024-12-22 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:48:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:49:05 [end_date_ymd] => 2024-12-22 14:49:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:49:05' and `end` < '2024-12-22 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-22 14:49:18] Production.INFO: count ==1206 [2024-12-22 14:49:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:49:05 - End Time 2024-12-22 14:49:05 [2024-12-22 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078219', 'tblTempUsageDetail_20' ) start [2024-12-22 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078219', 'tblTempUsageDetail_20' ) end [2024-12-22 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078219', 'tblTempVendorCDR_20' ) start [2024-12-22 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078219', 'tblTempVendorCDR_20' ) end [2024-12-22 14:49:18] Production.INFO: ProcessCDR(1,14078219,1,1,2) [2024-12-22 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078219', 'tblTempUsageDetail_20' ) start [2024-12-22 14:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078219', 'tblTempUsageDetail_20' ) end [2024-12-22 14:49:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:49:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:49:23] Production.INFO: ==31887== Releasing lock... [2024-12-22 14:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:49:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:50:06 [end_date_ymd] => 2024-12-22 14:50:06 [RateCDR] => 1 ) [2024-12-22 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:50:06' and `end` < '2024-12-22 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:50:18] Production.INFO: count ==1203 [2024-12-22 14:50:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:50:06 - End Time 2024-12-22 14:50:06 [2024-12-22 14:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078224', 'tblTempUsageDetail_20' ) start [2024-12-22 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078224', 'tblTempUsageDetail_20' ) end [2024-12-22 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078224', 'tblTempVendorCDR_20' ) start [2024-12-22 14:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078224', 'tblTempVendorCDR_20' ) end [2024-12-22 14:50:18] Production.INFO: ProcessCDR(1,14078224,1,1,2) [2024-12-22 14:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078224', 'tblTempUsageDetail_20' ) start [2024-12-22 14:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078224', 'tblTempUsageDetail_20' ) end [2024-12-22 14:50:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:50:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:50:23] Production.INFO: ==31972== Releasing lock... [2024-12-22 14:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:50:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:51:05 [end_date_ymd] => 2024-12-22 14:51:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:51:05' and `end` < '2024-12-22 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-22 14:51:17] Production.INFO: count ==1228 [2024-12-22 14:51:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:51:05 - End Time 2024-12-22 14:51:05 [2024-12-22 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078230', 'tblTempUsageDetail_20' ) start [2024-12-22 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078230', 'tblTempUsageDetail_20' ) end [2024-12-22 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078230', 'tblTempVendorCDR_20' ) start [2024-12-22 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078230', 'tblTempVendorCDR_20' ) end [2024-12-22 14:51:18] Production.INFO: ProcessCDR(1,14078230,1,1,2) [2024-12-22 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078230', 'tblTempUsageDetail_20' ) start [2024-12-22 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078230', 'tblTempUsageDetail_20' ) end [2024-12-22 14:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:51:21] Production.INFO: ==32058== Releasing lock... [2024-12-22 14:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:51:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:52:05 [end_date_ymd] => 2024-12-22 14:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:52:05' and `end` < '2024-12-22 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-22 14:52:17] Production.INFO: count ==1227 [2024-12-22 14:52:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:52:05 - End Time 2024-12-22 14:52:05 [2024-12-22 14:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078235', 'tblTempUsageDetail_20' ) start [2024-12-22 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078235', 'tblTempUsageDetail_20' ) end [2024-12-22 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078235', 'tblTempVendorCDR_20' ) start [2024-12-22 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078235', 'tblTempVendorCDR_20' ) end [2024-12-22 14:52:18] Production.INFO: ProcessCDR(1,14078235,1,1,2) [2024-12-22 14:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078235', 'tblTempUsageDetail_20' ) start [2024-12-22 14:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078235', 'tblTempUsageDetail_20' ) end [2024-12-22 14:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:52:21] Production.INFO: ==32143== Releasing lock... [2024-12-22 14:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:52:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:53:04 [end_date_ymd] => 2024-12-22 14:53:04 [RateCDR] => 1 ) [2024-12-22 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-22 11:53:04' and `end` < '2024-12-22 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-22 14:53:16] Production.INFO: count ==1227 [2024-12-22 14:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:53:04 - End Time 2024-12-22 14:53:04 [2024-12-22 14:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078240', 'tblTempUsageDetail_20' ) start [2024-12-22 14:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078240', 'tblTempUsageDetail_20' ) end [2024-12-22 14:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078240', 'tblTempVendorCDR_20' ) start [2024-12-22 14:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078240', 'tblTempVendorCDR_20' ) end [2024-12-22 14:53:17] Production.INFO: ProcessCDR(1,14078240,1,1,2) [2024-12-22 14:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078240', 'tblTempUsageDetail_20' ) start [2024-12-22 14:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078240', 'tblTempUsageDetail_20' ) end [2024-12-22 14:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:53:20] Production.INFO: ==32224== Releasing lock... [2024-12-22 14:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:53:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:54:05 [end_date_ymd] => 2024-12-22 14:54:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:54:05' and `end` < '2024-12-22 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-22 14:54:17] Production.INFO: count ==1226 [2024-12-22 14:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:54:05 - End Time 2024-12-22 14:54:05 [2024-12-22 14:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078245', 'tblTempUsageDetail_20' ) start [2024-12-22 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078245', 'tblTempUsageDetail_20' ) end [2024-12-22 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078245', 'tblTempVendorCDR_20' ) start [2024-12-22 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078245', 'tblTempVendorCDR_20' ) end [2024-12-22 14:54:17] Production.INFO: ProcessCDR(1,14078245,1,1,2) [2024-12-22 14:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078245', 'tblTempUsageDetail_20' ) start [2024-12-22 14:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078245', 'tblTempUsageDetail_20' ) end [2024-12-22 14:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:54:20] Production.INFO: ==32308== Releasing lock... [2024-12-22 14:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:54:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:55:04 [end_date_ymd] => 2024-12-22 14:55:04 [RateCDR] => 1 ) [2024-12-22 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:55:04' and `end` < '2024-12-22 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-22 14:55:17] Production.INFO: count ==1229 [2024-12-22 14:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:55:04 - End Time 2024-12-22 14:55:04 [2024-12-22 14:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078250', 'tblTempUsageDetail_20' ) start [2024-12-22 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078250', 'tblTempUsageDetail_20' ) end [2024-12-22 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078250', 'tblTempVendorCDR_20' ) start [2024-12-22 14:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078250', 'tblTempVendorCDR_20' ) end [2024-12-22 14:55:17] Production.INFO: ProcessCDR(1,14078250,1,1,2) [2024-12-22 14:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078250', 'tblTempUsageDetail_20' ) start [2024-12-22 14:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078250', 'tblTempUsageDetail_20' ) end [2024-12-22 14:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:55:20] Production.INFO: ==32386== Releasing lock... [2024-12-22 14:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:55:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:56:05 [end_date_ymd] => 2024-12-22 14:56:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:56:05' and `end` < '2024-12-22 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:56:17] Production.INFO: count ==1229 [2024-12-22 14:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:56:05 - End Time 2024-12-22 14:56:05 [2024-12-22 14:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078255', 'tblTempUsageDetail_20' ) start [2024-12-22 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078255', 'tblTempUsageDetail_20' ) end [2024-12-22 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078255', 'tblTempVendorCDR_20' ) start [2024-12-22 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078255', 'tblTempVendorCDR_20' ) end [2024-12-22 14:56:17] Production.INFO: ProcessCDR(1,14078255,1,1,2) [2024-12-22 14:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078255', 'tblTempUsageDetail_20' ) start [2024-12-22 14:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078255', 'tblTempUsageDetail_20' ) end [2024-12-22 14:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:56:20] Production.INFO: ==32467== Releasing lock... [2024-12-22 14:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:56:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 14:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:57:04 [end_date_ymd] => 2024-12-22 14:57:04 [RateCDR] => 1 ) [2024-12-22 14:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 11:57:04' and `end` < '2024-12-22 14:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 14:57:16] Production.INFO: count ==1241 [2024-12-22 14:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 11:57:04 - End Time 2024-12-22 14:57:04 [2024-12-22 14:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078260', 'tblTempUsageDetail_20' ) start [2024-12-22 14:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078260', 'tblTempUsageDetail_20' ) end [2024-12-22 14:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078260', 'tblTempVendorCDR_20' ) start [2024-12-22 14:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078260', 'tblTempVendorCDR_20' ) end [2024-12-22 14:57:17] Production.INFO: ProcessCDR(1,14078260,1,1,2) [2024-12-22 14:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078260', 'tblTempUsageDetail_20' ) start [2024-12-22 14:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078260', 'tblTempUsageDetail_20' ) end [2024-12-22 14:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:57:20] Production.INFO: ==32545== Releasing lock... [2024-12-22 14:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:57:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:58:05 [end_date_ymd] => 2024-12-22 14:58:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:58:05' and `end` < '2024-12-22 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-22 14:58:18] Production.INFO: count ==1241 [2024-12-22 14:58:18] Production.ERROR: pbx CDR StartTime 2024-12-22 11:58:05 - End Time 2024-12-22 14:58:05 [2024-12-22 14:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078265', 'tblTempUsageDetail_20' ) start [2024-12-22 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078265', 'tblTempUsageDetail_20' ) end [2024-12-22 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078265', 'tblTempVendorCDR_20' ) start [2024-12-22 14:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078265', 'tblTempVendorCDR_20' ) end [2024-12-22 14:58:18] Production.INFO: ProcessCDR(1,14078265,1,1,2) [2024-12-22 14:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078265', 'tblTempUsageDetail_20' ) start [2024-12-22 14:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078265', 'tblTempUsageDetail_20' ) end [2024-12-22 14:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:58:21] Production.INFO: ==32622== Releasing lock... [2024-12-22 14:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:58:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 11:59:05 [end_date_ymd] => 2024-12-22 14:59:05 [RateCDR] => 1 ) [2024-12-22 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-22 11:59:05' and `end` < '2024-12-22 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-22 14:59:18] Production.INFO: count ==1239 [2024-12-22 14:59:19] Production.ERROR: pbx CDR StartTime 2024-12-22 11:59:05 - End Time 2024-12-22 14:59:05 [2024-12-22 14:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078270', 'tblTempUsageDetail_20' ) start [2024-12-22 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078270', 'tblTempUsageDetail_20' ) end [2024-12-22 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078270', 'tblTempVendorCDR_20' ) start [2024-12-22 14:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078270', 'tblTempVendorCDR_20' ) end [2024-12-22 14:59:19] Production.INFO: ProcessCDR(1,14078270,1,1,2) [2024-12-22 14:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 14:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078270', 'tblTempUsageDetail_20' ) start [2024-12-22 14:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078270', 'tblTempUsageDetail_20' ) end [2024-12-22 14:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 14:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 14:59:22] Production.INFO: ==32738== Releasing lock... [2024-12-22 14:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 14:59:22] Production.INFO: 38 MB #Memory Used# [2024-12-22 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:00:06 [end_date_ymd] => 2024-12-22 15:00:06 [RateCDR] => 1 ) [2024-12-22 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:00:06' and `end` < '2024-12-22 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:00:18] Production.INFO: count ==1237 [2024-12-22 15:00:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:00:06 - End Time 2024-12-22 15:00:06 [2024-12-22 15:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078276', 'tblTempUsageDetail_20' ) start [2024-12-22 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078276', 'tblTempUsageDetail_20' ) end [2024-12-22 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078276', 'tblTempVendorCDR_20' ) start [2024-12-22 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078276', 'tblTempVendorCDR_20' ) end [2024-12-22 15:00:18] Production.INFO: ProcessCDR(1,14078276,1,1,2) [2024-12-22 15:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078276', 'tblTempUsageDetail_20' ) start [2024-12-22 15:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078276', 'tblTempUsageDetail_20' ) end [2024-12-22 15:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:00:21] Production.INFO: ==362== Releasing lock... [2024-12-22 15:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:00:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:01:06 [end_date_ymd] => 2024-12-22 15:01:06 [RateCDR] => 1 ) [2024-12-22 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:01:06' and `end` < '2024-12-22 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:01:18] Production.INFO: count ==1241 [2024-12-22 15:01:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:01:06 - End Time 2024-12-22 15:01:06 [2024-12-22 15:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078281', 'tblTempUsageDetail_20' ) start [2024-12-22 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078281', 'tblTempUsageDetail_20' ) end [2024-12-22 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078281', 'tblTempVendorCDR_20' ) start [2024-12-22 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078281', 'tblTempVendorCDR_20' ) end [2024-12-22 15:01:18] Production.INFO: ProcessCDR(1,14078281,1,1,2) [2024-12-22 15:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078281', 'tblTempUsageDetail_20' ) start [2024-12-22 15:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078281', 'tblTempUsageDetail_20' ) end [2024-12-22 15:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:01:23] Production.INFO: ==540== Releasing lock... [2024-12-22 15:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:01:23] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:02:05 [end_date_ymd] => 2024-12-22 15:02:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:02:05' and `end` < '2024-12-22 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-22 15:02:17] Production.INFO: count ==1239 [2024-12-22 15:02:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:02:05 - End Time 2024-12-22 15:02:05 [2024-12-22 15:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078286', 'tblTempUsageDetail_20' ) start [2024-12-22 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078286', 'tblTempUsageDetail_20' ) end [2024-12-22 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078286', 'tblTempVendorCDR_20' ) start [2024-12-22 15:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078286', 'tblTempVendorCDR_20' ) end [2024-12-22 15:02:17] Production.INFO: ProcessCDR(1,14078286,1,1,2) [2024-12-22 15:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078286', 'tblTempUsageDetail_20' ) start [2024-12-22 15:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078286', 'tblTempUsageDetail_20' ) end [2024-12-22 15:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:02:20] Production.INFO: ==620== Releasing lock... [2024-12-22 15:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:02:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:03:04 [end_date_ymd] => 2024-12-22 15:03:04 [RateCDR] => 1 ) [2024-12-22 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-22 12:03:04' and `end` < '2024-12-22 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-22 15:03:17] Production.INFO: count ==1230 [2024-12-22 15:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:03:04 - End Time 2024-12-22 15:03:04 [2024-12-22 15:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078291', 'tblTempUsageDetail_20' ) start [2024-12-22 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078291', 'tblTempUsageDetail_20' ) end [2024-12-22 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078291', 'tblTempVendorCDR_20' ) start [2024-12-22 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078291', 'tblTempVendorCDR_20' ) end [2024-12-22 15:03:17] Production.INFO: ProcessCDR(1,14078291,1,1,2) [2024-12-22 15:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078291', 'tblTempUsageDetail_20' ) start [2024-12-22 15:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078291', 'tblTempUsageDetail_20' ) end [2024-12-22 15:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:03:20] Production.INFO: ==719== Releasing lock... [2024-12-22 15:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:03:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 15:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:04:04 [end_date_ymd] => 2024-12-22 15:04:04 [RateCDR] => 1 ) [2024-12-22 15: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-22 12:04:04' and `end` < '2024-12-22 15: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-22 15:04:17] Production.INFO: count ==1231 [2024-12-22 15:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:04:04 - End Time 2024-12-22 15:04:04 [2024-12-22 15:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078296', 'tblTempUsageDetail_20' ) start [2024-12-22 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078296', 'tblTempUsageDetail_20' ) end [2024-12-22 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078296', 'tblTempVendorCDR_20' ) start [2024-12-22 15:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078296', 'tblTempVendorCDR_20' ) end [2024-12-22 15:04:17] Production.INFO: ProcessCDR(1,14078296,1,1,2) [2024-12-22 15:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078296', 'tblTempUsageDetail_20' ) start [2024-12-22 15:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078296', 'tblTempUsageDetail_20' ) end [2024-12-22 15:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:04:22] Production.INFO: ==798== Releasing lock... [2024-12-22 15:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:04:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:05:05 [end_date_ymd] => 2024-12-22 15:05:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:05:05' and `end` < '2024-12-22 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-22 15:05:17] Production.INFO: count ==1231 [2024-12-22 15:05:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:05:05 - End Time 2024-12-22 15:05:05 [2024-12-22 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078301', 'tblTempUsageDetail_20' ) start [2024-12-22 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078301', 'tblTempUsageDetail_20' ) end [2024-12-22 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078301', 'tblTempVendorCDR_20' ) start [2024-12-22 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078301', 'tblTempVendorCDR_20' ) end [2024-12-22 15:05:18] Production.INFO: ProcessCDR(1,14078301,1,1,2) [2024-12-22 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078301', 'tblTempUsageDetail_20' ) start [2024-12-22 15:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078301', 'tblTempUsageDetail_20' ) end [2024-12-22 15:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:05:22] Production.INFO: ==950== Releasing lock... [2024-12-22 15:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:05:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:06:05 [end_date_ymd] => 2024-12-22 15:06:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:06:05' and `end` < '2024-12-22 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-22 15:06:17] Production.INFO: count ==1233 [2024-12-22 15:06:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:06:05 - End Time 2024-12-22 15:06:05 [2024-12-22 15:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078306', 'tblTempUsageDetail_20' ) start [2024-12-22 15:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078306', 'tblTempUsageDetail_20' ) end [2024-12-22 15:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078306', 'tblTempVendorCDR_20' ) start [2024-12-22 15:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078306', 'tblTempVendorCDR_20' ) end [2024-12-22 15:06:17] Production.INFO: ProcessCDR(1,14078306,1,1,2) [2024-12-22 15:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078306', 'tblTempUsageDetail_20' ) start [2024-12-22 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078306', 'tblTempUsageDetail_20' ) end [2024-12-22 15:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:06:21] Production.INFO: ==1026== Releasing lock... [2024-12-22 15:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:06:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:07:04 [end_date_ymd] => 2024-12-22 15:07:04 [RateCDR] => 1 ) [2024-12-22 15:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:07:04' and `end` < '2024-12-22 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:07:17] Production.INFO: count ==1231 [2024-12-22 15:07:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:07:04 - End Time 2024-12-22 15:07:04 [2024-12-22 15:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078311', 'tblTempUsageDetail_20' ) start [2024-12-22 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078311', 'tblTempUsageDetail_20' ) end [2024-12-22 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078311', 'tblTempVendorCDR_20' ) start [2024-12-22 15:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078311', 'tblTempVendorCDR_20' ) end [2024-12-22 15:07:18] Production.INFO: ProcessCDR(1,14078311,1,1,2) [2024-12-22 15:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078311', 'tblTempUsageDetail_20' ) start [2024-12-22 15:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078311', 'tblTempUsageDetail_20' ) end [2024-12-22 15:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:07:21] Production.INFO: ==1100== Releasing lock... [2024-12-22 15:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:07:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:08:05 [end_date_ymd] => 2024-12-22 15:08:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:08:05' and `end` < '2024-12-22 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-22 15:08:17] Production.INFO: count ==1231 [2024-12-22 15:08:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:08:05 - End Time 2024-12-22 15:08:05 [2024-12-22 15:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078316', 'tblTempUsageDetail_20' ) start [2024-12-22 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078316', 'tblTempUsageDetail_20' ) end [2024-12-22 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078316', 'tblTempVendorCDR_20' ) start [2024-12-22 15:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078316', 'tblTempVendorCDR_20' ) end [2024-12-22 15:08:17] Production.INFO: ProcessCDR(1,14078316,1,1,2) [2024-12-22 15:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078316', 'tblTempUsageDetail_20' ) start [2024-12-22 15:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078316', 'tblTempUsageDetail_20' ) end [2024-12-22 15:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:08:20] Production.INFO: ==1275== Releasing lock... [2024-12-22 15:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:08:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:09:05 [end_date_ymd] => 2024-12-22 15:09:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:09:05' and `end` < '2024-12-22 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-22 15:09:20] Production.INFO: count ==1230 [2024-12-22 15:09:20] Production.ERROR: pbx CDR StartTime 2024-12-22 12:09:05 - End Time 2024-12-22 15:09:05 [2024-12-22 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078321', 'tblTempUsageDetail_20' ) start [2024-12-22 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078321', 'tblTempUsageDetail_20' ) end [2024-12-22 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078321', 'tblTempVendorCDR_20' ) start [2024-12-22 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078321', 'tblTempVendorCDR_20' ) end [2024-12-22 15:09:20] Production.INFO: ProcessCDR(1,14078321,1,1,2) [2024-12-22 15:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078321', 'tblTempUsageDetail_20' ) start [2024-12-22 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078321', 'tblTempUsageDetail_20' ) end [2024-12-22 15:09:24] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:09:24] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:09:24] Production.INFO: ==1345== Releasing lock... [2024-12-22 15:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:09:24] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:10:06 [end_date_ymd] => 2024-12-22 15:10:06 [RateCDR] => 1 ) [2024-12-22 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:10:06' and `end` < '2024-12-22 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:10:18] Production.INFO: count ==1228 [2024-12-22 15:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:10:06 - End Time 2024-12-22 15:10:06 [2024-12-22 15:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078327', 'tblTempUsageDetail_20' ) start [2024-12-22 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078327', 'tblTempUsageDetail_20' ) end [2024-12-22 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078327', 'tblTempVendorCDR_20' ) start [2024-12-22 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078327', 'tblTempVendorCDR_20' ) end [2024-12-22 15:10:18] Production.INFO: ProcessCDR(1,14078327,1,1,2) [2024-12-22 15:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078327', 'tblTempUsageDetail_20' ) start [2024-12-22 15:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078327', 'tblTempUsageDetail_20' ) end [2024-12-22 15:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:10:21] Production.INFO: ==1418== Releasing lock... [2024-12-22 15:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:10:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:11:05 [end_date_ymd] => 2024-12-22 15:11:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:11:05' and `end` < '2024-12-22 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-22 15:11:17] Production.INFO: count ==1216 [2024-12-22 15:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:11:05 - End Time 2024-12-22 15:11:05 [2024-12-22 15:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078332', 'tblTempUsageDetail_20' ) start [2024-12-22 15:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078332', 'tblTempUsageDetail_20' ) end [2024-12-22 15:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078332', 'tblTempVendorCDR_20' ) start [2024-12-22 15:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078332', 'tblTempVendorCDR_20' ) end [2024-12-22 15:11:17] Production.INFO: ProcessCDR(1,14078332,1,1,2) [2024-12-22 15:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078332', 'tblTempUsageDetail_20' ) start [2024-12-22 15:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078332', 'tblTempUsageDetail_20' ) end [2024-12-22 15:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:11:20] Production.INFO: ==1490== Releasing lock... [2024-12-22 15:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:11:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 15:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:12:04 [end_date_ymd] => 2024-12-22 15:12:04 [RateCDR] => 1 ) [2024-12-22 15: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-22 12:12:04' and `end` < '2024-12-22 15: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-22 15:12:16] Production.INFO: count ==1215 [2024-12-22 15:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:12:04 - End Time 2024-12-22 15:12:04 [2024-12-22 15:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078337', 'tblTempUsageDetail_20' ) start [2024-12-22 15:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078337', 'tblTempUsageDetail_20' ) end [2024-12-22 15:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078337', 'tblTempVendorCDR_20' ) start [2024-12-22 15:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078337', 'tblTempVendorCDR_20' ) end [2024-12-22 15:12:17] Production.INFO: ProcessCDR(1,14078337,1,1,2) [2024-12-22 15:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078337', 'tblTempUsageDetail_20' ) start [2024-12-22 15:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078337', 'tblTempUsageDetail_20' ) end [2024-12-22 15:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:12:20] Production.INFO: ==1678== Releasing lock... [2024-12-22 15:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:12:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:13:05 [end_date_ymd] => 2024-12-22 15:13:05 [RateCDR] => 1 ) [2024-12-22 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:13:05' and `end` < '2024-12-22 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:13:18] Production.INFO: count ==1214 [2024-12-22 15:13:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:13:05 - End Time 2024-12-22 15:13:05 [2024-12-22 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078342', 'tblTempUsageDetail_20' ) start [2024-12-22 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078342', 'tblTempUsageDetail_20' ) end [2024-12-22 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078342', 'tblTempVendorCDR_20' ) start [2024-12-22 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078342', 'tblTempVendorCDR_20' ) end [2024-12-22 15:13:18] Production.INFO: ProcessCDR(1,14078342,1,1,2) [2024-12-22 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078342', 'tblTempUsageDetail_20' ) start [2024-12-22 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078342', 'tblTempUsageDetail_20' ) end [2024-12-22 15:13:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:13:22] Production.INFO: ==1750== Releasing lock... [2024-12-22 15:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:13:22] Production.INFO: 38 MB #Memory Used# [2024-12-22 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:14:05 [end_date_ymd] => 2024-12-22 15:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:14:05' and `end` < '2024-12-22 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-22 15:14:17] Production.INFO: count ==1211 [2024-12-22 15:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:14:05 - End Time 2024-12-22 15:14:05 [2024-12-22 15:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078347', 'tblTempUsageDetail_20' ) start [2024-12-22 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078347', 'tblTempUsageDetail_20' ) end [2024-12-22 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078347', 'tblTempVendorCDR_20' ) start [2024-12-22 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078347', 'tblTempVendorCDR_20' ) end [2024-12-22 15:14:17] Production.INFO: ProcessCDR(1,14078347,1,1,2) [2024-12-22 15:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078347', 'tblTempUsageDetail_20' ) start [2024-12-22 15:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078347', 'tblTempUsageDetail_20' ) end [2024-12-22 15:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:14:21] Production.INFO: ==1863== Releasing lock... [2024-12-22 15:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:14:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:15:05 [end_date_ymd] => 2024-12-22 15:15:05 [RateCDR] => 1 ) [2024-12-22 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:15:05' and `end` < '2024-12-22 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:15:18] Production.INFO: count ==1210 [2024-12-22 15:15:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:15:05 - End Time 2024-12-22 15:15:05 [2024-12-22 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078352', 'tblTempUsageDetail_20' ) start [2024-12-22 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078352', 'tblTempUsageDetail_20' ) end [2024-12-22 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078352', 'tblTempVendorCDR_20' ) start [2024-12-22 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078352', 'tblTempVendorCDR_20' ) end [2024-12-22 15:15:18] Production.INFO: ProcessCDR(1,14078352,1,1,2) [2024-12-22 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078352', 'tblTempUsageDetail_20' ) start [2024-12-22 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078352', 'tblTempUsageDetail_20' ) end [2024-12-22 15:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:15:21] Production.INFO: ==2014== Releasing lock... [2024-12-22 15:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:15:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:16:04 [end_date_ymd] => 2024-12-22 15:16:04 [RateCDR] => 1 ) [2024-12-22 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-22 12:16:04' and `end` < '2024-12-22 15:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:16:19] Production.INFO: count ==1207 [2024-12-22 15:16:19] Production.ERROR: pbx CDR StartTime 2024-12-22 12:16:04 - End Time 2024-12-22 15:16:04 [2024-12-22 15:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078357', 'tblTempUsageDetail_20' ) start [2024-12-22 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078357', 'tblTempUsageDetail_20' ) end [2024-12-22 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078357', 'tblTempVendorCDR_20' ) start [2024-12-22 15:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078357', 'tblTempVendorCDR_20' ) end [2024-12-22 15:16:19] Production.INFO: ProcessCDR(1,14078357,1,1,2) [2024-12-22 15:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078357', 'tblTempUsageDetail_20' ) start [2024-12-22 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078357', 'tblTempUsageDetail_20' ) end [2024-12-22 15:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:16:22] Production.INFO: ==2090== Releasing lock... [2024-12-22 15:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:16:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:17:05 [end_date_ymd] => 2024-12-22 15:17:05 [RateCDR] => 1 ) [2024-12-22 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:17:05' and `end` < '2024-12-22 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:17:18] Production.INFO: count ==1205 [2024-12-22 15:17:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:17:05 - End Time 2024-12-22 15:17:05 [2024-12-22 15:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078362', 'tblTempUsageDetail_20' ) start [2024-12-22 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078362', 'tblTempUsageDetail_20' ) end [2024-12-22 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078362', 'tblTempVendorCDR_20' ) start [2024-12-22 15:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078362', 'tblTempVendorCDR_20' ) end [2024-12-22 15:17:18] Production.INFO: ProcessCDR(1,14078362,1,1,2) [2024-12-22 15:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078362', 'tblTempUsageDetail_20' ) start [2024-12-22 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078362', 'tblTempUsageDetail_20' ) end [2024-12-22 15:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:17:21] Production.INFO: ==2167== Releasing lock... [2024-12-22 15:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:17:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:18:04 [end_date_ymd] => 2024-12-22 15:18:04 [RateCDR] => 1 ) [2024-12-22 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-22 12:18:04' and `end` < '2024-12-22 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-22 15:18:16] Production.INFO: count ==1193 [2024-12-22 15:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:18:04 - End Time 2024-12-22 15:18:04 [2024-12-22 15:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078367', 'tblTempUsageDetail_20' ) start [2024-12-22 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078367', 'tblTempUsageDetail_20' ) end [2024-12-22 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078367', 'tblTempVendorCDR_20' ) start [2024-12-22 15:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078367', 'tblTempVendorCDR_20' ) end [2024-12-22 15:18:17] Production.INFO: ProcessCDR(1,14078367,1,1,2) [2024-12-22 15:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078367', 'tblTempUsageDetail_20' ) start [2024-12-22 15:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078367', 'tblTempUsageDetail_20' ) end [2024-12-22 15:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:18:21] Production.INFO: ==2239== Releasing lock... [2024-12-22 15:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:18:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:19:05 [end_date_ymd] => 2024-12-22 15:19:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:19:05' and `end` < '2024-12-22 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-22 15:19:17] Production.INFO: count ==1190 [2024-12-22 15:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:19:05 - End Time 2024-12-22 15:19:05 [2024-12-22 15:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078372', 'tblTempUsageDetail_20' ) start [2024-12-22 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078372', 'tblTempUsageDetail_20' ) end [2024-12-22 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078372', 'tblTempVendorCDR_20' ) start [2024-12-22 15:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078372', 'tblTempVendorCDR_20' ) end [2024-12-22 15:19:17] Production.INFO: ProcessCDR(1,14078372,1,1,2) [2024-12-22 15:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078372', 'tblTempUsageDetail_20' ) start [2024-12-22 15:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078372', 'tblTempUsageDetail_20' ) end [2024-12-22 15:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:19:20] Production.INFO: ==2312== Releasing lock... [2024-12-22 15:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:19:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:20:06 [end_date_ymd] => 2024-12-22 15:20:06 [RateCDR] => 1 ) [2024-12-22 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:20:06' and `end` < '2024-12-22 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:20:18] Production.INFO: count ==1188 [2024-12-22 15:20:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:20:06 - End Time 2024-12-22 15:20:06 [2024-12-22 15:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078378', 'tblTempUsageDetail_20' ) start [2024-12-22 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078378', 'tblTempUsageDetail_20' ) end [2024-12-22 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078378', 'tblTempVendorCDR_20' ) start [2024-12-22 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078378', 'tblTempVendorCDR_20' ) end [2024-12-22 15:20:18] Production.INFO: ProcessCDR(1,14078378,1,1,2) [2024-12-22 15:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078378', 'tblTempUsageDetail_20' ) start [2024-12-22 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078378', 'tblTempUsageDetail_20' ) end [2024-12-22 15:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:20:22] Production.INFO: ==2388== Releasing lock... [2024-12-22 15:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:20:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:21:05 [end_date_ymd] => 2024-12-22 15:21:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:21:05' and `end` < '2024-12-22 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-22 15:21:17] Production.INFO: count ==1199 [2024-12-22 15:21:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:21:05 - End Time 2024-12-22 15:21:05 [2024-12-22 15:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078383', 'tblTempUsageDetail_20' ) start [2024-12-22 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078383', 'tblTempUsageDetail_20' ) end [2024-12-22 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078383', 'tblTempVendorCDR_20' ) start [2024-12-22 15:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078383', 'tblTempVendorCDR_20' ) end [2024-12-22 15:21:17] Production.INFO: ProcessCDR(1,14078383,1,1,2) [2024-12-22 15:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078383', 'tblTempUsageDetail_20' ) start [2024-12-22 15:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078383', 'tblTempUsageDetail_20' ) end [2024-12-22 15:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:21:20] Production.INFO: ==2463== Releasing lock... [2024-12-22 15:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:21:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:22:06 [end_date_ymd] => 2024-12-22 15:22:06 [RateCDR] => 1 ) [2024-12-22 15:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:22:06' and `end` < '2024-12-22 15:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:22:18] Production.INFO: count ==1194 [2024-12-22 15:22:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:22:06 - End Time 2024-12-22 15:22:06 [2024-12-22 15:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078388', 'tblTempUsageDetail_20' ) start [2024-12-22 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078388', 'tblTempUsageDetail_20' ) end [2024-12-22 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078388', 'tblTempVendorCDR_20' ) start [2024-12-22 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078388', 'tblTempVendorCDR_20' ) end [2024-12-22 15:22:18] Production.INFO: ProcessCDR(1,14078388,1,1,2) [2024-12-22 15:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078388', 'tblTempUsageDetail_20' ) start [2024-12-22 15:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078388', 'tblTempUsageDetail_20' ) end [2024-12-22 15:22:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:22:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:22:23] Production.INFO: ==2540== Releasing lock... [2024-12-22 15:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:22:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:23:04 [end_date_ymd] => 2024-12-22 15:23:04 [RateCDR] => 1 ) [2024-12-22 15:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:23:04' and `end` < '2024-12-22 15:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:23:18] Production.INFO: count ==1194 [2024-12-22 15:23:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:23:04 - End Time 2024-12-22 15:23:04 [2024-12-22 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078393', 'tblTempUsageDetail_20' ) start [2024-12-22 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078393', 'tblTempUsageDetail_20' ) end [2024-12-22 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078393', 'tblTempVendorCDR_20' ) start [2024-12-22 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078393', 'tblTempVendorCDR_20' ) end [2024-12-22 15:23:18] Production.INFO: ProcessCDR(1,14078393,1,1,2) [2024-12-22 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078393', 'tblTempUsageDetail_20' ) start [2024-12-22 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078393', 'tblTempUsageDetail_20' ) end [2024-12-22 15:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:23:21] Production.INFO: ==2611== Releasing lock... [2024-12-22 15:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:23:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:24:05 [end_date_ymd] => 2024-12-22 15:24:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:24:05' and `end` < '2024-12-22 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-22 15:24:18] Production.INFO: count ==1197 [2024-12-22 15:24:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:24:05 - End Time 2024-12-22 15:24:05 [2024-12-22 15:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078398', 'tblTempUsageDetail_20' ) start [2024-12-22 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078398', 'tblTempUsageDetail_20' ) end [2024-12-22 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078398', 'tblTempVendorCDR_20' ) start [2024-12-22 15:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078398', 'tblTempVendorCDR_20' ) end [2024-12-22 15:24:18] Production.INFO: ProcessCDR(1,14078398,1,1,2) [2024-12-22 15:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078398', 'tblTempUsageDetail_20' ) start [2024-12-22 15:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078398', 'tblTempUsageDetail_20' ) end [2024-12-22 15:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:24:21] Production.INFO: ==2682== Releasing lock... [2024-12-22 15:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:24:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:25:04 [end_date_ymd] => 2024-12-22 15:25:04 [RateCDR] => 1 ) [2024-12-22 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-22 12:25:04' and `end` < '2024-12-22 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-22 15:25:16] Production.INFO: count ==1198 [2024-12-22 15:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:25:04 - End Time 2024-12-22 15:25:04 [2024-12-22 15:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078403', 'tblTempUsageDetail_20' ) start [2024-12-22 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078403', 'tblTempUsageDetail_20' ) end [2024-12-22 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078403', 'tblTempVendorCDR_20' ) start [2024-12-22 15:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078403', 'tblTempVendorCDR_20' ) end [2024-12-22 15:25:17] Production.INFO: ProcessCDR(1,14078403,1,1,2) [2024-12-22 15:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078403', 'tblTempUsageDetail_20' ) start [2024-12-22 15:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078403', 'tblTempUsageDetail_20' ) end [2024-12-22 15:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:25:20] Production.INFO: ==2752== Releasing lock... [2024-12-22 15:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:25:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:26:04 [end_date_ymd] => 2024-12-22 15:26:04 [RateCDR] => 1 ) [2024-12-22 15: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-22 12:26:04' and `end` < '2024-12-22 15: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-22 15:26:18] Production.INFO: count ==1198 [2024-12-22 15:26:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:26:04 - End Time 2024-12-22 15:26:04 [2024-12-22 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078408', 'tblTempUsageDetail_20' ) start [2024-12-22 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078408', 'tblTempUsageDetail_20' ) end [2024-12-22 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078408', 'tblTempVendorCDR_20' ) start [2024-12-22 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078408', 'tblTempVendorCDR_20' ) end [2024-12-22 15:26:18] Production.INFO: ProcessCDR(1,14078408,1,1,2) [2024-12-22 15:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078408', 'tblTempUsageDetail_20' ) start [2024-12-22 15:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078408', 'tblTempUsageDetail_20' ) end [2024-12-22 15:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:26:21] Production.INFO: ==2823== Releasing lock... [2024-12-22 15:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:26:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:27:04 [end_date_ymd] => 2024-12-22 15:27:04 [RateCDR] => 1 ) [2024-12-22 15: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-22 12:27:04' and `end` < '2024-12-22 15: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-22 15:27:16] Production.INFO: count ==1197 [2024-12-22 15:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:27:04 - End Time 2024-12-22 15:27:04 [2024-12-22 15:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078413', 'tblTempUsageDetail_20' ) start [2024-12-22 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078413', 'tblTempUsageDetail_20' ) end [2024-12-22 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078413', 'tblTempVendorCDR_20' ) start [2024-12-22 15:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078413', 'tblTempVendorCDR_20' ) end [2024-12-22 15:27:17] Production.INFO: ProcessCDR(1,14078413,1,1,2) [2024-12-22 15:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078413', 'tblTempUsageDetail_20' ) start [2024-12-22 15:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078413', 'tblTempUsageDetail_20' ) end [2024-12-22 15:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:27:20] Production.INFO: ==2895== Releasing lock... [2024-12-22 15:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:27:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:28:05 [end_date_ymd] => 2024-12-22 15:28:05 [RateCDR] => 1 ) [2024-12-22 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:28:05' and `end` < '2024-12-22 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:28:19] Production.INFO: count ==1195 [2024-12-22 15:28:19] Production.ERROR: pbx CDR StartTime 2024-12-22 12:28:05 - End Time 2024-12-22 15:28:05 [2024-12-22 15:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078418', 'tblTempUsageDetail_20' ) start [2024-12-22 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078418', 'tblTempUsageDetail_20' ) end [2024-12-22 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078418', 'tblTempVendorCDR_20' ) start [2024-12-22 15:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078418', 'tblTempVendorCDR_20' ) end [2024-12-22 15:28:19] Production.INFO: ProcessCDR(1,14078418,1,1,2) [2024-12-22 15:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078418', 'tblTempUsageDetail_20' ) start [2024-12-22 15:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078418', 'tblTempUsageDetail_20' ) end [2024-12-22 15:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:28:22] Production.INFO: ==2968== Releasing lock... [2024-12-22 15:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:28:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:29:05 [end_date_ymd] => 2024-12-22 15:29:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:29:05' and `end` < '2024-12-22 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-22 15:29:18] Production.INFO: count ==1193 [2024-12-22 15:29:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:29:05 - End Time 2024-12-22 15:29:05 [2024-12-22 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078423', 'tblTempUsageDetail_20' ) start [2024-12-22 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078423', 'tblTempUsageDetail_20' ) end [2024-12-22 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078423', 'tblTempVendorCDR_20' ) start [2024-12-22 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078423', 'tblTempVendorCDR_20' ) end [2024-12-22 15:29:18] Production.INFO: ProcessCDR(1,14078423,1,1,2) [2024-12-22 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078423', 'tblTempUsageDetail_20' ) start [2024-12-22 15:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078423', 'tblTempUsageDetail_20' ) end [2024-12-22 15:29:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:29:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:29:23] Production.INFO: ==3043== Releasing lock... [2024-12-22 15:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:29:23] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:30:06 [end_date_ymd] => 2024-12-22 15:30:06 [RateCDR] => 1 ) [2024-12-22 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:30:06' and `end` < '2024-12-22 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:30:18] Production.INFO: count ==1196 [2024-12-22 15:30:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:30:06 - End Time 2024-12-22 15:30:06 [2024-12-22 15:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078429', 'tblTempUsageDetail_20' ) start [2024-12-22 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078429', 'tblTempUsageDetail_20' ) end [2024-12-22 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078429', 'tblTempVendorCDR_20' ) start [2024-12-22 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078429', 'tblTempVendorCDR_20' ) end [2024-12-22 15:30:18] Production.INFO: ProcessCDR(1,14078429,1,1,2) [2024-12-22 15:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078429', 'tblTempUsageDetail_20' ) start [2024-12-22 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078429', 'tblTempUsageDetail_20' ) end [2024-12-22 15:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:30:23] Production.INFO: ==3159== Releasing lock... [2024-12-22 15:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:30:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:31:05 [end_date_ymd] => 2024-12-22 15:31:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:31:05' and `end` < '2024-12-22 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-22 15:31:18] Production.INFO: count ==1171 [2024-12-22 15:31:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:31:05 - End Time 2024-12-22 15:31:05 [2024-12-22 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078434', 'tblTempUsageDetail_20' ) start [2024-12-22 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078434', 'tblTempUsageDetail_20' ) end [2024-12-22 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078434', 'tblTempVendorCDR_20' ) start [2024-12-22 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078434', 'tblTempVendorCDR_20' ) end [2024-12-22 15:31:18] Production.INFO: ProcessCDR(1,14078434,1,1,2) [2024-12-22 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078434', 'tblTempUsageDetail_20' ) start [2024-12-22 15:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078434', 'tblTempUsageDetail_20' ) end [2024-12-22 15:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:31:21] Production.INFO: ==3236== Releasing lock... [2024-12-22 15:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:31:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:32:05 [end_date_ymd] => 2024-12-22 15:32:05 [RateCDR] => 1 ) [2024-12-22 15: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-22 12:32:05' and `end` < '2024-12-22 15: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-22 15:32:17] Production.INFO: count ==1173 [2024-12-22 15:32:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:32:05 - End Time 2024-12-22 15:32:05 [2024-12-22 15:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078439', 'tblTempUsageDetail_20' ) start [2024-12-22 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078439', 'tblTempUsageDetail_20' ) end [2024-12-22 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078439', 'tblTempVendorCDR_20' ) start [2024-12-22 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078439', 'tblTempVendorCDR_20' ) end [2024-12-22 15:32:18] Production.INFO: ProcessCDR(1,14078439,1,1,2) [2024-12-22 15:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078439', 'tblTempUsageDetail_20' ) start [2024-12-22 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078439', 'tblTempUsageDetail_20' ) end [2024-12-22 15:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:32:21] Production.INFO: ==3306== Releasing lock... [2024-12-22 15:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:32:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:33:05 [end_date_ymd] => 2024-12-22 15:33:05 [RateCDR] => 1 ) [2024-12-22 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:33:05' and `end` < '2024-12-22 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:33:17] Production.INFO: count ==1171 [2024-12-22 15:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:33:05 - End Time 2024-12-22 15:33:05 [2024-12-22 15:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078444', 'tblTempUsageDetail_20' ) start [2024-12-22 15:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078444', 'tblTempUsageDetail_20' ) end [2024-12-22 15:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078444', 'tblTempVendorCDR_20' ) start [2024-12-22 15:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078444', 'tblTempVendorCDR_20' ) end [2024-12-22 15:33:17] Production.INFO: ProcessCDR(1,14078444,1,1,2) [2024-12-22 15:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078444', 'tblTempUsageDetail_20' ) start [2024-12-22 15:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078444', 'tblTempUsageDetail_20' ) end [2024-12-22 15:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:33:20] Production.INFO: ==3377== Releasing lock... [2024-12-22 15:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:33:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:34:04 [end_date_ymd] => 2024-12-22 15:34:04 [RateCDR] => 1 ) [2024-12-22 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-22 12:34:04' and `end` < '2024-12-22 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-22 15:34:17] Production.INFO: count ==1170 [2024-12-22 15:34:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:34:04 - End Time 2024-12-22 15:34:04 [2024-12-22 15:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078449', 'tblTempUsageDetail_20' ) start [2024-12-22 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078449', 'tblTempUsageDetail_20' ) end [2024-12-22 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078449', 'tblTempVendorCDR_20' ) start [2024-12-22 15:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078449', 'tblTempVendorCDR_20' ) end [2024-12-22 15:34:17] Production.INFO: ProcessCDR(1,14078449,1,1,2) [2024-12-22 15:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078449', 'tblTempUsageDetail_20' ) start [2024-12-22 15:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078449', 'tblTempUsageDetail_20' ) end [2024-12-22 15:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:34:20] Production.INFO: ==3449== Releasing lock... [2024-12-22 15:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:34:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:35:04 [end_date_ymd] => 2024-12-22 15:35:04 [RateCDR] => 1 ) [2024-12-22 15:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:35:04' and `end` < '2024-12-22 15:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:35:17] Production.INFO: count ==1174 [2024-12-22 15:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:35:04 - End Time 2024-12-22 15:35:04 [2024-12-22 15:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078454', 'tblTempUsageDetail_20' ) start [2024-12-22 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078454', 'tblTempUsageDetail_20' ) end [2024-12-22 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078454', 'tblTempVendorCDR_20' ) start [2024-12-22 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078454', 'tblTempVendorCDR_20' ) end [2024-12-22 15:35:17] Production.INFO: ProcessCDR(1,14078454,1,1,2) [2024-12-22 15:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078454', 'tblTempUsageDetail_20' ) start [2024-12-22 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078454', 'tblTempUsageDetail_20' ) end [2024-12-22 15:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:35:21] Production.INFO: ==3521== Releasing lock... [2024-12-22 15:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:35:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:36:04 [end_date_ymd] => 2024-12-22 15:36:04 [RateCDR] => 1 ) [2024-12-22 15: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-22 12:36:04' and `end` < '2024-12-22 15: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-22 15:36:16] Production.INFO: count ==1173 [2024-12-22 15:36:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:36:04 - End Time 2024-12-22 15:36:04 [2024-12-22 15:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078459', 'tblTempUsageDetail_20' ) start [2024-12-22 15:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078459', 'tblTempUsageDetail_20' ) end [2024-12-22 15:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078459', 'tblTempVendorCDR_20' ) start [2024-12-22 15:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078459', 'tblTempVendorCDR_20' ) end [2024-12-22 15:36:17] Production.INFO: ProcessCDR(1,14078459,1,1,2) [2024-12-22 15:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078459', 'tblTempUsageDetail_20' ) start [2024-12-22 15:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078459', 'tblTempUsageDetail_20' ) end [2024-12-22 15:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:36:20] Production.INFO: ==3600== Releasing lock... [2024-12-22 15:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:36:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:37:05 [end_date_ymd] => 2024-12-22 15:37:05 [RateCDR] => 1 ) [2024-12-22 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:37:05' and `end` < '2024-12-22 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:37:17] Production.INFO: count ==1175 [2024-12-22 15:37:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:37:05 - End Time 2024-12-22 15:37:05 [2024-12-22 15:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078464', 'tblTempUsageDetail_20' ) start [2024-12-22 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078464', 'tblTempUsageDetail_20' ) end [2024-12-22 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078464', 'tblTempVendorCDR_20' ) start [2024-12-22 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078464', 'tblTempVendorCDR_20' ) end [2024-12-22 15:37:17] Production.INFO: ProcessCDR(1,14078464,1,1,2) [2024-12-22 15:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078464', 'tblTempUsageDetail_20' ) start [2024-12-22 15:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078464', 'tblTempUsageDetail_20' ) end [2024-12-22 15:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:37:20] Production.INFO: ==3672== Releasing lock... [2024-12-22 15:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:37:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:38:05 [end_date_ymd] => 2024-12-22 15:38:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:38:05' and `end` < '2024-12-22 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-22 15:38:18] Production.INFO: count ==1179 [2024-12-22 15:38:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:38:05 - End Time 2024-12-22 15:38:05 [2024-12-22 15:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078469', 'tblTempUsageDetail_20' ) start [2024-12-22 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078469', 'tblTempUsageDetail_20' ) end [2024-12-22 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078469', 'tblTempVendorCDR_20' ) start [2024-12-22 15:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078469', 'tblTempVendorCDR_20' ) end [2024-12-22 15:38:18] Production.INFO: ProcessCDR(1,14078469,1,1,2) [2024-12-22 15:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078469', 'tblTempUsageDetail_20' ) start [2024-12-22 15:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078469', 'tblTempUsageDetail_20' ) end [2024-12-22 15:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:38:21] Production.INFO: ==3741== Releasing lock... [2024-12-22 15:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:38:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:39:05 [end_date_ymd] => 2024-12-22 15:39:05 [RateCDR] => 1 ) [2024-12-22 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:39:05' and `end` < '2024-12-22 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:39:17] Production.INFO: count ==1178 [2024-12-22 15:39:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:39:05 - End Time 2024-12-22 15:39:05 [2024-12-22 15:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078474', 'tblTempUsageDetail_20' ) start [2024-12-22 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078474', 'tblTempUsageDetail_20' ) end [2024-12-22 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078474', 'tblTempVendorCDR_20' ) start [2024-12-22 15:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078474', 'tblTempVendorCDR_20' ) end [2024-12-22 15:39:18] Production.INFO: ProcessCDR(1,14078474,1,1,2) [2024-12-22 15:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078474', 'tblTempUsageDetail_20' ) start [2024-12-22 15:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078474', 'tblTempUsageDetail_20' ) end [2024-12-22 15:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:39:21] Production.INFO: ==3815== Releasing lock... [2024-12-22 15:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:39:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:40:05 [end_date_ymd] => 2024-12-22 15:40:05 [RateCDR] => 1 ) [2024-12-22 15:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:40:05' and `end` < '2024-12-22 15:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:40:17] Production.INFO: count ==1175 [2024-12-22 15:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:40:05 - End Time 2024-12-22 15:40:05 [2024-12-22 15:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078479', 'tblTempUsageDetail_20' ) start [2024-12-22 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078479', 'tblTempUsageDetail_20' ) end [2024-12-22 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078479', 'tblTempVendorCDR_20' ) start [2024-12-22 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078479', 'tblTempVendorCDR_20' ) end [2024-12-22 15:40:18] Production.INFO: ProcessCDR(1,14078479,1,1,2) [2024-12-22 15:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078479', 'tblTempUsageDetail_20' ) start [2024-12-22 15:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078479', 'tblTempUsageDetail_20' ) end [2024-12-22 15:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:40:21] Production.INFO: ==3888== Releasing lock... [2024-12-22 15:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:40:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:41:04 [end_date_ymd] => 2024-12-22 15:41:04 [RateCDR] => 1 ) [2024-12-22 15: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-22 12:41:04' and `end` < '2024-12-22 15:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:41:16] Production.INFO: count ==1190 [2024-12-22 15:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:41:04 - End Time 2024-12-22 15:41:04 [2024-12-22 15:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078485', 'tblTempUsageDetail_20' ) start [2024-12-22 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078485', 'tblTempUsageDetail_20' ) end [2024-12-22 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078485', 'tblTempVendorCDR_20' ) start [2024-12-22 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078485', 'tblTempVendorCDR_20' ) end [2024-12-22 15:41:17] Production.INFO: ProcessCDR(1,14078485,1,1,2) [2024-12-22 15:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078485', 'tblTempUsageDetail_20' ) start [2024-12-22 15:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078485', 'tblTempUsageDetail_20' ) end [2024-12-22 15:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:41:20] Production.INFO: ==3961== Releasing lock... [2024-12-22 15:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:41:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:42:05 [end_date_ymd] => 2024-12-22 15:42:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:42:05' and `end` < '2024-12-22 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-22 15:42:17] Production.INFO: count ==1188 [2024-12-22 15:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:42:05 - End Time 2024-12-22 15:42:05 [2024-12-22 15:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078490', 'tblTempUsageDetail_20' ) start [2024-12-22 15:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078490', 'tblTempUsageDetail_20' ) end [2024-12-22 15:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078490', 'tblTempVendorCDR_20' ) start [2024-12-22 15:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078490', 'tblTempVendorCDR_20' ) end [2024-12-22 15:42:17] Production.INFO: ProcessCDR(1,14078490,1,1,2) [2024-12-22 15:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078490', 'tblTempUsageDetail_20' ) start [2024-12-22 15:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078490', 'tblTempUsageDetail_20' ) end [2024-12-22 15:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:42:20] Production.INFO: ==4033== Releasing lock... [2024-12-22 15:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:42:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:43:05 [end_date_ymd] => 2024-12-22 15:43:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:43:05' and `end` < '2024-12-22 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-22 15:43:17] Production.INFO: count ==1185 [2024-12-22 15:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:43:05 - End Time 2024-12-22 15:43:05 [2024-12-22 15:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078495', 'tblTempUsageDetail_20' ) start [2024-12-22 15:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078495', 'tblTempUsageDetail_20' ) end [2024-12-22 15:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078495', 'tblTempVendorCDR_20' ) start [2024-12-22 15:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078495', 'tblTempVendorCDR_20' ) end [2024-12-22 15:43:17] Production.INFO: ProcessCDR(1,14078495,1,1,2) [2024-12-22 15:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078495', 'tblTempUsageDetail_20' ) start [2024-12-22 15:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078495', 'tblTempUsageDetail_20' ) end [2024-12-22 15:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:43:20] Production.INFO: ==4110== Releasing lock... [2024-12-22 15:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:43:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:44:05 [end_date_ymd] => 2024-12-22 15:44:05 [RateCDR] => 1 ) [2024-12-22 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:44:05' and `end` < '2024-12-22 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:44:17] Production.INFO: count ==1182 [2024-12-22 15:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:44:05 - End Time 2024-12-22 15:44:05 [2024-12-22 15:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078500', 'tblTempUsageDetail_20' ) start [2024-12-22 15:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078500', 'tblTempUsageDetail_20' ) end [2024-12-22 15:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078500', 'tblTempVendorCDR_20' ) start [2024-12-22 15:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078500', 'tblTempVendorCDR_20' ) end [2024-12-22 15:44:17] Production.INFO: ProcessCDR(1,14078500,1,1,2) [2024-12-22 15:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078500', 'tblTempUsageDetail_20' ) start [2024-12-22 15:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078500', 'tblTempUsageDetail_20' ) end [2024-12-22 15:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:44:21] Production.INFO: ==4184== Releasing lock... [2024-12-22 15:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:44:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:45:05 [end_date_ymd] => 2024-12-22 15:45:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:45:05' and `end` < '2024-12-22 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-22 15:45:17] Production.INFO: count ==1183 [2024-12-22 15:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:45:05 - End Time 2024-12-22 15:45:05 [2024-12-22 15:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078505', 'tblTempUsageDetail_20' ) start [2024-12-22 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078505', 'tblTempUsageDetail_20' ) end [2024-12-22 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078505', 'tblTempVendorCDR_20' ) start [2024-12-22 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078505', 'tblTempVendorCDR_20' ) end [2024-12-22 15:45:17] Production.INFO: ProcessCDR(1,14078505,1,1,2) [2024-12-22 15:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078505', 'tblTempUsageDetail_20' ) start [2024-12-22 15:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078505', 'tblTempUsageDetail_20' ) end [2024-12-22 15:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:45:20] Production.INFO: ==4256== Releasing lock... [2024-12-22 15:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:45:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:46:05 [end_date_ymd] => 2024-12-22 15:46:05 [RateCDR] => 1 ) [2024-12-22 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:46:05' and `end` < '2024-12-22 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:46:17] Production.INFO: count ==1181 [2024-12-22 15:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:46:05 - End Time 2024-12-22 15:46:05 [2024-12-22 15:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078510', 'tblTempUsageDetail_20' ) start [2024-12-22 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078510', 'tblTempUsageDetail_20' ) end [2024-12-22 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078510', 'tblTempVendorCDR_20' ) start [2024-12-22 15:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078510', 'tblTempVendorCDR_20' ) end [2024-12-22 15:46:17] Production.INFO: ProcessCDR(1,14078510,1,1,2) [2024-12-22 15:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078510', 'tblTempUsageDetail_20' ) start [2024-12-22 15:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078510', 'tblTempUsageDetail_20' ) end [2024-12-22 15:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:46:20] Production.INFO: ==4366== Releasing lock... [2024-12-22 15:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:46:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:47:05 [end_date_ymd] => 2024-12-22 15:47:05 [RateCDR] => 1 ) [2024-12-22 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:47:05' and `end` < '2024-12-22 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:47:17] Production.INFO: count ==1182 [2024-12-22 15:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:47:05 - End Time 2024-12-22 15:47:05 [2024-12-22 15:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078515', 'tblTempUsageDetail_20' ) start [2024-12-22 15:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078515', 'tblTempUsageDetail_20' ) end [2024-12-22 15:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078515', 'tblTempVendorCDR_20' ) start [2024-12-22 15:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078515', 'tblTempVendorCDR_20' ) end [2024-12-22 15:47:17] Production.INFO: ProcessCDR(1,14078515,1,1,2) [2024-12-22 15:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078515', 'tblTempUsageDetail_20' ) start [2024-12-22 15:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078515', 'tblTempUsageDetail_20' ) end [2024-12-22 15:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:47:20] Production.INFO: ==4437== Releasing lock... [2024-12-22 15:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:47:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:48:05 [end_date_ymd] => 2024-12-22 15:48:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:48:05' and `end` < '2024-12-22 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-22 15:48:18] Production.INFO: count ==1186 [2024-12-22 15:48:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:48:05 - End Time 2024-12-22 15:48:05 [2024-12-22 15:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078520', 'tblTempUsageDetail_20' ) start [2024-12-22 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078520', 'tblTempUsageDetail_20' ) end [2024-12-22 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078520', 'tblTempVendorCDR_20' ) start [2024-12-22 15:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078520', 'tblTempVendorCDR_20' ) end [2024-12-22 15:48:18] Production.INFO: ProcessCDR(1,14078520,1,1,2) [2024-12-22 15:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078520', 'tblTempUsageDetail_20' ) start [2024-12-22 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078520', 'tblTempUsageDetail_20' ) end [2024-12-22 15:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:48:22] Production.INFO: ==4509== Releasing lock... [2024-12-22 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:48:22] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:49:05 [end_date_ymd] => 2024-12-22 15:49:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:49:05' and `end` < '2024-12-22 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:49:17] Production.INFO: count ==1189 [2024-12-22 15:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:49:05 - End Time 2024-12-22 15:49:05 [2024-12-22 15:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078525', 'tblTempUsageDetail_20' ) start [2024-12-22 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078525', 'tblTempUsageDetail_20' ) end [2024-12-22 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078525', 'tblTempVendorCDR_20' ) start [2024-12-22 15:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078525', 'tblTempVendorCDR_20' ) end [2024-12-22 15:49:17] Production.INFO: ProcessCDR(1,14078525,1,1,2) [2024-12-22 15:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078525', 'tblTempUsageDetail_20' ) start [2024-12-22 15:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078525', 'tblTempUsageDetail_20' ) end [2024-12-22 15:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:49:21] Production.INFO: ==4587== Releasing lock... [2024-12-22 15:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:49:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:50:06 [end_date_ymd] => 2024-12-22 15:50:06 [RateCDR] => 1 ) [2024-12-22 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:50:06' and `end` < '2024-12-22 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:50:18] Production.INFO: count ==1193 [2024-12-22 15:50:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:50:06 - End Time 2024-12-22 15:50:06 [2024-12-22 15:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078531', 'tblTempUsageDetail_20' ) start [2024-12-22 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078531', 'tblTempUsageDetail_20' ) end [2024-12-22 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078531', 'tblTempVendorCDR_20' ) start [2024-12-22 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078531', 'tblTempVendorCDR_20' ) end [2024-12-22 15:50:18] Production.INFO: ProcessCDR(1,14078531,1,1,2) [2024-12-22 15:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078531', 'tblTempUsageDetail_20' ) start [2024-12-22 15:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078531', 'tblTempUsageDetail_20' ) end [2024-12-22 15:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:50:21] Production.INFO: ==4670== Releasing lock... [2024-12-22 15:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:50:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:51:04 [end_date_ymd] => 2024-12-22 15:51:04 [RateCDR] => 1 ) [2024-12-22 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-22 12:51:04' and `end` < '2024-12-22 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-22 15:51:17] Production.INFO: count ==1243 [2024-12-22 15:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:51:04 - End Time 2024-12-22 15:51:04 [2024-12-22 15:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078536', 'tblTempUsageDetail_20' ) start [2024-12-22 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078536', 'tblTempUsageDetail_20' ) end [2024-12-22 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078536', 'tblTempVendorCDR_20' ) start [2024-12-22 15:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078536', 'tblTempVendorCDR_20' ) end [2024-12-22 15:51:17] Production.INFO: ProcessCDR(1,14078536,1,1,2) [2024-12-22 15:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078536', 'tblTempUsageDetail_20' ) start [2024-12-22 15:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078536', 'tblTempUsageDetail_20' ) end [2024-12-22 15:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:51:20] Production.INFO: ==4742== Releasing lock... [2024-12-22 15:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:51:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:52:05 [end_date_ymd] => 2024-12-22 15:52:05 [RateCDR] => 1 ) [2024-12-22 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:52:05' and `end` < '2024-12-22 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:52:17] Production.INFO: count ==1240 [2024-12-22 15:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:52:05 - End Time 2024-12-22 15:52:05 [2024-12-22 15:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078541', 'tblTempUsageDetail_20' ) start [2024-12-22 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078541', 'tblTempUsageDetail_20' ) end [2024-12-22 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078541', 'tblTempVendorCDR_20' ) start [2024-12-22 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078541', 'tblTempVendorCDR_20' ) end [2024-12-22 15:52:17] Production.INFO: ProcessCDR(1,14078541,1,1,2) [2024-12-22 15:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078541', 'tblTempUsageDetail_20' ) start [2024-12-22 15:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078541', 'tblTempUsageDetail_20' ) end [2024-12-22 15:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:52:21] Production.INFO: ==4815== Releasing lock... [2024-12-22 15:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:52:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:53:05 [end_date_ymd] => 2024-12-22 15:53:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:53:05' and `end` < '2024-12-22 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-22 15:53:17] Production.INFO: count ==1236 [2024-12-22 15:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:53:05 - End Time 2024-12-22 15:53:05 [2024-12-22 15:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078546', 'tblTempUsageDetail_20' ) start [2024-12-22 15:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078546', 'tblTempUsageDetail_20' ) end [2024-12-22 15:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078546', 'tblTempVendorCDR_20' ) start [2024-12-22 15:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078546', 'tblTempVendorCDR_20' ) end [2024-12-22 15:53:17] Production.INFO: ProcessCDR(1,14078546,1,1,2) [2024-12-22 15:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078546', 'tblTempUsageDetail_20' ) start [2024-12-22 15:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078546', 'tblTempUsageDetail_20' ) end [2024-12-22 15:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:53:20] Production.INFO: ==4886== Releasing lock... [2024-12-22 15:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:53:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:54:05 [end_date_ymd] => 2024-12-22 15:54:05 [RateCDR] => 1 ) [2024-12-22 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:54:05' and `end` < '2024-12-22 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:54:18] Production.INFO: count ==1242 [2024-12-22 15:54:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:54:05 - End Time 2024-12-22 15:54:05 [2024-12-22 15:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078551', 'tblTempUsageDetail_20' ) start [2024-12-22 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078551', 'tblTempUsageDetail_20' ) end [2024-12-22 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078551', 'tblTempVendorCDR_20' ) start [2024-12-22 15:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078551', 'tblTempVendorCDR_20' ) end [2024-12-22 15:54:18] Production.INFO: ProcessCDR(1,14078551,1,1,2) [2024-12-22 15:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078551', 'tblTempUsageDetail_20' ) start [2024-12-22 15:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078551', 'tblTempUsageDetail_20' ) end [2024-12-22 15:54:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:54:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:54:23] Production.INFO: ==4955== Releasing lock... [2024-12-22 15:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:54:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:55:05 [end_date_ymd] => 2024-12-22 15:55:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:55:05' and `end` < '2024-12-22 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-22 15:55:17] Production.INFO: count ==1240 [2024-12-22 15:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:55:05 - End Time 2024-12-22 15:55:05 [2024-12-22 15:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078556', 'tblTempUsageDetail_20' ) start [2024-12-22 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078556', 'tblTempUsageDetail_20' ) end [2024-12-22 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078556', 'tblTempVendorCDR_20' ) start [2024-12-22 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078556', 'tblTempVendorCDR_20' ) end [2024-12-22 15:55:17] Production.INFO: ProcessCDR(1,14078556,1,1,2) [2024-12-22 15:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078556', 'tblTempUsageDetail_20' ) start [2024-12-22 15:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078556', 'tblTempUsageDetail_20' ) end [2024-12-22 15:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:55:20] Production.INFO: ==5025== Releasing lock... [2024-12-22 15:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:55:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:56:06 [end_date_ymd] => 2024-12-22 15:56:06 [RateCDR] => 1 ) [2024-12-22 15:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:56:06' and `end` < '2024-12-22 15:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:56:20] Production.INFO: count ==1238 [2024-12-22 15:56:20] Production.ERROR: pbx CDR StartTime 2024-12-22 12:56:06 - End Time 2024-12-22 15:56:06 [2024-12-22 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078561', 'tblTempUsageDetail_20' ) start [2024-12-22 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078561', 'tblTempUsageDetail_20' ) end [2024-12-22 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078561', 'tblTempVendorCDR_20' ) start [2024-12-22 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078561', 'tblTempVendorCDR_20' ) end [2024-12-22 15:56:21] Production.INFO: ProcessCDR(1,14078561,1,1,2) [2024-12-22 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078561', 'tblTempUsageDetail_20' ) start [2024-12-22 15:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078561', 'tblTempUsageDetail_20' ) end [2024-12-22 15:56:24] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:56:24] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:56:24] Production.INFO: ==5105== Releasing lock... [2024-12-22 15:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:56:24] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:57:04 [end_date_ymd] => 2024-12-22 15:57:04 [RateCDR] => 1 ) [2024-12-22 15:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:57:04' and `end` < '2024-12-22 15:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:57:18] Production.INFO: count ==1245 [2024-12-22 15:57:18] Production.ERROR: pbx CDR StartTime 2024-12-22 12:57:04 - End Time 2024-12-22 15:57:04 [2024-12-22 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078566', 'tblTempUsageDetail_20' ) start [2024-12-22 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078566', 'tblTempUsageDetail_20' ) end [2024-12-22 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078566', 'tblTempVendorCDR_20' ) start [2024-12-22 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078566', 'tblTempVendorCDR_20' ) end [2024-12-22 15:57:18] Production.INFO: ProcessCDR(1,14078566,1,1,2) [2024-12-22 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078566', 'tblTempUsageDetail_20' ) start [2024-12-22 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078566', 'tblTempUsageDetail_20' ) end [2024-12-22 15:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:57:21] Production.INFO: ==5183== Releasing lock... [2024-12-22 15:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:57:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:58:05 [end_date_ymd] => 2024-12-22 15:58:05 [RateCDR] => 1 ) [2024-12-22 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-22 12:58:05' and `end` < '2024-12-22 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-22 15:58:19] Production.INFO: count ==1243 [2024-12-22 15:58:19] Production.ERROR: pbx CDR StartTime 2024-12-22 12:58:05 - End Time 2024-12-22 15:58:05 [2024-12-22 15:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078571', 'tblTempUsageDetail_20' ) start [2024-12-22 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078571', 'tblTempUsageDetail_20' ) end [2024-12-22 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078571', 'tblTempVendorCDR_20' ) start [2024-12-22 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078571', 'tblTempVendorCDR_20' ) end [2024-12-22 15:58:19] Production.INFO: ProcessCDR(1,14078571,1,1,2) [2024-12-22 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078571', 'tblTempUsageDetail_20' ) start [2024-12-22 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078571', 'tblTempUsageDetail_20' ) end [2024-12-22 15:58:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:58:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:58:22] Production.INFO: ==5254== Releasing lock... [2024-12-22 15:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:58:22] Production.INFO: 37 MB #Memory Used# [2024-12-22 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 12:59:05 [end_date_ymd] => 2024-12-22 15:59:05 [RateCDR] => 1 ) [2024-12-22 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 12:59:05' and `end` < '2024-12-22 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 15:59:17] Production.INFO: count ==1253 [2024-12-22 15:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 12:59:05 - End Time 2024-12-22 15:59:05 [2024-12-22 15:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078576', 'tblTempUsageDetail_20' ) start [2024-12-22 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078576', 'tblTempUsageDetail_20' ) end [2024-12-22 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078576', 'tblTempVendorCDR_20' ) start [2024-12-22 15:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078576', 'tblTempVendorCDR_20' ) end [2024-12-22 15:59:17] Production.INFO: ProcessCDR(1,14078576,1,1,2) [2024-12-22 15:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 15:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 15:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078576', 'tblTempUsageDetail_20' ) start [2024-12-22 15:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078576', 'tblTempUsageDetail_20' ) end [2024-12-22 15:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 15:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 15:59:20] Production.INFO: ==5325== Releasing lock... [2024-12-22 15:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 15:59:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:00:05 [end_date_ymd] => 2024-12-22 16:00:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:00:05' and `end` < '2024-12-22 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-22 16:00:18] Production.INFO: count ==1255 [2024-12-22 16:00:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:00:05 - End Time 2024-12-22 16:00:05 [2024-12-22 16:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078582', 'tblTempUsageDetail_20' ) start [2024-12-22 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078582', 'tblTempUsageDetail_20' ) end [2024-12-22 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078582', 'tblTempVendorCDR_20' ) start [2024-12-22 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078582', 'tblTempVendorCDR_20' ) end [2024-12-22 16:00:18] Production.INFO: ProcessCDR(1,14078582,1,1,2) [2024-12-22 16:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078582', 'tblTempUsageDetail_20' ) start [2024-12-22 16:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078582', 'tblTempUsageDetail_20' ) end [2024-12-22 16:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:00:21] Production.INFO: ==5400== Releasing lock... [2024-12-22 16:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:00:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:01:05 [end_date_ymd] => 2024-12-22 16:01:05 [RateCDR] => 1 ) [2024-12-22 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:01:05' and `end` < '2024-12-22 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:01:17] Production.INFO: count ==1265 [2024-12-22 16:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:01:05 - End Time 2024-12-22 16:01:05 [2024-12-22 16:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078587', 'tblTempUsageDetail_20' ) start [2024-12-22 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078587', 'tblTempUsageDetail_20' ) end [2024-12-22 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078587', 'tblTempVendorCDR_20' ) start [2024-12-22 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078587', 'tblTempVendorCDR_20' ) end [2024-12-22 16:01:18] Production.INFO: ProcessCDR(1,14078587,1,1,2) [2024-12-22 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078587', 'tblTempUsageDetail_20' ) start [2024-12-22 16:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078587', 'tblTempUsageDetail_20' ) end [2024-12-22 16:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:01:21] Production.INFO: ==5489== Releasing lock... [2024-12-22 16:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:01:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:02:05 [end_date_ymd] => 2024-12-22 16:02:05 [RateCDR] => 1 ) [2024-12-22 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:02:05' and `end` < '2024-12-22 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:02:17] Production.INFO: count ==1270 [2024-12-22 16:02:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:02:05 - End Time 2024-12-22 16:02:05 [2024-12-22 16:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078592', 'tblTempUsageDetail_20' ) start [2024-12-22 16:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078592', 'tblTempUsageDetail_20' ) end [2024-12-22 16:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078592', 'tblTempVendorCDR_20' ) start [2024-12-22 16:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078592', 'tblTempVendorCDR_20' ) end [2024-12-22 16:02:17] Production.INFO: ProcessCDR(1,14078592,1,1,2) [2024-12-22 16:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078592', 'tblTempUsageDetail_20' ) start [2024-12-22 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078592', 'tblTempUsageDetail_20' ) end [2024-12-22 16:02:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:02:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:02:22] Production.INFO: ==5601== Releasing lock... [2024-12-22 16:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:02:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:03:04 [end_date_ymd] => 2024-12-22 16:03:04 [RateCDR] => 1 ) [2024-12-22 16:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:03:04' and `end` < '2024-12-22 16:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:03:17] Production.INFO: count ==1281 [2024-12-22 16:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:03:04 - End Time 2024-12-22 16:03:04 [2024-12-22 16:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078597', 'tblTempUsageDetail_20' ) start [2024-12-22 16:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078597', 'tblTempUsageDetail_20' ) end [2024-12-22 16:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078597', 'tblTempVendorCDR_20' ) start [2024-12-22 16:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078597', 'tblTempVendorCDR_20' ) end [2024-12-22 16:03:17] Production.INFO: ProcessCDR(1,14078597,1,1,2) [2024-12-22 16:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078597', 'tblTempUsageDetail_20' ) start [2024-12-22 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078597', 'tblTempUsageDetail_20' ) end [2024-12-22 16:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:03:21] Production.INFO: ==5673== Releasing lock... [2024-12-22 16:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:03:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:04:05 [end_date_ymd] => 2024-12-22 16:04:05 [RateCDR] => 1 ) [2024-12-22 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:04:05' and `end` < '2024-12-22 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:04:17] Production.INFO: count ==1282 [2024-12-22 16:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:04:05 - End Time 2024-12-22 16:04:05 [2024-12-22 16:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078602', 'tblTempUsageDetail_20' ) start [2024-12-22 16:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078602', 'tblTempUsageDetail_20' ) end [2024-12-22 16:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078602', 'tblTempVendorCDR_20' ) start [2024-12-22 16:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078602', 'tblTempVendorCDR_20' ) end [2024-12-22 16:04:17] Production.INFO: ProcessCDR(1,14078602,1,1,2) [2024-12-22 16:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078602', 'tblTempUsageDetail_20' ) start [2024-12-22 16:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078602', 'tblTempUsageDetail_20' ) end [2024-12-22 16:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:04:21] Production.INFO: ==5749== Releasing lock... [2024-12-22 16:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:04:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:05:05 [end_date_ymd] => 2024-12-22 16:05:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:05:05' and `end` < '2024-12-22 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-22 16:05:17] Production.INFO: count ==1281 [2024-12-22 16:05:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:05:05 - End Time 2024-12-22 16:05:05 [2024-12-22 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078607', 'tblTempUsageDetail_20' ) start [2024-12-22 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078607', 'tblTempUsageDetail_20' ) end [2024-12-22 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078607', 'tblTempVendorCDR_20' ) start [2024-12-22 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078607', 'tblTempVendorCDR_20' ) end [2024-12-22 16:05:18] Production.INFO: ProcessCDR(1,14078607,1,1,2) [2024-12-22 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078607', 'tblTempUsageDetail_20' ) start [2024-12-22 16:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078607', 'tblTempUsageDetail_20' ) end [2024-12-22 16:05:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:05:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:05:21] Production.INFO: ==5826== Releasing lock... [2024-12-22 16:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:05:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:06:05 [end_date_ymd] => 2024-12-22 16:06:05 [RateCDR] => 1 ) [2024-12-22 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:06:05' and `end` < '2024-12-22 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:06:18] Production.INFO: count ==1279 [2024-12-22 16:06:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:06:05 - End Time 2024-12-22 16:06:05 [2024-12-22 16:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078612', 'tblTempUsageDetail_20' ) start [2024-12-22 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078612', 'tblTempUsageDetail_20' ) end [2024-12-22 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078612', 'tblTempVendorCDR_20' ) start [2024-12-22 16:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078612', 'tblTempVendorCDR_20' ) end [2024-12-22 16:06:18] Production.INFO: ProcessCDR(1,14078612,1,1,2) [2024-12-22 16:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078612', 'tblTempUsageDetail_20' ) start [2024-12-22 16:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078612', 'tblTempUsageDetail_20' ) end [2024-12-22 16:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:06:21] Production.INFO: ==5899== Releasing lock... [2024-12-22 16:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:06:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:07:04 [end_date_ymd] => 2024-12-22 16:07:04 [RateCDR] => 1 ) [2024-12-22 16:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:07:04' and `end` < '2024-12-22 16:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:07:16] Production.INFO: count ==1279 [2024-12-22 16:07:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:07:04 - End Time 2024-12-22 16:07:04 [2024-12-22 16:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078617', 'tblTempUsageDetail_20' ) start [2024-12-22 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078617', 'tblTempUsageDetail_20' ) end [2024-12-22 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078617', 'tblTempVendorCDR_20' ) start [2024-12-22 16:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078617', 'tblTempVendorCDR_20' ) end [2024-12-22 16:07:17] Production.INFO: ProcessCDR(1,14078617,1,1,2) [2024-12-22 16:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078617', 'tblTempUsageDetail_20' ) start [2024-12-22 16:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078617', 'tblTempUsageDetail_20' ) end [2024-12-22 16:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:07:20] Production.INFO: ==5975== Releasing lock... [2024-12-22 16:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:07:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 16:08:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:08:04 [end_date_ymd] => 2024-12-22 16:08:04 [RateCDR] => 1 ) [2024-12-22 16:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:08:04' and `end` < '2024-12-22 16:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:08:17] Production.INFO: count ==1280 [2024-12-22 16:08:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:08:04 - End Time 2024-12-22 16:08:04 [2024-12-22 16:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078622', 'tblTempUsageDetail_20' ) start [2024-12-22 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078622', 'tblTempUsageDetail_20' ) end [2024-12-22 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078622', 'tblTempVendorCDR_20' ) start [2024-12-22 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078622', 'tblTempVendorCDR_20' ) end [2024-12-22 16:08:17] Production.INFO: ProcessCDR(1,14078622,1,1,2) [2024-12-22 16:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078622', 'tblTempUsageDetail_20' ) start [2024-12-22 16:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078622', 'tblTempUsageDetail_20' ) end [2024-12-22 16:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:08:21] Production.INFO: ==6049== Releasing lock... [2024-12-22 16:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:08:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:09:05 [end_date_ymd] => 2024-12-22 16:09:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:09:05' and `end` < '2024-12-22 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-22 16:09:18] Production.INFO: count ==1277 [2024-12-22 16:09:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:09:05 - End Time 2024-12-22 16:09:05 [2024-12-22 16:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078627', 'tblTempUsageDetail_20' ) start [2024-12-22 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078627', 'tblTempUsageDetail_20' ) end [2024-12-22 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078627', 'tblTempVendorCDR_20' ) start [2024-12-22 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078627', 'tblTempVendorCDR_20' ) end [2024-12-22 16:09:18] Production.INFO: ProcessCDR(1,14078627,1,1,2) [2024-12-22 16:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078627', 'tblTempUsageDetail_20' ) start [2024-12-22 16:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078627', 'tblTempUsageDetail_20' ) end [2024-12-22 16:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:09:21] Production.INFO: ==6123== Releasing lock... [2024-12-22 16:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:09:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:10:05 [end_date_ymd] => 2024-12-22 16:10:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:10:05' and `end` < '2024-12-22 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-22 16:10:17] Production.INFO: count ==1276 [2024-12-22 16:10:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:10:05 - End Time 2024-12-22 16:10:05 [2024-12-22 16:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078633', 'tblTempUsageDetail_20' ) start [2024-12-22 16:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078633', 'tblTempUsageDetail_20' ) end [2024-12-22 16:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078633', 'tblTempVendorCDR_20' ) start [2024-12-22 16:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078633', 'tblTempVendorCDR_20' ) end [2024-12-22 16:10:17] Production.INFO: ProcessCDR(1,14078633,1,1,2) [2024-12-22 16:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078633', 'tblTempUsageDetail_20' ) start [2024-12-22 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078633', 'tblTempUsageDetail_20' ) end [2024-12-22 16:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:10:22] Production.INFO: ==6195== Releasing lock... [2024-12-22 16:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:10:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:11:05 [end_date_ymd] => 2024-12-22 16:11:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:11:05' and `end` < '2024-12-22 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-22 16:11:17] Production.INFO: count ==1259 [2024-12-22 16:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:11:05 - End Time 2024-12-22 16:11:05 [2024-12-22 16:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078638', 'tblTempUsageDetail_20' ) start [2024-12-22 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078638', 'tblTempUsageDetail_20' ) end [2024-12-22 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078638', 'tblTempVendorCDR_20' ) start [2024-12-22 16:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078638', 'tblTempVendorCDR_20' ) end [2024-12-22 16:11:17] Production.INFO: ProcessCDR(1,14078638,1,1,2) [2024-12-22 16:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078638', 'tblTempUsageDetail_20' ) start [2024-12-22 16:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078638', 'tblTempUsageDetail_20' ) end [2024-12-22 16:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:11:21] Production.INFO: ==6273== Releasing lock... [2024-12-22 16:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:11:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:12:05 [end_date_ymd] => 2024-12-22 16:12:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:12:05' and `end` < '2024-12-22 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-22 16:12:18] Production.INFO: count ==1255 [2024-12-22 16:12:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:12:05 - End Time 2024-12-22 16:12:05 [2024-12-22 16:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078643', 'tblTempUsageDetail_20' ) start [2024-12-22 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078643', 'tblTempUsageDetail_20' ) end [2024-12-22 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078643', 'tblTempVendorCDR_20' ) start [2024-12-22 16:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078643', 'tblTempVendorCDR_20' ) end [2024-12-22 16:12:18] Production.INFO: ProcessCDR(1,14078643,1,1,2) [2024-12-22 16:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078643', 'tblTempUsageDetail_20' ) start [2024-12-22 16:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078643', 'tblTempUsageDetail_20' ) end [2024-12-22 16:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:12:21] Production.INFO: ==6350== Releasing lock... [2024-12-22 16:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:12:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:13:05 [end_date_ymd] => 2024-12-22 16:13:05 [RateCDR] => 1 ) [2024-12-22 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:13:05' and `end` < '2024-12-22 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:13:18] Production.INFO: count ==1256 [2024-12-22 16:13:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:13:05 - End Time 2024-12-22 16:13:05 [2024-12-22 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078648', 'tblTempUsageDetail_20' ) start [2024-12-22 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078648', 'tblTempUsageDetail_20' ) end [2024-12-22 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078648', 'tblTempVendorCDR_20' ) start [2024-12-22 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078648', 'tblTempVendorCDR_20' ) end [2024-12-22 16:13:18] Production.INFO: ProcessCDR(1,14078648,1,1,2) [2024-12-22 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078648', 'tblTempUsageDetail_20' ) start [2024-12-22 16:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078648', 'tblTempUsageDetail_20' ) end [2024-12-22 16:13:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:13:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:13:23] Production.INFO: ==6423== Releasing lock... [2024-12-22 16:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:13:23] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:14:05 [end_date_ymd] => 2024-12-22 16:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:14:05' and `end` < '2024-12-22 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-22 16:14:17] Production.INFO: count ==1253 [2024-12-22 16:14:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:14:05 - End Time 2024-12-22 16:14:05 [2024-12-22 16:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078653', 'tblTempUsageDetail_20' ) start [2024-12-22 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078653', 'tblTempUsageDetail_20' ) end [2024-12-22 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078653', 'tblTempVendorCDR_20' ) start [2024-12-22 16:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078653', 'tblTempVendorCDR_20' ) end [2024-12-22 16:14:18] Production.INFO: ProcessCDR(1,14078653,1,1,2) [2024-12-22 16:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078653', 'tblTempUsageDetail_20' ) start [2024-12-22 16:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078653', 'tblTempUsageDetail_20' ) end [2024-12-22 16:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:14:21] Production.INFO: ==6494== Releasing lock... [2024-12-22 16:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:14:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:15:05 [end_date_ymd] => 2024-12-22 16:15:05 [RateCDR] => 1 ) [2024-12-22 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:15:05' and `end` < '2024-12-22 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:15:17] Production.INFO: count ==1257 [2024-12-22 16:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:15:05 - End Time 2024-12-22 16:15:05 [2024-12-22 16:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078658', 'tblTempUsageDetail_20' ) start [2024-12-22 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078658', 'tblTempUsageDetail_20' ) end [2024-12-22 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078658', 'tblTempVendorCDR_20' ) start [2024-12-22 16:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078658', 'tblTempVendorCDR_20' ) end [2024-12-22 16:15:17] Production.INFO: ProcessCDR(1,14078658,1,1,2) [2024-12-22 16:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078658', 'tblTempUsageDetail_20' ) start [2024-12-22 16:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078658', 'tblTempUsageDetail_20' ) end [2024-12-22 16:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:15:21] Production.INFO: ==6568== Releasing lock... [2024-12-22 16:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:15:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:16:05 [end_date_ymd] => 2024-12-22 16:16:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:16:05' and `end` < '2024-12-22 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-22 16:16:18] Production.INFO: count ==1243 [2024-12-22 16:16:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:16:05 - End Time 2024-12-22 16:16:05 [2024-12-22 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078663', 'tblTempUsageDetail_20' ) start [2024-12-22 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078663', 'tblTempUsageDetail_20' ) end [2024-12-22 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078663', 'tblTempVendorCDR_20' ) start [2024-12-22 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078663', 'tblTempVendorCDR_20' ) end [2024-12-22 16:16:18] Production.INFO: ProcessCDR(1,14078663,1,1,2) [2024-12-22 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078663', 'tblTempUsageDetail_20' ) start [2024-12-22 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078663', 'tblTempUsageDetail_20' ) end [2024-12-22 16:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:16:22] Production.INFO: ==6645== Releasing lock... [2024-12-22 16:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:16:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:17:04 [end_date_ymd] => 2024-12-22 16:17:04 [RateCDR] => 1 ) [2024-12-22 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-22 13:17:04' and `end` < '2024-12-22 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-22 16:17:16] Production.INFO: count ==1245 [2024-12-22 16:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:17:04 - End Time 2024-12-22 16:17:04 [2024-12-22 16:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078668', 'tblTempUsageDetail_20' ) start [2024-12-22 16:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078668', 'tblTempUsageDetail_20' ) end [2024-12-22 16:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078668', 'tblTempVendorCDR_20' ) start [2024-12-22 16:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078668', 'tblTempVendorCDR_20' ) end [2024-12-22 16:17:17] Production.INFO: ProcessCDR(1,14078668,1,1,2) [2024-12-22 16:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078668', 'tblTempUsageDetail_20' ) start [2024-12-22 16:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078668', 'tblTempUsageDetail_20' ) end [2024-12-22 16:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:17:21] Production.INFO: ==6768== Releasing lock... [2024-12-22 16:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:17:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:18:05 [end_date_ymd] => 2024-12-22 16:18:05 [RateCDR] => 1 ) [2024-12-22 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:18:05' and `end` < '2024-12-22 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:18:17] Production.INFO: count ==1244 [2024-12-22 16:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:18:05 - End Time 2024-12-22 16:18:05 [2024-12-22 16:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078673', 'tblTempUsageDetail_20' ) start [2024-12-22 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078673', 'tblTempUsageDetail_20' ) end [2024-12-22 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078673', 'tblTempVendorCDR_20' ) start [2024-12-22 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078673', 'tblTempVendorCDR_20' ) end [2024-12-22 16:18:17] Production.INFO: ProcessCDR(1,14078673,1,1,2) [2024-12-22 16:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078673', 'tblTempUsageDetail_20' ) start [2024-12-22 16:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078673', 'tblTempUsageDetail_20' ) end [2024-12-22 16:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:18:21] Production.INFO: ==6852== Releasing lock... [2024-12-22 16:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:18:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:19:05 [end_date_ymd] => 2024-12-22 16:19:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:19:05' and `end` < '2024-12-22 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-22 16:19:17] Production.INFO: count ==1244 [2024-12-22 16:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:19:05 - End Time 2024-12-22 16:19:05 [2024-12-22 16:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078678', 'tblTempUsageDetail_20' ) start [2024-12-22 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078678', 'tblTempUsageDetail_20' ) end [2024-12-22 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078678', 'tblTempVendorCDR_20' ) start [2024-12-22 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078678', 'tblTempVendorCDR_20' ) end [2024-12-22 16:19:17] Production.INFO: ProcessCDR(1,14078678,1,1,2) [2024-12-22 16:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078678', 'tblTempUsageDetail_20' ) start [2024-12-22 16:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078678', 'tblTempUsageDetail_20' ) end [2024-12-22 16:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:19:20] Production.INFO: ==6925== Releasing lock... [2024-12-22 16:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:19:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:20:05 [end_date_ymd] => 2024-12-22 16:20:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:20:05' and `end` < '2024-12-22 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-22 16:20:18] Production.INFO: count ==1242 [2024-12-22 16:20:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:20:05 - End Time 2024-12-22 16:20:05 [2024-12-22 16:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078684', 'tblTempUsageDetail_20' ) start [2024-12-22 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078684', 'tblTempUsageDetail_20' ) end [2024-12-22 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078684', 'tblTempVendorCDR_20' ) start [2024-12-22 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078684', 'tblTempVendorCDR_20' ) end [2024-12-22 16:20:18] Production.INFO: ProcessCDR(1,14078684,1,1,2) [2024-12-22 16:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078684', 'tblTempUsageDetail_20' ) start [2024-12-22 16:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078684', 'tblTempUsageDetail_20' ) end [2024-12-22 16:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:20:22] Production.INFO: ==7003== Releasing lock... [2024-12-22 16:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:20:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:21:05 [end_date_ymd] => 2024-12-22 16:21:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:21:05' and `end` < '2024-12-22 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-22 16:21:18] Production.INFO: count ==1249 [2024-12-22 16:21:19] Production.ERROR: pbx CDR StartTime 2024-12-22 13:21:05 - End Time 2024-12-22 16:21:05 [2024-12-22 16:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078689', 'tblTempUsageDetail_20' ) start [2024-12-22 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078689', 'tblTempUsageDetail_20' ) end [2024-12-22 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078689', 'tblTempVendorCDR_20' ) start [2024-12-22 16:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078689', 'tblTempVendorCDR_20' ) end [2024-12-22 16:21:19] Production.INFO: ProcessCDR(1,14078689,1,1,2) [2024-12-22 16:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078689', 'tblTempUsageDetail_20' ) start [2024-12-22 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078689', 'tblTempUsageDetail_20' ) end [2024-12-22 16:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:21:23] Production.INFO: ==7081== Releasing lock... [2024-12-22 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:21:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:22:05 [end_date_ymd] => 2024-12-22 16:22:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:22:05' and `end` < '2024-12-22 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-22 16:22:17] Production.INFO: count ==1247 [2024-12-22 16:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:22:05 - End Time 2024-12-22 16:22:05 [2024-12-22 16:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078694', 'tblTempUsageDetail_20' ) start [2024-12-22 16:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078694', 'tblTempUsageDetail_20' ) end [2024-12-22 16:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078694', 'tblTempVendorCDR_20' ) start [2024-12-22 16:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078694', 'tblTempVendorCDR_20' ) end [2024-12-22 16:22:17] Production.INFO: ProcessCDR(1,14078694,1,1,2) [2024-12-22 16:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078694', 'tblTempUsageDetail_20' ) start [2024-12-22 16:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078694', 'tblTempUsageDetail_20' ) end [2024-12-22 16:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:22:20] Production.INFO: ==7155== Releasing lock... [2024-12-22 16:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:22:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:23:05 [end_date_ymd] => 2024-12-22 16:23:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:23:05' and `end` < '2024-12-22 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-22 16:23:17] Production.INFO: count ==1246 [2024-12-22 16:23:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:23:05 - End Time 2024-12-22 16:23:05 [2024-12-22 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078699', 'tblTempUsageDetail_20' ) start [2024-12-22 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078699', 'tblTempUsageDetail_20' ) end [2024-12-22 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078699', 'tblTempVendorCDR_20' ) start [2024-12-22 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078699', 'tblTempVendorCDR_20' ) end [2024-12-22 16:23:18] Production.INFO: ProcessCDR(1,14078699,1,1,2) [2024-12-22 16:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078699', 'tblTempUsageDetail_20' ) start [2024-12-22 16:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078699', 'tblTempUsageDetail_20' ) end [2024-12-22 16:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:23:21] Production.INFO: ==7231== Releasing lock... [2024-12-22 16:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:23:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:24:04 [end_date_ymd] => 2024-12-22 16:24:04 [RateCDR] => 1 ) [2024-12-22 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:24:04' and `end` < '2024-12-22 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-22 16:24:17] Production.INFO: count ==1242 [2024-12-22 16:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:24:04 - End Time 2024-12-22 16:24:04 [2024-12-22 16:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078704', 'tblTempUsageDetail_20' ) start [2024-12-22 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078704', 'tblTempUsageDetail_20' ) end [2024-12-22 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078704', 'tblTempVendorCDR_20' ) start [2024-12-22 16:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078704', 'tblTempVendorCDR_20' ) end [2024-12-22 16:24:17] Production.INFO: ProcessCDR(1,14078704,1,1,2) [2024-12-22 16:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078704', 'tblTempUsageDetail_20' ) start [2024-12-22 16:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078704', 'tblTempUsageDetail_20' ) end [2024-12-22 16:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:24:20] Production.INFO: ==7306== Releasing lock... [2024-12-22 16:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:24:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:25:05 [end_date_ymd] => 2024-12-22 16:25:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:25:05' and `end` < '2024-12-22 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-22 16:25:17] Production.INFO: count ==1244 [2024-12-22 16:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:25:05 - End Time 2024-12-22 16:25:05 [2024-12-22 16:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078709', 'tblTempUsageDetail_20' ) start [2024-12-22 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078709', 'tblTempUsageDetail_20' ) end [2024-12-22 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078709', 'tblTempVendorCDR_20' ) start [2024-12-22 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078709', 'tblTempVendorCDR_20' ) end [2024-12-22 16:25:17] Production.INFO: ProcessCDR(1,14078709,1,1,2) [2024-12-22 16:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078709', 'tblTempUsageDetail_20' ) start [2024-12-22 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078709', 'tblTempUsageDetail_20' ) end [2024-12-22 16:25:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:25:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:25:22] Production.INFO: ==7379== Releasing lock... [2024-12-22 16:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:25:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:26:04 [end_date_ymd] => 2024-12-22 16:26:04 [RateCDR] => 1 ) [2024-12-22 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-22 13:26:04' and `end` < '2024-12-22 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-22 16:26:16] Production.INFO: count ==1240 [2024-12-22 16:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:26:04 - End Time 2024-12-22 16:26:04 [2024-12-22 16:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078714', 'tblTempUsageDetail_20' ) start [2024-12-22 16:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078714', 'tblTempUsageDetail_20' ) end [2024-12-22 16:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078714', 'tblTempVendorCDR_20' ) start [2024-12-22 16:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078714', 'tblTempVendorCDR_20' ) end [2024-12-22 16:26:17] Production.INFO: ProcessCDR(1,14078714,1,1,2) [2024-12-22 16:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078714', 'tblTempUsageDetail_20' ) start [2024-12-22 16:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078714', 'tblTempUsageDetail_20' ) end [2024-12-22 16:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:26:20] Production.INFO: ==7454== Releasing lock... [2024-12-22 16:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:26:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:27:05 [end_date_ymd] => 2024-12-22 16:27:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:27:05' and `end` < '2024-12-22 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-22 16:27:17] Production.INFO: count ==1240 [2024-12-22 16:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:27:05 - End Time 2024-12-22 16:27:05 [2024-12-22 16:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078719', 'tblTempUsageDetail_20' ) start [2024-12-22 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078719', 'tblTempUsageDetail_20' ) end [2024-12-22 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078719', 'tblTempVendorCDR_20' ) start [2024-12-22 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078719', 'tblTempVendorCDR_20' ) end [2024-12-22 16:27:17] Production.INFO: ProcessCDR(1,14078719,1,1,2) [2024-12-22 16:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078719', 'tblTempUsageDetail_20' ) start [2024-12-22 16:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078719', 'tblTempUsageDetail_20' ) end [2024-12-22 16:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:27:20] Production.INFO: ==7529== Releasing lock... [2024-12-22 16:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:27:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:28:05 [end_date_ymd] => 2024-12-22 16:28:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:28:05' and `end` < '2024-12-22 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-22 16:28:18] Production.INFO: count ==1232 [2024-12-22 16:28:19] Production.ERROR: pbx CDR StartTime 2024-12-22 13:28:05 - End Time 2024-12-22 16:28:05 [2024-12-22 16:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078724', 'tblTempUsageDetail_20' ) start [2024-12-22 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078724', 'tblTempUsageDetail_20' ) end [2024-12-22 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078724', 'tblTempVendorCDR_20' ) start [2024-12-22 16:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078724', 'tblTempVendorCDR_20' ) end [2024-12-22 16:28:19] Production.INFO: ProcessCDR(1,14078724,1,1,2) [2024-12-22 16:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078724', 'tblTempUsageDetail_20' ) start [2024-12-22 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078724', 'tblTempUsageDetail_20' ) end [2024-12-22 16:28:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:28:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:28:22] Production.INFO: ==7603== Releasing lock... [2024-12-22 16:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:28:22] Production.INFO: 37 MB #Memory Used# [2024-12-22 16:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:29:04 [end_date_ymd] => 2024-12-22 16:29:04 [RateCDR] => 1 ) [2024-12-22 16: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-22 13:29:04' and `end` < '2024-12-22 16: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-22 16:29:17] Production.INFO: count ==1231 [2024-12-22 16:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:29:04 - End Time 2024-12-22 16:29:04 [2024-12-22 16:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078729', 'tblTempUsageDetail_20' ) start [2024-12-22 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078729', 'tblTempUsageDetail_20' ) end [2024-12-22 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078729', 'tblTempVendorCDR_20' ) start [2024-12-22 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078729', 'tblTempVendorCDR_20' ) end [2024-12-22 16:29:17] Production.INFO: ProcessCDR(1,14078729,1,1,2) [2024-12-22 16:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078729', 'tblTempUsageDetail_20' ) start [2024-12-22 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078729', 'tblTempUsageDetail_20' ) end [2024-12-22 16:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:29:21] Production.INFO: ==7677== Releasing lock... [2024-12-22 16:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:29:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:30:05 [end_date_ymd] => 2024-12-22 16:30:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:30:05' and `end` < '2024-12-22 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-22 16:30:18] Production.INFO: count ==1229 [2024-12-22 16:30:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:30:05 - End Time 2024-12-22 16:30:05 [2024-12-22 16:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078734', 'tblTempUsageDetail_20' ) start [2024-12-22 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078734', 'tblTempUsageDetail_20' ) end [2024-12-22 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078734', 'tblTempVendorCDR_20' ) start [2024-12-22 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078734', 'tblTempVendorCDR_20' ) end [2024-12-22 16:30:18] Production.INFO: ProcessCDR(1,14078734,1,1,2) [2024-12-22 16:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078734', 'tblTempUsageDetail_20' ) start [2024-12-22 16:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078734', 'tblTempUsageDetail_20' ) end [2024-12-22 16:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:30:21] Production.INFO: ==7755== Releasing lock... [2024-12-22 16:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:30:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:31:04 [end_date_ymd] => 2024-12-22 16:31:04 [RateCDR] => 1 ) [2024-12-22 16: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-22 13:31:04' and `end` < '2024-12-22 16: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-22 16:31:17] Production.INFO: count ==1270 [2024-12-22 16:31:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:31:04 - End Time 2024-12-22 16:31:04 [2024-12-22 16:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078740', 'tblTempUsageDetail_20' ) start [2024-12-22 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078740', 'tblTempUsageDetail_20' ) end [2024-12-22 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078740', 'tblTempVendorCDR_20' ) start [2024-12-22 16:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078740', 'tblTempVendorCDR_20' ) end [2024-12-22 16:31:17] Production.INFO: ProcessCDR(1,14078740,1,1,2) [2024-12-22 16:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078740', 'tblTempUsageDetail_20' ) start [2024-12-22 16:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078740', 'tblTempUsageDetail_20' ) end [2024-12-22 16:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:31:21] Production.INFO: ==7831== Releasing lock... [2024-12-22 16:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:31:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:32:05 [end_date_ymd] => 2024-12-22 16:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:32:05' and `end` < '2024-12-22 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-22 16:32:18] Production.INFO: count ==1265 [2024-12-22 16:32:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:32:05 - End Time 2024-12-22 16:32:05 [2024-12-22 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078745', 'tblTempUsageDetail_20' ) start [2024-12-22 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078745', 'tblTempUsageDetail_20' ) end [2024-12-22 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078745', 'tblTempVendorCDR_20' ) start [2024-12-22 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078745', 'tblTempVendorCDR_20' ) end [2024-12-22 16:32:18] Production.INFO: ProcessCDR(1,14078745,1,1,2) [2024-12-22 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078745', 'tblTempUsageDetail_20' ) start [2024-12-22 16:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078745', 'tblTempUsageDetail_20' ) end [2024-12-22 16:32:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:32:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:32:23] Production.INFO: ==7911== Releasing lock... [2024-12-22 16:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:32:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:33:04 [end_date_ymd] => 2024-12-22 16:33:04 [RateCDR] => 1 ) [2024-12-22 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-22 13:33:04' and `end` < '2024-12-22 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-22 16:33:17] Production.INFO: count ==1266 [2024-12-22 16:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:33:04 - End Time 2024-12-22 16:33:04 [2024-12-22 16:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078750', 'tblTempUsageDetail_20' ) start [2024-12-22 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078750', 'tblTempUsageDetail_20' ) end [2024-12-22 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078750', 'tblTempVendorCDR_20' ) start [2024-12-22 16:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078750', 'tblTempVendorCDR_20' ) end [2024-12-22 16:33:17] Production.INFO: ProcessCDR(1,14078750,1,1,2) [2024-12-22 16:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078750', 'tblTempUsageDetail_20' ) start [2024-12-22 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078750', 'tblTempUsageDetail_20' ) end [2024-12-22 16:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:33:22] Production.INFO: ==8026== Releasing lock... [2024-12-22 16:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:33:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:34:05 [end_date_ymd] => 2024-12-22 16:34:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:34:05' and `end` < '2024-12-22 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-22 16:34:17] Production.INFO: count ==1260 [2024-12-22 16:34:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:34:05 - End Time 2024-12-22 16:34:05 [2024-12-22 16:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078755', 'tblTempUsageDetail_20' ) start [2024-12-22 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078755', 'tblTempUsageDetail_20' ) end [2024-12-22 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078755', 'tblTempVendorCDR_20' ) start [2024-12-22 16:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078755', 'tblTempVendorCDR_20' ) end [2024-12-22 16:34:18] Production.INFO: ProcessCDR(1,14078755,1,1,2) [2024-12-22 16:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078755', 'tblTempUsageDetail_20' ) start [2024-12-22 16:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078755', 'tblTempUsageDetail_20' ) end [2024-12-22 16:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:34:22] Production.INFO: ==8103== Releasing lock... [2024-12-22 16:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:34:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:35:05 [end_date_ymd] => 2024-12-22 16:35:05 [RateCDR] => 1 ) [2024-12-22 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:35:05' and `end` < '2024-12-22 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:35:17] Production.INFO: count ==1252 [2024-12-22 16:35:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:35:05 - End Time 2024-12-22 16:35:05 [2024-12-22 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078760', 'tblTempUsageDetail_20' ) start [2024-12-22 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078760', 'tblTempUsageDetail_20' ) end [2024-12-22 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078760', 'tblTempVendorCDR_20' ) start [2024-12-22 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078760', 'tblTempVendorCDR_20' ) end [2024-12-22 16:35:18] Production.INFO: ProcessCDR(1,14078760,1,1,2) [2024-12-22 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078760', 'tblTempUsageDetail_20' ) start [2024-12-22 16:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078760', 'tblTempUsageDetail_20' ) end [2024-12-22 16:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:35:21] Production.INFO: ==8181== Releasing lock... [2024-12-22 16:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:35:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:36:05 [end_date_ymd] => 2024-12-22 16:36:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:36:05' and `end` < '2024-12-22 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-22 16:36:17] Production.INFO: count ==1255 [2024-12-22 16:36:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:36:05 - End Time 2024-12-22 16:36:05 [2024-12-22 16:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078765', 'tblTempUsageDetail_20' ) start [2024-12-22 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078765', 'tblTempUsageDetail_20' ) end [2024-12-22 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078765', 'tblTempVendorCDR_20' ) start [2024-12-22 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078765', 'tblTempVendorCDR_20' ) end [2024-12-22 16:36:17] Production.INFO: ProcessCDR(1,14078765,1,1,2) [2024-12-22 16:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078765', 'tblTempUsageDetail_20' ) start [2024-12-22 16:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078765', 'tblTempUsageDetail_20' ) end [2024-12-22 16:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:36:22] Production.INFO: ==8252== Releasing lock... [2024-12-22 16:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:36:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:37:05 [end_date_ymd] => 2024-12-22 16:37:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:37:05' and `end` < '2024-12-22 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-22 16:37:17] Production.INFO: count ==1252 [2024-12-22 16:37:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:37:05 - End Time 2024-12-22 16:37:05 [2024-12-22 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078770', 'tblTempUsageDetail_20' ) start [2024-12-22 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078770', 'tblTempUsageDetail_20' ) end [2024-12-22 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078770', 'tblTempVendorCDR_20' ) start [2024-12-22 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078770', 'tblTempVendorCDR_20' ) end [2024-12-22 16:37:18] Production.INFO: ProcessCDR(1,14078770,1,1,2) [2024-12-22 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078770', 'tblTempUsageDetail_20' ) start [2024-12-22 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078770', 'tblTempUsageDetail_20' ) end [2024-12-22 16:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:37:22] Production.INFO: ==8326== Releasing lock... [2024-12-22 16:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:37:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:38:04 [end_date_ymd] => 2024-12-22 16:38:04 [RateCDR] => 1 ) [2024-12-22 16: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-22 13:38:04' and `end` < '2024-12-22 16: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-22 16:38:17] Production.INFO: count ==1244 [2024-12-22 16:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:38:04 - End Time 2024-12-22 16:38:04 [2024-12-22 16:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078775', 'tblTempUsageDetail_20' ) start [2024-12-22 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078775', 'tblTempUsageDetail_20' ) end [2024-12-22 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078775', 'tblTempVendorCDR_20' ) start [2024-12-22 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078775', 'tblTempVendorCDR_20' ) end [2024-12-22 16:38:17] Production.INFO: ProcessCDR(1,14078775,1,1,2) [2024-12-22 16:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078775', 'tblTempUsageDetail_20' ) start [2024-12-22 16:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078775', 'tblTempUsageDetail_20' ) end [2024-12-22 16:38:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:38:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:38:21] Production.INFO: ==8394== Releasing lock... [2024-12-22 16:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:38:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:39:05 [end_date_ymd] => 2024-12-22 16:39:05 [RateCDR] => 1 ) [2024-12-22 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:39:05' and `end` < '2024-12-22 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:39:18] Production.INFO: count ==1244 [2024-12-22 16:39:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:39:05 - End Time 2024-12-22 16:39:05 [2024-12-22 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078780', 'tblTempUsageDetail_20' ) start [2024-12-22 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078780', 'tblTempUsageDetail_20' ) end [2024-12-22 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078780', 'tblTempVendorCDR_20' ) start [2024-12-22 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078780', 'tblTempVendorCDR_20' ) end [2024-12-22 16:39:18] Production.INFO: ProcessCDR(1,14078780,1,1,2) [2024-12-22 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078780', 'tblTempUsageDetail_20' ) start [2024-12-22 16:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078780', 'tblTempUsageDetail_20' ) end [2024-12-22 16:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:39:21] Production.INFO: ==8467== Releasing lock... [2024-12-22 16:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:39:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:40:05 [end_date_ymd] => 2024-12-22 16:40:05 [RateCDR] => 1 ) [2024-12-22 16:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:40:05' and `end` < '2024-12-22 16:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:40:17] Production.INFO: count ==1244 [2024-12-22 16:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:40:05 - End Time 2024-12-22 16:40:05 [2024-12-22 16:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078786', 'tblTempUsageDetail_20' ) start [2024-12-22 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078786', 'tblTempUsageDetail_20' ) end [2024-12-22 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078786', 'tblTempVendorCDR_20' ) start [2024-12-22 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078786', 'tblTempVendorCDR_20' ) end [2024-12-22 16:40:18] Production.INFO: ProcessCDR(1,14078786,1,1,2) [2024-12-22 16:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078786', 'tblTempUsageDetail_20' ) start [2024-12-22 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078786', 'tblTempUsageDetail_20' ) end [2024-12-22 16:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:40:22] Production.INFO: ==8543== Releasing lock... [2024-12-22 16:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:40:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:41:04 [end_date_ymd] => 2024-12-22 16:41:04 [RateCDR] => 1 ) [2024-12-22 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-22 13:41:04' and `end` < '2024-12-22 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-22 16:41:17] Production.INFO: count ==1269 [2024-12-22 16:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:41:04 - End Time 2024-12-22 16:41:04 [2024-12-22 16:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078791', 'tblTempUsageDetail_20' ) start [2024-12-22 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078791', 'tblTempUsageDetail_20' ) end [2024-12-22 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078791', 'tblTempVendorCDR_20' ) start [2024-12-22 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078791', 'tblTempVendorCDR_20' ) end [2024-12-22 16:41:17] Production.INFO: ProcessCDR(1,14078791,1,1,2) [2024-12-22 16:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078791', 'tblTempUsageDetail_20' ) start [2024-12-22 16:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078791', 'tblTempUsageDetail_20' ) end [2024-12-22 16:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:41:21] Production.INFO: ==8618== Releasing lock... [2024-12-22 16:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:41:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:42:05 [end_date_ymd] => 2024-12-22 16:42:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:42:05' and `end` < '2024-12-22 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-22 16:42:17] Production.INFO: count ==1268 [2024-12-22 16:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:42:05 - End Time 2024-12-22 16:42:05 [2024-12-22 16:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078796', 'tblTempUsageDetail_20' ) start [2024-12-22 16:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078796', 'tblTempUsageDetail_20' ) end [2024-12-22 16:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078796', 'tblTempVendorCDR_20' ) start [2024-12-22 16:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078796', 'tblTempVendorCDR_20' ) end [2024-12-22 16:42:17] Production.INFO: ProcessCDR(1,14078796,1,1,2) [2024-12-22 16:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078796', 'tblTempUsageDetail_20' ) start [2024-12-22 16:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078796', 'tblTempUsageDetail_20' ) end [2024-12-22 16:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:42:20] Production.INFO: ==8691== Releasing lock... [2024-12-22 16:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:42:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:43:04 [end_date_ymd] => 2024-12-22 16:43:04 [RateCDR] => 1 ) [2024-12-22 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-22 13:43:04' and `end` < '2024-12-22 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-22 16:43:18] Production.INFO: count ==1268 [2024-12-22 16:43:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:43:04 - End Time 2024-12-22 16:43:04 [2024-12-22 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078801', 'tblTempUsageDetail_20' ) start [2024-12-22 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078801', 'tblTempUsageDetail_20' ) end [2024-12-22 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078801', 'tblTempVendorCDR_20' ) start [2024-12-22 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078801', 'tblTempVendorCDR_20' ) end [2024-12-22 16:43:18] Production.INFO: ProcessCDR(1,14078801,1,1,2) [2024-12-22 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078801', 'tblTempUsageDetail_20' ) start [2024-12-22 16:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078801', 'tblTempUsageDetail_20' ) end [2024-12-22 16:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:43:21] Production.INFO: ==8764== Releasing lock... [2024-12-22 16:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:43:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:44:05 [end_date_ymd] => 2024-12-22 16:44:05 [RateCDR] => 1 ) [2024-12-22 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:44:05' and `end` < '2024-12-22 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:44:18] Production.INFO: count ==1270 [2024-12-22 16:44:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:44:05 - End Time 2024-12-22 16:44:05 [2024-12-22 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078806', 'tblTempUsageDetail_20' ) start [2024-12-22 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078806', 'tblTempUsageDetail_20' ) end [2024-12-22 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078806', 'tblTempVendorCDR_20' ) start [2024-12-22 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078806', 'tblTempVendorCDR_20' ) end [2024-12-22 16:44:18] Production.INFO: ProcessCDR(1,14078806,1,1,2) [2024-12-22 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078806', 'tblTempUsageDetail_20' ) start [2024-12-22 16:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078806', 'tblTempUsageDetail_20' ) end [2024-12-22 16:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:44:23] Production.INFO: ==8837== Releasing lock... [2024-12-22 16:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:44:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:45:04 [end_date_ymd] => 2024-12-22 16:45:04 [RateCDR] => 1 ) [2024-12-22 16: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-22 13:45:04' and `end` < '2024-12-22 16: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-22 16:45:16] Production.INFO: count ==1272 [2024-12-22 16:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:45:04 - End Time 2024-12-22 16:45:04 [2024-12-22 16:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078811', 'tblTempUsageDetail_20' ) start [2024-12-22 16:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078811', 'tblTempUsageDetail_20' ) end [2024-12-22 16:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078811', 'tblTempVendorCDR_20' ) start [2024-12-22 16:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078811', 'tblTempVendorCDR_20' ) end [2024-12-22 16:45:17] Production.INFO: ProcessCDR(1,14078811,1,1,2) [2024-12-22 16:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078811', 'tblTempUsageDetail_20' ) start [2024-12-22 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078811', 'tblTempUsageDetail_20' ) end [2024-12-22 16:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:45:21] Production.INFO: ==8912== Releasing lock... [2024-12-22 16:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:45:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:46:05 [end_date_ymd] => 2024-12-22 16:46:05 [RateCDR] => 1 ) [2024-12-22 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:46:05' and `end` < '2024-12-22 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:46:17] Production.INFO: count ==1270 [2024-12-22 16:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:46:05 - End Time 2024-12-22 16:46:05 [2024-12-22 16:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078816', 'tblTempUsageDetail_20' ) start [2024-12-22 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078816', 'tblTempUsageDetail_20' ) end [2024-12-22 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078816', 'tblTempVendorCDR_20' ) start [2024-12-22 16:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078816', 'tblTempVendorCDR_20' ) end [2024-12-22 16:46:17] Production.INFO: ProcessCDR(1,14078816,1,1,2) [2024-12-22 16:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078816', 'tblTempUsageDetail_20' ) start [2024-12-22 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078816', 'tblTempUsageDetail_20' ) end [2024-12-22 16:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:46:22] Production.INFO: ==8993== Releasing lock... [2024-12-22 16:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:46:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:47:05 [end_date_ymd] => 2024-12-22 16:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:47:05' and `end` < '2024-12-22 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-22 16:47:17] Production.INFO: count ==1274 [2024-12-22 16:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:47:05 - End Time 2024-12-22 16:47:05 [2024-12-22 16:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078821', 'tblTempUsageDetail_20' ) start [2024-12-22 16:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078821', 'tblTempUsageDetail_20' ) end [2024-12-22 16:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078821', 'tblTempVendorCDR_20' ) start [2024-12-22 16:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078821', 'tblTempVendorCDR_20' ) end [2024-12-22 16:47:17] Production.INFO: ProcessCDR(1,14078821,1,1,2) [2024-12-22 16:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078821', 'tblTempUsageDetail_20' ) start [2024-12-22 16:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078821', 'tblTempUsageDetail_20' ) end [2024-12-22 16:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:47:21] Production.INFO: ==9065== Releasing lock... [2024-12-22 16:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:47:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:48:04 [end_date_ymd] => 2024-12-22 16:48:04 [RateCDR] => 1 ) [2024-12-22 16: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-22 13:48:04' and `end` < '2024-12-22 16: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-22 16:48:18] Production.INFO: count ==1272 [2024-12-22 16:48:19] Production.ERROR: pbx CDR StartTime 2024-12-22 13:48:04 - End Time 2024-12-22 16:48:04 [2024-12-22 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078826', 'tblTempUsageDetail_20' ) start [2024-12-22 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078826', 'tblTempUsageDetail_20' ) end [2024-12-22 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078826', 'tblTempVendorCDR_20' ) start [2024-12-22 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078826', 'tblTempVendorCDR_20' ) end [2024-12-22 16:48:19] Production.INFO: ProcessCDR(1,14078826,1,1,2) [2024-12-22 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078826', 'tblTempUsageDetail_20' ) start [2024-12-22 16:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078826', 'tblTempUsageDetail_20' ) end [2024-12-22 16:48:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:48:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:48:22] Production.INFO: ==9140== Releasing lock... [2024-12-22 16:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:48:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:49:05 [end_date_ymd] => 2024-12-22 16:49:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:49:05' and `end` < '2024-12-22 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-22 16:49:17] Production.INFO: count ==1272 [2024-12-22 16:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:49:05 - End Time 2024-12-22 16:49:05 [2024-12-22 16:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078831', 'tblTempUsageDetail_20' ) start [2024-12-22 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078831', 'tblTempUsageDetail_20' ) end [2024-12-22 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078831', 'tblTempVendorCDR_20' ) start [2024-12-22 16:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078831', 'tblTempVendorCDR_20' ) end [2024-12-22 16:49:17] Production.INFO: ProcessCDR(1,14078831,1,1,2) [2024-12-22 16:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078831', 'tblTempUsageDetail_20' ) start [2024-12-22 16:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078831', 'tblTempUsageDetail_20' ) end [2024-12-22 16:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:49:20] Production.INFO: ==9253== Releasing lock... [2024-12-22 16:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:49:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:50:05 [end_date_ymd] => 2024-12-22 16:50:05 [RateCDR] => 1 ) [2024-12-22 16:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:50:05' and `end` < '2024-12-22 16:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:50:17] Production.INFO: count ==1275 [2024-12-22 16:50:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:50:05 - End Time 2024-12-22 16:50:05 [2024-12-22 16:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078837', 'tblTempUsageDetail_20' ) start [2024-12-22 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078837', 'tblTempUsageDetail_20' ) end [2024-12-22 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078837', 'tblTempVendorCDR_20' ) start [2024-12-22 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078837', 'tblTempVendorCDR_20' ) end [2024-12-22 16:50:18] Production.INFO: ProcessCDR(1,14078837,1,1,2) [2024-12-22 16:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078837', 'tblTempUsageDetail_20' ) start [2024-12-22 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078837', 'tblTempUsageDetail_20' ) end [2024-12-22 16:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:50:22] Production.INFO: ==9327== Releasing lock... [2024-12-22 16:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:50:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:51:04 [end_date_ymd] => 2024-12-22 16:51:04 [RateCDR] => 1 ) [2024-12-22 16:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:51:04' and `end` < '2024-12-22 16:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:51:16] Production.INFO: count ==1298 [2024-12-22 16:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:51:04 - End Time 2024-12-22 16:51:04 [2024-12-22 16:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078842', 'tblTempUsageDetail_20' ) start [2024-12-22 16:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078842', 'tblTempUsageDetail_20' ) end [2024-12-22 16:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078842', 'tblTempVendorCDR_20' ) start [2024-12-22 16:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078842', 'tblTempVendorCDR_20' ) end [2024-12-22 16:51:17] Production.INFO: ProcessCDR(1,14078842,1,1,2) [2024-12-22 16:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078842', 'tblTempUsageDetail_20' ) start [2024-12-22 16:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078842', 'tblTempUsageDetail_20' ) end [2024-12-22 16:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:51:21] Production.INFO: ==9407== Releasing lock... [2024-12-22 16:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:51:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:52:05 [end_date_ymd] => 2024-12-22 16:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:52:05' and `end` < '2024-12-22 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-22 16:52:17] Production.INFO: count ==1292 [2024-12-22 16:52:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:52:05 - End Time 2024-12-22 16:52:05 [2024-12-22 16:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078847', 'tblTempUsageDetail_20' ) start [2024-12-22 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078847', 'tblTempUsageDetail_20' ) end [2024-12-22 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078847', 'tblTempVendorCDR_20' ) start [2024-12-22 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078847', 'tblTempVendorCDR_20' ) end [2024-12-22 16:52:18] Production.INFO: ProcessCDR(1,14078847,1,1,2) [2024-12-22 16:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078847', 'tblTempUsageDetail_20' ) start [2024-12-22 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078847', 'tblTempUsageDetail_20' ) end [2024-12-22 16:52:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:52:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:52:22] Production.INFO: ==9480== Releasing lock... [2024-12-22 16:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:52:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:53:05 [end_date_ymd] => 2024-12-22 16:53:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:53:05' and `end` < '2024-12-22 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-22 16:53:18] Production.INFO: count ==1291 [2024-12-22 16:53:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:53:05 - End Time 2024-12-22 16:53:05 [2024-12-22 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078852', 'tblTempUsageDetail_20' ) start [2024-12-22 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078852', 'tblTempUsageDetail_20' ) end [2024-12-22 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078852', 'tblTempVendorCDR_20' ) start [2024-12-22 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078852', 'tblTempVendorCDR_20' ) end [2024-12-22 16:53:18] Production.INFO: ProcessCDR(1,14078852,1,1,2) [2024-12-22 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078852', 'tblTempUsageDetail_20' ) start [2024-12-22 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078852', 'tblTempUsageDetail_20' ) end [2024-12-22 16:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:53:22] Production.INFO: ==9550== Releasing lock... [2024-12-22 16:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:53:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:54:05 [end_date_ymd] => 2024-12-22 16:54:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:54:05' and `end` < '2024-12-22 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-22 16:54:17] Production.INFO: count ==1292 [2024-12-22 16:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:54:05 - End Time 2024-12-22 16:54:05 [2024-12-22 16:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078857', 'tblTempUsageDetail_20' ) start [2024-12-22 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078857', 'tblTempUsageDetail_20' ) end [2024-12-22 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078857', 'tblTempVendorCDR_20' ) start [2024-12-22 16:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078857', 'tblTempVendorCDR_20' ) end [2024-12-22 16:54:17] Production.INFO: ProcessCDR(1,14078857,1,1,2) [2024-12-22 16:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078857', 'tblTempUsageDetail_20' ) start [2024-12-22 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078857', 'tblTempUsageDetail_20' ) end [2024-12-22 16:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:54:22] Production.INFO: ==9649== Releasing lock... [2024-12-22 16:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:54:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:55:04 [end_date_ymd] => 2024-12-22 16:55:04 [RateCDR] => 1 ) [2024-12-22 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-22 13:55:04' and `end` < '2024-12-22 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-22 16:55:17] Production.INFO: count ==1292 [2024-12-22 16:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:55:04 - End Time 2024-12-22 16:55:04 [2024-12-22 16:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078862', 'tblTempUsageDetail_20' ) start [2024-12-22 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078862', 'tblTempUsageDetail_20' ) end [2024-12-22 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078862', 'tblTempVendorCDR_20' ) start [2024-12-22 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078862', 'tblTempVendorCDR_20' ) end [2024-12-22 16:55:17] Production.INFO: ProcessCDR(1,14078862,1,1,2) [2024-12-22 16:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078862', 'tblTempUsageDetail_20' ) start [2024-12-22 16:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078862', 'tblTempUsageDetail_20' ) end [2024-12-22 16:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:55:20] Production.INFO: ==9750== Releasing lock... [2024-12-22 16:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:55:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:56:05 [end_date_ymd] => 2024-12-22 16:56:05 [RateCDR] => 1 ) [2024-12-22 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:56:05' and `end` < '2024-12-22 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:56:17] Production.INFO: count ==1292 [2024-12-22 16:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:56:05 - End Time 2024-12-22 16:56:05 [2024-12-22 16:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078867', 'tblTempUsageDetail_20' ) start [2024-12-22 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078867', 'tblTempUsageDetail_20' ) end [2024-12-22 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078867', 'tblTempVendorCDR_20' ) start [2024-12-22 16:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078867', 'tblTempVendorCDR_20' ) end [2024-12-22 16:56:17] Production.INFO: ProcessCDR(1,14078867,1,1,2) [2024-12-22 16:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078867', 'tblTempUsageDetail_20' ) start [2024-12-22 16:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078867', 'tblTempUsageDetail_20' ) end [2024-12-22 16:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:56:20] Production.INFO: ==9852== Releasing lock... [2024-12-22 16:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:56:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:57:05 [end_date_ymd] => 2024-12-22 16:57:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:57:05' and `end` < '2024-12-22 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-22 16:57:17] Production.INFO: count ==1292 [2024-12-22 16:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:57:05 - End Time 2024-12-22 16:57:05 [2024-12-22 16:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078872', 'tblTempUsageDetail_20' ) start [2024-12-22 16:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078872', 'tblTempUsageDetail_20' ) end [2024-12-22 16:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078872', 'tblTempVendorCDR_20' ) start [2024-12-22 16:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078872', 'tblTempVendorCDR_20' ) end [2024-12-22 16:57:17] Production.INFO: ProcessCDR(1,14078872,1,1,2) [2024-12-22 16:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078872', 'tblTempUsageDetail_20' ) start [2024-12-22 16:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078872', 'tblTempUsageDetail_20' ) end [2024-12-22 16:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:57:20] Production.INFO: ==9923== Releasing lock... [2024-12-22 16:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:57:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:58:05 [end_date_ymd] => 2024-12-22 16:58:05 [RateCDR] => 1 ) [2024-12-22 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 13:58:05' and `end` < '2024-12-22 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 16:58:17] Production.INFO: count ==1279 [2024-12-22 16:58:17] Production.ERROR: pbx CDR StartTime 2024-12-22 13:58:05 - End Time 2024-12-22 16:58:05 [2024-12-22 16:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078877', 'tblTempUsageDetail_20' ) start [2024-12-22 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078877', 'tblTempUsageDetail_20' ) end [2024-12-22 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078877', 'tblTempVendorCDR_20' ) start [2024-12-22 16:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078877', 'tblTempVendorCDR_20' ) end [2024-12-22 16:58:17] Production.INFO: ProcessCDR(1,14078877,1,1,2) [2024-12-22 16:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078877', 'tblTempUsageDetail_20' ) start [2024-12-22 16:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078877', 'tblTempUsageDetail_20' ) end [2024-12-22 16:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:58:21] Production.INFO: ==9997== Releasing lock... [2024-12-22 16:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:58:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 13:59:05 [end_date_ymd] => 2024-12-22 16:59:05 [RateCDR] => 1 ) [2024-12-22 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-22 13:59:05' and `end` < '2024-12-22 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-22 16:59:17] Production.INFO: count ==1267 [2024-12-22 16:59:18] Production.ERROR: pbx CDR StartTime 2024-12-22 13:59:05 - End Time 2024-12-22 16:59:05 [2024-12-22 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078882', 'tblTempUsageDetail_20' ) start [2024-12-22 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078882', 'tblTempUsageDetail_20' ) end [2024-12-22 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078882', 'tblTempVendorCDR_20' ) start [2024-12-22 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078882', 'tblTempVendorCDR_20' ) end [2024-12-22 16:59:18] Production.INFO: ProcessCDR(1,14078882,1,1,2) [2024-12-22 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 16:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 16:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078882', 'tblTempUsageDetail_20' ) start [2024-12-22 16:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078882', 'tblTempUsageDetail_20' ) end [2024-12-22 16:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 16:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 16:59:21] Production.INFO: ==10078== Releasing lock... [2024-12-22 16:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 16:59:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:00:05 [end_date_ymd] => 2024-12-22 17:00:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:00:05' and `end` < '2024-12-22 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-22 17:00:17] Production.INFO: count ==1273 [2024-12-22 17:00:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:00:05 - End Time 2024-12-22 17:00:05 [2024-12-22 17:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078887', 'tblTempUsageDetail_20' ) start [2024-12-22 17:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078887', 'tblTempUsageDetail_20' ) end [2024-12-22 17:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078887', 'tblTempVendorCDR_20' ) start [2024-12-22 17:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078887', 'tblTempVendorCDR_20' ) end [2024-12-22 17:00:17] Production.INFO: ProcessCDR(1,14078887,1,1,2) [2024-12-22 17:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078887', 'tblTempUsageDetail_20' ) start [2024-12-22 17:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078887', 'tblTempUsageDetail_20' ) end [2024-12-22 17:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:00:22] Production.INFO: ==10162== Releasing lock... [2024-12-22 17:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:00:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:01:04 [end_date_ymd] => 2024-12-22 17:01:04 [RateCDR] => 1 ) [2024-12-22 17:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:01:04' and `end` < '2024-12-22 17:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:01:17] Production.INFO: count ==1301 [2024-12-22 17:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:01:04 - End Time 2024-12-22 17:01:04 [2024-12-22 17:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078893', 'tblTempUsageDetail_20' ) start [2024-12-22 17:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078893', 'tblTempUsageDetail_20' ) end [2024-12-22 17:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078893', 'tblTempVendorCDR_20' ) start [2024-12-22 17:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078893', 'tblTempVendorCDR_20' ) end [2024-12-22 17:01:17] Production.INFO: ProcessCDR(1,14078893,1,1,2) [2024-12-22 17:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078893', 'tblTempUsageDetail_20' ) start [2024-12-22 17:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078893', 'tblTempUsageDetail_20' ) end [2024-12-22 17:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:01:21] Production.INFO: ==10260== Releasing lock... [2024-12-22 17:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:01:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:02:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:02:04 [end_date_ymd] => 2024-12-22 17:02:04 [RateCDR] => 1 ) [2024-12-22 17: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-22 14:02:04' and `end` < '2024-12-22 17: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-22 17:02:16] Production.INFO: count ==1303 [2024-12-22 17:02:16] Production.ERROR: pbx CDR StartTime 2024-12-22 14:02:04 - End Time 2024-12-22 17:02:04 [2024-12-22 17:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078898', 'tblTempUsageDetail_20' ) start [2024-12-22 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078898', 'tblTempUsageDetail_20' ) end [2024-12-22 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078898', 'tblTempVendorCDR_20' ) start [2024-12-22 17:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078898', 'tblTempVendorCDR_20' ) end [2024-12-22 17:02:17] Production.INFO: ProcessCDR(1,14078898,1,1,2) [2024-12-22 17:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078898', 'tblTempUsageDetail_20' ) start [2024-12-22 17:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078898', 'tblTempUsageDetail_20' ) end [2024-12-22 17:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:02:21] Production.INFO: ==10333== Releasing lock... [2024-12-22 17:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:02:21] Production.INFO: 38 MB #Memory Used# [2024-12-22 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:03:05 [end_date_ymd] => 2024-12-22 17:03:05 [RateCDR] => 1 ) [2024-12-22 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:03:05' and `end` < '2024-12-22 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:03:17] Production.INFO: count ==1306 [2024-12-22 17:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:03:05 - End Time 2024-12-22 17:03:05 [2024-12-22 17:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078903', 'tblTempUsageDetail_20' ) start [2024-12-22 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078903', 'tblTempUsageDetail_20' ) end [2024-12-22 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078903', 'tblTempVendorCDR_20' ) start [2024-12-22 17:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078903', 'tblTempVendorCDR_20' ) end [2024-12-22 17:03:17] Production.INFO: ProcessCDR(1,14078903,1,1,2) [2024-12-22 17:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078903', 'tblTempUsageDetail_20' ) start [2024-12-22 17:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078903', 'tblTempUsageDetail_20' ) end [2024-12-22 17:03:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:03:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:03:22] Production.INFO: ==10413== Releasing lock... [2024-12-22 17:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:03:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:04:05 [end_date_ymd] => 2024-12-22 17:04:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:04:05' and `end` < '2024-12-22 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-22 17:04:17] Production.INFO: count ==1307 [2024-12-22 17:04:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:04:05 - End Time 2024-12-22 17:04:05 [2024-12-22 17:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078908', 'tblTempUsageDetail_20' ) start [2024-12-22 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078908', 'tblTempUsageDetail_20' ) end [2024-12-22 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078908', 'tblTempVendorCDR_20' ) start [2024-12-22 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078908', 'tblTempVendorCDR_20' ) end [2024-12-22 17:04:18] Production.INFO: ProcessCDR(1,14078908,1,1,2) [2024-12-22 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078908', 'tblTempUsageDetail_20' ) start [2024-12-22 17:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078908', 'tblTempUsageDetail_20' ) end [2024-12-22 17:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:04:22] Production.INFO: ==10530== Releasing lock... [2024-12-22 17:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:04:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:05:04 [end_date_ymd] => 2024-12-22 17:05:04 [RateCDR] => 1 ) [2024-12-22 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-22 14:05:04' and `end` < '2024-12-22 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-22 17:05:17] Production.INFO: count ==1307 [2024-12-22 17:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:05:04 - End Time 2024-12-22 17:05:04 [2024-12-22 17:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078913', 'tblTempUsageDetail_20' ) start [2024-12-22 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078913', 'tblTempUsageDetail_20' ) end [2024-12-22 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078913', 'tblTempVendorCDR_20' ) start [2024-12-22 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078913', 'tblTempVendorCDR_20' ) end [2024-12-22 17:05:17] Production.INFO: ProcessCDR(1,14078913,1,1,2) [2024-12-22 17:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078913', 'tblTempUsageDetail_20' ) start [2024-12-22 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078913', 'tblTempUsageDetail_20' ) end [2024-12-22 17:05:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:05:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:05:22] Production.INFO: ==10603== Releasing lock... [2024-12-22 17:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:05:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:06:05 [end_date_ymd] => 2024-12-22 17:06:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:06:05' and `end` < '2024-12-22 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-22 17:06:18] Production.INFO: count ==1289 [2024-12-22 17:06:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:06:05 - End Time 2024-12-22 17:06:05 [2024-12-22 17:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078918', 'tblTempUsageDetail_20' ) start [2024-12-22 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078918', 'tblTempUsageDetail_20' ) end [2024-12-22 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078918', 'tblTempVendorCDR_20' ) start [2024-12-22 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078918', 'tblTempVendorCDR_20' ) end [2024-12-22 17:06:18] Production.INFO: ProcessCDR(1,14078918,1,1,2) [2024-12-22 17:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078918', 'tblTempUsageDetail_20' ) start [2024-12-22 17:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078918', 'tblTempUsageDetail_20' ) end [2024-12-22 17:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:06:22] Production.INFO: ==10682== Releasing lock... [2024-12-22 17:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:06:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:07:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:07:04 [end_date_ymd] => 2024-12-22 17:07:04 [RateCDR] => 1 ) [2024-12-22 17: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-22 14:07:04' and `end` < '2024-12-22 17: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-22 17:07:17] Production.INFO: count ==1283 [2024-12-22 17:07:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:07:04 - End Time 2024-12-22 17:07:04 [2024-12-22 17:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078923', 'tblTempUsageDetail_20' ) start [2024-12-22 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078923', 'tblTempUsageDetail_20' ) end [2024-12-22 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078923', 'tblTempVendorCDR_20' ) start [2024-12-22 17:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078923', 'tblTempVendorCDR_20' ) end [2024-12-22 17:07:17] Production.INFO: ProcessCDR(1,14078923,1,1,2) [2024-12-22 17:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078923', 'tblTempUsageDetail_20' ) start [2024-12-22 17:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078923', 'tblTempUsageDetail_20' ) end [2024-12-22 17:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:07:22] Production.INFO: ==10758== Releasing lock... [2024-12-22 17:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:07:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:08:06 [end_date_ymd] => 2024-12-22 17:08:06 [RateCDR] => 1 ) [2024-12-22 17: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-22 14:08:06' and `end` < '2024-12-22 17: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-22 17:08:18] Production.INFO: count ==1283 [2024-12-22 17:08:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:08:06 - End Time 2024-12-22 17:08:06 [2024-12-22 17:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078928', 'tblTempUsageDetail_20' ) start [2024-12-22 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078928', 'tblTempUsageDetail_20' ) end [2024-12-22 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078928', 'tblTempVendorCDR_20' ) start [2024-12-22 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078928', 'tblTempVendorCDR_20' ) end [2024-12-22 17:08:18] Production.INFO: ProcessCDR(1,14078928,1,1,2) [2024-12-22 17:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078928', 'tblTempUsageDetail_20' ) start [2024-12-22 17:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078928', 'tblTempUsageDetail_20' ) end [2024-12-22 17:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:08:23] Production.INFO: ==10836== Releasing lock... [2024-12-22 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:08:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:09:05 [end_date_ymd] => 2024-12-22 17:09:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:09:05' and `end` < '2024-12-22 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-22 17:09:17] Production.INFO: count ==1282 [2024-12-22 17:09:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:09:05 - End Time 2024-12-22 17:09:05 [2024-12-22 17:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078933', 'tblTempUsageDetail_20' ) start [2024-12-22 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078933', 'tblTempUsageDetail_20' ) end [2024-12-22 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078933', 'tblTempVendorCDR_20' ) start [2024-12-22 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078933', 'tblTempVendorCDR_20' ) end [2024-12-22 17:09:17] Production.INFO: ProcessCDR(1,14078933,1,1,2) [2024-12-22 17:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078933', 'tblTempUsageDetail_20' ) start [2024-12-22 17:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078933', 'tblTempUsageDetail_20' ) end [2024-12-22 17:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:09:20] Production.INFO: ==10921== Releasing lock... [2024-12-22 17:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:09:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:10:05 [end_date_ymd] => 2024-12-22 17:10:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:10:05' and `end` < '2024-12-22 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-22 17:10:18] Production.INFO: count ==1273 [2024-12-22 17:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:10:05 - End Time 2024-12-22 17:10:05 [2024-12-22 17:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078939', 'tblTempUsageDetail_20' ) start [2024-12-22 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078939', 'tblTempUsageDetail_20' ) end [2024-12-22 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078939', 'tblTempVendorCDR_20' ) start [2024-12-22 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078939', 'tblTempVendorCDR_20' ) end [2024-12-22 17:10:18] Production.INFO: ProcessCDR(1,14078939,1,1,2) [2024-12-22 17:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078939', 'tblTempUsageDetail_20' ) start [2024-12-22 17:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078939', 'tblTempUsageDetail_20' ) end [2024-12-22 17:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:10:22] Production.INFO: ==11002== Releasing lock... [2024-12-22 17:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:10:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:11:05 [end_date_ymd] => 2024-12-22 17:11:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:11:05' and `end` < '2024-12-22 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-22 17:11:17] Production.INFO: count ==1258 [2024-12-22 17:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:11:05 - End Time 2024-12-22 17:11:05 [2024-12-22 17:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078944', 'tblTempUsageDetail_20' ) start [2024-12-22 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078944', 'tblTempUsageDetail_20' ) end [2024-12-22 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078944', 'tblTempVendorCDR_20' ) start [2024-12-22 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078944', 'tblTempVendorCDR_20' ) end [2024-12-22 17:11:17] Production.INFO: ProcessCDR(1,14078944,1,1,2) [2024-12-22 17:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078944', 'tblTempUsageDetail_20' ) start [2024-12-22 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078944', 'tblTempUsageDetail_20' ) end [2024-12-22 17:11:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:11:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:11:22] Production.INFO: ==11078== Releasing lock... [2024-12-22 17:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:11:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:12:04 [end_date_ymd] => 2024-12-22 17:12:04 [RateCDR] => 1 ) [2024-12-22 17: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-22 14:12:04' and `end` < '2024-12-22 17: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-22 17:12:17] Production.INFO: count ==1249 [2024-12-22 17:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:12:04 - End Time 2024-12-22 17:12:04 [2024-12-22 17:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078949', 'tblTempUsageDetail_20' ) start [2024-12-22 17:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078949', 'tblTempUsageDetail_20' ) end [2024-12-22 17:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078949', 'tblTempVendorCDR_20' ) start [2024-12-22 17:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078949', 'tblTempVendorCDR_20' ) end [2024-12-22 17:12:17] Production.INFO: ProcessCDR(1,14078949,1,1,2) [2024-12-22 17:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078949', 'tblTempUsageDetail_20' ) start [2024-12-22 17:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078949', 'tblTempUsageDetail_20' ) end [2024-12-22 17:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:12:21] Production.INFO: ==11160== Releasing lock... [2024-12-22 17:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:12:22] Production.INFO: 37 MB #Memory Used# [2024-12-22 17:13:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:13:04 [end_date_ymd] => 2024-12-22 17:13:04 [RateCDR] => 1 ) [2024-12-22 17:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:13:04' and `end` < '2024-12-22 17:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:13:17] Production.INFO: count ==1248 [2024-12-22 17:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:13:04 - End Time 2024-12-22 17:13:04 [2024-12-22 17:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078954', 'tblTempUsageDetail_20' ) start [2024-12-22 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078954', 'tblTempUsageDetail_20' ) end [2024-12-22 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078954', 'tblTempVendorCDR_20' ) start [2024-12-22 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078954', 'tblTempVendorCDR_20' ) end [2024-12-22 17:13:17] Production.INFO: ProcessCDR(1,14078954,1,1,2) [2024-12-22 17:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078954', 'tblTempUsageDetail_20' ) start [2024-12-22 17:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078954', 'tblTempUsageDetail_20' ) end [2024-12-22 17:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:13:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:13:22] Production.INFO: ==11239== Releasing lock... [2024-12-22 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:13:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:14:05 [end_date_ymd] => 2024-12-22 17:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:14:05' and `end` < '2024-12-22 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-22 17:14:17] Production.INFO: count ==1248 [2024-12-22 17:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:14:05 - End Time 2024-12-22 17:14:05 [2024-12-22 17:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078959', 'tblTempUsageDetail_20' ) start [2024-12-22 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078959', 'tblTempUsageDetail_20' ) end [2024-12-22 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078959', 'tblTempVendorCDR_20' ) start [2024-12-22 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078959', 'tblTempVendorCDR_20' ) end [2024-12-22 17:14:17] Production.INFO: ProcessCDR(1,14078959,1,1,2) [2024-12-22 17:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078959', 'tblTempUsageDetail_20' ) start [2024-12-22 17:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078959', 'tblTempUsageDetail_20' ) end [2024-12-22 17:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:14:20] Production.INFO: ==11317== Releasing lock... [2024-12-22 17:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:14:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:15:05 [end_date_ymd] => 2024-12-22 17:15:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:15:05' and `end` < '2024-12-22 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-22 17:15:17] Production.INFO: count ==1249 [2024-12-22 17:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:15:05 - End Time 2024-12-22 17:15:05 [2024-12-22 17:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078964', 'tblTempUsageDetail_20' ) start [2024-12-22 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078964', 'tblTempUsageDetail_20' ) end [2024-12-22 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078964', 'tblTempVendorCDR_20' ) start [2024-12-22 17:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078964', 'tblTempVendorCDR_20' ) end [2024-12-22 17:15:17] Production.INFO: ProcessCDR(1,14078964,1,1,2) [2024-12-22 17:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078964', 'tblTempUsageDetail_20' ) start [2024-12-22 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078964', 'tblTempUsageDetail_20' ) end [2024-12-22 17:15:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:15:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:15:22] Production.INFO: ==11399== Releasing lock... [2024-12-22 17:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:15:22] Production.INFO: 37 MB #Memory Used# [2024-12-22 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:16:05 [end_date_ymd] => 2024-12-22 17:16:05 [RateCDR] => 1 ) [2024-12-22 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:16:05' and `end` < '2024-12-22 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:16:17] Production.INFO: count ==1250 [2024-12-22 17:16:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:16:05 - End Time 2024-12-22 17:16:05 [2024-12-22 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078969', 'tblTempUsageDetail_20' ) start [2024-12-22 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078969', 'tblTempUsageDetail_20' ) end [2024-12-22 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078969', 'tblTempVendorCDR_20' ) start [2024-12-22 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078969', 'tblTempVendorCDR_20' ) end [2024-12-22 17:16:18] Production.INFO: ProcessCDR(1,14078969,1,1,2) [2024-12-22 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078969', 'tblTempUsageDetail_20' ) start [2024-12-22 17:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078969', 'tblTempUsageDetail_20' ) end [2024-12-22 17:16:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:16:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:16:22] Production.INFO: ==11473== Releasing lock... [2024-12-22 17:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:16:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:17:05 [end_date_ymd] => 2024-12-22 17:17:05 [RateCDR] => 1 ) [2024-12-22 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:17:05' and `end` < '2024-12-22 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:17:17] Production.INFO: count ==1250 [2024-12-22 17:17:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:17:05 - End Time 2024-12-22 17:17:05 [2024-12-22 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078974', 'tblTempUsageDetail_20' ) start [2024-12-22 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078974', 'tblTempUsageDetail_20' ) end [2024-12-22 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078974', 'tblTempVendorCDR_20' ) start [2024-12-22 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078974', 'tblTempVendorCDR_20' ) end [2024-12-22 17:17:18] Production.INFO: ProcessCDR(1,14078974,1,1,2) [2024-12-22 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078974', 'tblTempUsageDetail_20' ) start [2024-12-22 17:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078974', 'tblTempUsageDetail_20' ) end [2024-12-22 17:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:17:21] Production.INFO: ==11554== Releasing lock... [2024-12-22 17:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:17:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 17:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:18:04 [end_date_ymd] => 2024-12-22 17:18:04 [RateCDR] => 1 ) [2024-12-22 17:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:18:04' and `end` < '2024-12-22 17:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:18:17] Production.INFO: count ==1252 [2024-12-22 17:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:18:04 - End Time 2024-12-22 17:18:04 [2024-12-22 17:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078979', 'tblTempUsageDetail_20' ) start [2024-12-22 17:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078979', 'tblTempUsageDetail_20' ) end [2024-12-22 17:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078979', 'tblTempVendorCDR_20' ) start [2024-12-22 17:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078979', 'tblTempVendorCDR_20' ) end [2024-12-22 17:18:17] Production.INFO: ProcessCDR(1,14078979,1,1,2) [2024-12-22 17:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078979', 'tblTempUsageDetail_20' ) start [2024-12-22 17:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078979', 'tblTempUsageDetail_20' ) end [2024-12-22 17:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:18:21] Production.INFO: ==11633== Releasing lock... [2024-12-22 17:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:18:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:19:05 [end_date_ymd] => 2024-12-22 17:19:05 [RateCDR] => 1 ) [2024-12-22 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:19:05' and `end` < '2024-12-22 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:19:17] Production.INFO: count ==1254 [2024-12-22 17:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:19:05 - End Time 2024-12-22 17:19:05 [2024-12-22 17:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078984', 'tblTempUsageDetail_20' ) start [2024-12-22 17:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078984', 'tblTempUsageDetail_20' ) end [2024-12-22 17:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078984', 'tblTempVendorCDR_20' ) start [2024-12-22 17:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078984', 'tblTempVendorCDR_20' ) end [2024-12-22 17:19:17] Production.INFO: ProcessCDR(1,14078984,1,1,2) [2024-12-22 17:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078984', 'tblTempUsageDetail_20' ) start [2024-12-22 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078984', 'tblTempUsageDetail_20' ) end [2024-12-22 17:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:19:22] Production.INFO: ==11709== Releasing lock... [2024-12-22 17:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:19:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:20:05 [end_date_ymd] => 2024-12-22 17:20:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:20:05' and `end` < '2024-12-22 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-22 17:20:17] Production.INFO: count ==1253 [2024-12-22 17:20:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:20:05 - End Time 2024-12-22 17:20:05 [2024-12-22 17:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078990', 'tblTempUsageDetail_20' ) start [2024-12-22 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078990', 'tblTempUsageDetail_20' ) end [2024-12-22 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078990', 'tblTempVendorCDR_20' ) start [2024-12-22 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078990', 'tblTempVendorCDR_20' ) end [2024-12-22 17:20:18] Production.INFO: ProcessCDR(1,14078990,1,1,2) [2024-12-22 17:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078990', 'tblTempUsageDetail_20' ) start [2024-12-22 17:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078990', 'tblTempUsageDetail_20' ) end [2024-12-22 17:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:20:21] Production.INFO: ==11829== Releasing lock... [2024-12-22 17:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:20:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:21:04 [end_date_ymd] => 2024-12-22 17:21:04 [RateCDR] => 1 ) [2024-12-22 17:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:21:04' and `end` < '2024-12-22 17:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:21:18] Production.INFO: count ==1305 [2024-12-22 17:21:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:21:04 - End Time 2024-12-22 17:21:04 [2024-12-22 17:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078995', 'tblTempUsageDetail_20' ) start [2024-12-22 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14078995', 'tblTempUsageDetail_20' ) end [2024-12-22 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078995', 'tblTempVendorCDR_20' ) start [2024-12-22 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14078995', 'tblTempVendorCDR_20' ) end [2024-12-22 17:21:18] Production.INFO: ProcessCDR(1,14078995,1,1,2) [2024-12-22 17:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14078995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14078995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14078995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14078995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078995', 'tblTempUsageDetail_20' ) start [2024-12-22 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14078995', 'tblTempUsageDetail_20' ) end [2024-12-22 17:21:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:21:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:21:23] Production.INFO: ==11908== Releasing lock... [2024-12-22 17:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:21:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:22:05 [end_date_ymd] => 2024-12-22 17:22:05 [RateCDR] => 1 ) [2024-12-22 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:22:05' and `end` < '2024-12-22 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:22:17] Production.INFO: count ==1306 [2024-12-22 17:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:22:05 - End Time 2024-12-22 17:22:05 [2024-12-22 17:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079000', 'tblTempUsageDetail_20' ) start [2024-12-22 17:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079000', 'tblTempUsageDetail_20' ) end [2024-12-22 17:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079000', 'tblTempVendorCDR_20' ) start [2024-12-22 17:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079000', 'tblTempVendorCDR_20' ) end [2024-12-22 17:22:17] Production.INFO: ProcessCDR(1,14079000,1,1,2) [2024-12-22 17:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079000', 'tblTempUsageDetail_20' ) start [2024-12-22 17:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079000', 'tblTempUsageDetail_20' ) end [2024-12-22 17:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:22:21] Production.INFO: ==11985== Releasing lock... [2024-12-22 17:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:22:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:23:04 [end_date_ymd] => 2024-12-22 17:23:04 [RateCDR] => 1 ) [2024-12-22 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-22 14:23:04' and `end` < '2024-12-22 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-22 17:23:17] Production.INFO: count ==1304 [2024-12-22 17:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:23:04 - End Time 2024-12-22 17:23:04 [2024-12-22 17:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079005', 'tblTempUsageDetail_20' ) start [2024-12-22 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079005', 'tblTempUsageDetail_20' ) end [2024-12-22 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079005', 'tblTempVendorCDR_20' ) start [2024-12-22 17:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079005', 'tblTempVendorCDR_20' ) end [2024-12-22 17:23:17] Production.INFO: ProcessCDR(1,14079005,1,1,2) [2024-12-22 17:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079005', 'tblTempUsageDetail_20' ) start [2024-12-22 17:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079005', 'tblTempUsageDetail_20' ) end [2024-12-22 17:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:23:21] Production.INFO: ==12067== Releasing lock... [2024-12-22 17:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:23:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:24:05 [end_date_ymd] => 2024-12-22 17:24:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:24:05' and `end` < '2024-12-22 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-22 17:24:17] Production.INFO: count ==1313 [2024-12-22 17:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:24:05 - End Time 2024-12-22 17:24:05 [2024-12-22 17:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079010', 'tblTempUsageDetail_20' ) start [2024-12-22 17:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079010', 'tblTempUsageDetail_20' ) end [2024-12-22 17:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079010', 'tblTempVendorCDR_20' ) start [2024-12-22 17:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079010', 'tblTempVendorCDR_20' ) end [2024-12-22 17:24:17] Production.INFO: ProcessCDR(1,14079010,1,1,2) [2024-12-22 17:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079010', 'tblTempUsageDetail_20' ) start [2024-12-22 17:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079010', 'tblTempUsageDetail_20' ) end [2024-12-22 17:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:24:22] Production.INFO: ==12148== Releasing lock... [2024-12-22 17:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:24:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:25:04 [end_date_ymd] => 2024-12-22 17:25:04 [RateCDR] => 1 ) [2024-12-22 17:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:25:04' and `end` < '2024-12-22 17:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:25:16] Production.INFO: count ==1310 [2024-12-22 17:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:25:04 - End Time 2024-12-22 17:25:04 [2024-12-22 17:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079015', 'tblTempUsageDetail_20' ) start [2024-12-22 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079015', 'tblTempUsageDetail_20' ) end [2024-12-22 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079015', 'tblTempVendorCDR_20' ) start [2024-12-22 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079015', 'tblTempVendorCDR_20' ) end [2024-12-22 17:25:17] Production.INFO: ProcessCDR(1,14079015,1,1,2) [2024-12-22 17:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079015', 'tblTempUsageDetail_20' ) start [2024-12-22 17:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079015', 'tblTempUsageDetail_20' ) end [2024-12-22 17:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:25:20] Production.INFO: ==12225== Releasing lock... [2024-12-22 17:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:25:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:26:14] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:26:14 [end_date_ymd] => 2024-12-22 17:26:14 [RateCDR] => 1 ) [2024-12-22 17:26:14] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:26:14' and `end` < '2024-12-22 17:26:14' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:26:26] Production.INFO: count ==1312 [2024-12-22 17:26:32] Production.ERROR: pbx CDR StartTime 2024-12-22 14:26:14 - End Time 2024-12-22 17:26:14 [2024-12-22 17:26:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:26:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079020', 'tblTempUsageDetail_20' ) start [2024-12-22 17:26:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079020', 'tblTempUsageDetail_20' ) end [2024-12-22 17:26:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079020', 'tblTempVendorCDR_20' ) start [2024-12-22 17:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079020', 'tblTempVendorCDR_20' ) end [2024-12-22 17:26:36] Production.INFO: ProcessCDR(1,14079020,1,1,2) [2024-12-22 17:26:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:26:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:26:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079020', 'tblTempUsageDetail_20' ) start [2024-12-22 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079020', 'tblTempUsageDetail_20' ) end [2024-12-22 17:27:25] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:27:25] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:27:27] Production.INFO: ==12310== Releasing lock... [2024-12-22 17:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:27:27] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:28:16] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:28:16 [end_date_ymd] => 2024-12-22 17:28:16 [RateCDR] => 1 ) [2024-12-22 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-22 14:28:16' and `end` < '2024-12-22 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-22 17:28:29] Production.INFO: count ==1308 [2024-12-22 17:28:32] Production.ERROR: pbx CDR StartTime 2024-12-22 14:28:16 - End Time 2024-12-22 17:28:16 [2024-12-22 17:28:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079028', 'tblTempUsageDetail_20' ) start [2024-12-22 17:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079028', 'tblTempUsageDetail_20' ) end [2024-12-22 17:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079028', 'tblTempVendorCDR_20' ) start [2024-12-22 17:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079028', 'tblTempVendorCDR_20' ) end [2024-12-22 17:28:32] Production.INFO: ProcessCDR(1,14079028,1,1,2) [2024-12-22 17:28:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:28:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:28:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:28:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:28:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079028', 'tblTempUsageDetail_20' ) start [2024-12-22 17:28:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079028', 'tblTempUsageDetail_20' ) end [2024-12-22 17:28:45] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:28:45] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:28:46] Production.INFO: ==12456== Releasing lock... [2024-12-22 17:28:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:28:46] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:29:17] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:29:17 [end_date_ymd] => 2024-12-22 17:29:17 [RateCDR] => 1 ) [2024-12-22 17:29:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:29:17' and `end` < '2024-12-22 17:29:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:29:29] Production.INFO: count ==1307 [2024-12-22 17:29:34] Production.ERROR: pbx CDR StartTime 2024-12-22 14:29:17 - End Time 2024-12-22 17:29:17 [2024-12-22 17:29:34] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079033', 'tblTempUsageDetail_20' ) start [2024-12-22 17:29:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079033', 'tblTempUsageDetail_20' ) end [2024-12-22 17:29:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079033', 'tblTempVendorCDR_20' ) start [2024-12-22 17:29:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079033', 'tblTempVendorCDR_20' ) end [2024-12-22 17:29:35] Production.INFO: ProcessCDR(1,14079033,1,1,2) [2024-12-22 17:29:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:29:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:29:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:29:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:29:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079033', 'tblTempUsageDetail_20' ) start [2024-12-22 17:29:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079033', 'tblTempUsageDetail_20' ) end [2024-12-22 17:29:45] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:29:45] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:29:47] Production.INFO: ==12543== Releasing lock... [2024-12-22 17:29:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:29:47] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:30:15] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:30:15 [end_date_ymd] => 2024-12-22 17:30:15 [RateCDR] => 1 ) [2024-12-22 17:30:15] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:30:15' and `end` < '2024-12-22 17:30:15' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:30:27] Production.INFO: count ==1300 [2024-12-22 17:30:32] Production.ERROR: pbx CDR StartTime 2024-12-22 14:30:15 - End Time 2024-12-22 17:30:15 [2024-12-22 17:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079037', 'tblTempUsageDetail_20' ) start [2024-12-22 17:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079037', 'tblTempUsageDetail_20' ) end [2024-12-22 17:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079037', 'tblTempVendorCDR_20' ) start [2024-12-22 17:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079037', 'tblTempVendorCDR_20' ) end [2024-12-22 17:30:35] Production.INFO: ProcessCDR(1,14079037,1,1,2) [2024-12-22 17:30:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:30:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:30:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:30:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079037', 'tblTempUsageDetail_20' ) start [2024-12-22 17:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079037', 'tblTempUsageDetail_20' ) end [2024-12-22 17:30:39] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:30:39] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:30:39] Production.INFO: ==12629== Releasing lock... [2024-12-22 17:30:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:30:39] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:31:13] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:31:13 [end_date_ymd] => 2024-12-22 17:31:13 [RateCDR] => 1 ) [2024-12-22 17:31:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:31:13' and `end` < '2024-12-22 17:31:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:31:27] Production.INFO: count ==1331 [2024-12-22 17:31:30] Production.ERROR: pbx CDR StartTime 2024-12-22 14:31:13 - End Time 2024-12-22 17:31:13 [2024-12-22 17:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079043', 'tblTempUsageDetail_20' ) start [2024-12-22 17:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079043', 'tblTempUsageDetail_20' ) end [2024-12-22 17:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079043', 'tblTempVendorCDR_20' ) start [2024-12-22 17:31:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079043', 'tblTempVendorCDR_20' ) end [2024-12-22 17:31:34] Production.INFO: ProcessCDR(1,14079043,1,1,2) [2024-12-22 17:31:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:31:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:31:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:32:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:32:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079043', 'tblTempUsageDetail_20' ) start [2024-12-22 17:32:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079043', 'tblTempUsageDetail_20' ) end [2024-12-22 17:32:16] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:32:16] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:32:19] Production.INFO: ==12713== Releasing lock... [2024-12-22 17:32:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:32:19] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:33:04 [end_date_ymd] => 2024-12-22 17:33:04 [RateCDR] => 1 ) [2024-12-22 17:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:33:04' and `end` < '2024-12-22 17:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:33:18] Production.INFO: count ==1335 [2024-12-22 17:33:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:33:04 - End Time 2024-12-22 17:33:04 [2024-12-22 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079051', 'tblTempUsageDetail_20' ) start [2024-12-22 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079051', 'tblTempUsageDetail_20' ) end [2024-12-22 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079051', 'tblTempVendorCDR_20' ) start [2024-12-22 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079051', 'tblTempVendorCDR_20' ) end [2024-12-22 17:33:18] Production.INFO: ProcessCDR(1,14079051,1,1,2) [2024-12-22 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079051', 'tblTempUsageDetail_20' ) start [2024-12-22 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079051', 'tblTempUsageDetail_20' ) end [2024-12-22 17:33:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:33:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:33:23] Production.INFO: ==12872== Releasing lock... [2024-12-22 17:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:33:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:34:05 [end_date_ymd] => 2024-12-22 17:34:05 [RateCDR] => 1 ) [2024-12-22 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:34:05' and `end` < '2024-12-22 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:34:18] Production.INFO: count ==1329 [2024-12-22 17:34:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:34:05 - End Time 2024-12-22 17:34:05 [2024-12-22 17:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079056', 'tblTempUsageDetail_20' ) start [2024-12-22 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079056', 'tblTempUsageDetail_20' ) end [2024-12-22 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079056', 'tblTempVendorCDR_20' ) start [2024-12-22 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079056', 'tblTempVendorCDR_20' ) end [2024-12-22 17:34:18] Production.INFO: ProcessCDR(1,14079056,1,1,2) [2024-12-22 17:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079056', 'tblTempUsageDetail_20' ) start [2024-12-22 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079056', 'tblTempUsageDetail_20' ) end [2024-12-22 17:34:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:34:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:34:22] Production.INFO: ==12952== Releasing lock... [2024-12-22 17:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:34:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:35:05 [end_date_ymd] => 2024-12-22 17:35:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:35:05' and `end` < '2024-12-22 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-22 17:35:17] Production.INFO: count ==1332 [2024-12-22 17:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:35:05 - End Time 2024-12-22 17:35:05 [2024-12-22 17:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079061', 'tblTempUsageDetail_20' ) start [2024-12-22 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079061', 'tblTempUsageDetail_20' ) end [2024-12-22 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079061', 'tblTempVendorCDR_20' ) start [2024-12-22 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079061', 'tblTempVendorCDR_20' ) end [2024-12-22 17:35:18] Production.INFO: ProcessCDR(1,14079061,1,1,2) [2024-12-22 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079061', 'tblTempUsageDetail_20' ) start [2024-12-22 17:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079061', 'tblTempUsageDetail_20' ) end [2024-12-22 17:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:35:21] Production.INFO: ==13039== Releasing lock... [2024-12-22 17:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:35:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:36:05 [end_date_ymd] => 2024-12-22 17:36:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:36:05' and `end` < '2024-12-22 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-22 17:36:17] Production.INFO: count ==1325 [2024-12-22 17:36:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:36:05 - End Time 2024-12-22 17:36:05 [2024-12-22 17:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079066', 'tblTempUsageDetail_20' ) start [2024-12-22 17:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079066', 'tblTempUsageDetail_20' ) end [2024-12-22 17:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079066', 'tblTempVendorCDR_20' ) start [2024-12-22 17:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079066', 'tblTempVendorCDR_20' ) end [2024-12-22 17:36:17] Production.INFO: ProcessCDR(1,14079066,1,1,2) [2024-12-22 17:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079066', 'tblTempUsageDetail_20' ) start [2024-12-22 17:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079066', 'tblTempUsageDetail_20' ) end [2024-12-22 17:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:36:22] Production.INFO: ==13159== Releasing lock... [2024-12-22 17:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:36:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:37:05 [end_date_ymd] => 2024-12-22 17:37:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:37:05' and `end` < '2024-12-22 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-22 17:37:17] Production.INFO: count ==1328 [2024-12-22 17:37:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:37:05 - End Time 2024-12-22 17:37:05 [2024-12-22 17:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079071', 'tblTempUsageDetail_20' ) start [2024-12-22 17:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079071', 'tblTempUsageDetail_20' ) end [2024-12-22 17:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079071', 'tblTempVendorCDR_20' ) start [2024-12-22 17:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079071', 'tblTempVendorCDR_20' ) end [2024-12-22 17:37:17] Production.INFO: ProcessCDR(1,14079071,1,1,2) [2024-12-22 17:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079071', 'tblTempUsageDetail_20' ) start [2024-12-22 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079071', 'tblTempUsageDetail_20' ) end [2024-12-22 17:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:37:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:37:23] Production.INFO: ==13244== Releasing lock... [2024-12-22 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:37:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:38:05 [end_date_ymd] => 2024-12-22 17:38:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:38:05' and `end` < '2024-12-22 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-22 17:38:17] Production.INFO: count ==1323 [2024-12-22 17:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:38:05 - End Time 2024-12-22 17:38:05 [2024-12-22 17:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079076', 'tblTempUsageDetail_20' ) start [2024-12-22 17:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079076', 'tblTempUsageDetail_20' ) end [2024-12-22 17:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079076', 'tblTempVendorCDR_20' ) start [2024-12-22 17:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079076', 'tblTempVendorCDR_20' ) end [2024-12-22 17:38:17] Production.INFO: ProcessCDR(1,14079076,1,1,2) [2024-12-22 17:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079076', 'tblTempUsageDetail_20' ) start [2024-12-22 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079076', 'tblTempUsageDetail_20' ) end [2024-12-22 17:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:38:22] Production.INFO: ==13326== Releasing lock... [2024-12-22 17:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:38:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:39:05 [end_date_ymd] => 2024-12-22 17:39:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:39:05' and `end` < '2024-12-22 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-22 17:39:17] Production.INFO: count ==1323 [2024-12-22 17:39:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:39:05 - End Time 2024-12-22 17:39:05 [2024-12-22 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079081', 'tblTempUsageDetail_20' ) start [2024-12-22 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079081', 'tblTempUsageDetail_20' ) end [2024-12-22 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079081', 'tblTempVendorCDR_20' ) start [2024-12-22 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079081', 'tblTempVendorCDR_20' ) end [2024-12-22 17:39:18] Production.INFO: ProcessCDR(1,14079081,1,1,2) [2024-12-22 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079081', 'tblTempUsageDetail_20' ) start [2024-12-22 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079081', 'tblTempUsageDetail_20' ) end [2024-12-22 17:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:39:21] Production.INFO: ==13407== Releasing lock... [2024-12-22 17:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:39:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:40:05 [end_date_ymd] => 2024-12-22 17:40:05 [RateCDR] => 1 ) [2024-12-22 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:40:05' and `end` < '2024-12-22 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-22 17:40:17] Production.INFO: count ==1322 [2024-12-22 17:40:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:40:05 - End Time 2024-12-22 17:40:05 [2024-12-22 17:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079087', 'tblTempUsageDetail_20' ) start [2024-12-22 17:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079087', 'tblTempUsageDetail_20' ) end [2024-12-22 17:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079087', 'tblTempVendorCDR_20' ) start [2024-12-22 17:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079087', 'tblTempVendorCDR_20' ) end [2024-12-22 17:40:17] Production.INFO: ProcessCDR(1,14079087,1,1,2) [2024-12-22 17:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079087', 'tblTempUsageDetail_20' ) start [2024-12-22 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079087', 'tblTempUsageDetail_20' ) end [2024-12-22 17:40:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:40:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:40:22] Production.INFO: ==13499== Releasing lock... [2024-12-22 17:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:40:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:41:05 [end_date_ymd] => 2024-12-22 17:41:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:41:05' and `end` < '2024-12-22 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-22 17:41:17] Production.INFO: count ==1327 [2024-12-22 17:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:41:05 - End Time 2024-12-22 17:41:05 [2024-12-22 17:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079092', 'tblTempUsageDetail_20' ) start [2024-12-22 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079092', 'tblTempUsageDetail_20' ) end [2024-12-22 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079092', 'tblTempVendorCDR_20' ) start [2024-12-22 17:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079092', 'tblTempVendorCDR_20' ) end [2024-12-22 17:41:17] Production.INFO: ProcessCDR(1,14079092,1,1,2) [2024-12-22 17:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079092', 'tblTempUsageDetail_20' ) start [2024-12-22 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079092', 'tblTempUsageDetail_20' ) end [2024-12-22 17:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:41:22] Production.INFO: ==13583== Releasing lock... [2024-12-22 17:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:41:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:42:05 [end_date_ymd] => 2024-12-22 17:42:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:42:05' and `end` < '2024-12-22 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-22 17:42:18] Production.INFO: count ==1326 [2024-12-22 17:42:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:42:05 - End Time 2024-12-22 17:42:05 [2024-12-22 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079097', 'tblTempUsageDetail_20' ) start [2024-12-22 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079097', 'tblTempUsageDetail_20' ) end [2024-12-22 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079097', 'tblTempVendorCDR_20' ) start [2024-12-22 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079097', 'tblTempVendorCDR_20' ) end [2024-12-22 17:42:18] Production.INFO: ProcessCDR(1,14079097,1,1,2) [2024-12-22 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079097', 'tblTempUsageDetail_20' ) start [2024-12-22 17:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079097', 'tblTempUsageDetail_20' ) end [2024-12-22 17:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:42:21] Production.INFO: ==13667== Releasing lock... [2024-12-22 17:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:42:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:43:04 [end_date_ymd] => 2024-12-22 17:43:04 [RateCDR] => 1 ) [2024-12-22 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-22 14:43:04' and `end` < '2024-12-22 17:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:43:17] Production.INFO: count ==1326 [2024-12-22 17:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:43:04 - End Time 2024-12-22 17:43:04 [2024-12-22 17:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079102', 'tblTempUsageDetail_20' ) start [2024-12-22 17:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079102', 'tblTempUsageDetail_20' ) end [2024-12-22 17:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079102', 'tblTempVendorCDR_20' ) start [2024-12-22 17:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079102', 'tblTempVendorCDR_20' ) end [2024-12-22 17:43:17] Production.INFO: ProcessCDR(1,14079102,1,1,2) [2024-12-22 17:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079102', 'tblTempUsageDetail_20' ) start [2024-12-22 17:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079102', 'tblTempUsageDetail_20' ) end [2024-12-22 17:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:43:21] Production.INFO: ==13749== Releasing lock... [2024-12-22 17:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:43:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:44:05 [end_date_ymd] => 2024-12-22 17:44:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:44:05' and `end` < '2024-12-22 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-22 17:44:18] Production.INFO: count ==1322 [2024-12-22 17:44:19] Production.ERROR: pbx CDR StartTime 2024-12-22 14:44:05 - End Time 2024-12-22 17:44:05 [2024-12-22 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079107', 'tblTempUsageDetail_20' ) start [2024-12-22 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079107', 'tblTempUsageDetail_20' ) end [2024-12-22 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079107', 'tblTempVendorCDR_20' ) start [2024-12-22 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079107', 'tblTempVendorCDR_20' ) end [2024-12-22 17:44:19] Production.INFO: ProcessCDR(1,14079107,1,1,2) [2024-12-22 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079107', 'tblTempUsageDetail_20' ) start [2024-12-22 17:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079107', 'tblTempUsageDetail_20' ) end [2024-12-22 17:44:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:44:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:44:23] Production.INFO: ==13835== Releasing lock... [2024-12-22 17:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:44:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:45:04 [end_date_ymd] => 2024-12-22 17:45:04 [RateCDR] => 1 ) [2024-12-22 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-22 14:45:04' and `end` < '2024-12-22 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-22 17:45:16] Production.INFO: count ==1322 [2024-12-22 17:45:16] Production.ERROR: pbx CDR StartTime 2024-12-22 14:45:04 - End Time 2024-12-22 17:45:04 [2024-12-22 17:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079112', 'tblTempUsageDetail_20' ) start [2024-12-22 17:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079112', 'tblTempUsageDetail_20' ) end [2024-12-22 17:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079112', 'tblTempVendorCDR_20' ) start [2024-12-22 17:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079112', 'tblTempVendorCDR_20' ) end [2024-12-22 17:45:16] Production.INFO: ProcessCDR(1,14079112,1,1,2) [2024-12-22 17:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079112', 'tblTempUsageDetail_20' ) start [2024-12-22 17:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079112', 'tblTempUsageDetail_20' ) end [2024-12-22 17:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:45:21] Production.INFO: ==13915== Releasing lock... [2024-12-22 17:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:45:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:46:04 [end_date_ymd] => 2024-12-22 17:46:04 [RateCDR] => 1 ) [2024-12-22 17:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:46:04' and `end` < '2024-12-22 17:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:46:17] Production.INFO: count ==1320 [2024-12-22 17:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:46:04 - End Time 2024-12-22 17:46:04 [2024-12-22 17:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079117', 'tblTempUsageDetail_20' ) start [2024-12-22 17:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079117', 'tblTempUsageDetail_20' ) end [2024-12-22 17:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079117', 'tblTempVendorCDR_20' ) start [2024-12-22 17:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079117', 'tblTempVendorCDR_20' ) end [2024-12-22 17:46:17] Production.INFO: ProcessCDR(1,14079117,1,1,2) [2024-12-22 17:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079117', 'tblTempUsageDetail_20' ) start [2024-12-22 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079117', 'tblTempUsageDetail_20' ) end [2024-12-22 17:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:46:21] Production.INFO: ==13996== Releasing lock... [2024-12-22 17:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:46:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:47:05 [end_date_ymd] => 2024-12-22 17:47:05 [RateCDR] => 1 ) [2024-12-22 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:47:05' and `end` < '2024-12-22 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:47:18] Production.INFO: count ==1307 [2024-12-22 17:47:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:47:05 - End Time 2024-12-22 17:47:05 [2024-12-22 17:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079122', 'tblTempUsageDetail_20' ) start [2024-12-22 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079122', 'tblTempUsageDetail_20' ) end [2024-12-22 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079122', 'tblTempVendorCDR_20' ) start [2024-12-22 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079122', 'tblTempVendorCDR_20' ) end [2024-12-22 17:47:18] Production.INFO: ProcessCDR(1,14079122,1,1,2) [2024-12-22 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079122', 'tblTempUsageDetail_20' ) start [2024-12-22 17:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079122', 'tblTempUsageDetail_20' ) end [2024-12-22 17:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:47:23] Production.INFO: ==14077== Releasing lock... [2024-12-22 17:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:47:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:48:04 [end_date_ymd] => 2024-12-22 17:48:04 [RateCDR] => 1 ) [2024-12-22 17:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:48:04' and `end` < '2024-12-22 17:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:48:17] Production.INFO: count ==1306 [2024-12-22 17:48:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:48:04 - End Time 2024-12-22 17:48:04 [2024-12-22 17:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079127', 'tblTempUsageDetail_20' ) start [2024-12-22 17:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079127', 'tblTempUsageDetail_20' ) end [2024-12-22 17:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079127', 'tblTempVendorCDR_20' ) start [2024-12-22 17:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079127', 'tblTempVendorCDR_20' ) end [2024-12-22 17:48:17] Production.INFO: ProcessCDR(1,14079127,1,1,2) [2024-12-22 17:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079127', 'tblTempUsageDetail_20' ) start [2024-12-22 17:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079127', 'tblTempUsageDetail_20' ) end [2024-12-22 17:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:48:21] Production.INFO: ==14150== Releasing lock... [2024-12-22 17:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:48:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:49:05 [end_date_ymd] => 2024-12-22 17:49:05 [RateCDR] => 1 ) [2024-12-22 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:49:05' and `end` < '2024-12-22 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:49:17] Production.INFO: count ==1294 [2024-12-22 17:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:49:05 - End Time 2024-12-22 17:49:05 [2024-12-22 17:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079132', 'tblTempUsageDetail_20' ) start [2024-12-22 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079132', 'tblTempUsageDetail_20' ) end [2024-12-22 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079132', 'tblTempVendorCDR_20' ) start [2024-12-22 17:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079132', 'tblTempVendorCDR_20' ) end [2024-12-22 17:49:17] Production.INFO: ProcessCDR(1,14079132,1,1,2) [2024-12-22 17:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079132', 'tblTempUsageDetail_20' ) start [2024-12-22 17:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079132', 'tblTempUsageDetail_20' ) end [2024-12-22 17:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:49:21] Production.INFO: ==14235== Releasing lock... [2024-12-22 17:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:49:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:50:05 [end_date_ymd] => 2024-12-22 17:50:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:50:05' and `end` < '2024-12-22 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-22 17:50:17] Production.INFO: count ==1298 [2024-12-22 17:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:50:05 - End Time 2024-12-22 17:50:05 [2024-12-22 17:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079138', 'tblTempUsageDetail_20' ) start [2024-12-22 17:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079138', 'tblTempUsageDetail_20' ) end [2024-12-22 17:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079138', 'tblTempVendorCDR_20' ) start [2024-12-22 17:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079138', 'tblTempVendorCDR_20' ) end [2024-12-22 17:50:17] Production.INFO: ProcessCDR(1,14079138,1,1,2) [2024-12-22 17:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079138', 'tblTempUsageDetail_20' ) start [2024-12-22 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079138', 'tblTempUsageDetail_20' ) end [2024-12-22 17:50:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:50:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:50:22] Production.INFO: ==14316== Releasing lock... [2024-12-22 17:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:50:22] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:51:04 [end_date_ymd] => 2024-12-22 17:51:04 [RateCDR] => 1 ) [2024-12-22 17:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:51:04' and `end` < '2024-12-22 17:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:51:17] Production.INFO: count ==1311 [2024-12-22 17:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:51:04 - End Time 2024-12-22 17:51:04 [2024-12-22 17:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079143', 'tblTempUsageDetail_20' ) start [2024-12-22 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079143', 'tblTempUsageDetail_20' ) end [2024-12-22 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079143', 'tblTempVendorCDR_20' ) start [2024-12-22 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079143', 'tblTempVendorCDR_20' ) end [2024-12-22 17:51:17] Production.INFO: ProcessCDR(1,14079143,1,1,2) [2024-12-22 17:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079143', 'tblTempUsageDetail_20' ) start [2024-12-22 17:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079143', 'tblTempUsageDetail_20' ) end [2024-12-22 17:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:51:21] Production.INFO: ==14452== Releasing lock... [2024-12-22 17:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:51:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:52:05 [end_date_ymd] => 2024-12-22 17:52:05 [RateCDR] => 1 ) [2024-12-22 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:52:05' and `end` < '2024-12-22 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:52:18] Production.INFO: count ==1311 [2024-12-22 17:52:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:52:05 - End Time 2024-12-22 17:52:05 [2024-12-22 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079148', 'tblTempUsageDetail_20' ) start [2024-12-22 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079148', 'tblTempUsageDetail_20' ) end [2024-12-22 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079148', 'tblTempVendorCDR_20' ) start [2024-12-22 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079148', 'tblTempVendorCDR_20' ) end [2024-12-22 17:52:18] Production.INFO: ProcessCDR(1,14079148,1,1,2) [2024-12-22 17:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079148', 'tblTempUsageDetail_20' ) start [2024-12-22 17:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079148', 'tblTempUsageDetail_20' ) end [2024-12-22 17:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:52:21] Production.INFO: ==14535== Releasing lock... [2024-12-22 17:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:52:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:53:05 [end_date_ymd] => 2024-12-22 17:53:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:53:05' and `end` < '2024-12-22 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-22 17:53:18] Production.INFO: count ==1309 [2024-12-22 17:53:19] Production.ERROR: pbx CDR StartTime 2024-12-22 14:53:05 - End Time 2024-12-22 17:53:05 [2024-12-22 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079153', 'tblTempUsageDetail_20' ) start [2024-12-22 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079153', 'tblTempUsageDetail_20' ) end [2024-12-22 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079153', 'tblTempVendorCDR_20' ) start [2024-12-22 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079153', 'tblTempVendorCDR_20' ) end [2024-12-22 17:53:19] Production.INFO: ProcessCDR(1,14079153,1,1,2) [2024-12-22 17:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079153', 'tblTempUsageDetail_20' ) start [2024-12-22 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079153', 'tblTempUsageDetail_20' ) end [2024-12-22 17:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:53:22] Production.INFO: ==14610== Releasing lock... [2024-12-22 17:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:53:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:54:04 [end_date_ymd] => 2024-12-22 17:54:04 [RateCDR] => 1 ) [2024-12-22 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-22 14:54:04' and `end` < '2024-12-22 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-22 17:54:17] Production.INFO: count ==1310 [2024-12-22 17:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:54:04 - End Time 2024-12-22 17:54:04 [2024-12-22 17:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079158', 'tblTempUsageDetail_20' ) start [2024-12-22 17:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079158', 'tblTempUsageDetail_20' ) end [2024-12-22 17:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079158', 'tblTempVendorCDR_20' ) start [2024-12-22 17:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079158', 'tblTempVendorCDR_20' ) end [2024-12-22 17:54:17] Production.INFO: ProcessCDR(1,14079158,1,1,2) [2024-12-22 17:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079158', 'tblTempUsageDetail_20' ) start [2024-12-22 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079158', 'tblTempUsageDetail_20' ) end [2024-12-22 17:54:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:54:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:54:22] Production.INFO: ==14694== Releasing lock... [2024-12-22 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:54:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:55:05 [end_date_ymd] => 2024-12-22 17:55:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:55:05' and `end` < '2024-12-22 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-22 17:55:17] Production.INFO: count ==1313 [2024-12-22 17:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:55:05 - End Time 2024-12-22 17:55:05 [2024-12-22 17:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079163', 'tblTempUsageDetail_20' ) start [2024-12-22 17:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079163', 'tblTempUsageDetail_20' ) end [2024-12-22 17:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079163', 'tblTempVendorCDR_20' ) start [2024-12-22 17:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079163', 'tblTempVendorCDR_20' ) end [2024-12-22 17:55:17] Production.INFO: ProcessCDR(1,14079163,1,1,2) [2024-12-22 17:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079163', 'tblTempUsageDetail_20' ) start [2024-12-22 17:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079163', 'tblTempUsageDetail_20' ) end [2024-12-22 17:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:55:20] Production.INFO: ==14775== Releasing lock... [2024-12-22 17:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:55:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:56:05 [end_date_ymd] => 2024-12-22 17:56:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:56:05' and `end` < '2024-12-22 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-22 17:56:19] Production.INFO: count ==1311 [2024-12-22 17:56:19] Production.ERROR: pbx CDR StartTime 2024-12-22 14:56:05 - End Time 2024-12-22 17:56:05 [2024-12-22 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079168', 'tblTempUsageDetail_20' ) start [2024-12-22 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079168', 'tblTempUsageDetail_20' ) end [2024-12-22 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079168', 'tblTempVendorCDR_20' ) start [2024-12-22 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079168', 'tblTempVendorCDR_20' ) end [2024-12-22 17:56:19] Production.INFO: ProcessCDR(1,14079168,1,1,2) [2024-12-22 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079168', 'tblTempUsageDetail_20' ) start [2024-12-22 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079168', 'tblTempUsageDetail_20' ) end [2024-12-22 17:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:56:22] Production.INFO: ==14856== Releasing lock... [2024-12-22 17:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:56:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:57:04 [end_date_ymd] => 2024-12-22 17:57:04 [RateCDR] => 1 ) [2024-12-22 17:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:57:04' and `end` < '2024-12-22 17:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:57:17] Production.INFO: count ==1305 [2024-12-22 17:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:57:04 - End Time 2024-12-22 17:57:04 [2024-12-22 17:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079173', 'tblTempUsageDetail_20' ) start [2024-12-22 17:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079173', 'tblTempUsageDetail_20' ) end [2024-12-22 17:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079173', 'tblTempVendorCDR_20' ) start [2024-12-22 17:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079173', 'tblTempVendorCDR_20' ) end [2024-12-22 17:57:17] Production.INFO: ProcessCDR(1,14079173,1,1,2) [2024-12-22 17:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079173', 'tblTempUsageDetail_20' ) start [2024-12-22 17:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079173', 'tblTempUsageDetail_20' ) end [2024-12-22 17:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:57:21] Production.INFO: ==14937== Releasing lock... [2024-12-22 17:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:57:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:58:05 [end_date_ymd] => 2024-12-22 17:58:05 [RateCDR] => 1 ) [2024-12-22 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-22 14:58:05' and `end` < '2024-12-22 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-22 17:58:17] Production.INFO: count ==1303 [2024-12-22 17:58:18] Production.ERROR: pbx CDR StartTime 2024-12-22 14:58:05 - End Time 2024-12-22 17:58:05 [2024-12-22 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079178', 'tblTempUsageDetail_20' ) start [2024-12-22 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079178', 'tblTempUsageDetail_20' ) end [2024-12-22 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079178', 'tblTempVendorCDR_20' ) start [2024-12-22 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079178', 'tblTempVendorCDR_20' ) end [2024-12-22 17:58:18] Production.INFO: ProcessCDR(1,14079178,1,1,2) [2024-12-22 17:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079178', 'tblTempUsageDetail_20' ) start [2024-12-22 17:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079178', 'tblTempUsageDetail_20' ) end [2024-12-22 17:58:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:58:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:58:21] Production.INFO: ==15016== Releasing lock... [2024-12-22 17:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:58:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 14:59:05 [end_date_ymd] => 2024-12-22 17:59:05 [RateCDR] => 1 ) [2024-12-22 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 14:59:05' and `end` < '2024-12-22 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 17:59:17] Production.INFO: count ==1303 [2024-12-22 17:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 14:59:05 - End Time 2024-12-22 17:59:05 [2024-12-22 17:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 17:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079183', 'tblTempUsageDetail_20' ) start [2024-12-22 17:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079183', 'tblTempUsageDetail_20' ) end [2024-12-22 17:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079183', 'tblTempVendorCDR_20' ) start [2024-12-22 17:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079183', 'tblTempVendorCDR_20' ) end [2024-12-22 17:59:17] Production.INFO: ProcessCDR(1,14079183,1,1,2) [2024-12-22 17:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 17:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 17:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079183', 'tblTempUsageDetail_20' ) start [2024-12-22 17:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079183', 'tblTempUsageDetail_20' ) end [2024-12-22 17:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 17:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 17:59:20] Production.INFO: ==15093== Releasing lock... [2024-12-22 17:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 17:59:20] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:00:06 [end_date_ymd] => 2024-12-22 18:00:06 [RateCDR] => 1 ) [2024-12-22 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:00:06' and `end` < '2024-12-22 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:00:19] Production.INFO: count ==1303 [2024-12-22 18:00:19] Production.ERROR: pbx CDR StartTime 2024-12-22 15:00:06 - End Time 2024-12-22 18:00:06 [2024-12-22 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079189', 'tblTempUsageDetail_20' ) start [2024-12-22 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079189', 'tblTempUsageDetail_20' ) end [2024-12-22 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079189', 'tblTempVendorCDR_20' ) start [2024-12-22 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079189', 'tblTempVendorCDR_20' ) end [2024-12-22 18:00:19] Production.INFO: ProcessCDR(1,14079189,1,1,2) [2024-12-22 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079189', 'tblTempUsageDetail_20' ) start [2024-12-22 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079189', 'tblTempUsageDetail_20' ) end [2024-12-22 18:00:24] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:00:24] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:00:24] Production.INFO: ==15171== Releasing lock... [2024-12-22 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:00:24] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:01:05 [end_date_ymd] => 2024-12-22 18:01:05 [RateCDR] => 1 ) [2024-12-22 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:01:05' and `end` < '2024-12-22 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:01:18] Production.INFO: count ==1322 [2024-12-22 18:01:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:01:05 - End Time 2024-12-22 18:01:05 [2024-12-22 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079194', 'tblTempUsageDetail_20' ) start [2024-12-22 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079194', 'tblTempUsageDetail_20' ) end [2024-12-22 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079194', 'tblTempVendorCDR_20' ) start [2024-12-22 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079194', 'tblTempVendorCDR_20' ) end [2024-12-22 18:01:18] Production.INFO: ProcessCDR(1,14079194,1,1,2) [2024-12-22 18:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079194', 'tblTempUsageDetail_20' ) start [2024-12-22 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079194', 'tblTempUsageDetail_20' ) end [2024-12-22 18:01:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:01:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:01:22] Production.INFO: ==15262== Releasing lock... [2024-12-22 18:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:01:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:02:05 [end_date_ymd] => 2024-12-22 18:02:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:02:05' and `end` < '2024-12-22 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-22 18:02:17] Production.INFO: count ==1317 [2024-12-22 18:02:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:02:05 - End Time 2024-12-22 18:02:05 [2024-12-22 18:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079199', 'tblTempUsageDetail_20' ) start [2024-12-22 18:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079199', 'tblTempUsageDetail_20' ) end [2024-12-22 18:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079199', 'tblTempVendorCDR_20' ) start [2024-12-22 18:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079199', 'tblTempVendorCDR_20' ) end [2024-12-22 18:02:17] Production.INFO: ProcessCDR(1,14079199,1,1,2) [2024-12-22 18:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079199', 'tblTempUsageDetail_20' ) start [2024-12-22 18:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079199', 'tblTempUsageDetail_20' ) end [2024-12-22 18:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:02:20] Production.INFO: ==15350== Releasing lock... [2024-12-22 18:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:02:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:03:04 [end_date_ymd] => 2024-12-22 18:03:04 [RateCDR] => 1 ) [2024-12-22 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-22 15:03:04' and `end` < '2024-12-22 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-22 18:03:16] Production.INFO: count ==1317 [2024-12-22 18:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:03:04 - End Time 2024-12-22 18:03:04 [2024-12-22 18:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079204', 'tblTempUsageDetail_20' ) start [2024-12-22 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079204', 'tblTempUsageDetail_20' ) end [2024-12-22 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079204', 'tblTempVendorCDR_20' ) start [2024-12-22 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079204', 'tblTempVendorCDR_20' ) end [2024-12-22 18:03:17] Production.INFO: ProcessCDR(1,14079204,1,1,2) [2024-12-22 18:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079204', 'tblTempUsageDetail_20' ) start [2024-12-22 18:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079204', 'tblTempUsageDetail_20' ) end [2024-12-22 18:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:03:20] Production.INFO: ==15425== Releasing lock... [2024-12-22 18:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:03:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:04:05 [end_date_ymd] => 2024-12-22 18:04:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:04:05' and `end` < '2024-12-22 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-22 18:04:17] Production.INFO: count ==1316 [2024-12-22 18:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:04:05 - End Time 2024-12-22 18:04:05 [2024-12-22 18:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079209', 'tblTempUsageDetail_20' ) start [2024-12-22 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079209', 'tblTempUsageDetail_20' ) end [2024-12-22 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079209', 'tblTempVendorCDR_20' ) start [2024-12-22 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079209', 'tblTempVendorCDR_20' ) end [2024-12-22 18:04:17] Production.INFO: ProcessCDR(1,14079209,1,1,2) [2024-12-22 18:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079209', 'tblTempUsageDetail_20' ) start [2024-12-22 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079209', 'tblTempUsageDetail_20' ) end [2024-12-22 18:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:04:22] Production.INFO: ==15510== Releasing lock... [2024-12-22 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:04:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 18:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:05:04 [end_date_ymd] => 2024-12-22 18:05:04 [RateCDR] => 1 ) [2024-12-22 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-22 15:05:04' and `end` < '2024-12-22 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-22 18:05:17] Production.INFO: count ==1315 [2024-12-22 18:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:05:04 - End Time 2024-12-22 18:05:04 [2024-12-22 18:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079214', 'tblTempUsageDetail_20' ) start [2024-12-22 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079214', 'tblTempUsageDetail_20' ) end [2024-12-22 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079214', 'tblTempVendorCDR_20' ) start [2024-12-22 18:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079214', 'tblTempVendorCDR_20' ) end [2024-12-22 18:05:17] Production.INFO: ProcessCDR(1,14079214,1,1,2) [2024-12-22 18:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079214', 'tblTempUsageDetail_20' ) start [2024-12-22 18:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079214', 'tblTempUsageDetail_20' ) end [2024-12-22 18:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:05:20] Production.INFO: ==15602== Releasing lock... [2024-12-22 18:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:05:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:06:05 [end_date_ymd] => 2024-12-22 18:06:05 [RateCDR] => 1 ) [2024-12-22 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:06:05' and `end` < '2024-12-22 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:06:18] Production.INFO: count ==1315 [2024-12-22 18:06:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:06:05 - End Time 2024-12-22 18:06:05 [2024-12-22 18:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079219', 'tblTempUsageDetail_20' ) start [2024-12-22 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079219', 'tblTempUsageDetail_20' ) end [2024-12-22 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079219', 'tblTempVendorCDR_20' ) start [2024-12-22 18:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079219', 'tblTempVendorCDR_20' ) end [2024-12-22 18:06:18] Production.INFO: ProcessCDR(1,14079219,1,1,2) [2024-12-22 18:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079219', 'tblTempUsageDetail_20' ) start [2024-12-22 18:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079219', 'tblTempUsageDetail_20' ) end [2024-12-22 18:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:06:21] Production.INFO: ==15692== Releasing lock... [2024-12-22 18:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:06:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:07:05 [end_date_ymd] => 2024-12-22 18:07:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:07:05' and `end` < '2024-12-22 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-22 18:07:20] Production.INFO: count ==1323 [2024-12-22 18:07:20] Production.ERROR: pbx CDR StartTime 2024-12-22 15:07:05 - End Time 2024-12-22 18:07:05 [2024-12-22 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079224', 'tblTempUsageDetail_20' ) start [2024-12-22 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079224', 'tblTempUsageDetail_20' ) end [2024-12-22 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079224', 'tblTempVendorCDR_20' ) start [2024-12-22 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079224', 'tblTempVendorCDR_20' ) end [2024-12-22 18:07:20] Production.INFO: ProcessCDR(1,14079224,1,1,2) [2024-12-22 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079224', 'tblTempUsageDetail_20' ) start [2024-12-22 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079224', 'tblTempUsageDetail_20' ) end [2024-12-22 18:07:25] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:07:25] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:07:25] Production.INFO: ==15830== Releasing lock... [2024-12-22 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:07:25] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:08:05 [end_date_ymd] => 2024-12-22 18:08:05 [RateCDR] => 1 ) [2024-12-22 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:08:05' and `end` < '2024-12-22 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:08:18] Production.INFO: count ==1326 [2024-12-22 18:08:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:08:05 - End Time 2024-12-22 18:08:05 [2024-12-22 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079229', 'tblTempUsageDetail_20' ) start [2024-12-22 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079229', 'tblTempUsageDetail_20' ) end [2024-12-22 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079229', 'tblTempVendorCDR_20' ) start [2024-12-22 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079229', 'tblTempVendorCDR_20' ) end [2024-12-22 18:08:18] Production.INFO: ProcessCDR(1,14079229,1,1,2) [2024-12-22 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079229', 'tblTempUsageDetail_20' ) start [2024-12-22 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079229', 'tblTempUsageDetail_20' ) end [2024-12-22 18:08:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:08:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:08:23] Production.INFO: ==15919== Releasing lock... [2024-12-22 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:08:23] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:09:05 [end_date_ymd] => 2024-12-22 18:09:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:09:05' and `end` < '2024-12-22 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-22 18:09:18] Production.INFO: count ==1327 [2024-12-22 18:09:19] Production.ERROR: pbx CDR StartTime 2024-12-22 15:09:05 - End Time 2024-12-22 18:09:05 [2024-12-22 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079234', 'tblTempUsageDetail_20' ) start [2024-12-22 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079234', 'tblTempUsageDetail_20' ) end [2024-12-22 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079234', 'tblTempVendorCDR_20' ) start [2024-12-22 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079234', 'tblTempVendorCDR_20' ) end [2024-12-22 18:09:19] Production.INFO: ProcessCDR(1,14079234,1,1,2) [2024-12-22 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079234', 'tblTempUsageDetail_20' ) start [2024-12-22 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079234', 'tblTempUsageDetail_20' ) end [2024-12-22 18:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:09:22] Production.INFO: ==16020== Releasing lock... [2024-12-22 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:09:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:10:06 [end_date_ymd] => 2024-12-22 18:10:06 [RateCDR] => 1 ) [2024-12-22 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:10:06' and `end` < '2024-12-22 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:10:18] Production.INFO: count ==1328 [2024-12-22 18:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:10:06 - End Time 2024-12-22 18:10:06 [2024-12-22 18:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079240', 'tblTempUsageDetail_20' ) start [2024-12-22 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079240', 'tblTempUsageDetail_20' ) end [2024-12-22 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079240', 'tblTempVendorCDR_20' ) start [2024-12-22 18:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079240', 'tblTempVendorCDR_20' ) end [2024-12-22 18:10:18] Production.INFO: ProcessCDR(1,14079240,1,1,2) [2024-12-22 18:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079240', 'tblTempUsageDetail_20' ) start [2024-12-22 18:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079240', 'tblTempUsageDetail_20' ) end [2024-12-22 18:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:10:22] Production.INFO: ==16120== Releasing lock... [2024-12-22 18:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:10:22] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:11:04 [end_date_ymd] => 2024-12-22 18:11:04 [RateCDR] => 1 ) [2024-12-22 18:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:11:04' and `end` < '2024-12-22 18:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:11:17] Production.INFO: count ==1362 [2024-12-22 18:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:11:04 - End Time 2024-12-22 18:11:04 [2024-12-22 18:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079245', 'tblTempUsageDetail_20' ) start [2024-12-22 18:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079245', 'tblTempUsageDetail_20' ) end [2024-12-22 18:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079245', 'tblTempVendorCDR_20' ) start [2024-12-22 18:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079245', 'tblTempVendorCDR_20' ) end [2024-12-22 18:11:17] Production.INFO: ProcessCDR(1,14079245,1,1,2) [2024-12-22 18:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079245', 'tblTempUsageDetail_20' ) start [2024-12-22 18:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079245', 'tblTempUsageDetail_20' ) end [2024-12-22 18:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:11:20] Production.INFO: ==16218== Releasing lock... [2024-12-22 18:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:11:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:12:05 [end_date_ymd] => 2024-12-22 18:12:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:12:05' and `end` < '2024-12-22 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-22 18:12:17] Production.INFO: count ==1362 [2024-12-22 18:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:12:05 - End Time 2024-12-22 18:12:05 [2024-12-22 18:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079250', 'tblTempUsageDetail_20' ) start [2024-12-22 18:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079250', 'tblTempUsageDetail_20' ) end [2024-12-22 18:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079250', 'tblTempVendorCDR_20' ) start [2024-12-22 18:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079250', 'tblTempVendorCDR_20' ) end [2024-12-22 18:12:17] Production.INFO: ProcessCDR(1,14079250,1,1,2) [2024-12-22 18:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079250', 'tblTempUsageDetail_20' ) start [2024-12-22 18:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079250', 'tblTempUsageDetail_20' ) end [2024-12-22 18:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:12:20] Production.INFO: ==16314== Releasing lock... [2024-12-22 18:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:12:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:13:05 [end_date_ymd] => 2024-12-22 18:13:05 [RateCDR] => 1 ) [2024-12-22 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:13:05' and `end` < '2024-12-22 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:13:17] Production.INFO: count ==1361 [2024-12-22 18:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:13:05 - End Time 2024-12-22 18:13:05 [2024-12-22 18:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079255', 'tblTempUsageDetail_20' ) start [2024-12-22 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079255', 'tblTempUsageDetail_20' ) end [2024-12-22 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079255', 'tblTempVendorCDR_20' ) start [2024-12-22 18:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079255', 'tblTempVendorCDR_20' ) end [2024-12-22 18:13:17] Production.INFO: ProcessCDR(1,14079255,1,1,2) [2024-12-22 18:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079255', 'tblTempUsageDetail_20' ) start [2024-12-22 18:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079255', 'tblTempUsageDetail_20' ) end [2024-12-22 18:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:13:20] Production.INFO: ==16406== Releasing lock... [2024-12-22 18:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:13:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:14:05 [end_date_ymd] => 2024-12-22 18:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:14:05' and `end` < '2024-12-22 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-22 18:14:17] Production.INFO: count ==1361 [2024-12-22 18:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:14:05 - End Time 2024-12-22 18:14:05 [2024-12-22 18:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079260', 'tblTempUsageDetail_20' ) start [2024-12-22 18:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079260', 'tblTempUsageDetail_20' ) end [2024-12-22 18:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079260', 'tblTempVendorCDR_20' ) start [2024-12-22 18:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079260', 'tblTempVendorCDR_20' ) end [2024-12-22 18:14:17] Production.INFO: ProcessCDR(1,14079260,1,1,2) [2024-12-22 18:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079260', 'tblTempUsageDetail_20' ) start [2024-12-22 18:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079260', 'tblTempUsageDetail_20' ) end [2024-12-22 18:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:14:22] Production.INFO: ==16495== Releasing lock... [2024-12-22 18:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:14:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:15:05 [end_date_ymd] => 2024-12-22 18:15:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:15:05' and `end` < '2024-12-22 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-22 18:15:17] Production.INFO: count ==1361 [2024-12-22 18:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:15:05 - End Time 2024-12-22 18:15:05 [2024-12-22 18:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079265', 'tblTempUsageDetail_20' ) start [2024-12-22 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079265', 'tblTempUsageDetail_20' ) end [2024-12-22 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079265', 'tblTempVendorCDR_20' ) start [2024-12-22 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079265', 'tblTempVendorCDR_20' ) end [2024-12-22 18:15:17] Production.INFO: ProcessCDR(1,14079265,1,1,2) [2024-12-22 18:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079265', 'tblTempUsageDetail_20' ) start [2024-12-22 18:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079265', 'tblTempUsageDetail_20' ) end [2024-12-22 18:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:15:20] Production.INFO: ==16589== Releasing lock... [2024-12-22 18:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:15:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:16:05 [end_date_ymd] => 2024-12-22 18:16:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:16:05' and `end` < '2024-12-22 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-22 18:16:21] Production.INFO: count ==1362 [2024-12-22 18:16:21] Production.ERROR: pbx CDR StartTime 2024-12-22 15:16:05 - End Time 2024-12-22 18:16:05 [2024-12-22 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079270', 'tblTempUsageDetail_20' ) start [2024-12-22 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079270', 'tblTempUsageDetail_20' ) end [2024-12-22 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079270', 'tblTempVendorCDR_20' ) start [2024-12-22 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079270', 'tblTempVendorCDR_20' ) end [2024-12-22 18:16:21] Production.INFO: ProcessCDR(1,14079270,1,1,2) [2024-12-22 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079270', 'tblTempUsageDetail_20' ) start [2024-12-22 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079270', 'tblTempUsageDetail_20' ) end [2024-12-22 18:16:26] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:16:26] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:16:26] Production.INFO: ==16667== Releasing lock... [2024-12-22 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:16:26] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:17:05 [end_date_ymd] => 2024-12-22 18:17:05 [RateCDR] => 1 ) [2024-12-22 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:17:05' and `end` < '2024-12-22 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:17:17] Production.INFO: count ==1364 [2024-12-22 18:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:17:05 - End Time 2024-12-22 18:17:05 [2024-12-22 18:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079275', 'tblTempUsageDetail_20' ) start [2024-12-22 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079275', 'tblTempUsageDetail_20' ) end [2024-12-22 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079275', 'tblTempVendorCDR_20' ) start [2024-12-22 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079275', 'tblTempVendorCDR_20' ) end [2024-12-22 18:17:17] Production.INFO: ProcessCDR(1,14079275,1,1,2) [2024-12-22 18:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079275', 'tblTempUsageDetail_20' ) start [2024-12-22 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079275', 'tblTempUsageDetail_20' ) end [2024-12-22 18:17:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:17:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:17:22] Production.INFO: ==16766== Releasing lock... [2024-12-22 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:17:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:18:04 [end_date_ymd] => 2024-12-22 18:18:04 [RateCDR] => 1 ) [2024-12-22 18:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:18:04' and `end` < '2024-12-22 18:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:18:18] Production.INFO: count ==1364 [2024-12-22 18:18:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:18:04 - End Time 2024-12-22 18:18:04 [2024-12-22 18:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079280', 'tblTempUsageDetail_20' ) start [2024-12-22 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079280', 'tblTempUsageDetail_20' ) end [2024-12-22 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079280', 'tblTempVendorCDR_20' ) start [2024-12-22 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079280', 'tblTempVendorCDR_20' ) end [2024-12-22 18:18:18] Production.INFO: ProcessCDR(1,14079280,1,1,2) [2024-12-22 18:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079280', 'tblTempUsageDetail_20' ) start [2024-12-22 18:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079280', 'tblTempUsageDetail_20' ) end [2024-12-22 18:18:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:18:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:18:22] Production.INFO: ==16847== Releasing lock... [2024-12-22 18:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:18:22] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:19:05 [end_date_ymd] => 2024-12-22 18:19:05 [RateCDR] => 1 ) [2024-12-22 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:19:05' and `end` < '2024-12-22 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:19:17] Production.INFO: count ==1363 [2024-12-22 18:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:19:05 - End Time 2024-12-22 18:19:05 [2024-12-22 18:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079285', 'tblTempUsageDetail_20' ) start [2024-12-22 18:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079285', 'tblTempUsageDetail_20' ) end [2024-12-22 18:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079285', 'tblTempVendorCDR_20' ) start [2024-12-22 18:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079285', 'tblTempVendorCDR_20' ) end [2024-12-22 18:19:17] Production.INFO: ProcessCDR(1,14079285,1,1,2) [2024-12-22 18:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079285', 'tblTempUsageDetail_20' ) start [2024-12-22 18:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079285', 'tblTempUsageDetail_20' ) end [2024-12-22 18:19:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:19:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:19:22] Production.INFO: ==16938== Releasing lock... [2024-12-22 18:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:19:22] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:20:05 [end_date_ymd] => 2024-12-22 18:20:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:20:05' and `end` < '2024-12-22 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-22 18:20:18] Production.INFO: count ==1380 [2024-12-22 18:20:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:20:05 - End Time 2024-12-22 18:20:05 [2024-12-22 18:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079291', 'tblTempUsageDetail_20' ) start [2024-12-22 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079291', 'tblTempUsageDetail_20' ) end [2024-12-22 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079291', 'tblTempVendorCDR_20' ) start [2024-12-22 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079291', 'tblTempVendorCDR_20' ) end [2024-12-22 18:20:18] Production.INFO: ProcessCDR(1,14079291,1,1,2) [2024-12-22 18:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079291', 'tblTempUsageDetail_20' ) start [2024-12-22 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079291', 'tblTempUsageDetail_20' ) end [2024-12-22 18:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:20:22] Production.INFO: ==17049== Releasing lock... [2024-12-22 18:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:20:22] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:21:05 [end_date_ymd] => 2024-12-22 18:21:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:21:05' and `end` < '2024-12-22 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-22 18:21:17] Production.INFO: count ==1389 [2024-12-22 18:21:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:21:05 - End Time 2024-12-22 18:21:05 [2024-12-22 18:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079296', 'tblTempUsageDetail_20' ) start [2024-12-22 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079296', 'tblTempUsageDetail_20' ) end [2024-12-22 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079296', 'tblTempVendorCDR_20' ) start [2024-12-22 18:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079296', 'tblTempVendorCDR_20' ) end [2024-12-22 18:21:17] Production.INFO: ProcessCDR(1,14079296,1,1,2) [2024-12-22 18:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079296', 'tblTempUsageDetail_20' ) start [2024-12-22 18:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079296', 'tblTempUsageDetail_20' ) end [2024-12-22 18:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:21:20] Production.INFO: ==17140== Releasing lock... [2024-12-22 18:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:21:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:22:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:22:04 [end_date_ymd] => 2024-12-22 18:22:04 [RateCDR] => 1 ) [2024-12-22 18: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-22 15:22:04' and `end` < '2024-12-22 18: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-22 18:22:17] Production.INFO: count ==1390 [2024-12-22 18:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:22:04 - End Time 2024-12-22 18:22:04 [2024-12-22 18:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079301', 'tblTempUsageDetail_20' ) start [2024-12-22 18:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079301', 'tblTempUsageDetail_20' ) end [2024-12-22 18:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079301', 'tblTempVendorCDR_20' ) start [2024-12-22 18:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079301', 'tblTempVendorCDR_20' ) end [2024-12-22 18:22:17] Production.INFO: ProcessCDR(1,14079301,1,1,2) [2024-12-22 18:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079301', 'tblTempUsageDetail_20' ) start [2024-12-22 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079301', 'tblTempUsageDetail_20' ) end [2024-12-22 18:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:22:21] Production.INFO: ==17226== Releasing lock... [2024-12-22 18:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:22:21] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:23:05 [end_date_ymd] => 2024-12-22 18:23:05 [RateCDR] => 1 ) [2024-12-22 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:23:05' and `end` < '2024-12-22 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:23:17] Production.INFO: count ==1386 [2024-12-22 18:23:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:23:05 - End Time 2024-12-22 18:23:05 [2024-12-22 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079306', 'tblTempUsageDetail_20' ) start [2024-12-22 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079306', 'tblTempUsageDetail_20' ) end [2024-12-22 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079306', 'tblTempVendorCDR_20' ) start [2024-12-22 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079306', 'tblTempVendorCDR_20' ) end [2024-12-22 18:23:18] Production.INFO: ProcessCDR(1,14079306,1,1,2) [2024-12-22 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079306', 'tblTempUsageDetail_20' ) start [2024-12-22 18:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079306', 'tblTempUsageDetail_20' ) end [2024-12-22 18:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:23:22] Production.INFO: ==17353== Releasing lock... [2024-12-22 18:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:23:22] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:24:04 [end_date_ymd] => 2024-12-22 18:24:04 [RateCDR] => 1 ) [2024-12-22 18: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-22 15:24:04' and `end` < '2024-12-22 18: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-22 18:24:17] Production.INFO: count ==1386 [2024-12-22 18:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:24:04 - End Time 2024-12-22 18:24:04 [2024-12-22 18:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079311', 'tblTempUsageDetail_20' ) start [2024-12-22 18:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079311', 'tblTempUsageDetail_20' ) end [2024-12-22 18:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079311', 'tblTempVendorCDR_20' ) start [2024-12-22 18:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079311', 'tblTempVendorCDR_20' ) end [2024-12-22 18:24:17] Production.INFO: ProcessCDR(1,14079311,1,1,2) [2024-12-22 18:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079311', 'tblTempUsageDetail_20' ) start [2024-12-22 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079311', 'tblTempUsageDetail_20' ) end [2024-12-22 18:24:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:24:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:24:22] Production.INFO: ==17449== Releasing lock... [2024-12-22 18:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:24:22] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:25:05 [end_date_ymd] => 2024-12-22 18:25:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:25:05' and `end` < '2024-12-22 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-22 18:25:17] Production.INFO: count ==1390 [2024-12-22 18:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:25:05 - End Time 2024-12-22 18:25:05 [2024-12-22 18:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079316', 'tblTempUsageDetail_20' ) start [2024-12-22 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079316', 'tblTempUsageDetail_20' ) end [2024-12-22 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079316', 'tblTempVendorCDR_20' ) start [2024-12-22 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079316', 'tblTempVendorCDR_20' ) end [2024-12-22 18:25:17] Production.INFO: ProcessCDR(1,14079316,1,1,2) [2024-12-22 18:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079316', 'tblTempUsageDetail_20' ) start [2024-12-22 18:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079316', 'tblTempUsageDetail_20' ) end [2024-12-22 18:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:25:20] Production.INFO: ==17533== Releasing lock... [2024-12-22 18:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:25:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:26:05 [end_date_ymd] => 2024-12-22 18:26:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:26:05' and `end` < '2024-12-22 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-22 18:26:18] Production.INFO: count ==1390 [2024-12-22 18:26:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:26:05 - End Time 2024-12-22 18:26:05 [2024-12-22 18:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079321', 'tblTempUsageDetail_20' ) start [2024-12-22 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079321', 'tblTempUsageDetail_20' ) end [2024-12-22 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079321', 'tblTempVendorCDR_20' ) start [2024-12-22 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079321', 'tblTempVendorCDR_20' ) end [2024-12-22 18:26:18] Production.INFO: ProcessCDR(1,14079321,1,1,2) [2024-12-22 18:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079321', 'tblTempUsageDetail_20' ) start [2024-12-22 18:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079321', 'tblTempUsageDetail_20' ) end [2024-12-22 18:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:26:21] Production.INFO: ==17624== Releasing lock... [2024-12-22 18:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:26:21] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:27:04 [end_date_ymd] => 2024-12-22 18:27:04 [RateCDR] => 1 ) [2024-12-22 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-22 15:27:04' and `end` < '2024-12-22 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-22 18:27:17] Production.INFO: count ==1391 [2024-12-22 18:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:27:04 - End Time 2024-12-22 18:27:04 [2024-12-22 18:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079326', 'tblTempUsageDetail_20' ) start [2024-12-22 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079326', 'tblTempUsageDetail_20' ) end [2024-12-22 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079326', 'tblTempVendorCDR_20' ) start [2024-12-22 18:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079326', 'tblTempVendorCDR_20' ) end [2024-12-22 18:27:17] Production.INFO: ProcessCDR(1,14079326,1,1,2) [2024-12-22 18:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079326', 'tblTempUsageDetail_20' ) start [2024-12-22 18:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079326', 'tblTempUsageDetail_20' ) end [2024-12-22 18:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:27:20] Production.INFO: ==17713== Releasing lock... [2024-12-22 18:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:27:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:28:05 [end_date_ymd] => 2024-12-22 18:28:05 [RateCDR] => 1 ) [2024-12-22 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:28:05' and `end` < '2024-12-22 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:28:17] Production.INFO: count ==1391 [2024-12-22 18:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:28:05 - End Time 2024-12-22 18:28:05 [2024-12-22 18:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079331', 'tblTempUsageDetail_20' ) start [2024-12-22 18:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079331', 'tblTempUsageDetail_20' ) end [2024-12-22 18:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079331', 'tblTempVendorCDR_20' ) start [2024-12-22 18:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079331', 'tblTempVendorCDR_20' ) end [2024-12-22 18:28:17] Production.INFO: ProcessCDR(1,14079331,1,1,2) [2024-12-22 18:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079331', 'tblTempUsageDetail_20' ) start [2024-12-22 18:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079331', 'tblTempUsageDetail_20' ) end [2024-12-22 18:28:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:28:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:28:21] Production.INFO: ==17807== Releasing lock... [2024-12-22 18:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:28:21] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:29:04 [end_date_ymd] => 2024-12-22 18:29:04 [RateCDR] => 1 ) [2024-12-22 18: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-22 15:29:04' and `end` < '2024-12-22 18: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-22 18:29:16] Production.INFO: count ==1394 [2024-12-22 18:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:29:04 - End Time 2024-12-22 18:29:04 [2024-12-22 18:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079336', 'tblTempUsageDetail_20' ) start [2024-12-22 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079336', 'tblTempUsageDetail_20' ) end [2024-12-22 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079336', 'tblTempVendorCDR_20' ) start [2024-12-22 18:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079336', 'tblTempVendorCDR_20' ) end [2024-12-22 18:29:17] Production.INFO: ProcessCDR(1,14079336,1,1,2) [2024-12-22 18:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079336', 'tblTempUsageDetail_20' ) start [2024-12-22 18:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079336', 'tblTempUsageDetail_20' ) end [2024-12-22 18:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:29:21] Production.INFO: ==17893== Releasing lock... [2024-12-22 18:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:29:21] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:30:05 [end_date_ymd] => 2024-12-22 18:30:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:30:05' and `end` < '2024-12-22 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-22 18:30:18] Production.INFO: count ==1397 [2024-12-22 18:30:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:30:05 - End Time 2024-12-22 18:30:05 [2024-12-22 18:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079342', 'tblTempUsageDetail_20' ) start [2024-12-22 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079342', 'tblTempUsageDetail_20' ) end [2024-12-22 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079342', 'tblTempVendorCDR_20' ) start [2024-12-22 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079342', 'tblTempVendorCDR_20' ) end [2024-12-22 18:30:18] Production.INFO: ProcessCDR(1,14079342,1,1,2) [2024-12-22 18:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079342', 'tblTempUsageDetail_20' ) start [2024-12-22 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079342', 'tblTempUsageDetail_20' ) end [2024-12-22 18:30:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:30:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:30:22] Production.INFO: ==17989== Releasing lock... [2024-12-22 18:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:30:22] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:31:05 [end_date_ymd] => 2024-12-22 18:31:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:31:05' and `end` < '2024-12-22 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-22 18:31:17] Production.INFO: count ==1436 [2024-12-22 18:31:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:31:05 - End Time 2024-12-22 18:31:05 [2024-12-22 18:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079347', 'tblTempUsageDetail_20' ) start [2024-12-22 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079347', 'tblTempUsageDetail_20' ) end [2024-12-22 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079347', 'tblTempVendorCDR_20' ) start [2024-12-22 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079347', 'tblTempVendorCDR_20' ) end [2024-12-22 18:31:18] Production.INFO: ProcessCDR(1,14079347,1,1,2) [2024-12-22 18:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079347', 'tblTempUsageDetail_20' ) start [2024-12-22 18:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079347', 'tblTempUsageDetail_20' ) end [2024-12-22 18:31:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:31:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:31:22] Production.INFO: ==18081== Releasing lock... [2024-12-22 18:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:31:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 18:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:32:04 [end_date_ymd] => 2024-12-22 18:32:04 [RateCDR] => 1 ) [2024-12-22 18:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:32:04' and `end` < '2024-12-22 18:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:32:17] Production.INFO: count ==1438 [2024-12-22 18:32:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:32:04 - End Time 2024-12-22 18:32:04 [2024-12-22 18:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079352', 'tblTempUsageDetail_20' ) start [2024-12-22 18:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079352', 'tblTempUsageDetail_20' ) end [2024-12-22 18:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079352', 'tblTempVendorCDR_20' ) start [2024-12-22 18:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079352', 'tblTempVendorCDR_20' ) end [2024-12-22 18:32:17] Production.INFO: ProcessCDR(1,14079352,1,1,2) [2024-12-22 18:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079352', 'tblTempUsageDetail_20' ) start [2024-12-22 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079352', 'tblTempUsageDetail_20' ) end [2024-12-22 18:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:32:22] Production.INFO: ==18167== Releasing lock... [2024-12-22 18:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:32:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:33:05 [end_date_ymd] => 2024-12-22 18:33:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:33:05' and `end` < '2024-12-22 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-22 18:33:17] Production.INFO: count ==1443 [2024-12-22 18:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:33:05 - End Time 2024-12-22 18:33:05 [2024-12-22 18:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079357', 'tblTempUsageDetail_20' ) start [2024-12-22 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079357', 'tblTempUsageDetail_20' ) end [2024-12-22 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079357', 'tblTempVendorCDR_20' ) start [2024-12-22 18:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079357', 'tblTempVendorCDR_20' ) end [2024-12-22 18:33:17] Production.INFO: ProcessCDR(1,14079357,1,1,2) [2024-12-22 18:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079357', 'tblTempUsageDetail_20' ) start [2024-12-22 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079357', 'tblTempUsageDetail_20' ) end [2024-12-22 18:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:33:22] Production.INFO: ==18254== Releasing lock... [2024-12-22 18:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:33:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:34:04 [end_date_ymd] => 2024-12-22 18:34:04 [RateCDR] => 1 ) [2024-12-22 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-22 15:34:04' and `end` < '2024-12-22 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-22 18:34:17] Production.INFO: count ==1443 [2024-12-22 18:34:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:34:04 - End Time 2024-12-22 18:34:04 [2024-12-22 18:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079362', 'tblTempUsageDetail_20' ) start [2024-12-22 18:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079362', 'tblTempUsageDetail_20' ) end [2024-12-22 18:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079362', 'tblTempVendorCDR_20' ) start [2024-12-22 18:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079362', 'tblTempVendorCDR_20' ) end [2024-12-22 18:34:17] Production.INFO: ProcessCDR(1,14079362,1,1,2) [2024-12-22 18:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079362', 'tblTempUsageDetail_20' ) start [2024-12-22 18:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079362', 'tblTempUsageDetail_20' ) end [2024-12-22 18:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:34:20] Production.INFO: ==18342== Releasing lock... [2024-12-22 18:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:34:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:35:05 [end_date_ymd] => 2024-12-22 18:35:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:35:05' and `end` < '2024-12-22 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-22 18:35:17] Production.INFO: count ==1439 [2024-12-22 18:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:35:05 - End Time 2024-12-22 18:35:05 [2024-12-22 18:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079367', 'tblTempUsageDetail_20' ) start [2024-12-22 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079367', 'tblTempUsageDetail_20' ) end [2024-12-22 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079367', 'tblTempVendorCDR_20' ) start [2024-12-22 18:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079367', 'tblTempVendorCDR_20' ) end [2024-12-22 18:35:17] Production.INFO: ProcessCDR(1,14079367,1,1,2) [2024-12-22 18:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079367', 'tblTempUsageDetail_20' ) start [2024-12-22 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079367', 'tblTempUsageDetail_20' ) end [2024-12-22 18:35:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:35:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:35:22] Production.INFO: ==18432== Releasing lock... [2024-12-22 18:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:35:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:36:04 [end_date_ymd] => 2024-12-22 18:36:04 [RateCDR] => 1 ) [2024-12-22 18:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:36:04' and `end` < '2024-12-22 18:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:36:16] Production.INFO: count ==1439 [2024-12-22 18:36:16] Production.ERROR: pbx CDR StartTime 2024-12-22 15:36:04 - End Time 2024-12-22 18:36:04 [2024-12-22 18:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079372', 'tblTempUsageDetail_20' ) start [2024-12-22 18:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079372', 'tblTempUsageDetail_20' ) end [2024-12-22 18:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079372', 'tblTempVendorCDR_20' ) start [2024-12-22 18:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079372', 'tblTempVendorCDR_20' ) end [2024-12-22 18:36:17] Production.INFO: ProcessCDR(1,14079372,1,1,2) [2024-12-22 18:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079372', 'tblTempUsageDetail_20' ) start [2024-12-22 18:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079372', 'tblTempUsageDetail_20' ) end [2024-12-22 18:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:36:21] Production.INFO: ==18524== Releasing lock... [2024-12-22 18:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:36:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:37:05 [end_date_ymd] => 2024-12-22 18:37:05 [RateCDR] => 1 ) [2024-12-22 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:37:05' and `end` < '2024-12-22 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:37:17] Production.INFO: count ==1439 [2024-12-22 18:37:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:37:05 - End Time 2024-12-22 18:37:05 [2024-12-22 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079377', 'tblTempUsageDetail_20' ) start [2024-12-22 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079377', 'tblTempUsageDetail_20' ) end [2024-12-22 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079377', 'tblTempVendorCDR_20' ) start [2024-12-22 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079377', 'tblTempVendorCDR_20' ) end [2024-12-22 18:37:18] Production.INFO: ProcessCDR(1,14079377,1,1,2) [2024-12-22 18:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079377', 'tblTempUsageDetail_20' ) start [2024-12-22 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079377', 'tblTempUsageDetail_20' ) end [2024-12-22 18:37:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:37:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:37:22] Production.INFO: ==18615== Releasing lock... [2024-12-22 18:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:37:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:38:05 [end_date_ymd] => 2024-12-22 18:38:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:38:05' and `end` < '2024-12-22 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-22 18:38:18] Production.INFO: count ==1439 [2024-12-22 18:38:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:38:05 - End Time 2024-12-22 18:38:05 [2024-12-22 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079382', 'tblTempUsageDetail_20' ) start [2024-12-22 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079382', 'tblTempUsageDetail_20' ) end [2024-12-22 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079382', 'tblTempVendorCDR_20' ) start [2024-12-22 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079382', 'tblTempVendorCDR_20' ) end [2024-12-22 18:38:18] Production.INFO: ProcessCDR(1,14079382,1,1,2) [2024-12-22 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079382', 'tblTempUsageDetail_20' ) start [2024-12-22 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079382', 'tblTempUsageDetail_20' ) end [2024-12-22 18:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:38:22] Production.INFO: ==18744== Releasing lock... [2024-12-22 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:38:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:39:05 [end_date_ymd] => 2024-12-22 18:39:05 [RateCDR] => 1 ) [2024-12-22 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:39:05' and `end` < '2024-12-22 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:39:17] Production.INFO: count ==1439 [2024-12-22 18:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:39:05 - End Time 2024-12-22 18:39:05 [2024-12-22 18:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079387', 'tblTempUsageDetail_20' ) start [2024-12-22 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079387', 'tblTempUsageDetail_20' ) end [2024-12-22 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079387', 'tblTempVendorCDR_20' ) start [2024-12-22 18:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079387', 'tblTempVendorCDR_20' ) end [2024-12-22 18:39:17] Production.INFO: ProcessCDR(1,14079387,1,1,2) [2024-12-22 18:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079387', 'tblTempUsageDetail_20' ) start [2024-12-22 18:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079387', 'tblTempUsageDetail_20' ) end [2024-12-22 18:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:39:21] Production.INFO: ==18834== Releasing lock... [2024-12-22 18:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:39:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:40:06 [end_date_ymd] => 2024-12-22 18:40:06 [RateCDR] => 1 ) [2024-12-22 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-22 15:40:06' and `end` < '2024-12-22 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-22 18:40:18] Production.INFO: count ==1439 [2024-12-22 18:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:40:06 - End Time 2024-12-22 18:40:06 [2024-12-22 18:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079393', 'tblTempUsageDetail_20' ) start [2024-12-22 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079393', 'tblTempUsageDetail_20' ) end [2024-12-22 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079393', 'tblTempVendorCDR_20' ) start [2024-12-22 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079393', 'tblTempVendorCDR_20' ) end [2024-12-22 18:40:18] Production.INFO: ProcessCDR(1,14079393,1,1,2) [2024-12-22 18:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079393', 'tblTempUsageDetail_20' ) start [2024-12-22 18:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079393', 'tblTempUsageDetail_20' ) end [2024-12-22 18:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:40:21] Production.INFO: ==18915== Releasing lock... [2024-12-22 18:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:40:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:41:05 [end_date_ymd] => 2024-12-22 18:41:05 [RateCDR] => 1 ) [2024-12-22 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:41:05' and `end` < '2024-12-22 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:41:17] Production.INFO: count ==1446 [2024-12-22 18:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:41:05 - End Time 2024-12-22 18:41:05 [2024-12-22 18:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079398', 'tblTempUsageDetail_20' ) start [2024-12-22 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079398', 'tblTempUsageDetail_20' ) end [2024-12-22 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079398', 'tblTempVendorCDR_20' ) start [2024-12-22 18:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079398', 'tblTempVendorCDR_20' ) end [2024-12-22 18:41:17] Production.INFO: ProcessCDR(1,14079398,1,1,2) [2024-12-22 18:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079398', 'tblTempUsageDetail_20' ) start [2024-12-22 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079398', 'tblTempUsageDetail_20' ) end [2024-12-22 18:41:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:41:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:41:22] Production.INFO: ==19010== Releasing lock... [2024-12-22 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:41:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:42:05 [end_date_ymd] => 2024-12-22 18:42:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:42:05' and `end` < '2024-12-22 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-22 18:42:17] Production.INFO: count ==1449 [2024-12-22 18:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:42:05 - End Time 2024-12-22 18:42:05 [2024-12-22 18:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079403', 'tblTempUsageDetail_20' ) start [2024-12-22 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079403', 'tblTempUsageDetail_20' ) end [2024-12-22 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079403', 'tblTempVendorCDR_20' ) start [2024-12-22 18:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079403', 'tblTempVendorCDR_20' ) end [2024-12-22 18:42:17] Production.INFO: ProcessCDR(1,14079403,1,1,2) [2024-12-22 18:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079403', 'tblTempUsageDetail_20' ) start [2024-12-22 18:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079403', 'tblTempUsageDetail_20' ) end [2024-12-22 18:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:42:20] Production.INFO: ==19095== Releasing lock... [2024-12-22 18:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:42:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:43:04 [end_date_ymd] => 2024-12-22 18:43:04 [RateCDR] => 1 ) [2024-12-22 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-22 15:43:04' and `end` < '2024-12-22 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-22 18:43:17] Production.INFO: count ==1452 [2024-12-22 18:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:43:04 - End Time 2024-12-22 18:43:04 [2024-12-22 18:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079408', 'tblTempUsageDetail_20' ) start [2024-12-22 18:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079408', 'tblTempUsageDetail_20' ) end [2024-12-22 18:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079408', 'tblTempVendorCDR_20' ) start [2024-12-22 18:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079408', 'tblTempVendorCDR_20' ) end [2024-12-22 18:43:17] Production.INFO: ProcessCDR(1,14079408,1,1,2) [2024-12-22 18:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079408', 'tblTempUsageDetail_20' ) start [2024-12-22 18:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079408', 'tblTempUsageDetail_20' ) end [2024-12-22 18:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:43:20] Production.INFO: ==19180== Releasing lock... [2024-12-22 18:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:43:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:44:05 [end_date_ymd] => 2024-12-22 18:44:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:44:05' and `end` < '2024-12-22 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-22 18:44:17] Production.INFO: count ==1453 [2024-12-22 18:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:44:05 - End Time 2024-12-22 18:44:05 [2024-12-22 18:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079413', 'tblTempUsageDetail_20' ) start [2024-12-22 18:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079413', 'tblTempUsageDetail_20' ) end [2024-12-22 18:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079413', 'tblTempVendorCDR_20' ) start [2024-12-22 18:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079413', 'tblTempVendorCDR_20' ) end [2024-12-22 18:44:17] Production.INFO: ProcessCDR(1,14079413,1,1,2) [2024-12-22 18:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079413', 'tblTempUsageDetail_20' ) start [2024-12-22 18:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079413', 'tblTempUsageDetail_20' ) end [2024-12-22 18:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:44:20] Production.INFO: ==19274== Releasing lock... [2024-12-22 18:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:44:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:45:05 [end_date_ymd] => 2024-12-22 18:45:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:45:05' and `end` < '2024-12-22 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-22 18:45:17] Production.INFO: count ==1459 [2024-12-22 18:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:45:05 - End Time 2024-12-22 18:45:05 [2024-12-22 18:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079418', 'tblTempUsageDetail_20' ) start [2024-12-22 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079418', 'tblTempUsageDetail_20' ) end [2024-12-22 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079418', 'tblTempVendorCDR_20' ) start [2024-12-22 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079418', 'tblTempVendorCDR_20' ) end [2024-12-22 18:45:18] Production.INFO: ProcessCDR(1,14079418,1,1,2) [2024-12-22 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079418', 'tblTempUsageDetail_20' ) start [2024-12-22 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079418', 'tblTempUsageDetail_20' ) end [2024-12-22 18:45:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:45:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:45:22] Production.INFO: ==19361== Releasing lock... [2024-12-22 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:45:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:46:05 [end_date_ymd] => 2024-12-22 18:46:05 [RateCDR] => 1 ) [2024-12-22 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:46:05' and `end` < '2024-12-22 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:46:17] Production.INFO: count ==1458 [2024-12-22 18:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:46:05 - End Time 2024-12-22 18:46:05 [2024-12-22 18:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079423', 'tblTempUsageDetail_20' ) start [2024-12-22 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079423', 'tblTempUsageDetail_20' ) end [2024-12-22 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079423', 'tblTempVendorCDR_20' ) start [2024-12-22 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079423', 'tblTempVendorCDR_20' ) end [2024-12-22 18:46:17] Production.INFO: ProcessCDR(1,14079423,1,1,2) [2024-12-22 18:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079423', 'tblTempUsageDetail_20' ) start [2024-12-22 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079423', 'tblTempUsageDetail_20' ) end [2024-12-22 18:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:46:21] Production.INFO: ==19450== Releasing lock... [2024-12-22 18:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:46:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:47:05 [end_date_ymd] => 2024-12-22 18:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:47:05' and `end` < '2024-12-22 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-22 18:47:17] Production.INFO: count ==1459 [2024-12-22 18:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:47:05 - End Time 2024-12-22 18:47:05 [2024-12-22 18:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079428', 'tblTempUsageDetail_20' ) start [2024-12-22 18:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079428', 'tblTempUsageDetail_20' ) end [2024-12-22 18:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079428', 'tblTempVendorCDR_20' ) start [2024-12-22 18:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079428', 'tblTempVendorCDR_20' ) end [2024-12-22 18:47:17] Production.INFO: ProcessCDR(1,14079428,1,1,2) [2024-12-22 18:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079428', 'tblTempUsageDetail_20' ) start [2024-12-22 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079428', 'tblTempUsageDetail_20' ) end [2024-12-22 18:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:47:21] Production.INFO: ==19544== Releasing lock... [2024-12-22 18:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:47:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:48:04 [end_date_ymd] => 2024-12-22 18:48:04 [RateCDR] => 1 ) [2024-12-22 18:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:48:04' and `end` < '2024-12-22 18:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:48:17] Production.INFO: count ==1456 [2024-12-22 18:48:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:48:04 - End Time 2024-12-22 18:48:04 [2024-12-22 18:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079433', 'tblTempUsageDetail_20' ) start [2024-12-22 18:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079433', 'tblTempUsageDetail_20' ) end [2024-12-22 18:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079433', 'tblTempVendorCDR_20' ) start [2024-12-22 18:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079433', 'tblTempVendorCDR_20' ) end [2024-12-22 18:48:17] Production.INFO: ProcessCDR(1,14079433,1,1,2) [2024-12-22 18:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079433', 'tblTempUsageDetail_20' ) start [2024-12-22 18:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079433', 'tblTempUsageDetail_20' ) end [2024-12-22 18:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:48:21] Production.INFO: ==19616== Releasing lock... [2024-12-22 18:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:48:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:49:05 [end_date_ymd] => 2024-12-22 18:49:05 [RateCDR] => 1 ) [2024-12-22 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:49:05' and `end` < '2024-12-22 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:49:17] Production.INFO: count ==1450 [2024-12-22 18:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:49:05 - End Time 2024-12-22 18:49:05 [2024-12-22 18:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079438', 'tblTempUsageDetail_20' ) start [2024-12-22 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079438', 'tblTempUsageDetail_20' ) end [2024-12-22 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079438', 'tblTempVendorCDR_20' ) start [2024-12-22 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079438', 'tblTempVendorCDR_20' ) end [2024-12-22 18:49:17] Production.INFO: ProcessCDR(1,14079438,1,1,2) [2024-12-22 18:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079438', 'tblTempUsageDetail_20' ) start [2024-12-22 18:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079438', 'tblTempUsageDetail_20' ) end [2024-12-22 18:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:49:20] Production.INFO: ==19687== Releasing lock... [2024-12-22 18:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:49:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:50:05 [end_date_ymd] => 2024-12-22 18:50:05 [RateCDR] => 1 ) [2024-12-22 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:50:05' and `end` < '2024-12-22 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:50:17] Production.INFO: count ==1456 [2024-12-22 18:50:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:50:05 - End Time 2024-12-22 18:50:05 [2024-12-22 18:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079444', 'tblTempUsageDetail_20' ) start [2024-12-22 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079444', 'tblTempUsageDetail_20' ) end [2024-12-22 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079444', 'tblTempVendorCDR_20' ) start [2024-12-22 18:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079444', 'tblTempVendorCDR_20' ) end [2024-12-22 18:50:18] Production.INFO: ProcessCDR(1,14079444,1,1,2) [2024-12-22 18:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079444', 'tblTempUsageDetail_20' ) start [2024-12-22 18:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079444', 'tblTempUsageDetail_20' ) end [2024-12-22 18:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:50:21] Production.INFO: ==19762== Releasing lock... [2024-12-22 18:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:50:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:51:05 [end_date_ymd] => 2024-12-22 18:51:05 [RateCDR] => 1 ) [2024-12-22 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:51:05' and `end` < '2024-12-22 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:51:17] Production.INFO: count ==1411 [2024-12-22 18:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:51:05 - End Time 2024-12-22 18:51:05 [2024-12-22 18:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079449', 'tblTempUsageDetail_20' ) start [2024-12-22 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079449', 'tblTempUsageDetail_20' ) end [2024-12-22 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079449', 'tblTempVendorCDR_20' ) start [2024-12-22 18:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079449', 'tblTempVendorCDR_20' ) end [2024-12-22 18:51:17] Production.INFO: ProcessCDR(1,14079449,1,1,2) [2024-12-22 18:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079449', 'tblTempUsageDetail_20' ) start [2024-12-22 18:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079449', 'tblTempUsageDetail_20' ) end [2024-12-22 18:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:51:20] Production.INFO: ==19835== Releasing lock... [2024-12-22 18:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:51:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:52:05 [end_date_ymd] => 2024-12-22 18:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:52:05' and `end` < '2024-12-22 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-22 18:52:17] Production.INFO: count ==1411 [2024-12-22 18:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:52:05 - End Time 2024-12-22 18:52:05 [2024-12-22 18:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079454', 'tblTempUsageDetail_20' ) start [2024-12-22 18:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079454', 'tblTempUsageDetail_20' ) end [2024-12-22 18:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079454', 'tblTempVendorCDR_20' ) start [2024-12-22 18:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079454', 'tblTempVendorCDR_20' ) end [2024-12-22 18:52:17] Production.INFO: ProcessCDR(1,14079454,1,1,2) [2024-12-22 18:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079454', 'tblTempUsageDetail_20' ) start [2024-12-22 18:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079454', 'tblTempUsageDetail_20' ) end [2024-12-22 18:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:52:21] Production.INFO: ==19915== Releasing lock... [2024-12-22 18:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:52:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:53:05 [end_date_ymd] => 2024-12-22 18:53:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:53:05' and `end` < '2024-12-22 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-22 18:53:18] Production.INFO: count ==1411 [2024-12-22 18:53:18] Production.ERROR: pbx CDR StartTime 2024-12-22 15:53:05 - End Time 2024-12-22 18:53:05 [2024-12-22 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079459', 'tblTempUsageDetail_20' ) start [2024-12-22 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079459', 'tblTempUsageDetail_20' ) end [2024-12-22 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079459', 'tblTempVendorCDR_20' ) start [2024-12-22 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079459', 'tblTempVendorCDR_20' ) end [2024-12-22 18:53:18] Production.INFO: ProcessCDR(1,14079459,1,1,2) [2024-12-22 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079459', 'tblTempUsageDetail_20' ) start [2024-12-22 18:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079459', 'tblTempUsageDetail_20' ) end [2024-12-22 18:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:53:21] Production.INFO: ==19986== Releasing lock... [2024-12-22 18:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:53:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:54:05 [end_date_ymd] => 2024-12-22 18:54:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:54:05' and `end` < '2024-12-22 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-22 18:54:17] Production.INFO: count ==1400 [2024-12-22 18:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:54:05 - End Time 2024-12-22 18:54:05 [2024-12-22 18:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079464', 'tblTempUsageDetail_20' ) start [2024-12-22 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079464', 'tblTempUsageDetail_20' ) end [2024-12-22 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079464', 'tblTempVendorCDR_20' ) start [2024-12-22 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079464', 'tblTempVendorCDR_20' ) end [2024-12-22 18:54:17] Production.INFO: ProcessCDR(1,14079464,1,1,2) [2024-12-22 18:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079464', 'tblTempUsageDetail_20' ) start [2024-12-22 18:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079464', 'tblTempUsageDetail_20' ) end [2024-12-22 18:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:54:20] Production.INFO: ==20098== Releasing lock... [2024-12-22 18:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:54:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 18:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:55:04 [end_date_ymd] => 2024-12-22 18:55:04 [RateCDR] => 1 ) [2024-12-22 18: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-22 15:55:04' and `end` < '2024-12-22 18:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:55:17] Production.INFO: count ==1409 [2024-12-22 18:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:55:04 - End Time 2024-12-22 18:55:04 [2024-12-22 18:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079469', 'tblTempUsageDetail_20' ) start [2024-12-22 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079469', 'tblTempUsageDetail_20' ) end [2024-12-22 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079469', 'tblTempVendorCDR_20' ) start [2024-12-22 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079469', 'tblTempVendorCDR_20' ) end [2024-12-22 18:55:17] Production.INFO: ProcessCDR(1,14079469,1,1,2) [2024-12-22 18:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079469', 'tblTempUsageDetail_20' ) start [2024-12-22 18:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079469', 'tblTempUsageDetail_20' ) end [2024-12-22 18:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:55:20] Production.INFO: ==20168== Releasing lock... [2024-12-22 18:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:55:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:56:05 [end_date_ymd] => 2024-12-22 18:56:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:56:05' and `end` < '2024-12-22 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-22 18:56:17] Production.INFO: count ==1413 [2024-12-22 18:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:56:05 - End Time 2024-12-22 18:56:05 [2024-12-22 18:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079474', 'tblTempUsageDetail_20' ) start [2024-12-22 18:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079474', 'tblTempUsageDetail_20' ) end [2024-12-22 18:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079474', 'tblTempVendorCDR_20' ) start [2024-12-22 18:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079474', 'tblTempVendorCDR_20' ) end [2024-12-22 18:56:17] Production.INFO: ProcessCDR(1,14079474,1,1,2) [2024-12-22 18:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079474', 'tblTempUsageDetail_20' ) start [2024-12-22 18:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079474', 'tblTempUsageDetail_20' ) end [2024-12-22 18:56:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:56:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:56:22] Production.INFO: ==20240== Releasing lock... [2024-12-22 18:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:56:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 18:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:57:04 [end_date_ymd] => 2024-12-22 18:57:04 [RateCDR] => 1 ) [2024-12-22 18: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-22 15:57:04' and `end` < '2024-12-22 18: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-22 18:57:16] Production.INFO: count ==1418 [2024-12-22 18:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:57:04 - End Time 2024-12-22 18:57:04 [2024-12-22 18:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079479', 'tblTempUsageDetail_20' ) start [2024-12-22 18:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079479', 'tblTempUsageDetail_20' ) end [2024-12-22 18:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079479', 'tblTempVendorCDR_20' ) start [2024-12-22 18:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079479', 'tblTempVendorCDR_20' ) end [2024-12-22 18:57:17] Production.INFO: ProcessCDR(1,14079479,1,1,2) [2024-12-22 18:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079479', 'tblTempUsageDetail_20' ) start [2024-12-22 18:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079479', 'tblTempUsageDetail_20' ) end [2024-12-22 18:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:57:20] Production.INFO: ==20311== Releasing lock... [2024-12-22 18:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:57:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:58:05 [end_date_ymd] => 2024-12-22 18:58:05 [RateCDR] => 1 ) [2024-12-22 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 15:58:05' and `end` < '2024-12-22 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 18:58:17] Production.INFO: count ==1423 [2024-12-22 18:58:17] Production.ERROR: pbx CDR StartTime 2024-12-22 15:58:05 - End Time 2024-12-22 18:58:05 [2024-12-22 18:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079484', 'tblTempUsageDetail_20' ) start [2024-12-22 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079484', 'tblTempUsageDetail_20' ) end [2024-12-22 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079484', 'tblTempVendorCDR_20' ) start [2024-12-22 18:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079484', 'tblTempVendorCDR_20' ) end [2024-12-22 18:58:17] Production.INFO: ProcessCDR(1,14079484,1,1,2) [2024-12-22 18:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079484', 'tblTempUsageDetail_20' ) start [2024-12-22 18:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079484', 'tblTempUsageDetail_20' ) end [2024-12-22 18:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:58:20] Production.INFO: ==20383== Releasing lock... [2024-12-22 18:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:58:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 15:59:05 [end_date_ymd] => 2024-12-22 18:59:05 [RateCDR] => 1 ) [2024-12-22 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-22 15:59:05' and `end` < '2024-12-22 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-22 18:59:19] Production.INFO: count ==1407 [2024-12-22 18:59:19] Production.ERROR: pbx CDR StartTime 2024-12-22 15:59:05 - End Time 2024-12-22 18:59:05 [2024-12-22 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079489', 'tblTempUsageDetail_20' ) start [2024-12-22 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079489', 'tblTempUsageDetail_20' ) end [2024-12-22 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079489', 'tblTempVendorCDR_20' ) start [2024-12-22 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079489', 'tblTempVendorCDR_20' ) end [2024-12-22 18:59:19] Production.INFO: ProcessCDR(1,14079489,1,1,2) [2024-12-22 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079489', 'tblTempUsageDetail_20' ) start [2024-12-22 18:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079489', 'tblTempUsageDetail_20' ) end [2024-12-22 18:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 18:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 18:59:22] Production.INFO: ==20456== Releasing lock... [2024-12-22 18:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 18:59:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:00:05 [end_date_ymd] => 2024-12-22 19:00:05 [RateCDR] => 1 ) [2024-12-22 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:00:05' and `end` < '2024-12-22 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:00:17] Production.INFO: count ==1409 [2024-12-22 19:00:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:00:05 - End Time 2024-12-22 19:00:05 [2024-12-22 19:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079495', 'tblTempUsageDetail_20' ) start [2024-12-22 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079495', 'tblTempUsageDetail_20' ) end [2024-12-22 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079495', 'tblTempVendorCDR_20' ) start [2024-12-22 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079495', 'tblTempVendorCDR_20' ) end [2024-12-22 19:00:18] Production.INFO: ProcessCDR(1,14079495,1,1,2) [2024-12-22 19:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079495', 'tblTempUsageDetail_20' ) start [2024-12-22 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079495', 'tblTempUsageDetail_20' ) end [2024-12-22 19:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:00:22] Production.INFO: ==20528== Releasing lock... [2024-12-22 19:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:00:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:01:05 [end_date_ymd] => 2024-12-22 19:01:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:01:05' and `end` < '2024-12-22 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-22 19:01:17] Production.INFO: count ==1395 [2024-12-22 19:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:01:05 - End Time 2024-12-22 19:01:05 [2024-12-22 19:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079500', 'tblTempUsageDetail_20' ) start [2024-12-22 19:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079500', 'tblTempUsageDetail_20' ) end [2024-12-22 19:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079500', 'tblTempVendorCDR_20' ) start [2024-12-22 19:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079500', 'tblTempVendorCDR_20' ) end [2024-12-22 19:01:17] Production.INFO: ProcessCDR(1,14079500,1,1,2) [2024-12-22 19:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079500', 'tblTempUsageDetail_20' ) start [2024-12-22 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079500', 'tblTempUsageDetail_20' ) end [2024-12-22 19:01:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:01:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:01:21] Production.INFO: ==20693== Releasing lock... [2024-12-22 19:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:01:21] Production.INFO: 38 MB #Memory Used# [2024-12-22 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:02:05 [end_date_ymd] => 2024-12-22 19:02:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:02:05' and `end` < '2024-12-22 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-22 19:02:17] Production.INFO: count ==1386 [2024-12-22 19:02:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:02:05 - End Time 2024-12-22 19:02:05 [2024-12-22 19:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079505', 'tblTempUsageDetail_20' ) start [2024-12-22 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079505', 'tblTempUsageDetail_20' ) end [2024-12-22 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079505', 'tblTempVendorCDR_20' ) start [2024-12-22 19:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079505', 'tblTempVendorCDR_20' ) end [2024-12-22 19:02:17] Production.INFO: ProcessCDR(1,14079505,1,1,2) [2024-12-22 19:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079505', 'tblTempUsageDetail_20' ) start [2024-12-22 19:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079505', 'tblTempUsageDetail_20' ) end [2024-12-22 19:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:02:20] Production.INFO: ==20766== Releasing lock... [2024-12-22 19:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:02:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:03:05 [end_date_ymd] => 2024-12-22 19:03:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:03:05' and `end` < '2024-12-22 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-22 19:03:17] Production.INFO: count ==1379 [2024-12-22 19:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:03:05 - End Time 2024-12-22 19:03:05 [2024-12-22 19:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079510', 'tblTempUsageDetail_20' ) start [2024-12-22 19:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079510', 'tblTempUsageDetail_20' ) end [2024-12-22 19:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079510', 'tblTempVendorCDR_20' ) start [2024-12-22 19:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079510', 'tblTempVendorCDR_20' ) end [2024-12-22 19:03:17] Production.INFO: ProcessCDR(1,14079510,1,1,2) [2024-12-22 19:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079510', 'tblTempUsageDetail_20' ) start [2024-12-22 19:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079510', 'tblTempUsageDetail_20' ) end [2024-12-22 19:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:03:20] Production.INFO: ==20842== Releasing lock... [2024-12-22 19:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:03:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:04:04 [end_date_ymd] => 2024-12-22 19:04:04 [RateCDR] => 1 ) [2024-12-22 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-22 16:04:04' and `end` < '2024-12-22 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-22 19:04:17] Production.INFO: count ==1386 [2024-12-22 19:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:04:04 - End Time 2024-12-22 19:04:04 [2024-12-22 19:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079515', 'tblTempUsageDetail_20' ) start [2024-12-22 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079515', 'tblTempUsageDetail_20' ) end [2024-12-22 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079515', 'tblTempVendorCDR_20' ) start [2024-12-22 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079515', 'tblTempVendorCDR_20' ) end [2024-12-22 19:04:17] Production.INFO: ProcessCDR(1,14079515,1,1,2) [2024-12-22 19:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079515', 'tblTempUsageDetail_20' ) start [2024-12-22 19:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079515', 'tblTempUsageDetail_20' ) end [2024-12-22 19:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:04:20] Production.INFO: ==20915== Releasing lock... [2024-12-22 19:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:04:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:05:04 [end_date_ymd] => 2024-12-22 19:05:04 [RateCDR] => 1 ) [2024-12-22 19:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:05:04' and `end` < '2024-12-22 19:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:05:17] Production.INFO: count ==1388 [2024-12-22 19:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:05:04 - End Time 2024-12-22 19:05:04 [2024-12-22 19:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079520', 'tblTempUsageDetail_20' ) start [2024-12-22 19:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079520', 'tblTempUsageDetail_20' ) end [2024-12-22 19:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079520', 'tblTempVendorCDR_20' ) start [2024-12-22 19:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079520', 'tblTempVendorCDR_20' ) end [2024-12-22 19:05:17] Production.INFO: ProcessCDR(1,14079520,1,1,2) [2024-12-22 19:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079520', 'tblTempUsageDetail_20' ) start [2024-12-22 19:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079520', 'tblTempUsageDetail_20' ) end [2024-12-22 19:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:05:20] Production.INFO: ==21068== Releasing lock... [2024-12-22 19:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:05:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 19:06:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:06:04 [end_date_ymd] => 2024-12-22 19:06:04 [RateCDR] => 1 ) [2024-12-22 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-22 16:06:04' and `end` < '2024-12-22 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-22 19:06:16] Production.INFO: count ==1389 [2024-12-22 19:06:16] Production.ERROR: pbx CDR StartTime 2024-12-22 16:06:04 - End Time 2024-12-22 19:06:04 [2024-12-22 19:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079525', 'tblTempUsageDetail_20' ) start [2024-12-22 19:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079525', 'tblTempUsageDetail_20' ) end [2024-12-22 19:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079525', 'tblTempVendorCDR_20' ) start [2024-12-22 19:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079525', 'tblTempVendorCDR_20' ) end [2024-12-22 19:06:16] Production.INFO: ProcessCDR(1,14079525,1,1,2) [2024-12-22 19:06:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079525', 'tblTempUsageDetail_20' ) start [2024-12-22 19:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079525', 'tblTempUsageDetail_20' ) end [2024-12-22 19:06:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:06:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:06:19] Production.INFO: ==21144== Releasing lock... [2024-12-22 19:06:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:06:19] Production.INFO: 38 MB #Memory Used# [2024-12-22 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:07:05 [end_date_ymd] => 2024-12-22 19:07:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:07:05' and `end` < '2024-12-22 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-22 19:07:17] Production.INFO: count ==1395 [2024-12-22 19:07:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:07:05 - End Time 2024-12-22 19:07:05 [2024-12-22 19:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079530', 'tblTempUsageDetail_20' ) start [2024-12-22 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079530', 'tblTempUsageDetail_20' ) end [2024-12-22 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079530', 'tblTempVendorCDR_20' ) start [2024-12-22 19:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079530', 'tblTempVendorCDR_20' ) end [2024-12-22 19:07:17] Production.INFO: ProcessCDR(1,14079530,1,1,2) [2024-12-22 19:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079530', 'tblTempUsageDetail_20' ) start [2024-12-22 19:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079530', 'tblTempUsageDetail_20' ) end [2024-12-22 19:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:07:20] Production.INFO: ==21217== Releasing lock... [2024-12-22 19:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:07:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:08:05 [end_date_ymd] => 2024-12-22 19:08:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:08:05' and `end` < '2024-12-22 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-22 19:08:17] Production.INFO: count ==1395 [2024-12-22 19:08:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:08:05 - End Time 2024-12-22 19:08:05 [2024-12-22 19:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079535', 'tblTempUsageDetail_20' ) start [2024-12-22 19:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079535', 'tblTempUsageDetail_20' ) end [2024-12-22 19:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079535', 'tblTempVendorCDR_20' ) start [2024-12-22 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079535', 'tblTempVendorCDR_20' ) end [2024-12-22 19:08:18] Production.INFO: ProcessCDR(1,14079535,1,1,2) [2024-12-22 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079535', 'tblTempUsageDetail_20' ) start [2024-12-22 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079535', 'tblTempUsageDetail_20' ) end [2024-12-22 19:08:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:08:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:08:21] Production.INFO: ==21374== Releasing lock... [2024-12-22 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:08:21] Production.INFO: 38 MB #Memory Used# [2024-12-22 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:09:04 [end_date_ymd] => 2024-12-22 19:09:04 [RateCDR] => 1 ) [2024-12-22 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-22 16:09:04' and `end` < '2024-12-22 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-22 19:09:17] Production.INFO: count ==1420 [2024-12-22 19:09:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:09:04 - End Time 2024-12-22 19:09:04 [2024-12-22 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079540', 'tblTempUsageDetail_20' ) start [2024-12-22 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079540', 'tblTempUsageDetail_20' ) end [2024-12-22 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079540', 'tblTempVendorCDR_20' ) start [2024-12-22 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079540', 'tblTempVendorCDR_20' ) end [2024-12-22 19:09:18] Production.INFO: ProcessCDR(1,14079540,1,1,2) [2024-12-22 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079540', 'tblTempUsageDetail_20' ) start [2024-12-22 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079540', 'tblTempUsageDetail_20' ) end [2024-12-22 19:09:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:09:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:09:22] Production.INFO: ==21444== Releasing lock... [2024-12-22 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:09:22] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:10:05 [end_date_ymd] => 2024-12-22 19:10:05 [RateCDR] => 1 ) [2024-12-22 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:10:05' and `end` < '2024-12-22 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:10:17] Production.INFO: count ==1419 [2024-12-22 19:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:10:05 - End Time 2024-12-22 19:10:05 [2024-12-22 19:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079546', 'tblTempUsageDetail_20' ) start [2024-12-22 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079546', 'tblTempUsageDetail_20' ) end [2024-12-22 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079546', 'tblTempVendorCDR_20' ) start [2024-12-22 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079546', 'tblTempVendorCDR_20' ) end [2024-12-22 19:10:18] Production.INFO: ProcessCDR(1,14079546,1,1,2) [2024-12-22 19:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079546', 'tblTempUsageDetail_20' ) start [2024-12-22 19:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079546', 'tblTempUsageDetail_20' ) end [2024-12-22 19:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:10:21] Production.INFO: ==21560== Releasing lock... [2024-12-22 19:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:10:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:11:04 [end_date_ymd] => 2024-12-22 19:11:04 [RateCDR] => 1 ) [2024-12-22 19: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-22 16:11:04' and `end` < '2024-12-22 19: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-22 19:11:17] Production.INFO: count ==1436 [2024-12-22 19:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:11:04 - End Time 2024-12-22 19:11:04 [2024-12-22 19:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079551', 'tblTempUsageDetail_20' ) start [2024-12-22 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079551', 'tblTempUsageDetail_20' ) end [2024-12-22 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079551', 'tblTempVendorCDR_20' ) start [2024-12-22 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079551', 'tblTempVendorCDR_20' ) end [2024-12-22 19:11:17] Production.INFO: ProcessCDR(1,14079551,1,1,2) [2024-12-22 19:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079551', 'tblTempUsageDetail_20' ) start [2024-12-22 19:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079551', 'tblTempUsageDetail_20' ) end [2024-12-22 19:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:11:20] Production.INFO: ==21636== Releasing lock... [2024-12-22 19:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:11:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:12:04 [end_date_ymd] => 2024-12-22 19:12:04 [RateCDR] => 1 ) [2024-12-22 19: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-22 16:12:04' and `end` < '2024-12-22 19: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-22 19:12:17] Production.INFO: count ==1440 [2024-12-22 19:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:12:04 - End Time 2024-12-22 19:12:04 [2024-12-22 19:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079556', 'tblTempUsageDetail_20' ) start [2024-12-22 19:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079556', 'tblTempUsageDetail_20' ) end [2024-12-22 19:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079556', 'tblTempVendorCDR_20' ) start [2024-12-22 19:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079556', 'tblTempVendorCDR_20' ) end [2024-12-22 19:12:17] Production.INFO: ProcessCDR(1,14079556,1,1,2) [2024-12-22 19:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079556', 'tblTempUsageDetail_20' ) start [2024-12-22 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079556', 'tblTempUsageDetail_20' ) end [2024-12-22 19:12:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:12:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:12:21] Production.INFO: ==21786== Releasing lock... [2024-12-22 19:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:12:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:13:05 [end_date_ymd] => 2024-12-22 19:13:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:13:05' and `end` < '2024-12-22 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-22 19:13:17] Production.INFO: count ==1440 [2024-12-22 19:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:13:05 - End Time 2024-12-22 19:13:05 [2024-12-22 19:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079561', 'tblTempUsageDetail_20' ) start [2024-12-22 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079561', 'tblTempUsageDetail_20' ) end [2024-12-22 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079561', 'tblTempVendorCDR_20' ) start [2024-12-22 19:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079561', 'tblTempVendorCDR_20' ) end [2024-12-22 19:13:17] Production.INFO: ProcessCDR(1,14079561,1,1,2) [2024-12-22 19:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079561', 'tblTempUsageDetail_20' ) start [2024-12-22 19:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079561', 'tblTempUsageDetail_20' ) end [2024-12-22 19:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:13:20] Production.INFO: ==21865== Releasing lock... [2024-12-22 19:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:13:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:14:04 [end_date_ymd] => 2024-12-22 19:14:04 [RateCDR] => 1 ) [2024-12-22 19: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-22 16:14:04' and `end` < '2024-12-22 19: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-22 19:14:17] Production.INFO: count ==1441 [2024-12-22 19:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:14:04 - End Time 2024-12-22 19:14:04 [2024-12-22 19:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079566', 'tblTempUsageDetail_20' ) start [2024-12-22 19:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079566', 'tblTempUsageDetail_20' ) end [2024-12-22 19:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079566', 'tblTempVendorCDR_20' ) start [2024-12-22 19:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079566', 'tblTempVendorCDR_20' ) end [2024-12-22 19:14:17] Production.INFO: ProcessCDR(1,14079566,1,1,2) [2024-12-22 19:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079566', 'tblTempUsageDetail_20' ) start [2024-12-22 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079566', 'tblTempUsageDetail_20' ) end [2024-12-22 19:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:14:21] Production.INFO: ==21937== Releasing lock... [2024-12-22 19:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:14:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:15:05 [end_date_ymd] => 2024-12-22 19:15:05 [RateCDR] => 1 ) [2024-12-22 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:15:05' and `end` < '2024-12-22 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:15:17] Production.INFO: count ==1439 [2024-12-22 19:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:15:05 - End Time 2024-12-22 19:15:05 [2024-12-22 19:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079571', 'tblTempUsageDetail_20' ) start [2024-12-22 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079571', 'tblTempUsageDetail_20' ) end [2024-12-22 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079571', 'tblTempVendorCDR_20' ) start [2024-12-22 19:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079571', 'tblTempVendorCDR_20' ) end [2024-12-22 19:15:17] Production.INFO: ProcessCDR(1,14079571,1,1,2) [2024-12-22 19:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079571', 'tblTempUsageDetail_20' ) start [2024-12-22 19:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079571', 'tblTempUsageDetail_20' ) end [2024-12-22 19:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:15:20] Production.INFO: ==22085== Releasing lock... [2024-12-22 19:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:15:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:16:05 [end_date_ymd] => 2024-12-22 19:16:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:16:05' and `end` < '2024-12-22 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-22 19:16:17] Production.INFO: count ==1439 [2024-12-22 19:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:16:05 - End Time 2024-12-22 19:16:05 [2024-12-22 19:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079576', 'tblTempUsageDetail_20' ) start [2024-12-22 19:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079576', 'tblTempUsageDetail_20' ) end [2024-12-22 19:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079576', 'tblTempVendorCDR_20' ) start [2024-12-22 19:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079576', 'tblTempVendorCDR_20' ) end [2024-12-22 19:16:17] Production.INFO: ProcessCDR(1,14079576,1,1,2) [2024-12-22 19:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079576', 'tblTempUsageDetail_20' ) start [2024-12-22 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079576', 'tblTempUsageDetail_20' ) end [2024-12-22 19:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:16:21] Production.INFO: ==22157== Releasing lock... [2024-12-22 19:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:16:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:17:05 [end_date_ymd] => 2024-12-22 19:17:05 [RateCDR] => 1 ) [2024-12-22 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:17:05' and `end` < '2024-12-22 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:17:17] Production.INFO: count ==1437 [2024-12-22 19:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:17:05 - End Time 2024-12-22 19:17:05 [2024-12-22 19:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079581', 'tblTempUsageDetail_20' ) start [2024-12-22 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079581', 'tblTempUsageDetail_20' ) end [2024-12-22 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079581', 'tblTempVendorCDR_20' ) start [2024-12-22 19:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079581', 'tblTempVendorCDR_20' ) end [2024-12-22 19:17:17] Production.INFO: ProcessCDR(1,14079581,1,1,2) [2024-12-22 19:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079581', 'tblTempUsageDetail_20' ) start [2024-12-22 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079581', 'tblTempUsageDetail_20' ) end [2024-12-22 19:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:17:21] Production.INFO: ==22232== Releasing lock... [2024-12-22 19:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:17:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:18:05 [end_date_ymd] => 2024-12-22 19:18:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:18:05' and `end` < '2024-12-22 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-22 19:18:17] Production.INFO: count ==1437 [2024-12-22 19:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:18:05 - End Time 2024-12-22 19:18:05 [2024-12-22 19:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079586', 'tblTempUsageDetail_20' ) start [2024-12-22 19:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079586', 'tblTempUsageDetail_20' ) end [2024-12-22 19:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079586', 'tblTempVendorCDR_20' ) start [2024-12-22 19:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079586', 'tblTempVendorCDR_20' ) end [2024-12-22 19:18:17] Production.INFO: ProcessCDR(1,14079586,1,1,2) [2024-12-22 19:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079586', 'tblTempUsageDetail_20' ) start [2024-12-22 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079586', 'tblTempUsageDetail_20' ) end [2024-12-22 19:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:18:21] Production.INFO: ==22307== Releasing lock... [2024-12-22 19:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:18:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:19:05 [end_date_ymd] => 2024-12-22 19:19:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:19:05' and `end` < '2024-12-22 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-22 19:19:17] Production.INFO: count ==1440 [2024-12-22 19:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:19:05 - End Time 2024-12-22 19:19:05 [2024-12-22 19:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079591', 'tblTempUsageDetail_20' ) start [2024-12-22 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079591', 'tblTempUsageDetail_20' ) end [2024-12-22 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079591', 'tblTempVendorCDR_20' ) start [2024-12-22 19:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079591', 'tblTempVendorCDR_20' ) end [2024-12-22 19:19:17] Production.INFO: ProcessCDR(1,14079591,1,1,2) [2024-12-22 19:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079591', 'tblTempUsageDetail_20' ) start [2024-12-22 19:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079591', 'tblTempUsageDetail_20' ) end [2024-12-22 19:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:19:20] Production.INFO: ==22380== Releasing lock... [2024-12-22 19:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:19:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:20:06 [end_date_ymd] => 2024-12-22 19:20:06 [RateCDR] => 1 ) [2024-12-22 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-22 16:20:06' and `end` < '2024-12-22 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-22 19:20:18] Production.INFO: count ==1437 [2024-12-22 19:20:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:20:06 - End Time 2024-12-22 19:20:06 [2024-12-22 19:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079596', 'tblTempUsageDetail_20' ) start [2024-12-22 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079596', 'tblTempUsageDetail_20' ) end [2024-12-22 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079596', 'tblTempVendorCDR_20' ) start [2024-12-22 19:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079596', 'tblTempVendorCDR_20' ) end [2024-12-22 19:20:18] Production.INFO: ProcessCDR(1,14079596,1,1,2) [2024-12-22 19:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079596', 'tblTempUsageDetail_20' ) start [2024-12-22 19:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079596', 'tblTempUsageDetail_20' ) end [2024-12-22 19:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:20:21] Production.INFO: ==22459== Releasing lock... [2024-12-22 19:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:20:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:21:04 [end_date_ymd] => 2024-12-22 19:21:04 [RateCDR] => 1 ) [2024-12-22 19: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-22 16:21:04' and `end` < '2024-12-22 19: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-22 19:21:17] Production.INFO: count ==1435 [2024-12-22 19:21:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:21:04 - End Time 2024-12-22 19:21:04 [2024-12-22 19:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079602', 'tblTempUsageDetail_20' ) start [2024-12-22 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079602', 'tblTempUsageDetail_20' ) end [2024-12-22 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079602', 'tblTempVendorCDR_20' ) start [2024-12-22 19:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079602', 'tblTempVendorCDR_20' ) end [2024-12-22 19:21:17] Production.INFO: ProcessCDR(1,14079602,1,1,2) [2024-12-22 19:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079602', 'tblTempUsageDetail_20' ) start [2024-12-22 19:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079602', 'tblTempUsageDetail_20' ) end [2024-12-22 19:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:21:21] Production.INFO: ==22535== Releasing lock... [2024-12-22 19:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:21:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:22:05 [end_date_ymd] => 2024-12-22 19:22:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:22:05' and `end` < '2024-12-22 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-22 19:22:17] Production.INFO: count ==1435 [2024-12-22 19:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:22:05 - End Time 2024-12-22 19:22:05 [2024-12-22 19:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079607', 'tblTempUsageDetail_20' ) start [2024-12-22 19:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079607', 'tblTempUsageDetail_20' ) end [2024-12-22 19:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079607', 'tblTempVendorCDR_20' ) start [2024-12-22 19:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079607', 'tblTempVendorCDR_20' ) end [2024-12-22 19:22:17] Production.INFO: ProcessCDR(1,14079607,1,1,2) [2024-12-22 19:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079607', 'tblTempUsageDetail_20' ) start [2024-12-22 19:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079607', 'tblTempUsageDetail_20' ) end [2024-12-22 19:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:22:20] Production.INFO: ==22608== Releasing lock... [2024-12-22 19:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:22:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:23:04 [end_date_ymd] => 2024-12-22 19:23:04 [RateCDR] => 1 ) [2024-12-22 19:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:23:04' and `end` < '2024-12-22 19:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:23:16] Production.INFO: count ==1438 [2024-12-22 19:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:23:04 - End Time 2024-12-22 19:23:04 [2024-12-22 19:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079612', 'tblTempUsageDetail_20' ) start [2024-12-22 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079612', 'tblTempUsageDetail_20' ) end [2024-12-22 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079612', 'tblTempVendorCDR_20' ) start [2024-12-22 19:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079612', 'tblTempVendorCDR_20' ) end [2024-12-22 19:23:17] Production.INFO: ProcessCDR(1,14079612,1,1,2) [2024-12-22 19:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079612', 'tblTempUsageDetail_20' ) start [2024-12-22 19:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079612', 'tblTempUsageDetail_20' ) end [2024-12-22 19:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:23:20] Production.INFO: ==22682== Releasing lock... [2024-12-22 19:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:23:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:24:05 [end_date_ymd] => 2024-12-22 19:24:05 [RateCDR] => 1 ) [2024-12-22 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:24:05' and `end` < '2024-12-22 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:24:17] Production.INFO: count ==1438 [2024-12-22 19:24:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:24:05 - End Time 2024-12-22 19:24:05 [2024-12-22 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079617', 'tblTempUsageDetail_20' ) start [2024-12-22 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079617', 'tblTempUsageDetail_20' ) end [2024-12-22 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079617', 'tblTempVendorCDR_20' ) start [2024-12-22 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079617', 'tblTempVendorCDR_20' ) end [2024-12-22 19:24:18] Production.INFO: ProcessCDR(1,14079617,1,1,2) [2024-12-22 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079617', 'tblTempUsageDetail_20' ) start [2024-12-22 19:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079617', 'tblTempUsageDetail_20' ) end [2024-12-22 19:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:24:21] Production.INFO: ==22754== Releasing lock... [2024-12-22 19:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:24:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:25:05 [end_date_ymd] => 2024-12-22 19:25:05 [RateCDR] => 1 ) [2024-12-22 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:25:05' and `end` < '2024-12-22 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:25:17] Production.INFO: count ==1435 [2024-12-22 19:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:25:05 - End Time 2024-12-22 19:25:05 [2024-12-22 19:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079622', 'tblTempUsageDetail_20' ) start [2024-12-22 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079622', 'tblTempUsageDetail_20' ) end [2024-12-22 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079622', 'tblTempVendorCDR_20' ) start [2024-12-22 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079622', 'tblTempVendorCDR_20' ) end [2024-12-22 19:25:17] Production.INFO: ProcessCDR(1,14079622,1,1,2) [2024-12-22 19:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079622', 'tblTempUsageDetail_20' ) start [2024-12-22 19:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079622', 'tblTempUsageDetail_20' ) end [2024-12-22 19:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:25:21] Production.INFO: ==22867== Releasing lock... [2024-12-22 19:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:25:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:26:04 [end_date_ymd] => 2024-12-22 19:26:04 [RateCDR] => 1 ) [2024-12-22 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-22 16:26:04' and `end` < '2024-12-22 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-22 19:26:16] Production.INFO: count ==1436 [2024-12-22 19:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:26:04 - End Time 2024-12-22 19:26:04 [2024-12-22 19:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079627', 'tblTempUsageDetail_20' ) start [2024-12-22 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079627', 'tblTempUsageDetail_20' ) end [2024-12-22 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079627', 'tblTempVendorCDR_20' ) start [2024-12-22 19:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079627', 'tblTempVendorCDR_20' ) end [2024-12-22 19:26:17] Production.INFO: ProcessCDR(1,14079627,1,1,2) [2024-12-22 19:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079627', 'tblTempUsageDetail_20' ) start [2024-12-22 19:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079627', 'tblTempUsageDetail_20' ) end [2024-12-22 19:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:26:21] Production.INFO: ==22936== Releasing lock... [2024-12-22 19:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:26:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:27:04 [end_date_ymd] => 2024-12-22 19:27:04 [RateCDR] => 1 ) [2024-12-22 19:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:27:04' and `end` < '2024-12-22 19:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:27:17] Production.INFO: count ==1434 [2024-12-22 19:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:27:04 - End Time 2024-12-22 19:27:04 [2024-12-22 19:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079632', 'tblTempUsageDetail_20' ) start [2024-12-22 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079632', 'tblTempUsageDetail_20' ) end [2024-12-22 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079632', 'tblTempVendorCDR_20' ) start [2024-12-22 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079632', 'tblTempVendorCDR_20' ) end [2024-12-22 19:27:18] Production.INFO: ProcessCDR(1,14079632,1,1,2) [2024-12-22 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079632', 'tblTempUsageDetail_20' ) start [2024-12-22 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079632', 'tblTempUsageDetail_20' ) end [2024-12-22 19:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:27:21] Production.INFO: ==23009== Releasing lock... [2024-12-22 19:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:27:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:28:04 [end_date_ymd] => 2024-12-22 19:28:04 [RateCDR] => 1 ) [2024-12-22 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-22 16:28:04' and `end` < '2024-12-22 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-22 19:28:16] Production.INFO: count ==1434 [2024-12-22 19:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:28:04 - End Time 2024-12-22 19:28:04 [2024-12-22 19:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079637', 'tblTempUsageDetail_20' ) start [2024-12-22 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079637', 'tblTempUsageDetail_20' ) end [2024-12-22 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079637', 'tblTempVendorCDR_20' ) start [2024-12-22 19:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079637', 'tblTempVendorCDR_20' ) end [2024-12-22 19:28:17] Production.INFO: ProcessCDR(1,14079637,1,1,2) [2024-12-22 19:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079637', 'tblTempUsageDetail_20' ) start [2024-12-22 19:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079637', 'tblTempUsageDetail_20' ) end [2024-12-22 19:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:28:20] Production.INFO: ==23083== Releasing lock... [2024-12-22 19:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:28:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:29:04 [end_date_ymd] => 2024-12-22 19:29:04 [RateCDR] => 1 ) [2024-12-22 19:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:29:04' and `end` < '2024-12-22 19:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:29:17] Production.INFO: count ==1435 [2024-12-22 19:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:29:04 - End Time 2024-12-22 19:29:04 [2024-12-22 19:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079642', 'tblTempUsageDetail_20' ) start [2024-12-22 19:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079642', 'tblTempUsageDetail_20' ) end [2024-12-22 19:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079642', 'tblTempVendorCDR_20' ) start [2024-12-22 19:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079642', 'tblTempVendorCDR_20' ) end [2024-12-22 19:29:17] Production.INFO: ProcessCDR(1,14079642,1,1,2) [2024-12-22 19:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079642', 'tblTempUsageDetail_20' ) start [2024-12-22 19:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079642', 'tblTempUsageDetail_20' ) end [2024-12-22 19:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:29:20] Production.INFO: ==23154== Releasing lock... [2024-12-22 19:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:29:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:30:06 [end_date_ymd] => 2024-12-22 19:30:06 [RateCDR] => 1 ) [2024-12-22 19:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:30:06' and `end` < '2024-12-22 19:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:30:18] Production.INFO: count ==1435 [2024-12-22 19:30:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:30:06 - End Time 2024-12-22 19:30:06 [2024-12-22 19:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079648', 'tblTempUsageDetail_20' ) start [2024-12-22 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079648', 'tblTempUsageDetail_20' ) end [2024-12-22 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079648', 'tblTempVendorCDR_20' ) start [2024-12-22 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079648', 'tblTempVendorCDR_20' ) end [2024-12-22 19:30:18] Production.INFO: ProcessCDR(1,14079648,1,1,2) [2024-12-22 19:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079648', 'tblTempUsageDetail_20' ) start [2024-12-22 19:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079648', 'tblTempUsageDetail_20' ) end [2024-12-22 19:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:30:21] Production.INFO: ==23232== Releasing lock... [2024-12-22 19:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:30:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:31:04 [end_date_ymd] => 2024-12-22 19:31:04 [RateCDR] => 1 ) [2024-12-22 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-22 16:31:04' and `end` < '2024-12-22 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-22 19:31:17] Production.INFO: count ==1454 [2024-12-22 19:31:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:31:04 - End Time 2024-12-22 19:31:04 [2024-12-22 19:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079653', 'tblTempUsageDetail_20' ) start [2024-12-22 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079653', 'tblTempUsageDetail_20' ) end [2024-12-22 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079653', 'tblTempVendorCDR_20' ) start [2024-12-22 19:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079653', 'tblTempVendorCDR_20' ) end [2024-12-22 19:31:17] Production.INFO: ProcessCDR(1,14079653,1,1,2) [2024-12-22 19:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079653', 'tblTempUsageDetail_20' ) start [2024-12-22 19:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079653', 'tblTempUsageDetail_20' ) end [2024-12-22 19:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:31:20] Production.INFO: ==23310== Releasing lock... [2024-12-22 19:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:31:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:32:05 [end_date_ymd] => 2024-12-22 19:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:32:05' and `end` < '2024-12-22 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-22 19:32:17] Production.INFO: count ==1453 [2024-12-22 19:32:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:32:05 - End Time 2024-12-22 19:32:05 [2024-12-22 19:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079658', 'tblTempUsageDetail_20' ) start [2024-12-22 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079658', 'tblTempUsageDetail_20' ) end [2024-12-22 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079658', 'tblTempVendorCDR_20' ) start [2024-12-22 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079658', 'tblTempVendorCDR_20' ) end [2024-12-22 19:32:17] Production.INFO: ProcessCDR(1,14079658,1,1,2) [2024-12-22 19:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079658', 'tblTempUsageDetail_20' ) start [2024-12-22 19:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079658', 'tblTempUsageDetail_20' ) end [2024-12-22 19:32:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:32:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:32:20] Production.INFO: ==23384== Releasing lock... [2024-12-22 19:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:32:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:33:04 [end_date_ymd] => 2024-12-22 19:33:04 [RateCDR] => 1 ) [2024-12-22 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-22 16:33:04' and `end` < '2024-12-22 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-22 19:33:17] Production.INFO: count ==1453 [2024-12-22 19:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:33:04 - End Time 2024-12-22 19:33:04 [2024-12-22 19:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079663', 'tblTempUsageDetail_20' ) start [2024-12-22 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079663', 'tblTempUsageDetail_20' ) end [2024-12-22 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079663', 'tblTempVendorCDR_20' ) start [2024-12-22 19:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079663', 'tblTempVendorCDR_20' ) end [2024-12-22 19:33:17] Production.INFO: ProcessCDR(1,14079663,1,1,2) [2024-12-22 19:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079663', 'tblTempUsageDetail_20' ) start [2024-12-22 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079663', 'tblTempUsageDetail_20' ) end [2024-12-22 19:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:33:21] Production.INFO: ==23460== Releasing lock... [2024-12-22 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:33:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:34:05 [end_date_ymd] => 2024-12-22 19:34:05 [RateCDR] => 1 ) [2024-12-22 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:34:05' and `end` < '2024-12-22 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:34:17] Production.INFO: count ==1455 [2024-12-22 19:34:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:34:05 - End Time 2024-12-22 19:34:05 [2024-12-22 19:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079668', 'tblTempUsageDetail_20' ) start [2024-12-22 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079668', 'tblTempUsageDetail_20' ) end [2024-12-22 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079668', 'tblTempVendorCDR_20' ) start [2024-12-22 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079668', 'tblTempVendorCDR_20' ) end [2024-12-22 19:34:17] Production.INFO: ProcessCDR(1,14079668,1,1,2) [2024-12-22 19:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079668', 'tblTempUsageDetail_20' ) start [2024-12-22 19:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079668', 'tblTempUsageDetail_20' ) end [2024-12-22 19:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:34:20] Production.INFO: ==23533== Releasing lock... [2024-12-22 19:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:34:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:35:05 [end_date_ymd] => 2024-12-22 19:35:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:35:05' and `end` < '2024-12-22 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-22 19:35:17] Production.INFO: count ==1456 [2024-12-22 19:35:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:35:05 - End Time 2024-12-22 19:35:05 [2024-12-22 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079673', 'tblTempUsageDetail_20' ) start [2024-12-22 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079673', 'tblTempUsageDetail_20' ) end [2024-12-22 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079673', 'tblTempVendorCDR_20' ) start [2024-12-22 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079673', 'tblTempVendorCDR_20' ) end [2024-12-22 19:35:18] Production.INFO: ProcessCDR(1,14079673,1,1,2) [2024-12-22 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079673', 'tblTempUsageDetail_20' ) start [2024-12-22 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079673', 'tblTempUsageDetail_20' ) end [2024-12-22 19:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:35:21] Production.INFO: ==23610== Releasing lock... [2024-12-22 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:35:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:36:04 [end_date_ymd] => 2024-12-22 19:36:04 [RateCDR] => 1 ) [2024-12-22 19: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-22 16:36:04' and `end` < '2024-12-22 19: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-22 19:36:19] Production.INFO: count ==1457 [2024-12-22 19:36:19] Production.ERROR: pbx CDR StartTime 2024-12-22 16:36:04 - End Time 2024-12-22 19:36:04 [2024-12-22 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079678', 'tblTempUsageDetail_20' ) start [2024-12-22 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079678', 'tblTempUsageDetail_20' ) end [2024-12-22 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079678', 'tblTempVendorCDR_20' ) start [2024-12-22 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079678', 'tblTempVendorCDR_20' ) end [2024-12-22 19:36:19] Production.INFO: ProcessCDR(1,14079678,1,1,2) [2024-12-22 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079678', 'tblTempUsageDetail_20' ) start [2024-12-22 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079678', 'tblTempUsageDetail_20' ) end [2024-12-22 19:36:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:36:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:36:23] Production.INFO: ==23684== Releasing lock... [2024-12-22 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:36:23] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:37:05 [end_date_ymd] => 2024-12-22 19:37:05 [RateCDR] => 1 ) [2024-12-22 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:37:05' and `end` < '2024-12-22 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:37:17] Production.INFO: count ==1458 [2024-12-22 19:37:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:37:05 - End Time 2024-12-22 19:37:05 [2024-12-22 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079683', 'tblTempUsageDetail_20' ) start [2024-12-22 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079683', 'tblTempUsageDetail_20' ) end [2024-12-22 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079683', 'tblTempVendorCDR_20' ) start [2024-12-22 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079683', 'tblTempVendorCDR_20' ) end [2024-12-22 19:37:18] Production.INFO: ProcessCDR(1,14079683,1,1,2) [2024-12-22 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079683', 'tblTempUsageDetail_20' ) start [2024-12-22 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079683', 'tblTempUsageDetail_20' ) end [2024-12-22 19:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:37:21] Production.INFO: ==23758== Releasing lock... [2024-12-22 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:37:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:38:04 [end_date_ymd] => 2024-12-22 19:38:04 [RateCDR] => 1 ) [2024-12-22 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-22 16:38:04' and `end` < '2024-12-22 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-22 19:38:19] Production.INFO: count ==1464 [2024-12-22 19:38:19] Production.ERROR: pbx CDR StartTime 2024-12-22 16:38:04 - End Time 2024-12-22 19:38:04 [2024-12-22 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079688', 'tblTempUsageDetail_20' ) start [2024-12-22 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079688', 'tblTempUsageDetail_20' ) end [2024-12-22 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079688', 'tblTempVendorCDR_20' ) start [2024-12-22 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079688', 'tblTempVendorCDR_20' ) end [2024-12-22 19:38:19] Production.INFO: ProcessCDR(1,14079688,1,1,2) [2024-12-22 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079688', 'tblTempUsageDetail_20' ) start [2024-12-22 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079688', 'tblTempUsageDetail_20' ) end [2024-12-22 19:38:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:38:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:38:22] Production.INFO: ==23829== Releasing lock... [2024-12-22 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:38:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:39:04 [end_date_ymd] => 2024-12-22 19:39:04 [RateCDR] => 1 ) [2024-12-22 19:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:39:04' and `end` < '2024-12-22 19:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:39:17] Production.INFO: count ==1461 [2024-12-22 19:39:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:39:04 - End Time 2024-12-22 19:39:04 [2024-12-22 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079693', 'tblTempUsageDetail_20' ) start [2024-12-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079693', 'tblTempUsageDetail_20' ) end [2024-12-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079693', 'tblTempVendorCDR_20' ) start [2024-12-22 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079693', 'tblTempVendorCDR_20' ) end [2024-12-22 19:39:18] Production.INFO: ProcessCDR(1,14079693,1,1,2) [2024-12-22 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079693', 'tblTempUsageDetail_20' ) start [2024-12-22 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079693', 'tblTempUsageDetail_20' ) end [2024-12-22 19:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:39:21] Production.INFO: ==23901== Releasing lock... [2024-12-22 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:39:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:40:06 [end_date_ymd] => 2024-12-22 19:40:06 [RateCDR] => 1 ) [2024-12-22 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:40:06' and `end` < '2024-12-22 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:40:18] Production.INFO: count ==1462 [2024-12-22 19:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:40:06 - End Time 2024-12-22 19:40:06 [2024-12-22 19:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079698', 'tblTempUsageDetail_20' ) start [2024-12-22 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079698', 'tblTempUsageDetail_20' ) end [2024-12-22 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079698', 'tblTempVendorCDR_20' ) start [2024-12-22 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079698', 'tblTempVendorCDR_20' ) end [2024-12-22 19:40:18] Production.INFO: ProcessCDR(1,14079698,1,1,2) [2024-12-22 19:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079698', 'tblTempUsageDetail_20' ) start [2024-12-22 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079698', 'tblTempUsageDetail_20' ) end [2024-12-22 19:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:40:21] Production.INFO: ==23977== Releasing lock... [2024-12-22 19:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:40:21] Production.INFO: 38.75 MB #Memory Used# [2024-12-22 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:41:05 [end_date_ymd] => 2024-12-22 19:41:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:41:05' and `end` < '2024-12-22 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-22 19:41:17] Production.INFO: count ==1452 [2024-12-22 19:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:41:05 - End Time 2024-12-22 19:41:05 [2024-12-22 19:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079704', 'tblTempUsageDetail_20' ) start [2024-12-22 19:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079704', 'tblTempUsageDetail_20' ) end [2024-12-22 19:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079704', 'tblTempVendorCDR_20' ) start [2024-12-22 19:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079704', 'tblTempVendorCDR_20' ) end [2024-12-22 19:41:17] Production.INFO: ProcessCDR(1,14079704,1,1,2) [2024-12-22 19:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079704', 'tblTempUsageDetail_20' ) start [2024-12-22 19:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079704', 'tblTempUsageDetail_20' ) end [2024-12-22 19:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:41:20] Production.INFO: ==24091== Releasing lock... [2024-12-22 19:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:41:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:42:05 [end_date_ymd] => 2024-12-22 19:42:05 [RateCDR] => 1 ) [2024-12-22 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:42:05' and `end` < '2024-12-22 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:42:17] Production.INFO: count ==1456 [2024-12-22 19:42:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:42:05 - End Time 2024-12-22 19:42:05 [2024-12-22 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079709', 'tblTempUsageDetail_20' ) start [2024-12-22 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079709', 'tblTempUsageDetail_20' ) end [2024-12-22 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079709', 'tblTempVendorCDR_20' ) start [2024-12-22 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079709', 'tblTempVendorCDR_20' ) end [2024-12-22 19:42:18] Production.INFO: ProcessCDR(1,14079709,1,1,2) [2024-12-22 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079709', 'tblTempUsageDetail_20' ) start [2024-12-22 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079709', 'tblTempUsageDetail_20' ) end [2024-12-22 19:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:42:21] Production.INFO: ==24161== Releasing lock... [2024-12-22 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:42:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:43:04 [end_date_ymd] => 2024-12-22 19:43:04 [RateCDR] => 1 ) [2024-12-22 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-22 16:43:04' and `end` < '2024-12-22 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-22 19:43:18] Production.INFO: count ==1459 [2024-12-22 19:43:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:43:04 - End Time 2024-12-22 19:43:04 [2024-12-22 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079714', 'tblTempUsageDetail_20' ) start [2024-12-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079714', 'tblTempUsageDetail_20' ) end [2024-12-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079714', 'tblTempVendorCDR_20' ) start [2024-12-22 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079714', 'tblTempVendorCDR_20' ) end [2024-12-22 19:43:18] Production.INFO: ProcessCDR(1,14079714,1,1,2) [2024-12-22 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079714', 'tblTempUsageDetail_20' ) start [2024-12-22 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079714', 'tblTempUsageDetail_20' ) end [2024-12-22 19:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:43:22] Production.INFO: ==24237== Releasing lock... [2024-12-22 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:43:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:44:05 [end_date_ymd] => 2024-12-22 19:44:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:44:05' and `end` < '2024-12-22 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-22 19:44:17] Production.INFO: count ==1460 [2024-12-22 19:44:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:44:05 - End Time 2024-12-22 19:44:05 [2024-12-22 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079719', 'tblTempUsageDetail_20' ) start [2024-12-22 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079719', 'tblTempUsageDetail_20' ) end [2024-12-22 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079719', 'tblTempVendorCDR_20' ) start [2024-12-22 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079719', 'tblTempVendorCDR_20' ) end [2024-12-22 19:44:18] Production.INFO: ProcessCDR(1,14079719,1,1,2) [2024-12-22 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079719', 'tblTempUsageDetail_20' ) start [2024-12-22 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079719', 'tblTempUsageDetail_20' ) end [2024-12-22 19:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:44:21] Production.INFO: ==24310== Releasing lock... [2024-12-22 19:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:44:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:45:04 [end_date_ymd] => 2024-12-22 19:45:04 [RateCDR] => 1 ) [2024-12-22 19:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:45:04' and `end` < '2024-12-22 19:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:45:16] Production.INFO: count ==1461 [2024-12-22 19:45:16] Production.ERROR: pbx CDR StartTime 2024-12-22 16:45:04 - End Time 2024-12-22 19:45:04 [2024-12-22 19:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079724', 'tblTempUsageDetail_20' ) start [2024-12-22 19:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079724', 'tblTempUsageDetail_20' ) end [2024-12-22 19:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079724', 'tblTempVendorCDR_20' ) start [2024-12-22 19:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079724', 'tblTempVendorCDR_20' ) end [2024-12-22 19:45:16] Production.INFO: ProcessCDR(1,14079724,1,1,2) [2024-12-22 19:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079724', 'tblTempUsageDetail_20' ) start [2024-12-22 19:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079724', 'tblTempUsageDetail_20' ) end [2024-12-22 19:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:45:20] Production.INFO: ==24385== Releasing lock... [2024-12-22 19:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:45:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:46:05 [end_date_ymd] => 2024-12-22 19:46:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:46:05' and `end` < '2024-12-22 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-22 19:46:18] Production.INFO: count ==1460 [2024-12-22 19:46:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:46:05 - End Time 2024-12-22 19:46:05 [2024-12-22 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079729', 'tblTempUsageDetail_20' ) start [2024-12-22 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079729', 'tblTempUsageDetail_20' ) end [2024-12-22 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079729', 'tblTempVendorCDR_20' ) start [2024-12-22 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079729', 'tblTempVendorCDR_20' ) end [2024-12-22 19:46:18] Production.INFO: ProcessCDR(1,14079729,1,1,2) [2024-12-22 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079729', 'tblTempUsageDetail_20' ) start [2024-12-22 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079729', 'tblTempUsageDetail_20' ) end [2024-12-22 19:46:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:46:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:46:23] Production.INFO: ==24460== Releasing lock... [2024-12-22 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:46:23] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:47:05 [end_date_ymd] => 2024-12-22 19:47:05 [RateCDR] => 1 ) [2024-12-22 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:47:05' and `end` < '2024-12-22 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:47:18] Production.INFO: count ==1462 [2024-12-22 19:47:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:47:05 - End Time 2024-12-22 19:47:05 [2024-12-22 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079734', 'tblTempUsageDetail_20' ) start [2024-12-22 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079734', 'tblTempUsageDetail_20' ) end [2024-12-22 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079734', 'tblTempVendorCDR_20' ) start [2024-12-22 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079734', 'tblTempVendorCDR_20' ) end [2024-12-22 19:47:18] Production.INFO: ProcessCDR(1,14079734,1,1,2) [2024-12-22 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079734', 'tblTempUsageDetail_20' ) start [2024-12-22 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079734', 'tblTempUsageDetail_20' ) end [2024-12-22 19:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:47:21] Production.INFO: ==24536== Releasing lock... [2024-12-22 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:47:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:48:05 [end_date_ymd] => 2024-12-22 19:48:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:48:05' and `end` < '2024-12-22 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-22 19:48:18] Production.INFO: count ==1462 [2024-12-22 19:48:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:48:05 - End Time 2024-12-22 19:48:05 [2024-12-22 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079739', 'tblTempUsageDetail_20' ) start [2024-12-22 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079739', 'tblTempUsageDetail_20' ) end [2024-12-22 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079739', 'tblTempVendorCDR_20' ) start [2024-12-22 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079739', 'tblTempVendorCDR_20' ) end [2024-12-22 19:48:18] Production.INFO: ProcessCDR(1,14079739,1,1,2) [2024-12-22 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079739', 'tblTempUsageDetail_20' ) start [2024-12-22 19:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079739', 'tblTempUsageDetail_20' ) end [2024-12-22 19:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:48:21] Production.INFO: ==24615== Releasing lock... [2024-12-22 19:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:48:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:49:05 [end_date_ymd] => 2024-12-22 19:49:05 [RateCDR] => 1 ) [2024-12-22 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:49:05' and `end` < '2024-12-22 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:49:17] Production.INFO: count ==1464 [2024-12-22 19:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:49:05 - End Time 2024-12-22 19:49:05 [2024-12-22 19:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079743', 'tblTempUsageDetail_20' ) start [2024-12-22 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079743', 'tblTempUsageDetail_20' ) end [2024-12-22 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079743', 'tblTempVendorCDR_20' ) start [2024-12-22 19:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079743', 'tblTempVendorCDR_20' ) end [2024-12-22 19:49:17] Production.INFO: ProcessCDR(1,14079743,1,1,2) [2024-12-22 19:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079743', 'tblTempUsageDetail_20' ) start [2024-12-22 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079743', 'tblTempUsageDetail_20' ) end [2024-12-22 19:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:49:21] Production.INFO: ==24691== Releasing lock... [2024-12-22 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:49:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:50:05 [end_date_ymd] => 2024-12-22 19:50:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:50:05' and `end` < '2024-12-22 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-22 19:50:18] Production.INFO: count ==1468 [2024-12-22 19:50:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:50:05 - End Time 2024-12-22 19:50:05 [2024-12-22 19:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079750', 'tblTempUsageDetail_20' ) start [2024-12-22 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079750', 'tblTempUsageDetail_20' ) end [2024-12-22 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079750', 'tblTempVendorCDR_20' ) start [2024-12-22 19:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079750', 'tblTempVendorCDR_20' ) end [2024-12-22 19:50:18] Production.INFO: ProcessCDR(1,14079750,1,1,2) [2024-12-22 19:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079750', 'tblTempUsageDetail_20' ) start [2024-12-22 19:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079750', 'tblTempUsageDetail_20' ) end [2024-12-22 19:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:50:21] Production.INFO: ==24767== Releasing lock... [2024-12-22 19:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:50:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:51:05 [end_date_ymd] => 2024-12-22 19:51:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:51:05' and `end` < '2024-12-22 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-22 19:51:18] Production.INFO: count ==1440 [2024-12-22 19:51:19] Production.ERROR: pbx CDR StartTime 2024-12-22 16:51:05 - End Time 2024-12-22 19:51:05 [2024-12-22 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079755', 'tblTempUsageDetail_20' ) start [2024-12-22 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079755', 'tblTempUsageDetail_20' ) end [2024-12-22 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079755', 'tblTempVendorCDR_20' ) start [2024-12-22 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079755', 'tblTempVendorCDR_20' ) end [2024-12-22 19:51:19] Production.INFO: ProcessCDR(1,14079755,1,1,2) [2024-12-22 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079755', 'tblTempUsageDetail_20' ) start [2024-12-22 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079755', 'tblTempUsageDetail_20' ) end [2024-12-22 19:51:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:51:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:51:22] Production.INFO: ==24843== Releasing lock... [2024-12-22 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:51:22] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:52:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:52:04 [end_date_ymd] => 2024-12-22 19:52:04 [RateCDR] => 1 ) [2024-12-22 19: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-22 16:52:04' and `end` < '2024-12-22 19: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-22 19:52:16] Production.INFO: count ==1439 [2024-12-22 19:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:52:04 - End Time 2024-12-22 19:52:04 [2024-12-22 19:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079760', 'tblTempUsageDetail_20' ) start [2024-12-22 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079760', 'tblTempUsageDetail_20' ) end [2024-12-22 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079760', 'tblTempVendorCDR_20' ) start [2024-12-22 19:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079760', 'tblTempVendorCDR_20' ) end [2024-12-22 19:52:17] Production.INFO: ProcessCDR(1,14079760,1,1,2) [2024-12-22 19:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079760', 'tblTempUsageDetail_20' ) start [2024-12-22 19:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079760', 'tblTempUsageDetail_20' ) end [2024-12-22 19:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:52:20] Production.INFO: ==24922== Releasing lock... [2024-12-22 19:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:52:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:53:05 [end_date_ymd] => 2024-12-22 19:53:05 [RateCDR] => 1 ) [2024-12-22 19: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-22 16:53:05' and `end` < '2024-12-22 19: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-22 19:53:17] Production.INFO: count ==1440 [2024-12-22 19:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:53:05 - End Time 2024-12-22 19:53:05 [2024-12-22 19:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079765', 'tblTempUsageDetail_20' ) start [2024-12-22 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079765', 'tblTempUsageDetail_20' ) end [2024-12-22 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079765', 'tblTempVendorCDR_20' ) start [2024-12-22 19:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079765', 'tblTempVendorCDR_20' ) end [2024-12-22 19:53:17] Production.INFO: ProcessCDR(1,14079765,1,1,2) [2024-12-22 19:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079765', 'tblTempUsageDetail_20' ) start [2024-12-22 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079765', 'tblTempUsageDetail_20' ) end [2024-12-22 19:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:53:21] Production.INFO: ==24995== Releasing lock... [2024-12-22 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:53:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:54:04 [end_date_ymd] => 2024-12-22 19:54:04 [RateCDR] => 1 ) [2024-12-22 19:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:54:04' and `end` < '2024-12-22 19:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:54:16] Production.INFO: count ==1440 [2024-12-22 19:54:16] Production.ERROR: pbx CDR StartTime 2024-12-22 16:54:04 - End Time 2024-12-22 19:54:04 [2024-12-22 19:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079770', 'tblTempUsageDetail_20' ) start [2024-12-22 19:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079770', 'tblTempUsageDetail_20' ) end [2024-12-22 19:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079770', 'tblTempVendorCDR_20' ) start [2024-12-22 19:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079770', 'tblTempVendorCDR_20' ) end [2024-12-22 19:54:16] Production.INFO: ProcessCDR(1,14079770,1,1,2) [2024-12-22 19:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079770', 'tblTempUsageDetail_20' ) start [2024-12-22 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079770', 'tblTempUsageDetail_20' ) end [2024-12-22 19:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:54:21] Production.INFO: ==25067== Releasing lock... [2024-12-22 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:54:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:55:05 [end_date_ymd] => 2024-12-22 19:55:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:55:05' and `end` < '2024-12-22 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-22 19:55:17] Production.INFO: count ==1440 [2024-12-22 19:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:55:05 - End Time 2024-12-22 19:55:05 [2024-12-22 19:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079775', 'tblTempUsageDetail_20' ) start [2024-12-22 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079775', 'tblTempUsageDetail_20' ) end [2024-12-22 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079775', 'tblTempVendorCDR_20' ) start [2024-12-22 19:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079775', 'tblTempVendorCDR_20' ) end [2024-12-22 19:55:17] Production.INFO: ProcessCDR(1,14079775,1,1,2) [2024-12-22 19:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079775', 'tblTempUsageDetail_20' ) start [2024-12-22 19:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079775', 'tblTempUsageDetail_20' ) end [2024-12-22 19:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:55:20] Production.INFO: ==25139== Releasing lock... [2024-12-22 19:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:55:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:56:05 [end_date_ymd] => 2024-12-22 19:56:05 [RateCDR] => 1 ) [2024-12-22 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:56:05' and `end` < '2024-12-22 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:56:17] Production.INFO: count ==1440 [2024-12-22 19:56:18] Production.ERROR: pbx CDR StartTime 2024-12-22 16:56:05 - End Time 2024-12-22 19:56:05 [2024-12-22 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079780', 'tblTempUsageDetail_20' ) start [2024-12-22 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079780', 'tblTempUsageDetail_20' ) end [2024-12-22 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079780', 'tblTempVendorCDR_20' ) start [2024-12-22 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079780', 'tblTempVendorCDR_20' ) end [2024-12-22 19:56:18] Production.INFO: ProcessCDR(1,14079780,1,1,2) [2024-12-22 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079780', 'tblTempUsageDetail_20' ) start [2024-12-22 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079780', 'tblTempUsageDetail_20' ) end [2024-12-22 19:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:56:21] Production.INFO: ==25214== Releasing lock... [2024-12-22 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:56:21] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:57:05 [end_date_ymd] => 2024-12-22 19:57:05 [RateCDR] => 1 ) [2024-12-22 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-22 16:57:05' and `end` < '2024-12-22 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-22 19:57:17] Production.INFO: count ==1440 [2024-12-22 19:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:57:05 - End Time 2024-12-22 19:57:05 [2024-12-22 19:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079785', 'tblTempUsageDetail_20' ) start [2024-12-22 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079785', 'tblTempUsageDetail_20' ) end [2024-12-22 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079785', 'tblTempVendorCDR_20' ) start [2024-12-22 19:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079785', 'tblTempVendorCDR_20' ) end [2024-12-22 19:57:17] Production.INFO: ProcessCDR(1,14079785,1,1,2) [2024-12-22 19:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079785', 'tblTempUsageDetail_20' ) start [2024-12-22 19:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079785', 'tblTempUsageDetail_20' ) end [2024-12-22 19:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:57:20] Production.INFO: ==25327== Releasing lock... [2024-12-22 19:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:57:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:58:05 [end_date_ymd] => 2024-12-22 19:58:05 [RateCDR] => 1 ) [2024-12-22 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 16:58:05' and `end` < '2024-12-22 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 19:58:17] Production.INFO: count ==1442 [2024-12-22 19:58:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:58:05 - End Time 2024-12-22 19:58:05 [2024-12-22 19:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079790', 'tblTempUsageDetail_20' ) start [2024-12-22 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079790', 'tblTempUsageDetail_20' ) end [2024-12-22 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079790', 'tblTempVendorCDR_20' ) start [2024-12-22 19:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079790', 'tblTempVendorCDR_20' ) end [2024-12-22 19:58:17] Production.INFO: ProcessCDR(1,14079790,1,1,2) [2024-12-22 19:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079790', 'tblTempUsageDetail_20' ) start [2024-12-22 19:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079790', 'tblTempUsageDetail_20' ) end [2024-12-22 19:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:58:20] Production.INFO: ==25408== Releasing lock... [2024-12-22 19:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:58:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 16:59:04 [end_date_ymd] => 2024-12-22 19:59:04 [RateCDR] => 1 ) [2024-12-22 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-22 16:59:04' and `end` < '2024-12-22 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-22 19:59:17] Production.INFO: count ==1443 [2024-12-22 19:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 16:59:04 - End Time 2024-12-22 19:59:04 [2024-12-22 19:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079795', 'tblTempUsageDetail_20' ) start [2024-12-22 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079795', 'tblTempUsageDetail_20' ) end [2024-12-22 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079795', 'tblTempVendorCDR_20' ) start [2024-12-22 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079795', 'tblTempVendorCDR_20' ) end [2024-12-22 19:59:17] Production.INFO: ProcessCDR(1,14079795,1,1,2) [2024-12-22 19:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 19:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 19:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079795', 'tblTempUsageDetail_20' ) start [2024-12-22 19:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079795', 'tblTempUsageDetail_20' ) end [2024-12-22 19:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 19:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 19:59:20] Production.INFO: ==25483== Releasing lock... [2024-12-22 19:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 19:59:20] Production.INFO: 38.5 MB #Memory Used# [2024-12-22 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:00:05 [end_date_ymd] => 2024-12-22 20:00:05 [RateCDR] => 1 ) [2024-12-22 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:00:05' and `end` < '2024-12-22 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:00:17] Production.INFO: count ==1435 [2024-12-22 20:00:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:00:05 - End Time 2024-12-22 20:00:05 [2024-12-22 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079801', 'tblTempUsageDetail_20' ) start [2024-12-22 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079801', 'tblTempUsageDetail_20' ) end [2024-12-22 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079801', 'tblTempVendorCDR_20' ) start [2024-12-22 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079801', 'tblTempVendorCDR_20' ) end [2024-12-22 20:00:18] Production.INFO: ProcessCDR(1,14079801,1,1,2) [2024-12-22 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079801', 'tblTempUsageDetail_20' ) start [2024-12-22 20:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079801', 'tblTempUsageDetail_20' ) end [2024-12-22 20:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:00:21] Production.INFO: ==25558== Releasing lock... [2024-12-22 20:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:00:21] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 20:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:01:04 [end_date_ymd] => 2024-12-22 20:01:04 [RateCDR] => 1 ) [2024-12-22 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-22 17:01:04' and `end` < '2024-12-22 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-22 20:01:17] Production.INFO: count ==1408 [2024-12-22 20:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:01:04 - End Time 2024-12-22 20:01:04 [2024-12-22 20:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079806', 'tblTempUsageDetail_20' ) start [2024-12-22 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079806', 'tblTempUsageDetail_20' ) end [2024-12-22 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079806', 'tblTempVendorCDR_20' ) start [2024-12-22 20:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079806', 'tblTempVendorCDR_20' ) end [2024-12-22 20:01:17] Production.INFO: ProcessCDR(1,14079806,1,1,2) [2024-12-22 20:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079806', 'tblTempUsageDetail_20' ) start [2024-12-22 20:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079806', 'tblTempUsageDetail_20' ) end [2024-12-22 20:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:01:20] Production.INFO: ==25684== Releasing lock... [2024-12-22 20:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:01:20] Production.INFO: 38.25 MB #Memory Used# [2024-12-22 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:02:05 [end_date_ymd] => 2024-12-22 20:02:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:02:05' and `end` < '2024-12-22 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-22 20:02:17] Production.INFO: count ==1406 [2024-12-22 20:02:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:02:05 - End Time 2024-12-22 20:02:05 [2024-12-22 20:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079811', 'tblTempUsageDetail_20' ) start [2024-12-22 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079811', 'tblTempUsageDetail_20' ) end [2024-12-22 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079811', 'tblTempVendorCDR_20' ) start [2024-12-22 20:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079811', 'tblTempVendorCDR_20' ) end [2024-12-22 20:02:17] Production.INFO: ProcessCDR(1,14079811,1,1,2) [2024-12-22 20:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079811', 'tblTempUsageDetail_20' ) start [2024-12-22 20:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079811', 'tblTempUsageDetail_20' ) end [2024-12-22 20:02:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:02:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:02:20] Production.INFO: ==25762== Releasing lock... [2024-12-22 20:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:02:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:03:05 [end_date_ymd] => 2024-12-22 20:03:05 [RateCDR] => 1 ) [2024-12-22 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:03:05' and `end` < '2024-12-22 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:03:18] Production.INFO: count ==1402 [2024-12-22 20:03:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:03:05 - End Time 2024-12-22 20:03:05 [2024-12-22 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079816', 'tblTempUsageDetail_20' ) start [2024-12-22 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079816', 'tblTempUsageDetail_20' ) end [2024-12-22 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079816', 'tblTempVendorCDR_20' ) start [2024-12-22 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079816', 'tblTempVendorCDR_20' ) end [2024-12-22 20:03:18] Production.INFO: ProcessCDR(1,14079816,1,1,2) [2024-12-22 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079816', 'tblTempUsageDetail_20' ) start [2024-12-22 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079816', 'tblTempUsageDetail_20' ) end [2024-12-22 20:03:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:03:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:03:21] Production.INFO: ==25839== Releasing lock... [2024-12-22 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:03:21] Production.INFO: 38 MB #Memory Used# [2024-12-22 20:04:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:04:04 [end_date_ymd] => 2024-12-22 20:04:04 [RateCDR] => 1 ) [2024-12-22 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-22 17:04:04' and `end` < '2024-12-22 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-22 20:04:16] Production.INFO: count ==1405 [2024-12-22 20:04:16] Production.ERROR: pbx CDR StartTime 2024-12-22 17:04:04 - End Time 2024-12-22 20:04:04 [2024-12-22 20:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079821', 'tblTempUsageDetail_20' ) start [2024-12-22 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079821', 'tblTempUsageDetail_20' ) end [2024-12-22 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079821', 'tblTempVendorCDR_20' ) start [2024-12-22 20:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079821', 'tblTempVendorCDR_20' ) end [2024-12-22 20:04:17] Production.INFO: ProcessCDR(1,14079821,1,1,2) [2024-12-22 20:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079821', 'tblTempUsageDetail_20' ) start [2024-12-22 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079821', 'tblTempUsageDetail_20' ) end [2024-12-22 20:04:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:04:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:04:21] Production.INFO: ==25911== Releasing lock... [2024-12-22 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:04:21] Production.INFO: 38 MB #Memory Used# [2024-12-22 20:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:05:04 [end_date_ymd] => 2024-12-22 20:05:04 [RateCDR] => 1 ) [2024-12-22 20:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:05:04' and `end` < '2024-12-22 20:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:05:17] Production.INFO: count ==1403 [2024-12-22 20:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:05:04 - End Time 2024-12-22 20:05:04 [2024-12-22 20:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079826', 'tblTempUsageDetail_20' ) start [2024-12-22 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079826', 'tblTempUsageDetail_20' ) end [2024-12-22 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079826', 'tblTempVendorCDR_20' ) start [2024-12-22 20:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079826', 'tblTempVendorCDR_20' ) end [2024-12-22 20:05:17] Production.INFO: ProcessCDR(1,14079826,1,1,2) [2024-12-22 20:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079826', 'tblTempUsageDetail_20' ) start [2024-12-22 20:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079826', 'tblTempUsageDetail_20' ) end [2024-12-22 20:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:05:20] Production.INFO: ==25986== Releasing lock... [2024-12-22 20:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:05:20] Production.INFO: 38 MB #Memory Used# [2024-12-22 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:06:05 [end_date_ymd] => 2024-12-22 20:06:05 [RateCDR] => 1 ) [2024-12-22 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:06:05' and `end` < '2024-12-22 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:06:18] Production.INFO: count ==1398 [2024-12-22 20:06:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:06:05 - End Time 2024-12-22 20:06:05 [2024-12-22 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079831', 'tblTempUsageDetail_20' ) start [2024-12-22 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079831', 'tblTempUsageDetail_20' ) end [2024-12-22 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079831', 'tblTempVendorCDR_20' ) start [2024-12-22 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079831', 'tblTempVendorCDR_20' ) end [2024-12-22 20:06:18] Production.INFO: ProcessCDR(1,14079831,1,1,2) [2024-12-22 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079831', 'tblTempUsageDetail_20' ) start [2024-12-22 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079831', 'tblTempUsageDetail_20' ) end [2024-12-22 20:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:06:22] Production.INFO: ==26061== Releasing lock... [2024-12-22 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:06:22] Production.INFO: 38 MB #Memory Used# [2024-12-22 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:07:05 [end_date_ymd] => 2024-12-22 20:07:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:07:05' and `end` < '2024-12-22 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-22 20:07:17] Production.INFO: count ==1396 [2024-12-22 20:07:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:07:05 - End Time 2024-12-22 20:07:05 [2024-12-22 20:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079836', 'tblTempUsageDetail_20' ) start [2024-12-22 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079836', 'tblTempUsageDetail_20' ) end [2024-12-22 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079836', 'tblTempVendorCDR_20' ) start [2024-12-22 20:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079836', 'tblTempVendorCDR_20' ) end [2024-12-22 20:07:17] Production.INFO: ProcessCDR(1,14079836,1,1,2) [2024-12-22 20:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079836', 'tblTempUsageDetail_20' ) start [2024-12-22 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079836', 'tblTempUsageDetail_20' ) end [2024-12-22 20:07:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:07:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:07:21] Production.INFO: ==26133== Releasing lock... [2024-12-22 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:07:21] Production.INFO: 38 MB #Memory Used# [2024-12-22 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:08:05 [end_date_ymd] => 2024-12-22 20:08:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:08:05' and `end` < '2024-12-22 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-22 20:08:17] Production.INFO: count ==1390 [2024-12-22 20:08:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:08:05 - End Time 2024-12-22 20:08:05 [2024-12-22 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079841', 'tblTempUsageDetail_20' ) start [2024-12-22 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079841', 'tblTempUsageDetail_20' ) end [2024-12-22 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079841', 'tblTempVendorCDR_20' ) start [2024-12-22 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079841', 'tblTempVendorCDR_20' ) end [2024-12-22 20:08:18] Production.INFO: ProcessCDR(1,14079841,1,1,2) [2024-12-22 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079841', 'tblTempUsageDetail_20' ) start [2024-12-22 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079841', 'tblTempUsageDetail_20' ) end [2024-12-22 20:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:08:22] Production.INFO: ==26203== Releasing lock... [2024-12-22 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:08:22] Production.INFO: 38 MB #Memory Used# [2024-12-22 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:09:04 [end_date_ymd] => 2024-12-22 20:09:04 [RateCDR] => 1 ) [2024-12-22 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-22 17:09:04' and `end` < '2024-12-22 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-22 20:09:16] Production.INFO: count ==1391 [2024-12-22 20:09:16] Production.ERROR: pbx CDR StartTime 2024-12-22 17:09:04 - End Time 2024-12-22 20:09:04 [2024-12-22 20:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079846', 'tblTempUsageDetail_20' ) start [2024-12-22 20:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079846', 'tblTempUsageDetail_20' ) end [2024-12-22 20:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079846', 'tblTempVendorCDR_20' ) start [2024-12-22 20:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079846', 'tblTempVendorCDR_20' ) end [2024-12-22 20:09:16] Production.INFO: ProcessCDR(1,14079846,1,1,2) [2024-12-22 20:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079846', 'tblTempUsageDetail_20' ) start [2024-12-22 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079846', 'tblTempUsageDetail_20' ) end [2024-12-22 20:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:09:21] Production.INFO: ==26274== Releasing lock... [2024-12-22 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:09:21] Production.INFO: 38 MB #Memory Used# [2024-12-22 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:10:05 [end_date_ymd] => 2024-12-22 20:10:05 [RateCDR] => 1 ) [2024-12-22 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:10:05' and `end` < '2024-12-22 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:10:17] Production.INFO: count ==1392 [2024-12-22 20:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:10:05 - End Time 2024-12-22 20:10:05 [2024-12-22 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079852', 'tblTempUsageDetail_20' ) start [2024-12-22 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079852', 'tblTempUsageDetail_20' ) end [2024-12-22 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079852', 'tblTempVendorCDR_20' ) start [2024-12-22 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079852', 'tblTempVendorCDR_20' ) end [2024-12-22 20:10:18] Production.INFO: ProcessCDR(1,14079852,1,1,2) [2024-12-22 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079852', 'tblTempUsageDetail_20' ) start [2024-12-22 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079852', 'tblTempUsageDetail_20' ) end [2024-12-22 20:10:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:10:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:10:22] Production.INFO: ==26352== Releasing lock... [2024-12-22 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:10:22] Production.INFO: 38 MB #Memory Used# [2024-12-22 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:11:04 [end_date_ymd] => 2024-12-22 20:11:04 [RateCDR] => 1 ) [2024-12-22 20:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:11:04' and `end` < '2024-12-22 20:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:11:17] Production.INFO: count ==1361 [2024-12-22 20:11:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:11:04 - End Time 2024-12-22 20:11:04 [2024-12-22 20:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079857', 'tblTempUsageDetail_20' ) start [2024-12-22 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079857', 'tblTempUsageDetail_20' ) end [2024-12-22 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079857', 'tblTempVendorCDR_20' ) start [2024-12-22 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079857', 'tblTempVendorCDR_20' ) end [2024-12-22 20:11:17] Production.INFO: ProcessCDR(1,14079857,1,1,2) [2024-12-22 20:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079857', 'tblTempUsageDetail_20' ) start [2024-12-22 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079857', 'tblTempUsageDetail_20' ) end [2024-12-22 20:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:11:21] Production.INFO: ==26424== Releasing lock... [2024-12-22 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:11:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 20:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:12:04 [end_date_ymd] => 2024-12-22 20:12:04 [RateCDR] => 1 ) [2024-12-22 20:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:12:04' and `end` < '2024-12-22 20:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:12:17] Production.INFO: count ==1358 [2024-12-22 20:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:12:04 - End Time 2024-12-22 20:12:04 [2024-12-22 20:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079862', 'tblTempUsageDetail_20' ) start [2024-12-22 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079862', 'tblTempUsageDetail_20' ) end [2024-12-22 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079862', 'tblTempVendorCDR_20' ) start [2024-12-22 20:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079862', 'tblTempVendorCDR_20' ) end [2024-12-22 20:12:17] Production.INFO: ProcessCDR(1,14079862,1,1,2) [2024-12-22 20:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079862', 'tblTempUsageDetail_20' ) start [2024-12-22 20:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079862', 'tblTempUsageDetail_20' ) end [2024-12-22 20:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:12:20] Production.INFO: ==26549== Releasing lock... [2024-12-22 20:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:12:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:13:05 [end_date_ymd] => 2024-12-22 20:13:05 [RateCDR] => 1 ) [2024-12-22 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:13:05' and `end` < '2024-12-22 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:13:17] Production.INFO: count ==1356 [2024-12-22 20:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:13:05 - End Time 2024-12-22 20:13:05 [2024-12-22 20:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079867', 'tblTempUsageDetail_20' ) start [2024-12-22 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079867', 'tblTempUsageDetail_20' ) end [2024-12-22 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079867', 'tblTempVendorCDR_20' ) start [2024-12-22 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079867', 'tblTempVendorCDR_20' ) end [2024-12-22 20:13:17] Production.INFO: ProcessCDR(1,14079867,1,1,2) [2024-12-22 20:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079867', 'tblTempUsageDetail_20' ) start [2024-12-22 20:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079867', 'tblTempUsageDetail_20' ) end [2024-12-22 20:13:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:13:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:13:20] Production.INFO: ==26633== Releasing lock... [2024-12-22 20:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:13:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 20:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:14:04 [end_date_ymd] => 2024-12-22 20:14:04 [RateCDR] => 1 ) [2024-12-22 20:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:14:04' and `end` < '2024-12-22 20:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:14:16] Production.INFO: count ==1356 [2024-12-22 20:14:16] Production.ERROR: pbx CDR StartTime 2024-12-22 17:14:04 - End Time 2024-12-22 20:14:04 [2024-12-22 20:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079872', 'tblTempUsageDetail_20' ) start [2024-12-22 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079872', 'tblTempUsageDetail_20' ) end [2024-12-22 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079872', 'tblTempVendorCDR_20' ) start [2024-12-22 20:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079872', 'tblTempVendorCDR_20' ) end [2024-12-22 20:14:17] Production.INFO: ProcessCDR(1,14079872,1,1,2) [2024-12-22 20:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:14:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:14:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079872', 'tblTempUsageDetail_20' ) start [2024-12-22 20:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079872', 'tblTempUsageDetail_20' ) end [2024-12-22 20:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:14:20] Production.INFO: ==26717== Releasing lock... [2024-12-22 20:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:14:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:15:04 [end_date_ymd] => 2024-12-22 20:15:04 [RateCDR] => 1 ) [2024-12-22 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-22 17:15:04' and `end` < '2024-12-22 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-22 20:15:17] Production.INFO: count ==1356 [2024-12-22 20:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:15:04 - End Time 2024-12-22 20:15:04 [2024-12-22 20:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079877', 'tblTempUsageDetail_20' ) start [2024-12-22 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079877', 'tblTempUsageDetail_20' ) end [2024-12-22 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079877', 'tblTempVendorCDR_20' ) start [2024-12-22 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079877', 'tblTempVendorCDR_20' ) end [2024-12-22 20:15:17] Production.INFO: ProcessCDR(1,14079877,1,1,2) [2024-12-22 20:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079877', 'tblTempUsageDetail_20' ) start [2024-12-22 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079877', 'tblTempUsageDetail_20' ) end [2024-12-22 20:15:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:15:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:15:21] Production.INFO: ==26796== Releasing lock... [2024-12-22 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:15:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 20:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:16:04 [end_date_ymd] => 2024-12-22 20:16:04 [RateCDR] => 1 ) [2024-12-22 20: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-22 17:16:04' and `end` < '2024-12-22 20: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-22 20:16:16] Production.INFO: count ==1353 [2024-12-22 20:16:16] Production.ERROR: pbx CDR StartTime 2024-12-22 17:16:04 - End Time 2024-12-22 20:16:04 [2024-12-22 20:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079882', 'tblTempUsageDetail_20' ) start [2024-12-22 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079882', 'tblTempUsageDetail_20' ) end [2024-12-22 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079882', 'tblTempVendorCDR_20' ) start [2024-12-22 20:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079882', 'tblTempVendorCDR_20' ) end [2024-12-22 20:16:17] Production.INFO: ProcessCDR(1,14079882,1,1,2) [2024-12-22 20:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079882', 'tblTempUsageDetail_20' ) start [2024-12-22 20:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079882', 'tblTempUsageDetail_20' ) end [2024-12-22 20:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:16:20] Production.INFO: ==26882== Releasing lock... [2024-12-22 20:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:16:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 20:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:17:04 [end_date_ymd] => 2024-12-22 20:17:04 [RateCDR] => 1 ) [2024-12-22 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-22 17:17:04' and `end` < '2024-12-22 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-22 20:17:17] Production.INFO: count ==1353 [2024-12-22 20:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:17:04 - End Time 2024-12-22 20:17:04 [2024-12-22 20:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079887', 'tblTempUsageDetail_20' ) start [2024-12-22 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079887', 'tblTempUsageDetail_20' ) end [2024-12-22 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079887', 'tblTempVendorCDR_20' ) start [2024-12-22 20:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079887', 'tblTempVendorCDR_20' ) end [2024-12-22 20:17:17] Production.INFO: ProcessCDR(1,14079887,1,1,2) [2024-12-22 20:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079887', 'tblTempUsageDetail_20' ) start [2024-12-22 20:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079887', 'tblTempUsageDetail_20' ) end [2024-12-22 20:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:17:20] Production.INFO: ==26977== Releasing lock... [2024-12-22 20:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:17:20] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:18:05 [end_date_ymd] => 2024-12-22 20:18:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:18:05' and `end` < '2024-12-22 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-22 20:18:18] Production.INFO: count ==1354 [2024-12-22 20:18:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:18:05 - End Time 2024-12-22 20:18:05 [2024-12-22 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079892', 'tblTempUsageDetail_20' ) start [2024-12-22 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079892', 'tblTempUsageDetail_20' ) end [2024-12-22 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079892', 'tblTempVendorCDR_20' ) start [2024-12-22 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079892', 'tblTempVendorCDR_20' ) end [2024-12-22 20:18:18] Production.INFO: ProcessCDR(1,14079892,1,1,2) [2024-12-22 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079892', 'tblTempUsageDetail_20' ) start [2024-12-22 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079892', 'tblTempUsageDetail_20' ) end [2024-12-22 20:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:18:21] Production.INFO: ==27057== Releasing lock... [2024-12-22 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:18:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:19:05 [end_date_ymd] => 2024-12-22 20:19:05 [RateCDR] => 1 ) [2024-12-22 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:19:05' and `end` < '2024-12-22 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:19:17] Production.INFO: count ==1354 [2024-12-22 20:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:19:05 - End Time 2024-12-22 20:19:05 [2024-12-22 20:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079897', 'tblTempUsageDetail_20' ) start [2024-12-22 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079897', 'tblTempUsageDetail_20' ) end [2024-12-22 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079897', 'tblTempVendorCDR_20' ) start [2024-12-22 20:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079897', 'tblTempVendorCDR_20' ) end [2024-12-22 20:19:17] Production.INFO: ProcessCDR(1,14079897,1,1,2) [2024-12-22 20:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079897', 'tblTempUsageDetail_20' ) start [2024-12-22 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079897', 'tblTempUsageDetail_20' ) end [2024-12-22 20:19:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:19:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:19:21] Production.INFO: ==27130== Releasing lock... [2024-12-22 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:19:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 20:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:20:05 [end_date_ymd] => 2024-12-22 20:20:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:20:05' and `end` < '2024-12-22 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-22 20:20:18] Production.INFO: count ==1352 [2024-12-22 20:20:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:20:05 - End Time 2024-12-22 20:20:05 [2024-12-22 20:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079903', 'tblTempUsageDetail_20' ) start [2024-12-22 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079903', 'tblTempUsageDetail_20' ) end [2024-12-22 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079903', 'tblTempVendorCDR_20' ) start [2024-12-22 20:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079903', 'tblTempVendorCDR_20' ) end [2024-12-22 20:20:18] Production.INFO: ProcessCDR(1,14079903,1,1,2) [2024-12-22 20:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079903', 'tblTempUsageDetail_20' ) start [2024-12-22 20:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079903', 'tblTempUsageDetail_20' ) end [2024-12-22 20:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:20:21] Production.INFO: ==27203== Releasing lock... [2024-12-22 20:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:20:21] Production.INFO: 37.75 MB #Memory Used# [2024-12-22 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:21:04 [end_date_ymd] => 2024-12-22 20:21:04 [RateCDR] => 1 ) [2024-12-22 20:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:21:04' and `end` < '2024-12-22 20:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:21:16] Production.INFO: count ==1320 [2024-12-22 20:21:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:21:04 - End Time 2024-12-22 20:21:04 [2024-12-22 20:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079908', 'tblTempUsageDetail_20' ) start [2024-12-22 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079908', 'tblTempUsageDetail_20' ) end [2024-12-22 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079908', 'tblTempVendorCDR_20' ) start [2024-12-22 20:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079908', 'tblTempVendorCDR_20' ) end [2024-12-22 20:21:17] Production.INFO: ProcessCDR(1,14079908,1,1,2) [2024-12-22 20:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079908', 'tblTempUsageDetail_20' ) start [2024-12-22 20:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079908', 'tblTempUsageDetail_20' ) end [2024-12-22 20:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:21:20] Production.INFO: ==27279== Releasing lock... [2024-12-22 20:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:21:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:22:05 [end_date_ymd] => 2024-12-22 20:22:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:22:05' and `end` < '2024-12-22 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-22 20:22:17] Production.INFO: count ==1317 [2024-12-22 20:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:22:05 - End Time 2024-12-22 20:22:05 [2024-12-22 20:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079913', 'tblTempUsageDetail_20' ) start [2024-12-22 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079913', 'tblTempUsageDetail_20' ) end [2024-12-22 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079913', 'tblTempVendorCDR_20' ) start [2024-12-22 20:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079913', 'tblTempVendorCDR_20' ) end [2024-12-22 20:22:17] Production.INFO: ProcessCDR(1,14079913,1,1,2) [2024-12-22 20:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079913', 'tblTempUsageDetail_20' ) start [2024-12-22 20:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079913', 'tblTempUsageDetail_20' ) end [2024-12-22 20:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:22:20] Production.INFO: ==27351== Releasing lock... [2024-12-22 20:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:22:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:23:05 [end_date_ymd] => 2024-12-22 20:23:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:23:05' and `end` < '2024-12-22 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-22 20:23:17] Production.INFO: count ==1315 [2024-12-22 20:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:23:05 - End Time 2024-12-22 20:23:05 [2024-12-22 20:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079918', 'tblTempUsageDetail_20' ) start [2024-12-22 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079918', 'tblTempUsageDetail_20' ) end [2024-12-22 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079918', 'tblTempVendorCDR_20' ) start [2024-12-22 20:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079918', 'tblTempVendorCDR_20' ) end [2024-12-22 20:23:17] Production.INFO: ProcessCDR(1,14079918,1,1,2) [2024-12-22 20:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079918', 'tblTempUsageDetail_20' ) start [2024-12-22 20:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079918', 'tblTempUsageDetail_20' ) end [2024-12-22 20:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:23:20] Production.INFO: ==27440== Releasing lock... [2024-12-22 20:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:23:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:24:05 [end_date_ymd] => 2024-12-22 20:24:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:24:05' and `end` < '2024-12-22 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-22 20:24:17] Production.INFO: count ==1309 [2024-12-22 20:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:24:05 - End Time 2024-12-22 20:24:05 [2024-12-22 20:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079923', 'tblTempUsageDetail_20' ) start [2024-12-22 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079923', 'tblTempUsageDetail_20' ) end [2024-12-22 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079923', 'tblTempVendorCDR_20' ) start [2024-12-22 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079923', 'tblTempVendorCDR_20' ) end [2024-12-22 20:24:18] Production.INFO: ProcessCDR(1,14079923,1,1,2) [2024-12-22 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079923', 'tblTempUsageDetail_20' ) start [2024-12-22 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079923', 'tblTempUsageDetail_20' ) end [2024-12-22 20:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:24:21] Production.INFO: ==27513== Releasing lock... [2024-12-22 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:24:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:25:04 [end_date_ymd] => 2024-12-22 20:25:04 [RateCDR] => 1 ) [2024-12-22 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-22 17:25:04' and `end` < '2024-12-22 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-22 20:25:17] Production.INFO: count ==1312 [2024-12-22 20:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:25:04 - End Time 2024-12-22 20:25:04 [2024-12-22 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079928', 'tblTempUsageDetail_20' ) start [2024-12-22 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079928', 'tblTempUsageDetail_20' ) end [2024-12-22 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079928', 'tblTempVendorCDR_20' ) start [2024-12-22 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079928', 'tblTempVendorCDR_20' ) end [2024-12-22 20:25:17] Production.INFO: ProcessCDR(1,14079928,1,1,2) [2024-12-22 20:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079928', 'tblTempUsageDetail_20' ) start [2024-12-22 20:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079928', 'tblTempUsageDetail_20' ) end [2024-12-22 20:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:25:20] Production.INFO: ==27584== Releasing lock... [2024-12-22 20:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:25:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 20:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:26:04 [end_date_ymd] => 2024-12-22 20:26:04 [RateCDR] => 1 ) [2024-12-22 20: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-22 17:26:04' and `end` < '2024-12-22 20: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-22 20:26:16] Production.INFO: count ==1312 [2024-12-22 20:26:16] Production.ERROR: pbx CDR StartTime 2024-12-22 17:26:04 - End Time 2024-12-22 20:26:04 [2024-12-22 20:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079933', 'tblTempUsageDetail_20' ) start [2024-12-22 20:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079933', 'tblTempUsageDetail_20' ) end [2024-12-22 20:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079933', 'tblTempVendorCDR_20' ) start [2024-12-22 20:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079933', 'tblTempVendorCDR_20' ) end [2024-12-22 20:26:16] Production.INFO: ProcessCDR(1,14079933,1,1,2) [2024-12-22 20:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079933', 'tblTempUsageDetail_20' ) start [2024-12-22 20:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079933', 'tblTempUsageDetail_20' ) end [2024-12-22 20:26:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:26:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:26:19] Production.INFO: ==27657== Releasing lock... [2024-12-22 20:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:26:19] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:27:04 [end_date_ymd] => 2024-12-22 20:27:04 [RateCDR] => 1 ) [2024-12-22 20: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-22 17:27:04' and `end` < '2024-12-22 20: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-22 20:27:17] Production.INFO: count ==1310 [2024-12-22 20:27:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:27:04 - End Time 2024-12-22 20:27:04 [2024-12-22 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079938', 'tblTempUsageDetail_20' ) start [2024-12-22 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079938', 'tblTempUsageDetail_20' ) end [2024-12-22 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079938', 'tblTempVendorCDR_20' ) start [2024-12-22 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079938', 'tblTempVendorCDR_20' ) end [2024-12-22 20:27:18] Production.INFO: ProcessCDR(1,14079938,1,1,2) [2024-12-22 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079938', 'tblTempUsageDetail_20' ) start [2024-12-22 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079938', 'tblTempUsageDetail_20' ) end [2024-12-22 20:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:27:21] Production.INFO: ==27731== Releasing lock... [2024-12-22 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:27:21] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:28:05 [end_date_ymd] => 2024-12-22 20:28:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:28:05' and `end` < '2024-12-22 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-22 20:28:17] Production.INFO: count ==1308 [2024-12-22 20:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:28:05 - End Time 2024-12-22 20:28:05 [2024-12-22 20:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079943', 'tblTempUsageDetail_20' ) start [2024-12-22 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079943', 'tblTempUsageDetail_20' ) end [2024-12-22 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079943', 'tblTempVendorCDR_20' ) start [2024-12-22 20:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079943', 'tblTempVendorCDR_20' ) end [2024-12-22 20:28:17] Production.INFO: ProcessCDR(1,14079943,1,1,2) [2024-12-22 20:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079943', 'tblTempUsageDetail_20' ) start [2024-12-22 20:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079943', 'tblTempUsageDetail_20' ) end [2024-12-22 20:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:28:20] Production.INFO: ==27846== Releasing lock... [2024-12-22 20:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:28:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:29:05 [end_date_ymd] => 2024-12-22 20:29:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:29:05' and `end` < '2024-12-22 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-22 20:29:17] Production.INFO: count ==1308 [2024-12-22 20:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:29:05 - End Time 2024-12-22 20:29:05 [2024-12-22 20:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079948', 'tblTempUsageDetail_20' ) start [2024-12-22 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079948', 'tblTempUsageDetail_20' ) end [2024-12-22 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079948', 'tblTempVendorCDR_20' ) start [2024-12-22 20:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079948', 'tblTempVendorCDR_20' ) end [2024-12-22 20:29:17] Production.INFO: ProcessCDR(1,14079948,1,1,2) [2024-12-22 20:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079948', 'tblTempUsageDetail_20' ) start [2024-12-22 20:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079948', 'tblTempUsageDetail_20' ) end [2024-12-22 20:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:29:20] Production.INFO: ==27919== Releasing lock... [2024-12-22 20:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:29:20] Production.INFO: 37.5 MB #Memory Used# [2024-12-22 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:30:05 [end_date_ymd] => 2024-12-22 20:30:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:30:05' and `end` < '2024-12-22 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-22 20:30:17] Production.INFO: count ==1303 [2024-12-22 20:30:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:30:05 - End Time 2024-12-22 20:30:05 [2024-12-22 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079953', 'tblTempUsageDetail_20' ) start [2024-12-22 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079953', 'tblTempUsageDetail_20' ) end [2024-12-22 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079953', 'tblTempVendorCDR_20' ) start [2024-12-22 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079953', 'tblTempVendorCDR_20' ) end [2024-12-22 20:30:18] Production.INFO: ProcessCDR(1,14079953,1,1,2) [2024-12-22 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079953', 'tblTempUsageDetail_20' ) start [2024-12-22 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079953', 'tblTempUsageDetail_20' ) end [2024-12-22 20:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:30:21] Production.INFO: ==27996== Releasing lock... [2024-12-22 20:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:30:21] Production.INFO: 37.25 MB #Memory Used# [2024-12-22 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:31:05 [end_date_ymd] => 2024-12-22 20:31:05 [RateCDR] => 1 ) [2024-12-22 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:31:05' and `end` < '2024-12-22 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:31:18] Production.INFO: count ==1249 [2024-12-22 20:31:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:31:05 - End Time 2024-12-22 20:31:05 [2024-12-22 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079959', 'tblTempUsageDetail_20' ) start [2024-12-22 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079959', 'tblTempUsageDetail_20' ) end [2024-12-22 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079959', 'tblTempVendorCDR_20' ) start [2024-12-22 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079959', 'tblTempVendorCDR_20' ) end [2024-12-22 20:31:18] Production.INFO: ProcessCDR(1,14079959,1,1,2) [2024-12-22 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079959', 'tblTempUsageDetail_20' ) start [2024-12-22 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079959', 'tblTempUsageDetail_20' ) end [2024-12-22 20:31:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:31:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:31:21] Production.INFO: ==28075== Releasing lock... [2024-12-22 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:31:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:32:05 [end_date_ymd] => 2024-12-22 20:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:32:05' and `end` < '2024-12-22 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-22 20:32:18] Production.INFO: count ==1247 [2024-12-22 20:32:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:32:05 - End Time 2024-12-22 20:32:05 [2024-12-22 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079964', 'tblTempUsageDetail_20' ) start [2024-12-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079964', 'tblTempUsageDetail_20' ) end [2024-12-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079964', 'tblTempVendorCDR_20' ) start [2024-12-22 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079964', 'tblTempVendorCDR_20' ) end [2024-12-22 20:32:18] Production.INFO: ProcessCDR(1,14079964,1,1,2) [2024-12-22 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079964', 'tblTempUsageDetail_20' ) start [2024-12-22 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079964', 'tblTempUsageDetail_20' ) end [2024-12-22 20:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:32:21] Production.INFO: ==28146== Releasing lock... [2024-12-22 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:32:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 20:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:33:04 [end_date_ymd] => 2024-12-22 20:33:04 [RateCDR] => 1 ) [2024-12-22 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-22 17:33:04' and `end` < '2024-12-22 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-22 20:33:17] Production.INFO: count ==1244 [2024-12-22 20:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:33:04 - End Time 2024-12-22 20:33:04 [2024-12-22 20:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079969', 'tblTempUsageDetail_20' ) start [2024-12-22 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079969', 'tblTempUsageDetail_20' ) end [2024-12-22 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079969', 'tblTempVendorCDR_20' ) start [2024-12-22 20:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079969', 'tblTempVendorCDR_20' ) end [2024-12-22 20:33:17] Production.INFO: ProcessCDR(1,14079969,1,1,2) [2024-12-22 20:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079969', 'tblTempUsageDetail_20' ) start [2024-12-22 20:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079969', 'tblTempUsageDetail_20' ) end [2024-12-22 20:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:33:20] Production.INFO: ==28217== Releasing lock... [2024-12-22 20:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:33:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:34:05 [end_date_ymd] => 2024-12-22 20:34:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:34:05' and `end` < '2024-12-22 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-22 20:34:17] Production.INFO: count ==1245 [2024-12-22 20:34:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:34:05 - End Time 2024-12-22 20:34:05 [2024-12-22 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079974', 'tblTempUsageDetail_20' ) start [2024-12-22 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079974', 'tblTempUsageDetail_20' ) end [2024-12-22 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079974', 'tblTempVendorCDR_20' ) start [2024-12-22 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079974', 'tblTempVendorCDR_20' ) end [2024-12-22 20:34:18] Production.INFO: ProcessCDR(1,14079974,1,1,2) [2024-12-22 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079974', 'tblTempUsageDetail_20' ) start [2024-12-22 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079974', 'tblTempUsageDetail_20' ) end [2024-12-22 20:34:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:34:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:34:21] Production.INFO: ==28288== Releasing lock... [2024-12-22 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:34:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:35:05 [end_date_ymd] => 2024-12-22 20:35:05 [RateCDR] => 1 ) [2024-12-22 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:35:05' and `end` < '2024-12-22 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:35:17] Production.INFO: count ==1244 [2024-12-22 20:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:35:05 - End Time 2024-12-22 20:35:05 [2024-12-22 20:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079979', 'tblTempUsageDetail_20' ) start [2024-12-22 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079979', 'tblTempUsageDetail_20' ) end [2024-12-22 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079979', 'tblTempVendorCDR_20' ) start [2024-12-22 20:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079979', 'tblTempVendorCDR_20' ) end [2024-12-22 20:35:17] Production.INFO: ProcessCDR(1,14079979,1,1,2) [2024-12-22 20:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079979', 'tblTempUsageDetail_20' ) start [2024-12-22 20:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079979', 'tblTempUsageDetail_20' ) end [2024-12-22 20:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:35:20] Production.INFO: ==28357== Releasing lock... [2024-12-22 20:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:35:20] Production.INFO: 37 MB #Memory Used# [2024-12-22 20:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:36:04 [end_date_ymd] => 2024-12-22 20:36:04 [RateCDR] => 1 ) [2024-12-22 20: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-22 17:36:04' and `end` < '2024-12-22 20: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-22 20:36:18] Production.INFO: count ==1242 [2024-12-22 20:36:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:36:04 - End Time 2024-12-22 20:36:04 [2024-12-22 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079984', 'tblTempUsageDetail_20' ) start [2024-12-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079984', 'tblTempUsageDetail_20' ) end [2024-12-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079984', 'tblTempVendorCDR_20' ) start [2024-12-22 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079984', 'tblTempVendorCDR_20' ) end [2024-12-22 20:36:18] Production.INFO: ProcessCDR(1,14079984,1,1,2) [2024-12-22 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079984', 'tblTempUsageDetail_20' ) start [2024-12-22 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079984', 'tblTempUsageDetail_20' ) end [2024-12-22 20:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:36:22] Production.INFO: ==28428== Releasing lock... [2024-12-22 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:36:22] Production.INFO: 37 MB #Memory Used# [2024-12-22 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:37:05 [end_date_ymd] => 2024-12-22 20:37:05 [RateCDR] => 1 ) [2024-12-22 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:37:05' and `end` < '2024-12-22 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:37:17] Production.INFO: count ==1238 [2024-12-22 20:37:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:37:05 - End Time 2024-12-22 20:37:05 [2024-12-22 20:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079989', 'tblTempUsageDetail_20' ) start [2024-12-22 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079989', 'tblTempUsageDetail_20' ) end [2024-12-22 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079989', 'tblTempVendorCDR_20' ) start [2024-12-22 20:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079989', 'tblTempVendorCDR_20' ) end [2024-12-22 20:37:17] Production.INFO: ProcessCDR(1,14079989,1,1,2) [2024-12-22 20:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079989', 'tblTempUsageDetail_20' ) start [2024-12-22 20:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079989', 'tblTempUsageDetail_20' ) end [2024-12-22 20:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:37:20] Production.INFO: ==28503== Releasing lock... [2024-12-22 20:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:37:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:38:05 [end_date_ymd] => 2024-12-22 20:38:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:38:05' and `end` < '2024-12-22 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-22 20:38:17] Production.INFO: count ==1236 [2024-12-22 20:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:38:05 - End Time 2024-12-22 20:38:05 [2024-12-22 20:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079994', 'tblTempUsageDetail_20' ) start [2024-12-22 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079994', 'tblTempUsageDetail_20' ) end [2024-12-22 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079994', 'tblTempVendorCDR_20' ) start [2024-12-22 20:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079994', 'tblTempVendorCDR_20' ) end [2024-12-22 20:38:17] Production.INFO: ProcessCDR(1,14079994,1,1,2) [2024-12-22 20:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079994', 'tblTempUsageDetail_20' ) start [2024-12-22 20:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079994', 'tblTempUsageDetail_20' ) end [2024-12-22 20:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:38:20] Production.INFO: ==28576== Releasing lock... [2024-12-22 20:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:38:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:39:05 [end_date_ymd] => 2024-12-22 20:39:05 [RateCDR] => 1 ) [2024-12-22 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:39:05' and `end` < '2024-12-22 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:39:17] Production.INFO: count ==1240 [2024-12-22 20:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:39:05 - End Time 2024-12-22 20:39:05 [2024-12-22 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079999', 'tblTempUsageDetail_20' ) start [2024-12-22 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14079999', 'tblTempUsageDetail_20' ) end [2024-12-22 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079999', 'tblTempVendorCDR_20' ) start [2024-12-22 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14079999', 'tblTempVendorCDR_20' ) end [2024-12-22 20:39:17] Production.INFO: ProcessCDR(1,14079999,1,1,2) [2024-12-22 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14079999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14079999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14079999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14079999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079999', 'tblTempUsageDetail_20' ) start [2024-12-22 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14079999', 'tblTempUsageDetail_20' ) end [2024-12-22 20:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:39:21] Production.INFO: ==28645== Releasing lock... [2024-12-22 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:39:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:40:05 [end_date_ymd] => 2024-12-22 20:40:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:40:05' and `end` < '2024-12-22 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-22 20:40:18] Production.INFO: count ==1243 [2024-12-22 20:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:40:05 - End Time 2024-12-22 20:40:05 [2024-12-22 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080004', 'tblTempUsageDetail_20' ) start [2024-12-22 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080004', 'tblTempUsageDetail_20' ) end [2024-12-22 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080004', 'tblTempVendorCDR_20' ) start [2024-12-22 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080004', 'tblTempVendorCDR_20' ) end [2024-12-22 20:40:18] Production.INFO: ProcessCDR(1,14080004,1,1,2) [2024-12-22 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080004', 'tblTempUsageDetail_20' ) start [2024-12-22 20:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080004', 'tblTempUsageDetail_20' ) end [2024-12-22 20:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:40:21] Production.INFO: ==28722== Releasing lock... [2024-12-22 20:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:40:21] Production.INFO: 37 MB #Memory Used# [2024-12-22 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:41:05 [end_date_ymd] => 2024-12-22 20:41:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:41:05' and `end` < '2024-12-22 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-22 20:41:17] Production.INFO: count ==1218 [2024-12-22 20:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:41:05 - End Time 2024-12-22 20:41:05 [2024-12-22 20:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080010', 'tblTempUsageDetail_20' ) start [2024-12-22 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080010', 'tblTempUsageDetail_20' ) end [2024-12-22 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080010', 'tblTempVendorCDR_20' ) start [2024-12-22 20:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080010', 'tblTempVendorCDR_20' ) end [2024-12-22 20:41:17] Production.INFO: ProcessCDR(1,14080010,1,1,2) [2024-12-22 20:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080010', 'tblTempUsageDetail_20' ) start [2024-12-22 20:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080010', 'tblTempUsageDetail_20' ) end [2024-12-22 20:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:41:20] Production.INFO: ==28794== Releasing lock... [2024-12-22 20:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:41:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:42:05 [end_date_ymd] => 2024-12-22 20:42:05 [RateCDR] => 1 ) [2024-12-22 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:42:05' and `end` < '2024-12-22 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:42:18] Production.INFO: count ==1216 [2024-12-22 20:42:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:42:05 - End Time 2024-12-22 20:42:05 [2024-12-22 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080015', 'tblTempUsageDetail_20' ) start [2024-12-22 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080015', 'tblTempUsageDetail_20' ) end [2024-12-22 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080015', 'tblTempVendorCDR_20' ) start [2024-12-22 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080015', 'tblTempVendorCDR_20' ) end [2024-12-22 20:42:18] Production.INFO: ProcessCDR(1,14080015,1,1,2) [2024-12-22 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080015', 'tblTempUsageDetail_20' ) start [2024-12-22 20:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080015', 'tblTempUsageDetail_20' ) end [2024-12-22 20:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:42:21] Production.INFO: ==28870== Releasing lock... [2024-12-22 20:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:42:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:43:05 [end_date_ymd] => 2024-12-22 20:43:05 [RateCDR] => 1 ) [2024-12-22 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:43:05' and `end` < '2024-12-22 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:43:17] Production.INFO: count ==1213 [2024-12-22 20:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:43:05 - End Time 2024-12-22 20:43:05 [2024-12-22 20:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080020', 'tblTempUsageDetail_20' ) start [2024-12-22 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080020', 'tblTempUsageDetail_20' ) end [2024-12-22 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080020', 'tblTempVendorCDR_20' ) start [2024-12-22 20:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080020', 'tblTempVendorCDR_20' ) end [2024-12-22 20:43:17] Production.INFO: ProcessCDR(1,14080020,1,1,2) [2024-12-22 20:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080020', 'tblTempUsageDetail_20' ) start [2024-12-22 20:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080020', 'tblTempUsageDetail_20' ) end [2024-12-22 20:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:43:20] Production.INFO: ==28941== Releasing lock... [2024-12-22 20:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:43:20] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 20:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:44:04 [end_date_ymd] => 2024-12-22 20:44:04 [RateCDR] => 1 ) [2024-12-22 20:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:44:04' and `end` < '2024-12-22 20:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:44:17] Production.INFO: count ==1212 [2024-12-22 20:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:44:04 - End Time 2024-12-22 20:44:04 [2024-12-22 20:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080025', 'tblTempUsageDetail_20' ) start [2024-12-22 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080025', 'tblTempUsageDetail_20' ) end [2024-12-22 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080025', 'tblTempVendorCDR_20' ) start [2024-12-22 20:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080025', 'tblTempVendorCDR_20' ) end [2024-12-22 20:44:17] Production.INFO: ProcessCDR(1,14080025,1,1,2) [2024-12-22 20:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080025', 'tblTempUsageDetail_20' ) start [2024-12-22 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080025', 'tblTempUsageDetail_20' ) end [2024-12-22 20:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:44:21] Production.INFO: ==29054== Releasing lock... [2024-12-22 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:44:21] Production.INFO: 36.75 MB #Memory Used# [2024-12-22 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:45:04 [end_date_ymd] => 2024-12-22 20:45:04 [RateCDR] => 1 ) [2024-12-22 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-22 17:45:04' and `end` < '2024-12-22 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-22 20:45:16] Production.INFO: count ==1204 [2024-12-22 20:45:16] Production.ERROR: pbx CDR StartTime 2024-12-22 17:45:04 - End Time 2024-12-22 20:45:04 [2024-12-22 20:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080030', 'tblTempUsageDetail_20' ) start [2024-12-22 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080030', 'tblTempUsageDetail_20' ) end [2024-12-22 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080030', 'tblTempVendorCDR_20' ) start [2024-12-22 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080030', 'tblTempVendorCDR_20' ) end [2024-12-22 20:45:17] Production.INFO: ProcessCDR(1,14080030,1,1,2) [2024-12-22 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080030', 'tblTempUsageDetail_20' ) start [2024-12-22 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080030', 'tblTempUsageDetail_20' ) end [2024-12-22 20:45:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:45:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:45:21] Production.INFO: ==29129== Releasing lock... [2024-12-22 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:45:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-22 20:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:46:04 [end_date_ymd] => 2024-12-22 20:46:04 [RateCDR] => 1 ) [2024-12-22 20: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-22 17:46:04' and `end` < '2024-12-22 20: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-22 20:46:17] Production.INFO: count ==1202 [2024-12-22 20:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:46:04 - End Time 2024-12-22 20:46:04 [2024-12-22 20:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080035', 'tblTempUsageDetail_20' ) start [2024-12-22 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080035', 'tblTempUsageDetail_20' ) end [2024-12-22 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080035', 'tblTempVendorCDR_20' ) start [2024-12-22 20:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080035', 'tblTempVendorCDR_20' ) end [2024-12-22 20:46:17] Production.INFO: ProcessCDR(1,14080035,1,1,2) [2024-12-22 20:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080035', 'tblTempUsageDetail_20' ) start [2024-12-22 20:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080035', 'tblTempUsageDetail_20' ) end [2024-12-22 20:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:46:20] Production.INFO: ==29200== Releasing lock... [2024-12-22 20:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:46:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-22 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:47:05 [end_date_ymd] => 2024-12-22 20:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:47:05' and `end` < '2024-12-22 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-22 20:47:17] Production.INFO: count ==1199 [2024-12-22 20:47:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:47:05 - End Time 2024-12-22 20:47:05 [2024-12-22 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080040', 'tblTempUsageDetail_20' ) start [2024-12-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080040', 'tblTempUsageDetail_20' ) end [2024-12-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080040', 'tblTempVendorCDR_20' ) start [2024-12-22 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080040', 'tblTempVendorCDR_20' ) end [2024-12-22 20:47:18] Production.INFO: ProcessCDR(1,14080040,1,1,2) [2024-12-22 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080040', 'tblTempUsageDetail_20' ) start [2024-12-22 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080040', 'tblTempUsageDetail_20' ) end [2024-12-22 20:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:47:21] Production.INFO: ==29270== Releasing lock... [2024-12-22 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:47:21] Production.INFO: 36.5 MB #Memory Used# [2024-12-22 20:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:48:04 [end_date_ymd] => 2024-12-22 20:48:04 [RateCDR] => 1 ) [2024-12-22 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-22 17:48:04' and `end` < '2024-12-22 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-22 20:48:16] Production.INFO: count ==1200 [2024-12-22 20:48:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:48:04 - End Time 2024-12-22 20:48:04 [2024-12-22 20:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080045', 'tblTempUsageDetail_20' ) start [2024-12-22 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080045', 'tblTempUsageDetail_20' ) end [2024-12-22 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080045', 'tblTempVendorCDR_20' ) start [2024-12-22 20:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080045', 'tblTempVendorCDR_20' ) end [2024-12-22 20:48:17] Production.INFO: ProcessCDR(1,14080045,1,1,2) [2024-12-22 20:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080045', 'tblTempUsageDetail_20' ) start [2024-12-22 20:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080045', 'tblTempUsageDetail_20' ) end [2024-12-22 20:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:48:20] Production.INFO: ==29339== Releasing lock... [2024-12-22 20:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:48:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-22 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:49:04 [end_date_ymd] => 2024-12-22 20:49:04 [RateCDR] => 1 ) [2024-12-22 20: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-22 17:49:04' and `end` < '2024-12-22 20: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-22 20:49:17] Production.INFO: count ==1202 [2024-12-22 20:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:49:04 - End Time 2024-12-22 20:49:04 [2024-12-22 20:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080050', 'tblTempUsageDetail_20' ) start [2024-12-22 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080050', 'tblTempUsageDetail_20' ) end [2024-12-22 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080050', 'tblTempVendorCDR_20' ) start [2024-12-22 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080050', 'tblTempVendorCDR_20' ) end [2024-12-22 20:49:17] Production.INFO: ProcessCDR(1,14080050,1,1,2) [2024-12-22 20:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080050', 'tblTempUsageDetail_20' ) start [2024-12-22 20:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080050', 'tblTempUsageDetail_20' ) end [2024-12-22 20:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:49:20] Production.INFO: ==29411== Releasing lock... [2024-12-22 20:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:49:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-22 20:50:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:50:04 [end_date_ymd] => 2024-12-22 20:50:04 [RateCDR] => 1 ) [2024-12-22 20: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-22 17:50:04' and `end` < '2024-12-22 20: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-22 20:50:17] Production.INFO: count ==1200 [2024-12-22 20:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:50:04 - End Time 2024-12-22 20:50:04 [2024-12-22 20:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080054', 'tblTempUsageDetail_20' ) start [2024-12-22 20:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080054', 'tblTempUsageDetail_20' ) end [2024-12-22 20:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080054', 'tblTempVendorCDR_20' ) start [2024-12-22 20:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080054', 'tblTempVendorCDR_20' ) end [2024-12-22 20:50:17] Production.INFO: ProcessCDR(1,14080054,1,1,2) [2024-12-22 20:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080054', 'tblTempUsageDetail_20' ) start [2024-12-22 20:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080054', 'tblTempUsageDetail_20' ) end [2024-12-22 20:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:50:20] Production.INFO: ==29488== Releasing lock... [2024-12-22 20:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:50:20] Production.INFO: 36.5 MB #Memory Used# [2024-12-22 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:51:05 [end_date_ymd] => 2024-12-22 20:51:05 [RateCDR] => 1 ) [2024-12-22 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:51:05' and `end` < '2024-12-22 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:51:17] Production.INFO: count ==1166 [2024-12-22 20:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:51:05 - End Time 2024-12-22 20:51:05 [2024-12-22 20:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080061', 'tblTempUsageDetail_20' ) start [2024-12-22 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080061', 'tblTempUsageDetail_20' ) end [2024-12-22 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080061', 'tblTempVendorCDR_20' ) start [2024-12-22 20:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080061', 'tblTempVendorCDR_20' ) end [2024-12-22 20:51:17] Production.INFO: ProcessCDR(1,14080061,1,1,2) [2024-12-22 20:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080061', 'tblTempUsageDetail_20' ) start [2024-12-22 20:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080061', 'tblTempUsageDetail_20' ) end [2024-12-22 20:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:51:20] Production.INFO: ==29563== Releasing lock... [2024-12-22 20:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:51:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-22 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:52:05 [end_date_ymd] => 2024-12-22 20:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:52:05' and `end` < '2024-12-22 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-22 20:52:17] Production.INFO: count ==1166 [2024-12-22 20:52:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:52:05 - End Time 2024-12-22 20:52:05 [2024-12-22 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080066', 'tblTempUsageDetail_20' ) start [2024-12-22 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080066', 'tblTempUsageDetail_20' ) end [2024-12-22 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080066', 'tblTempVendorCDR_20' ) start [2024-12-22 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080066', 'tblTempVendorCDR_20' ) end [2024-12-22 20:52:18] Production.INFO: ProcessCDR(1,14080066,1,1,2) [2024-12-22 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080066', 'tblTempUsageDetail_20' ) start [2024-12-22 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080066', 'tblTempUsageDetail_20' ) end [2024-12-22 20:52:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:52:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:52:21] Production.INFO: ==29635== Releasing lock... [2024-12-22 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:52:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-22 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:53:05 [end_date_ymd] => 2024-12-22 20:53:05 [RateCDR] => 1 ) [2024-12-22 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:53:05' and `end` < '2024-12-22 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:53:17] Production.INFO: count ==1166 [2024-12-22 20:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:53:05 - End Time 2024-12-22 20:53:05 [2024-12-22 20:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080071', 'tblTempUsageDetail_20' ) start [2024-12-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080071', 'tblTempUsageDetail_20' ) end [2024-12-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080071', 'tblTempVendorCDR_20' ) start [2024-12-22 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080071', 'tblTempVendorCDR_20' ) end [2024-12-22 20:53:18] Production.INFO: ProcessCDR(1,14080071,1,1,2) [2024-12-22 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080071', 'tblTempUsageDetail_20' ) start [2024-12-22 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080071', 'tblTempUsageDetail_20' ) end [2024-12-22 20:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:53:21] Production.INFO: ==29707== Releasing lock... [2024-12-22 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:53:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-22 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:54:05 [end_date_ymd] => 2024-12-22 20:54:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:54:05' and `end` < '2024-12-22 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-22 20:54:18] Production.INFO: count ==1162 [2024-12-22 20:54:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:54:05 - End Time 2024-12-22 20:54:05 [2024-12-22 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080076', 'tblTempUsageDetail_20' ) start [2024-12-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080076', 'tblTempUsageDetail_20' ) end [2024-12-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080076', 'tblTempVendorCDR_20' ) start [2024-12-22 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080076', 'tblTempVendorCDR_20' ) end [2024-12-22 20:54:18] Production.INFO: ProcessCDR(1,14080076,1,1,2) [2024-12-22 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080076', 'tblTempUsageDetail_20' ) start [2024-12-22 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080076', 'tblTempUsageDetail_20' ) end [2024-12-22 20:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:54:21] Production.INFO: ==29777== Releasing lock... [2024-12-22 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:54:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-22 20:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:55:04 [end_date_ymd] => 2024-12-22 20:55:04 [RateCDR] => 1 ) [2024-12-22 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-22 17:55:04' and `end` < '2024-12-22 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-22 20:55:17] Production.INFO: count ==1156 [2024-12-22 20:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:55:04 - End Time 2024-12-22 20:55:04 [2024-12-22 20:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080081', 'tblTempUsageDetail_20' ) start [2024-12-22 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080081', 'tblTempUsageDetail_20' ) end [2024-12-22 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080081', 'tblTempVendorCDR_20' ) start [2024-12-22 20:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080081', 'tblTempVendorCDR_20' ) end [2024-12-22 20:55:17] Production.INFO: ProcessCDR(1,14080081,1,1,2) [2024-12-22 20:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080081', 'tblTempUsageDetail_20' ) start [2024-12-22 20:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080081', 'tblTempUsageDetail_20' ) end [2024-12-22 20:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:55:20] Production.INFO: ==29848== Releasing lock... [2024-12-22 20:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:55:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-22 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:56:05 [end_date_ymd] => 2024-12-22 20:56:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:56:05' and `end` < '2024-12-22 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-22 20:56:17] Production.INFO: count ==1155 [2024-12-22 20:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:56:05 - End Time 2024-12-22 20:56:05 [2024-12-22 20:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080086', 'tblTempUsageDetail_20' ) start [2024-12-22 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080086', 'tblTempUsageDetail_20' ) end [2024-12-22 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080086', 'tblTempVendorCDR_20' ) start [2024-12-22 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080086', 'tblTempVendorCDR_20' ) end [2024-12-22 20:56:17] Production.INFO: ProcessCDR(1,14080086,1,1,2) [2024-12-22 20:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080086', 'tblTempUsageDetail_20' ) start [2024-12-22 20:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080086', 'tblTempUsageDetail_20' ) end [2024-12-22 20:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:56:20] Production.INFO: ==29923== Releasing lock... [2024-12-22 20:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:56:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-22 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:57:05 [end_date_ymd] => 2024-12-22 20:57:05 [RateCDR] => 1 ) [2024-12-22 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-22 17:57:05' and `end` < '2024-12-22 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-22 20:57:17] Production.INFO: count ==1155 [2024-12-22 20:57:18] Production.ERROR: pbx CDR StartTime 2024-12-22 17:57:05 - End Time 2024-12-22 20:57:05 [2024-12-22 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080091', 'tblTempUsageDetail_20' ) start [2024-12-22 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080091', 'tblTempUsageDetail_20' ) end [2024-12-22 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080091', 'tblTempVendorCDR_20' ) start [2024-12-22 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080091', 'tblTempVendorCDR_20' ) end [2024-12-22 20:57:18] Production.INFO: ProcessCDR(1,14080091,1,1,2) [2024-12-22 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080091', 'tblTempUsageDetail_20' ) start [2024-12-22 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080091', 'tblTempUsageDetail_20' ) end [2024-12-22 20:57:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:57:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:57:21] Production.INFO: ==29994== Releasing lock... [2024-12-22 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:57:21] Production.INFO: 36.25 MB #Memory Used# [2024-12-22 20:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:58:04 [end_date_ymd] => 2024-12-22 20:58:04 [RateCDR] => 1 ) [2024-12-22 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-22 17:58:04' and `end` < '2024-12-22 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-22 20:58:16] Production.INFO: count ==1157 [2024-12-22 20:58:16] Production.ERROR: pbx CDR StartTime 2024-12-22 17:58:04 - End Time 2024-12-22 20:58:04 [2024-12-22 20:58:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080096', 'tblTempUsageDetail_20' ) start [2024-12-22 20:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080096', 'tblTempUsageDetail_20' ) end [2024-12-22 20:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080096', 'tblTempVendorCDR_20' ) start [2024-12-22 20:58:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080096', 'tblTempVendorCDR_20' ) end [2024-12-22 20:58:16] Production.INFO: ProcessCDR(1,14080096,1,1,2) [2024-12-22 20:58:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:58:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:58:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:58:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080096', 'tblTempUsageDetail_20' ) start [2024-12-22 20:58:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080096', 'tblTempUsageDetail_20' ) end [2024-12-22 20:58:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:58:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:58:19] Production.INFO: ==30070== Releasing lock... [2024-12-22 20:58:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:58:19] Production.INFO: 36.25 MB #Memory Used# [2024-12-22 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 17:59:04 [end_date_ymd] => 2024-12-22 20:59:04 [RateCDR] => 1 ) [2024-12-22 20:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 17:59:04' and `end` < '2024-12-22 20:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 20:59:17] Production.INFO: count ==1158 [2024-12-22 20:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 17:59:04 - End Time 2024-12-22 20:59:04 [2024-12-22 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080101', 'tblTempUsageDetail_20' ) start [2024-12-22 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080101', 'tblTempUsageDetail_20' ) end [2024-12-22 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080101', 'tblTempVendorCDR_20' ) start [2024-12-22 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080101', 'tblTempVendorCDR_20' ) end [2024-12-22 20:59:17] Production.INFO: ProcessCDR(1,14080101,1,1,2) [2024-12-22 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080101', 'tblTempUsageDetail_20' ) start [2024-12-22 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080101', 'tblTempUsageDetail_20' ) end [2024-12-22 20:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 20:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 20:59:20] Production.INFO: ==30184== Releasing lock... [2024-12-22 20:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 20:59:20] Production.INFO: 36.25 MB #Memory Used# [2024-12-22 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:00:05 [end_date_ymd] => 2024-12-22 21:00:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:00:05' and `end` < '2024-12-22 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-22 21:00:17] Production.INFO: count ==1156 [2024-12-22 21:00:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:00:05 - End Time 2024-12-22 21:00:05 [2024-12-22 21:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080107', 'tblTempUsageDetail_20' ) start [2024-12-22 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080107', 'tblTempUsageDetail_20' ) end [2024-12-22 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080107', 'tblTempVendorCDR_20' ) start [2024-12-22 21:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080107', 'tblTempVendorCDR_20' ) end [2024-12-22 21:00:17] Production.INFO: ProcessCDR(1,14080107,1,1,2) [2024-12-22 21:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080107', 'tblTempUsageDetail_20' ) start [2024-12-22 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080107', 'tblTempUsageDetail_20' ) end [2024-12-22 21:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:00:22] Production.INFO: ==30256== Releasing lock... [2024-12-22 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:00:22] Production.INFO: 36.25 MB #Memory Used# [2024-12-22 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:01:05 [end_date_ymd] => 2024-12-22 21:01:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:01:05' and `end` < '2024-12-22 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-22 21:01:17] Production.INFO: count ==1118 [2024-12-22 21:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:01:05 - End Time 2024-12-22 21:01:05 [2024-12-22 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080112', 'tblTempUsageDetail_20' ) start [2024-12-22 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080112', 'tblTempUsageDetail_20' ) end [2024-12-22 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080112', 'tblTempVendorCDR_20' ) start [2024-12-22 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080112', 'tblTempVendorCDR_20' ) end [2024-12-22 21:01:17] Production.INFO: ProcessCDR(1,14080112,1,1,2) [2024-12-22 21:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080112', 'tblTempUsageDetail_20' ) start [2024-12-22 21:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080112', 'tblTempUsageDetail_20' ) end [2024-12-22 21:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:01:20] Production.INFO: ==30341== Releasing lock... [2024-12-22 21:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:01:20] Production.INFO: 36 MB #Memory Used# [2024-12-22 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:02:05 [end_date_ymd] => 2024-12-22 21:02:05 [RateCDR] => 1 ) [2024-12-22 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:02:05' and `end` < '2024-12-22 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:02:18] Production.INFO: count ==1118 [2024-12-22 21:02:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:02:05 - End Time 2024-12-22 21:02:05 [2024-12-22 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080117', 'tblTempUsageDetail_20' ) start [2024-12-22 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080117', 'tblTempUsageDetail_20' ) end [2024-12-22 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080117', 'tblTempVendorCDR_20' ) start [2024-12-22 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080117', 'tblTempVendorCDR_20' ) end [2024-12-22 21:02:18] Production.INFO: ProcessCDR(1,14080117,1,1,2) [2024-12-22 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080117', 'tblTempUsageDetail_20' ) start [2024-12-22 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080117', 'tblTempUsageDetail_20' ) end [2024-12-22 21:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:02:21] Production.INFO: ==30413== Releasing lock... [2024-12-22 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:02:21] Production.INFO: 36 MB #Memory Used# [2024-12-22 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:03:04 [end_date_ymd] => 2024-12-22 21:03:04 [RateCDR] => 1 ) [2024-12-22 21:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:03:04' and `end` < '2024-12-22 21:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:03:17] Production.INFO: count ==1118 [2024-12-22 21:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:03:04 - End Time 2024-12-22 21:03:04 [2024-12-22 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080122', 'tblTempUsageDetail_20' ) start [2024-12-22 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080122', 'tblTempUsageDetail_20' ) end [2024-12-22 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080122', 'tblTempVendorCDR_20' ) start [2024-12-22 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080122', 'tblTempVendorCDR_20' ) end [2024-12-22 21:03:17] Production.INFO: ProcessCDR(1,14080122,1,1,2) [2024-12-22 21:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080122', 'tblTempUsageDetail_20' ) start [2024-12-22 21:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080122', 'tblTempUsageDetail_20' ) end [2024-12-22 21:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:03:20] Production.INFO: ==30487== Releasing lock... [2024-12-22 21:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:03:20] Production.INFO: 36 MB #Memory Used# [2024-12-22 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:04:05 [end_date_ymd] => 2024-12-22 21:04:05 [RateCDR] => 1 ) [2024-12-22 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:04:05' and `end` < '2024-12-22 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:04:17] Production.INFO: count ==1117 [2024-12-22 21:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:04:05 - End Time 2024-12-22 21:04:05 [2024-12-22 21:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080127', 'tblTempUsageDetail_20' ) start [2024-12-22 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080127', 'tblTempUsageDetail_20' ) end [2024-12-22 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080127', 'tblTempVendorCDR_20' ) start [2024-12-22 21:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080127', 'tblTempVendorCDR_20' ) end [2024-12-22 21:04:17] Production.INFO: ProcessCDR(1,14080127,1,1,2) [2024-12-22 21:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080127', 'tblTempUsageDetail_20' ) start [2024-12-22 21:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080127', 'tblTempUsageDetail_20' ) end [2024-12-22 21:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:04:20] Production.INFO: ==30557== Releasing lock... [2024-12-22 21:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:04:20] Production.INFO: 36 MB #Memory Used# [2024-12-22 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:05:04 [end_date_ymd] => 2024-12-22 21:05:04 [RateCDR] => 1 ) [2024-12-22 21:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:05:04' and `end` < '2024-12-22 21:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:05:17] Production.INFO: count ==1113 [2024-12-22 21:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:05:04 - End Time 2024-12-22 21:05:04 [2024-12-22 21:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080132', 'tblTempUsageDetail_20' ) start [2024-12-22 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080132', 'tblTempUsageDetail_20' ) end [2024-12-22 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080132', 'tblTempVendorCDR_20' ) start [2024-12-22 21:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080132', 'tblTempVendorCDR_20' ) end [2024-12-22 21:05:17] Production.INFO: ProcessCDR(1,14080132,1,1,2) [2024-12-22 21:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080132', 'tblTempUsageDetail_20' ) start [2024-12-22 21:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080132', 'tblTempUsageDetail_20' ) end [2024-12-22 21:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:05:20] Production.INFO: ==30626== Releasing lock... [2024-12-22 21:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:05:20] Production.INFO: 36 MB #Memory Used# [2024-12-22 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:06:05 [end_date_ymd] => 2024-12-22 21:06:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:06:05' and `end` < '2024-12-22 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-22 21:06:17] Production.INFO: count ==1109 [2024-12-22 21:06:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:06:05 - End Time 2024-12-22 21:06:05 [2024-12-22 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080137', 'tblTempUsageDetail_20' ) start [2024-12-22 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080137', 'tblTempUsageDetail_20' ) end [2024-12-22 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080137', 'tblTempVendorCDR_20' ) start [2024-12-22 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080137', 'tblTempVendorCDR_20' ) end [2024-12-22 21:06:18] Production.INFO: ProcessCDR(1,14080137,1,1,2) [2024-12-22 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080137', 'tblTempUsageDetail_20' ) start [2024-12-22 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080137', 'tblTempUsageDetail_20' ) end [2024-12-22 21:06:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:06:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:06:21] Production.INFO: ==30701== Releasing lock... [2024-12-22 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:06:21] Production.INFO: 36 MB #Memory Used# [2024-12-22 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:07:05 [end_date_ymd] => 2024-12-22 21:07:05 [RateCDR] => 1 ) [2024-12-22 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:07:05' and `end` < '2024-12-22 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:07:17] Production.INFO: count ==1110 [2024-12-22 21:07:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:07:05 - End Time 2024-12-22 21:07:05 [2024-12-22 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080142', 'tblTempUsageDetail_20' ) start [2024-12-22 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080142', 'tblTempUsageDetail_20' ) end [2024-12-22 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080142', 'tblTempVendorCDR_20' ) start [2024-12-22 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080142', 'tblTempVendorCDR_20' ) end [2024-12-22 21:07:17] Production.INFO: ProcessCDR(1,14080142,1,1,2) [2024-12-22 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080142', 'tblTempUsageDetail_20' ) start [2024-12-22 21:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080142', 'tblTempUsageDetail_20' ) end [2024-12-22 21:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:07:20] Production.INFO: ==30772== Releasing lock... [2024-12-22 21:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:07:20] Production.INFO: 36 MB #Memory Used# [2024-12-22 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:08:05 [end_date_ymd] => 2024-12-22 21:08:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:08:05' and `end` < '2024-12-22 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-22 21:08:18] Production.INFO: count ==1108 [2024-12-22 21:08:19] Production.ERROR: pbx CDR StartTime 2024-12-22 18:08:05 - End Time 2024-12-22 21:08:05 [2024-12-22 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080147', 'tblTempUsageDetail_20' ) start [2024-12-22 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080147', 'tblTempUsageDetail_20' ) end [2024-12-22 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080147', 'tblTempVendorCDR_20' ) start [2024-12-22 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080147', 'tblTempVendorCDR_20' ) end [2024-12-22 21:08:19] Production.INFO: ProcessCDR(1,14080147,1,1,2) [2024-12-22 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080147', 'tblTempUsageDetail_20' ) start [2024-12-22 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080147', 'tblTempUsageDetail_20' ) end [2024-12-22 21:08:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:08:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:08:22] Production.INFO: ==30845== Releasing lock... [2024-12-22 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:08:22] Production.INFO: 36 MB #Memory Used# [2024-12-22 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:09:05 [end_date_ymd] => 2024-12-22 21:09:05 [RateCDR] => 1 ) [2024-12-22 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:09:05' and `end` < '2024-12-22 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:09:17] Production.INFO: count ==1108 [2024-12-22 21:09:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:09:05 - End Time 2024-12-22 21:09:05 [2024-12-22 21:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080152', 'tblTempUsageDetail_20' ) start [2024-12-22 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080152', 'tblTempUsageDetail_20' ) end [2024-12-22 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080152', 'tblTempVendorCDR_20' ) start [2024-12-22 21:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080152', 'tblTempVendorCDR_20' ) end [2024-12-22 21:09:17] Production.INFO: ProcessCDR(1,14080152,1,1,2) [2024-12-22 21:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080152', 'tblTempUsageDetail_20' ) start [2024-12-22 21:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080152', 'tblTempUsageDetail_20' ) end [2024-12-22 21:09:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:09:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:09:20] Production.INFO: ==30922== Releasing lock... [2024-12-22 21:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:09:20] Production.INFO: 36 MB #Memory Used# [2024-12-22 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:10:05 [end_date_ymd] => 2024-12-22 21:10:05 [RateCDR] => 1 ) [2024-12-22 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:10:05' and `end` < '2024-12-22 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-22 21:10:18] Production.INFO: count ==1109 [2024-12-22 21:10:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:10:05 - End Time 2024-12-22 21:10:05 [2024-12-22 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080158', 'tblTempUsageDetail_20' ) start [2024-12-22 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080158', 'tblTempUsageDetail_20' ) end [2024-12-22 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080158', 'tblTempVendorCDR_20' ) start [2024-12-22 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080158', 'tblTempVendorCDR_20' ) end [2024-12-22 21:10:18] Production.INFO: ProcessCDR(1,14080158,1,1,2) [2024-12-22 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080158', 'tblTempUsageDetail_20' ) start [2024-12-22 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080158', 'tblTempUsageDetail_20' ) end [2024-12-22 21:10:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:10:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:10:21] Production.INFO: ==30994== Releasing lock... [2024-12-22 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:10:21] Production.INFO: 36 MB #Memory Used# [2024-12-22 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:11:04 [end_date_ymd] => 2024-12-22 21:11:04 [RateCDR] => 1 ) [2024-12-22 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-22 18:11:04' and `end` < '2024-12-22 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-22 21:11:16] Production.INFO: count ==1063 [2024-12-22 21:11:16] Production.ERROR: pbx CDR StartTime 2024-12-22 18:11:04 - End Time 2024-12-22 21:11:04 [2024-12-22 21:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080163', 'tblTempUsageDetail_20' ) start [2024-12-22 21:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080163', 'tblTempUsageDetail_20' ) end [2024-12-22 21:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080163', 'tblTempVendorCDR_20' ) start [2024-12-22 21:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080163', 'tblTempVendorCDR_20' ) end [2024-12-22 21:11:16] Production.INFO: ProcessCDR(1,14080163,1,1,2) [2024-12-22 21:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080163', 'tblTempUsageDetail_20' ) start [2024-12-22 21:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080163', 'tblTempUsageDetail_20' ) end [2024-12-22 21:11:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:11:20] Production.INFO: ==31070== Releasing lock... [2024-12-22 21:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:11:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 21:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:12:04 [end_date_ymd] => 2024-12-22 21:12:04 [RateCDR] => 1 ) [2024-12-22 21:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:12:04' and `end` < '2024-12-22 21:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:12:16] Production.INFO: count ==1067 [2024-12-22 21:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:12:04 - End Time 2024-12-22 21:12:04 [2024-12-22 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080168', 'tblTempUsageDetail_20' ) start [2024-12-22 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080168', 'tblTempUsageDetail_20' ) end [2024-12-22 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080168', 'tblTempVendorCDR_20' ) start [2024-12-22 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080168', 'tblTempVendorCDR_20' ) end [2024-12-22 21:12:17] Production.INFO: ProcessCDR(1,14080168,1,1,2) [2024-12-22 21:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080168', 'tblTempUsageDetail_20' ) start [2024-12-22 21:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080168', 'tblTempUsageDetail_20' ) end [2024-12-22 21:12:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:12:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:12:20] Production.INFO: ==31143== Releasing lock... [2024-12-22 21:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:12:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:13:05 [end_date_ymd] => 2024-12-22 21:13:05 [RateCDR] => 1 ) [2024-12-22 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:13:05' and `end` < '2024-12-22 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:13:18] Production.INFO: count ==1067 [2024-12-22 21:13:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:13:05 - End Time 2024-12-22 21:13:05 [2024-12-22 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080173', 'tblTempUsageDetail_20' ) start [2024-12-22 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080173', 'tblTempUsageDetail_20' ) end [2024-12-22 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080173', 'tblTempVendorCDR_20' ) start [2024-12-22 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080173', 'tblTempVendorCDR_20' ) end [2024-12-22 21:13:18] Production.INFO: ProcessCDR(1,14080173,1,1,2) [2024-12-22 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080173', 'tblTempUsageDetail_20' ) start [2024-12-22 21:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080173', 'tblTempUsageDetail_20' ) end [2024-12-22 21:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:13:21] Production.INFO: ==31223== Releasing lock... [2024-12-22 21:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:13:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 21:14:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:14:04 [end_date_ymd] => 2024-12-22 21:14:04 [RateCDR] => 1 ) [2024-12-22 21: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-22 18:14:04' and `end` < '2024-12-22 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-22 21:14:17] Production.INFO: count ==1066 [2024-12-22 21:14:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:14:04 - End Time 2024-12-22 21:14:04 [2024-12-22 21:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080178', 'tblTempUsageDetail_20' ) start [2024-12-22 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080178', 'tblTempUsageDetail_20' ) end [2024-12-22 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080178', 'tblTempVendorCDR_20' ) start [2024-12-22 21:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080178', 'tblTempVendorCDR_20' ) end [2024-12-22 21:14:17] Production.INFO: ProcessCDR(1,14080178,1,1,2) [2024-12-22 21:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080178', 'tblTempUsageDetail_20' ) start [2024-12-22 21:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080178', 'tblTempUsageDetail_20' ) end [2024-12-22 21:14:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:14:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:14:20] Production.INFO: ==31296== Releasing lock... [2024-12-22 21:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:14:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:15:05 [end_date_ymd] => 2024-12-22 21:15:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:15:05' and `end` < '2024-12-22 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-22 21:15:17] Production.INFO: count ==1066 [2024-12-22 21:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:15:05 - End Time 2024-12-22 21:15:05 [2024-12-22 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080183', 'tblTempUsageDetail_20' ) start [2024-12-22 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080183', 'tblTempUsageDetail_20' ) end [2024-12-22 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080183', 'tblTempVendorCDR_20' ) start [2024-12-22 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080183', 'tblTempVendorCDR_20' ) end [2024-12-22 21:15:17] Production.INFO: ProcessCDR(1,14080183,1,1,2) [2024-12-22 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080183', 'tblTempUsageDetail_20' ) start [2024-12-22 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080183', 'tblTempUsageDetail_20' ) end [2024-12-22 21:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:15:20] Production.INFO: ==31411== Releasing lock... [2024-12-22 21:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:15:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 21:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:16:04 [end_date_ymd] => 2024-12-22 21:16:04 [RateCDR] => 1 ) [2024-12-22 21: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-22 18:16:04' and `end` < '2024-12-22 21: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-22 21:16:18] Production.INFO: count ==1066 [2024-12-22 21:16:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:16:04 - End Time 2024-12-22 21:16:04 [2024-12-22 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080188', 'tblTempUsageDetail_20' ) start [2024-12-22 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080188', 'tblTempUsageDetail_20' ) end [2024-12-22 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080188', 'tblTempVendorCDR_20' ) start [2024-12-22 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080188', 'tblTempVendorCDR_20' ) end [2024-12-22 21:16:18] Production.INFO: ProcessCDR(1,14080188,1,1,2) [2024-12-22 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080188', 'tblTempUsageDetail_20' ) start [2024-12-22 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080188', 'tblTempUsageDetail_20' ) end [2024-12-22 21:16:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:16:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:16:23] Production.INFO: ==31486== Releasing lock... [2024-12-22 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:16:23] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:17:05 [end_date_ymd] => 2024-12-22 21:17:05 [RateCDR] => 1 ) [2024-12-22 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:17:05' and `end` < '2024-12-22 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:17:17] Production.INFO: count ==1064 [2024-12-22 21:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:17:05 - End Time 2024-12-22 21:17:05 [2024-12-22 21:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080193', 'tblTempUsageDetail_20' ) start [2024-12-22 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080193', 'tblTempUsageDetail_20' ) end [2024-12-22 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080193', 'tblTempVendorCDR_20' ) start [2024-12-22 21:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080193', 'tblTempVendorCDR_20' ) end [2024-12-22 21:17:17] Production.INFO: ProcessCDR(1,14080193,1,1,2) [2024-12-22 21:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080193', 'tblTempUsageDetail_20' ) start [2024-12-22 21:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080193', 'tblTempUsageDetail_20' ) end [2024-12-22 21:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:17:20] Production.INFO: ==31559== Releasing lock... [2024-12-22 21:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:17:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:18:05 [end_date_ymd] => 2024-12-22 21:18:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:18:05' and `end` < '2024-12-22 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-22 21:18:17] Production.INFO: count ==1063 [2024-12-22 21:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:18:05 - End Time 2024-12-22 21:18:05 [2024-12-22 21:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080198', 'tblTempUsageDetail_20' ) start [2024-12-22 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080198', 'tblTempUsageDetail_20' ) end [2024-12-22 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080198', 'tblTempVendorCDR_20' ) start [2024-12-22 21:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080198', 'tblTempVendorCDR_20' ) end [2024-12-22 21:18:17] Production.INFO: ProcessCDR(1,14080198,1,1,2) [2024-12-22 21:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080198', 'tblTempUsageDetail_20' ) start [2024-12-22 21:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080198', 'tblTempUsageDetail_20' ) end [2024-12-22 21:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:18:20] Production.INFO: ==31633== Releasing lock... [2024-12-22 21:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:18:20] Production.INFO: 36 MB #Memory Used# [2024-12-22 21:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:19:04 [end_date_ymd] => 2024-12-22 21:19:04 [RateCDR] => 1 ) [2024-12-22 21: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-22 18:19:04' and `end` < '2024-12-22 21: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-22 21:19:17] Production.INFO: count ==1052 [2024-12-22 21:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:19:04 - End Time 2024-12-22 21:19:04 [2024-12-22 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080203', 'tblTempUsageDetail_20' ) start [2024-12-22 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080203', 'tblTempUsageDetail_20' ) end [2024-12-22 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080203', 'tblTempVendorCDR_20' ) start [2024-12-22 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080203', 'tblTempVendorCDR_20' ) end [2024-12-22 21:19:17] Production.INFO: ProcessCDR(1,14080203,1,1,2) [2024-12-22 21:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080203', 'tblTempUsageDetail_20' ) start [2024-12-22 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080203', 'tblTempUsageDetail_20' ) end [2024-12-22 21:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:19:20] Production.INFO: ==31714== Releasing lock... [2024-12-22 21:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:19:20] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:20:06 [end_date_ymd] => 2024-12-22 21:20:06 [RateCDR] => 1 ) [2024-12-22 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:20:06' and `end` < '2024-12-22 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:20:18] Production.INFO: count ==1042 [2024-12-22 21:20:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:20:06 - End Time 2024-12-22 21:20:06 [2024-12-22 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080209', 'tblTempUsageDetail_20' ) start [2024-12-22 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080209', 'tblTempUsageDetail_20' ) end [2024-12-22 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080209', 'tblTempVendorCDR_20' ) start [2024-12-22 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080209', 'tblTempVendorCDR_20' ) end [2024-12-22 21:20:18] Production.INFO: ProcessCDR(1,14080209,1,1,2) [2024-12-22 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080209', 'tblTempUsageDetail_20' ) start [2024-12-22 21:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080209', 'tblTempUsageDetail_20' ) end [2024-12-22 21:20:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:20:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:20:21] Production.INFO: ==31787== Releasing lock... [2024-12-22 21:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:20:21] Production.INFO: 35.5 MB #Memory Used# [2024-12-22 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:21:04 [end_date_ymd] => 2024-12-22 21:21:04 [RateCDR] => 1 ) [2024-12-22 21:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:21:04' and `end` < '2024-12-22 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-22 21:21:17] Production.INFO: count ==1024 [2024-12-22 21:21:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:21:04 - End Time 2024-12-22 21:21:04 [2024-12-22 21:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080214', 'tblTempUsageDetail_20' ) start [2024-12-22 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080214', 'tblTempUsageDetail_20' ) end [2024-12-22 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080214', 'tblTempVendorCDR_20' ) start [2024-12-22 21:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080214', 'tblTempVendorCDR_20' ) end [2024-12-22 21:21:17] Production.INFO: ProcessCDR(1,14080214,1,1,2) [2024-12-22 21:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080214', 'tblTempUsageDetail_20' ) start [2024-12-22 21:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080214', 'tblTempUsageDetail_20' ) end [2024-12-22 21:21:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:21:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:21:20] Production.INFO: ==31865== Releasing lock... [2024-12-22 21:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:21:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:22:05 [end_date_ymd] => 2024-12-22 21:22:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:22:05' and `end` < '2024-12-22 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-22 21:22:17] Production.INFO: count ==1017 [2024-12-22 21:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:22:05 - End Time 2024-12-22 21:22:05 [2024-12-22 21:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080219', 'tblTempUsageDetail_20' ) start [2024-12-22 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080219', 'tblTempUsageDetail_20' ) end [2024-12-22 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080219', 'tblTempVendorCDR_20' ) start [2024-12-22 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080219', 'tblTempVendorCDR_20' ) end [2024-12-22 21:22:18] Production.INFO: ProcessCDR(1,14080219,1,1,2) [2024-12-22 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080219', 'tblTempUsageDetail_20' ) start [2024-12-22 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080219', 'tblTempUsageDetail_20' ) end [2024-12-22 21:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:22:21] Production.INFO: ==31967== Releasing lock... [2024-12-22 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:22:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:23:05 [end_date_ymd] => 2024-12-22 21:23:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:23:05' and `end` < '2024-12-22 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-22 21:23:17] Production.INFO: count ==1014 [2024-12-22 21:23:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:23:05 - End Time 2024-12-22 21:23:05 [2024-12-22 21:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080224', 'tblTempUsageDetail_20' ) start [2024-12-22 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080224', 'tblTempUsageDetail_20' ) end [2024-12-22 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080224', 'tblTempVendorCDR_20' ) start [2024-12-22 21:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080224', 'tblTempVendorCDR_20' ) end [2024-12-22 21:23:17] Production.INFO: ProcessCDR(1,14080224,1,1,2) [2024-12-22 21:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080224', 'tblTempUsageDetail_20' ) start [2024-12-22 21:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080224', 'tblTempUsageDetail_20' ) end [2024-12-22 21:23:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:23:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:23:20] Production.INFO: ==32040== Releasing lock... [2024-12-22 21:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:23:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 21:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:24:04 [end_date_ymd] => 2024-12-22 21:24:04 [RateCDR] => 1 ) [2024-12-22 21: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-22 18:24:04' and `end` < '2024-12-22 21: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-22 21:24:17] Production.INFO: count ==1013 [2024-12-22 21:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:24:04 - End Time 2024-12-22 21:24:04 [2024-12-22 21:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080229', 'tblTempUsageDetail_20' ) start [2024-12-22 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080229', 'tblTempUsageDetail_20' ) end [2024-12-22 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080229', 'tblTempVendorCDR_20' ) start [2024-12-22 21:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080229', 'tblTempVendorCDR_20' ) end [2024-12-22 21:24:17] Production.INFO: ProcessCDR(1,14080229,1,1,2) [2024-12-22 21:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080229', 'tblTempUsageDetail_20' ) start [2024-12-22 21:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080229', 'tblTempUsageDetail_20' ) end [2024-12-22 21:24:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:24:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:24:20] Production.INFO: ==32115== Releasing lock... [2024-12-22 21:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:24:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:25:04 [end_date_ymd] => 2024-12-22 21:25:04 [RateCDR] => 1 ) [2024-12-22 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:25:04' and `end` < '2024-12-22 21:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:25:17] Production.INFO: count ==1013 [2024-12-22 21:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:25:04 - End Time 2024-12-22 21:25:04 [2024-12-22 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080234', 'tblTempUsageDetail_20' ) start [2024-12-22 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080234', 'tblTempUsageDetail_20' ) end [2024-12-22 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080234', 'tblTempVendorCDR_20' ) start [2024-12-22 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080234', 'tblTempVendorCDR_20' ) end [2024-12-22 21:25:17] Production.INFO: ProcessCDR(1,14080234,1,1,2) [2024-12-22 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080234', 'tblTempUsageDetail_20' ) start [2024-12-22 21:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080234', 'tblTempUsageDetail_20' ) end [2024-12-22 21:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:25:20] Production.INFO: ==32189== Releasing lock... [2024-12-22 21:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:25:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:26:05 [end_date_ymd] => 2024-12-22 21:26:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:26:05' and `end` < '2024-12-22 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-22 21:26:17] Production.INFO: count ==1012 [2024-12-22 21:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:26:05 - End Time 2024-12-22 21:26:05 [2024-12-22 21:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080239', 'tblTempUsageDetail_20' ) start [2024-12-22 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080239', 'tblTempUsageDetail_20' ) end [2024-12-22 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080239', 'tblTempVendorCDR_20' ) start [2024-12-22 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080239', 'tblTempVendorCDR_20' ) end [2024-12-22 21:26:17] Production.INFO: ProcessCDR(1,14080239,1,1,2) [2024-12-22 21:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080239', 'tblTempUsageDetail_20' ) start [2024-12-22 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080239', 'tblTempUsageDetail_20' ) end [2024-12-22 21:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:26:21] Production.INFO: ==32261== Releasing lock... [2024-12-22 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:26:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:27:05 [end_date_ymd] => 2024-12-22 21:27:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:27:05' and `end` < '2024-12-22 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-22 21:27:17] Production.INFO: count ==1007 [2024-12-22 21:27:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:27:05 - End Time 2024-12-22 21:27:05 [2024-12-22 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080244', 'tblTempUsageDetail_20' ) start [2024-12-22 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080244', 'tblTempUsageDetail_20' ) end [2024-12-22 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080244', 'tblTempVendorCDR_20' ) start [2024-12-22 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080244', 'tblTempVendorCDR_20' ) end [2024-12-22 21:27:18] Production.INFO: ProcessCDR(1,14080244,1,1,2) [2024-12-22 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080244', 'tblTempUsageDetail_20' ) start [2024-12-22 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080244', 'tblTempUsageDetail_20' ) end [2024-12-22 21:27:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:27:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:27:21] Production.INFO: ==32346== Releasing lock... [2024-12-22 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:27:21] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:28:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:28:04 [end_date_ymd] => 2024-12-22 21:28:04 [RateCDR] => 1 ) [2024-12-22 21: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-22 18:28:04' and `end` < '2024-12-22 21: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-22 21:28:17] Production.INFO: count ==1010 [2024-12-22 21:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:28:04 - End Time 2024-12-22 21:28:04 [2024-12-22 21:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080249', 'tblTempUsageDetail_20' ) start [2024-12-22 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080249', 'tblTempUsageDetail_20' ) end [2024-12-22 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080249', 'tblTempVendorCDR_20' ) start [2024-12-22 21:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080249', 'tblTempVendorCDR_20' ) end [2024-12-22 21:28:17] Production.INFO: ProcessCDR(1,14080249,1,1,2) [2024-12-22 21:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080249', 'tblTempUsageDetail_20' ) start [2024-12-22 21:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080249', 'tblTempUsageDetail_20' ) end [2024-12-22 21:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:28:20] Production.INFO: ==32418== Releasing lock... [2024-12-22 21:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:28:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:29:05 [end_date_ymd] => 2024-12-22 21:29:05 [RateCDR] => 1 ) [2024-12-22 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:29:05' and `end` < '2024-12-22 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:29:17] Production.INFO: count ==1008 [2024-12-22 21:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:29:05 - End Time 2024-12-22 21:29:05 [2024-12-22 21:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080254', 'tblTempUsageDetail_20' ) start [2024-12-22 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080254', 'tblTempUsageDetail_20' ) end [2024-12-22 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080254', 'tblTempVendorCDR_20' ) start [2024-12-22 21:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080254', 'tblTempVendorCDR_20' ) end [2024-12-22 21:29:17] Production.INFO: ProcessCDR(1,14080254,1,1,2) [2024-12-22 21:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080254', 'tblTempUsageDetail_20' ) start [2024-12-22 21:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080254', 'tblTempUsageDetail_20' ) end [2024-12-22 21:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:29:20] Production.INFO: ==32495== Releasing lock... [2024-12-22 21:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:29:20] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:30:05 [end_date_ymd] => 2024-12-22 21:30:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:30:05' and `end` < '2024-12-22 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-22 21:30:17] Production.INFO: count ==1008 [2024-12-22 21:30:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:30:05 - End Time 2024-12-22 21:30:05 [2024-12-22 21:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080260', 'tblTempUsageDetail_20' ) start [2024-12-22 21:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080260', 'tblTempUsageDetail_20' ) end [2024-12-22 21:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080260', 'tblTempVendorCDR_20' ) start [2024-12-22 21:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080260', 'tblTempVendorCDR_20' ) end [2024-12-22 21:30:17] Production.INFO: ProcessCDR(1,14080260,1,1,2) [2024-12-22 21:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080260', 'tblTempUsageDetail_20' ) start [2024-12-22 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080260', 'tblTempUsageDetail_20' ) end [2024-12-22 21:30:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:30:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:30:21] Production.INFO: ==32571== Releasing lock... [2024-12-22 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:30:21] Production.INFO: 35.25 MB #Memory Used# [2024-12-22 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:31:05 [end_date_ymd] => 2024-12-22 21:31:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:31:05' and `end` < '2024-12-22 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-22 21:31:17] Production.INFO: count ==1001 [2024-12-22 21:31:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:31:05 - End Time 2024-12-22 21:31:05 [2024-12-22 21:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080265', 'tblTempUsageDetail_20' ) start [2024-12-22 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080265', 'tblTempUsageDetail_20' ) end [2024-12-22 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080265', 'tblTempVendorCDR_20' ) start [2024-12-22 21:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080265', 'tblTempVendorCDR_20' ) end [2024-12-22 21:31:17] Production.INFO: ProcessCDR(1,14080265,1,1,2) [2024-12-22 21:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080265', 'tblTempUsageDetail_20' ) start [2024-12-22 21:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080265', 'tblTempUsageDetail_20' ) end [2024-12-22 21:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:31:20] Production.INFO: ==32685== Releasing lock... [2024-12-22 21:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:31:20] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:32:05 [end_date_ymd] => 2024-12-22 21:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:32:05' and `end` < '2024-12-22 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-22 21:32:18] Production.INFO: count ==1002 [2024-12-22 21:32:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:32:05 - End Time 2024-12-22 21:32:05 [2024-12-22 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080270', 'tblTempUsageDetail_20' ) start [2024-12-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080270', 'tblTempUsageDetail_20' ) end [2024-12-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080270', 'tblTempVendorCDR_20' ) start [2024-12-22 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080270', 'tblTempVendorCDR_20' ) end [2024-12-22 21:32:18] Production.INFO: ProcessCDR(1,14080270,1,1,2) [2024-12-22 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080270', 'tblTempUsageDetail_20' ) start [2024-12-22 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080270', 'tblTempUsageDetail_20' ) end [2024-12-22 21:32:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:32:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:32:22] Production.INFO: ==32758== Releasing lock... [2024-12-22 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:32:22] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:33:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:33:04 [end_date_ymd] => 2024-12-22 21:33:04 [RateCDR] => 1 ) [2024-12-22 21:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:33:04' and `end` < '2024-12-22 21:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:33:17] Production.INFO: count ==997 [2024-12-22 21:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:33:04 - End Time 2024-12-22 21:33:04 [2024-12-22 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080273', 'tblTempUsageDetail_20' ) start [2024-12-22 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080273', 'tblTempUsageDetail_20' ) end [2024-12-22 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080273', 'tblTempVendorCDR_20' ) start [2024-12-22 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080273', 'tblTempVendorCDR_20' ) end [2024-12-22 21:33:17] Production.INFO: ProcessCDR(1,14080273,1,1,2) [2024-12-22 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080273', 'tblTempUsageDetail_20' ) start [2024-12-22 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080273', 'tblTempUsageDetail_20' ) end [2024-12-22 21:33:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:33:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:33:22] Production.INFO: ==385== Releasing lock... [2024-12-22 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:33:22] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:34:05 [end_date_ymd] => 2024-12-22 21:34:05 [RateCDR] => 1 ) [2024-12-22 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:34:05' and `end` < '2024-12-22 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:34:18] Production.INFO: count ==998 [2024-12-22 21:34:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:34:05 - End Time 2024-12-22 21:34:05 [2024-12-22 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080280', 'tblTempUsageDetail_20' ) start [2024-12-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080280', 'tblTempUsageDetail_20' ) end [2024-12-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080280', 'tblTempVendorCDR_20' ) start [2024-12-22 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080280', 'tblTempVendorCDR_20' ) end [2024-12-22 21:34:18] Production.INFO: ProcessCDR(1,14080280,1,1,2) [2024-12-22 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080280', 'tblTempUsageDetail_20' ) start [2024-12-22 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080280', 'tblTempUsageDetail_20' ) end [2024-12-22 21:34:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:34:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:34:23] Production.INFO: ==460== Releasing lock... [2024-12-22 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:34:23] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:35:04 [end_date_ymd] => 2024-12-22 21:35:04 [RateCDR] => 1 ) [2024-12-22 21:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:35:04' and `end` < '2024-12-22 21:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:35:17] Production.INFO: count ==997 [2024-12-22 21:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:35:04 - End Time 2024-12-22 21:35:04 [2024-12-22 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080285', 'tblTempUsageDetail_20' ) start [2024-12-22 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080285', 'tblTempUsageDetail_20' ) end [2024-12-22 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080285', 'tblTempVendorCDR_20' ) start [2024-12-22 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080285', 'tblTempVendorCDR_20' ) end [2024-12-22 21:35:17] Production.INFO: ProcessCDR(1,14080285,1,1,2) [2024-12-22 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080285', 'tblTempUsageDetail_20' ) start [2024-12-22 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080285', 'tblTempUsageDetail_20' ) end [2024-12-22 21:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:35:20] Production.INFO: ==539== Releasing lock... [2024-12-22 21:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:35:20] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:36:05 [end_date_ymd] => 2024-12-22 21:36:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:36:05' and `end` < '2024-12-22 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-22 21:36:17] Production.INFO: count ==1000 [2024-12-22 21:36:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:36:05 - End Time 2024-12-22 21:36:05 [2024-12-22 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080290', 'tblTempUsageDetail_20' ) start [2024-12-22 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080290', 'tblTempUsageDetail_20' ) end [2024-12-22 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080290', 'tblTempVendorCDR_20' ) start [2024-12-22 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080290', 'tblTempVendorCDR_20' ) end [2024-12-22 21:36:17] Production.INFO: ProcessCDR(1,14080290,1,1,2) [2024-12-22 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080290', 'tblTempUsageDetail_20' ) start [2024-12-22 21:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080290', 'tblTempUsageDetail_20' ) end [2024-12-22 21:36:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:36:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:36:20] Production.INFO: ==622== Releasing lock... [2024-12-22 21:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:36:20] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:37:04 [end_date_ymd] => 2024-12-22 21:37:04 [RateCDR] => 1 ) [2024-12-22 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-22 18:37:04' and `end` < '2024-12-22 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-22 21:37:17] Production.INFO: count ==999 [2024-12-22 21:37:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:37:04 - End Time 2024-12-22 21:37:04 [2024-12-22 21:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080295', 'tblTempUsageDetail_20' ) start [2024-12-22 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080295', 'tblTempUsageDetail_20' ) end [2024-12-22 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080295', 'tblTempVendorCDR_20' ) start [2024-12-22 21:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080295', 'tblTempVendorCDR_20' ) end [2024-12-22 21:37:17] Production.INFO: ProcessCDR(1,14080295,1,1,2) [2024-12-22 21:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080295', 'tblTempUsageDetail_20' ) start [2024-12-22 21:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080295', 'tblTempUsageDetail_20' ) end [2024-12-22 21:37:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:37:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:37:20] Production.INFO: ==716== Releasing lock... [2024-12-22 21:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:37:20] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:38:05 [end_date_ymd] => 2024-12-22 21:38:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:38:05' and `end` < '2024-12-22 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-22 21:38:17] Production.INFO: count ==998 [2024-12-22 21:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:38:05 - End Time 2024-12-22 21:38:05 [2024-12-22 21:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080300', 'tblTempUsageDetail_20' ) start [2024-12-22 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080300', 'tblTempUsageDetail_20' ) end [2024-12-22 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080300', 'tblTempVendorCDR_20' ) start [2024-12-22 21:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080300', 'tblTempVendorCDR_20' ) end [2024-12-22 21:38:17] Production.INFO: ProcessCDR(1,14080300,1,1,2) [2024-12-22 21:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080300', 'tblTempUsageDetail_20' ) start [2024-12-22 21:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080300', 'tblTempUsageDetail_20' ) end [2024-12-22 21:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:38:20] Production.INFO: ==794== Releasing lock... [2024-12-22 21:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:38:20] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:39:05 [end_date_ymd] => 2024-12-22 21:39:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:39:05' and `end` < '2024-12-22 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-22 21:39:17] Production.INFO: count ==1001 [2024-12-22 21:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:39:05 - End Time 2024-12-22 21:39:05 [2024-12-22 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080305', 'tblTempUsageDetail_20' ) start [2024-12-22 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080305', 'tblTempUsageDetail_20' ) end [2024-12-22 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080305', 'tblTempVendorCDR_20' ) start [2024-12-22 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080305', 'tblTempVendorCDR_20' ) end [2024-12-22 21:39:17] Production.INFO: ProcessCDR(1,14080305,1,1,2) [2024-12-22 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080305', 'tblTempUsageDetail_20' ) start [2024-12-22 21:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080305', 'tblTempUsageDetail_20' ) end [2024-12-22 21:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:39:20] Production.INFO: ==868== Releasing lock... [2024-12-22 21:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:39:20] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:40:05 [end_date_ymd] => 2024-12-22 21:40:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:40:05' and `end` < '2024-12-22 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-22 21:40:17] Production.INFO: count ==1001 [2024-12-22 21:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:40:05 - End Time 2024-12-22 21:40:05 [2024-12-22 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080311', 'tblTempUsageDetail_20' ) start [2024-12-22 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080311', 'tblTempUsageDetail_20' ) end [2024-12-22 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080311', 'tblTempVendorCDR_20' ) start [2024-12-22 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080311', 'tblTempVendorCDR_20' ) end [2024-12-22 21:40:18] Production.INFO: ProcessCDR(1,14080311,1,1,2) [2024-12-22 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080311', 'tblTempUsageDetail_20' ) start [2024-12-22 21:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080311', 'tblTempUsageDetail_20' ) end [2024-12-22 21:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:40:21] Production.INFO: ==941== Releasing lock... [2024-12-22 21:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:40:21] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:41:05 [end_date_ymd] => 2024-12-22 21:41:05 [RateCDR] => 1 ) [2024-12-22 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:41:05' and `end` < '2024-12-22 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:41:18] Production.INFO: count ==976 [2024-12-22 21:41:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:41:05 - End Time 2024-12-22 21:41:05 [2024-12-22 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080316', 'tblTempUsageDetail_20' ) start [2024-12-22 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080316', 'tblTempUsageDetail_20' ) end [2024-12-22 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080316', 'tblTempVendorCDR_20' ) start [2024-12-22 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080316', 'tblTempVendorCDR_20' ) end [2024-12-22 21:41:18] Production.INFO: ProcessCDR(1,14080316,1,1,2) [2024-12-22 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080316', 'tblTempUsageDetail_20' ) start [2024-12-22 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080316', 'tblTempUsageDetail_20' ) end [2024-12-22 21:41:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:41:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:41:21] Production.INFO: ==1027== Releasing lock... [2024-12-22 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:41:21] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:42:04 [end_date_ymd] => 2024-12-22 21:42:04 [RateCDR] => 1 ) [2024-12-22 21: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-22 18:42:04' and `end` < '2024-12-22 21:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:42:17] Production.INFO: count ==974 [2024-12-22 21:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:42:04 - End Time 2024-12-22 21:42:04 [2024-12-22 21:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080321', 'tblTempUsageDetail_20' ) start [2024-12-22 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080321', 'tblTempUsageDetail_20' ) end [2024-12-22 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080321', 'tblTempVendorCDR_20' ) start [2024-12-22 21:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080321', 'tblTempVendorCDR_20' ) end [2024-12-22 21:42:17] Production.INFO: ProcessCDR(1,14080321,1,1,2) [2024-12-22 21:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080321', 'tblTempUsageDetail_20' ) start [2024-12-22 21:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080321', 'tblTempUsageDetail_20' ) end [2024-12-22 21:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:42:20] Production.INFO: ==1101== Releasing lock... [2024-12-22 21:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:42:20] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:43:06 [end_date_ymd] => 2024-12-22 21:43:06 [RateCDR] => 1 ) [2024-12-22 21:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:43:06' and `end` < '2024-12-22 21:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:43:19] Production.INFO: count ==975 [2024-12-22 21:43:19] Production.ERROR: pbx CDR StartTime 2024-12-22 18:43:06 - End Time 2024-12-22 21:43:06 [2024-12-22 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080326', 'tblTempUsageDetail_20' ) start [2024-12-22 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080326', 'tblTempUsageDetail_20' ) end [2024-12-22 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080326', 'tblTempVendorCDR_20' ) start [2024-12-22 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080326', 'tblTempVendorCDR_20' ) end [2024-12-22 21:43:19] Production.INFO: ProcessCDR(1,14080326,1,1,2) [2024-12-22 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080326', 'tblTempUsageDetail_20' ) start [2024-12-22 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080326', 'tblTempUsageDetail_20' ) end [2024-12-22 21:43:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:43:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:43:22] Production.INFO: ==1185== Releasing lock... [2024-12-22 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:43:22] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:44:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:44:04 [end_date_ymd] => 2024-12-22 21:44:04 [RateCDR] => 1 ) [2024-12-22 21: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-22 18:44:04' and `end` < '2024-12-22 21: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-22 21:44:17] Production.INFO: count ==973 [2024-12-22 21:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:44:04 - End Time 2024-12-22 21:44:04 [2024-12-22 21:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080331', 'tblTempUsageDetail_20' ) start [2024-12-22 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080331', 'tblTempUsageDetail_20' ) end [2024-12-22 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080331', 'tblTempVendorCDR_20' ) start [2024-12-22 21:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080331', 'tblTempVendorCDR_20' ) end [2024-12-22 21:44:17] Production.INFO: ProcessCDR(1,14080331,1,1,2) [2024-12-22 21:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080331', 'tblTempUsageDetail_20' ) start [2024-12-22 21:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080331', 'tblTempUsageDetail_20' ) end [2024-12-22 21:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:44:20] Production.INFO: ==1270== Releasing lock... [2024-12-22 21:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:44:20] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:45:05 [end_date_ymd] => 2024-12-22 21:45:05 [RateCDR] => 1 ) [2024-12-22 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:45:05' and `end` < '2024-12-22 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:45:17] Production.INFO: count ==972 [2024-12-22 21:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:45:05 - End Time 2024-12-22 21:45:05 [2024-12-22 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080336', 'tblTempUsageDetail_20' ) start [2024-12-22 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080336', 'tblTempUsageDetail_20' ) end [2024-12-22 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080336', 'tblTempVendorCDR_20' ) start [2024-12-22 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080336', 'tblTempVendorCDR_20' ) end [2024-12-22 21:45:17] Production.INFO: ProcessCDR(1,14080336,1,1,2) [2024-12-22 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080336', 'tblTempUsageDetail_20' ) start [2024-12-22 21:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080336', 'tblTempUsageDetail_20' ) end [2024-12-22 21:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:45:20] Production.INFO: ==1343== Releasing lock... [2024-12-22 21:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:45:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:46:06 [end_date_ymd] => 2024-12-22 21:46:06 [RateCDR] => 1 ) [2024-12-22 21:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:46:06' and `end` < '2024-12-22 21:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:46:18] Production.INFO: count ==972 [2024-12-22 21:46:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:46:06 - End Time 2024-12-22 21:46:06 [2024-12-22 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080341', 'tblTempUsageDetail_20' ) start [2024-12-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080341', 'tblTempUsageDetail_20' ) end [2024-12-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080341', 'tblTempVendorCDR_20' ) start [2024-12-22 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080341', 'tblTempVendorCDR_20' ) end [2024-12-22 21:46:18] Production.INFO: ProcessCDR(1,14080341,1,1,2) [2024-12-22 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080341', 'tblTempUsageDetail_20' ) start [2024-12-22 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080341', 'tblTempUsageDetail_20' ) end [2024-12-22 21:46:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:46:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:46:22] Production.INFO: ==1459== Releasing lock... [2024-12-22 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:46:22] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 21:47:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:47:04 [end_date_ymd] => 2024-12-22 21:47:04 [RateCDR] => 1 ) [2024-12-22 21:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:47:04' and `end` < '2024-12-22 21:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:47:17] Production.INFO: count ==971 [2024-12-22 21:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:47:04 - End Time 2024-12-22 21:47:04 [2024-12-22 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080346', 'tblTempUsageDetail_20' ) start [2024-12-22 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080346', 'tblTempUsageDetail_20' ) end [2024-12-22 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080346', 'tblTempVendorCDR_20' ) start [2024-12-22 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080346', 'tblTempVendorCDR_20' ) end [2024-12-22 21:47:17] Production.INFO: ProcessCDR(1,14080346,1,1,2) [2024-12-22 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080346', 'tblTempUsageDetail_20' ) start [2024-12-22 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080346', 'tblTempUsageDetail_20' ) end [2024-12-22 21:47:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:47:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:47:20] Production.INFO: ==1563== Releasing lock... [2024-12-22 21:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:47:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:48:05 [end_date_ymd] => 2024-12-22 21:48:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:48:05' and `end` < '2024-12-22 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-22 21:48:17] Production.INFO: count ==970 [2024-12-22 21:48:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:48:05 - End Time 2024-12-22 21:48:05 [2024-12-22 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080351', 'tblTempUsageDetail_20' ) start [2024-12-22 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080351', 'tblTempUsageDetail_20' ) end [2024-12-22 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080351', 'tblTempVendorCDR_20' ) start [2024-12-22 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080351', 'tblTempVendorCDR_20' ) end [2024-12-22 21:48:17] Production.INFO: ProcessCDR(1,14080351,1,1,2) [2024-12-22 21:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080351', 'tblTempUsageDetail_20' ) start [2024-12-22 21:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080351', 'tblTempUsageDetail_20' ) end [2024-12-22 21:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:48:20] Production.INFO: ==1646== Releasing lock... [2024-12-22 21:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:48:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:49:05 [end_date_ymd] => 2024-12-22 21:49:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:49:05' and `end` < '2024-12-22 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-22 21:49:17] Production.INFO: count ==965 [2024-12-22 21:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:49:05 - End Time 2024-12-22 21:49:05 [2024-12-22 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080356', 'tblTempUsageDetail_20' ) start [2024-12-22 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080356', 'tblTempUsageDetail_20' ) end [2024-12-22 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080356', 'tblTempVendorCDR_20' ) start [2024-12-22 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080356', 'tblTempVendorCDR_20' ) end [2024-12-22 21:49:17] Production.INFO: ProcessCDR(1,14080356,1,1,2) [2024-12-22 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080356', 'tblTempUsageDetail_20' ) start [2024-12-22 21:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080356', 'tblTempUsageDetail_20' ) end [2024-12-22 21:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:49:20] Production.INFO: ==1717== Releasing lock... [2024-12-22 21:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:49:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:50:05 [end_date_ymd] => 2024-12-22 21:50:05 [RateCDR] => 1 ) [2024-12-22 21:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:50:05' and `end` < '2024-12-22 21:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:50:17] Production.INFO: count ==956 [2024-12-22 21:50:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:50:05 - End Time 2024-12-22 21:50:05 [2024-12-22 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080361', 'tblTempUsageDetail_20' ) start [2024-12-22 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080361', 'tblTempUsageDetail_20' ) end [2024-12-22 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080361', 'tblTempVendorCDR_20' ) start [2024-12-22 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080361', 'tblTempVendorCDR_20' ) end [2024-12-22 21:50:18] Production.INFO: ProcessCDR(1,14080361,1,1,2) [2024-12-22 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080361', 'tblTempUsageDetail_20' ) start [2024-12-22 21:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080361', 'tblTempUsageDetail_20' ) end [2024-12-22 21:50:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:50:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:50:20] Production.INFO: ==1799== Releasing lock... [2024-12-22 21:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:50:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:51:04 [end_date_ymd] => 2024-12-22 21:51:04 [RateCDR] => 1 ) [2024-12-22 21:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:51:04' and `end` < '2024-12-22 21:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:51:17] Production.INFO: count ==951 [2024-12-22 21:51:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:51:04 - End Time 2024-12-22 21:51:04 [2024-12-22 21:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080367', 'tblTempUsageDetail_20' ) start [2024-12-22 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080367', 'tblTempUsageDetail_20' ) end [2024-12-22 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080367', 'tblTempVendorCDR_20' ) start [2024-12-22 21:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080367', 'tblTempVendorCDR_20' ) end [2024-12-22 21:51:17] Production.INFO: ProcessCDR(1,14080367,1,1,2) [2024-12-22 21:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080367', 'tblTempUsageDetail_20' ) start [2024-12-22 21:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080367', 'tblTempUsageDetail_20' ) end [2024-12-22 21:51:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:51:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:51:20] Production.INFO: ==1878== Releasing lock... [2024-12-22 21:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:51:20] Production.INFO: 35 MB #Memory Used# [2024-12-22 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:52:05 [end_date_ymd] => 2024-12-22 21:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:52:05' and `end` < '2024-12-22 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-22 21:52:17] Production.INFO: count ==953 [2024-12-22 21:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:52:05 - End Time 2024-12-22 21:52:05 [2024-12-22 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080372', 'tblTempUsageDetail_20' ) start [2024-12-22 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080372', 'tblTempUsageDetail_20' ) end [2024-12-22 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080372', 'tblTempVendorCDR_20' ) start [2024-12-22 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080372', 'tblTempVendorCDR_20' ) end [2024-12-22 21:52:17] Production.INFO: ProcessCDR(1,14080372,1,1,2) [2024-12-22 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080372', 'tblTempUsageDetail_20' ) start [2024-12-22 21:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080372', 'tblTempUsageDetail_20' ) end [2024-12-22 21:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:52:20] Production.INFO: ==1949== Releasing lock... [2024-12-22 21:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:52:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:53:05 [end_date_ymd] => 2024-12-22 21:53:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:53:05' and `end` < '2024-12-22 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-22 21:53:18] Production.INFO: count ==956 [2024-12-22 21:53:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:53:05 - End Time 2024-12-22 21:53:05 [2024-12-22 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080377', 'tblTempUsageDetail_20' ) start [2024-12-22 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080377', 'tblTempUsageDetail_20' ) end [2024-12-22 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080377', 'tblTempVendorCDR_20' ) start [2024-12-22 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080377', 'tblTempVendorCDR_20' ) end [2024-12-22 21:53:18] Production.INFO: ProcessCDR(1,14080377,1,1,2) [2024-12-22 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080377', 'tblTempUsageDetail_20' ) start [2024-12-22 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080377', 'tblTempUsageDetail_20' ) end [2024-12-22 21:53:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:53:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:53:21] Production.INFO: ==2024== Releasing lock... [2024-12-22 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:53:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:54:04 [end_date_ymd] => 2024-12-22 21:54:04 [RateCDR] => 1 ) [2024-12-22 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-22 18:54:04' and `end` < '2024-12-22 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-22 21:54:16] Production.INFO: count ==951 [2024-12-22 21:54:16] Production.ERROR: pbx CDR StartTime 2024-12-22 18:54:04 - End Time 2024-12-22 21:54:04 [2024-12-22 21:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080382', 'tblTempUsageDetail_20' ) start [2024-12-22 21:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080382', 'tblTempUsageDetail_20' ) end [2024-12-22 21:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080382', 'tblTempVendorCDR_20' ) start [2024-12-22 21:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080382', 'tblTempVendorCDR_20' ) end [2024-12-22 21:54:16] Production.INFO: ProcessCDR(1,14080382,1,1,2) [2024-12-22 21:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:54:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080382', 'tblTempUsageDetail_20' ) start [2024-12-22 21:54:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080382', 'tblTempUsageDetail_20' ) end [2024-12-22 21:54:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:54:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:54:19] Production.INFO: ==2095== Releasing lock... [2024-12-22 21:54:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:54:19] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:55:05 [end_date_ymd] => 2024-12-22 21:55:05 [RateCDR] => 1 ) [2024-12-22 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:55:05' and `end` < '2024-12-22 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:55:17] Production.INFO: count ==940 [2024-12-22 21:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:55:05 - End Time 2024-12-22 21:55:05 [2024-12-22 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080387', 'tblTempUsageDetail_20' ) start [2024-12-22 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080387', 'tblTempUsageDetail_20' ) end [2024-12-22 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080387', 'tblTempVendorCDR_20' ) start [2024-12-22 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080387', 'tblTempVendorCDR_20' ) end [2024-12-22 21:55:17] Production.INFO: ProcessCDR(1,14080387,1,1,2) [2024-12-22 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080387', 'tblTempUsageDetail_20' ) start [2024-12-22 21:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080387', 'tblTempUsageDetail_20' ) end [2024-12-22 21:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:55:20] Production.INFO: ==2175== Releasing lock... [2024-12-22 21:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:55:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 21:56:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:56:04 [end_date_ymd] => 2024-12-22 21:56:04 [RateCDR] => 1 ) [2024-12-22 21:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:56:04' and `end` < '2024-12-22 21:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:56:17] Production.INFO: count ==942 [2024-12-22 21:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:56:04 - End Time 2024-12-22 21:56:04 [2024-12-22 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080392', 'tblTempUsageDetail_20' ) start [2024-12-22 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080392', 'tblTempUsageDetail_20' ) end [2024-12-22 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080392', 'tblTempVendorCDR_20' ) start [2024-12-22 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080392', 'tblTempVendorCDR_20' ) end [2024-12-22 21:56:17] Production.INFO: ProcessCDR(1,14080392,1,1,2) [2024-12-22 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080392', 'tblTempUsageDetail_20' ) start [2024-12-22 21:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080392', 'tblTempUsageDetail_20' ) end [2024-12-22 21:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:56:20] Production.INFO: ==2252== Releasing lock... [2024-12-22 21:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:56:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:57:05 [end_date_ymd] => 2024-12-22 21:57:05 [RateCDR] => 1 ) [2024-12-22 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:57:05' and `end` < '2024-12-22 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:57:18] Production.INFO: count ==936 [2024-12-22 21:57:18] Production.ERROR: pbx CDR StartTime 2024-12-22 18:57:05 - End Time 2024-12-22 21:57:05 [2024-12-22 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080397', 'tblTempUsageDetail_20' ) start [2024-12-22 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080397', 'tblTempUsageDetail_20' ) end [2024-12-22 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080397', 'tblTempVendorCDR_20' ) start [2024-12-22 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080397', 'tblTempVendorCDR_20' ) end [2024-12-22 21:57:18] Production.INFO: ProcessCDR(1,14080397,1,1,2) [2024-12-22 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080397', 'tblTempUsageDetail_20' ) start [2024-12-22 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080397', 'tblTempUsageDetail_20' ) end [2024-12-22 21:57:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:57:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:57:23] Production.INFO: ==2325== Releasing lock... [2024-12-22 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:57:23] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:58:05 [end_date_ymd] => 2024-12-22 21:58:05 [RateCDR] => 1 ) [2024-12-22 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-22 18:58:05' and `end` < '2024-12-22 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-22 21:58:17] Production.INFO: count ==935 [2024-12-22 21:58:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:58:05 - End Time 2024-12-22 21:58:05 [2024-12-22 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080402', 'tblTempUsageDetail_20' ) start [2024-12-22 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080402', 'tblTempUsageDetail_20' ) end [2024-12-22 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080402', 'tblTempVendorCDR_20' ) start [2024-12-22 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080402', 'tblTempVendorCDR_20' ) end [2024-12-22 21:58:17] Production.INFO: ProcessCDR(1,14080402,1,1,2) [2024-12-22 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080402', 'tblTempUsageDetail_20' ) start [2024-12-22 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080402', 'tblTempUsageDetail_20' ) end [2024-12-22 21:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:58:20] Production.INFO: ==2399== Releasing lock... [2024-12-22 21:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:58:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 18:59:05 [end_date_ymd] => 2024-12-22 21:59:05 [RateCDR] => 1 ) [2024-12-22 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 18:59:05' and `end` < '2024-12-22 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 21:59:17] Production.INFO: count ==935 [2024-12-22 21:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 18:59:05 - End Time 2024-12-22 21:59:05 [2024-12-22 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080407', 'tblTempUsageDetail_20' ) start [2024-12-22 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080407', 'tblTempUsageDetail_20' ) end [2024-12-22 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080407', 'tblTempVendorCDR_20' ) start [2024-12-22 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080407', 'tblTempVendorCDR_20' ) end [2024-12-22 21:59:17] Production.INFO: ProcessCDR(1,14080407,1,1,2) [2024-12-22 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080407', 'tblTempUsageDetail_20' ) start [2024-12-22 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080407', 'tblTempUsageDetail_20' ) end [2024-12-22 21:59:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 21:59:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 21:59:20] Production.INFO: ==2472== Releasing lock... [2024-12-22 21:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 21:59:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:00:05 [end_date_ymd] => 2024-12-22 22:00:05 [RateCDR] => 1 ) [2024-12-22 22: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-22 19:00:05' and `end` < '2024-12-22 22:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:00:17] Production.INFO: count ==936 [2024-12-22 22:00:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:00:05 - End Time 2024-12-22 22:00:05 [2024-12-22 22:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080412', 'tblTempUsageDetail_20' ) start [2024-12-22 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080412', 'tblTempUsageDetail_20' ) end [2024-12-22 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080412', 'tblTempVendorCDR_20' ) start [2024-12-22 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080412', 'tblTempVendorCDR_20' ) end [2024-12-22 22:00:18] Production.INFO: ProcessCDR(1,14080412,1,1,2) [2024-12-22 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080412', 'tblTempUsageDetail_20' ) start [2024-12-22 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080412', 'tblTempUsageDetail_20' ) end [2024-12-22 22:00:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:00:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:00:22] Production.INFO: ==2551== Releasing lock... [2024-12-22 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:00:22] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 22:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:01:04 [end_date_ymd] => 2024-12-22 22:01:04 [RateCDR] => 1 ) [2024-12-22 22: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-22 19:01:04' and `end` < '2024-12-22 22: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-22 22:01:18] Production.INFO: count ==937 [2024-12-22 22:01:18] Production.ERROR: pbx CDR StartTime 2024-12-22 19:01:04 - End Time 2024-12-22 22:01:04 [2024-12-22 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080418', 'tblTempUsageDetail_20' ) start [2024-12-22 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080418', 'tblTempUsageDetail_20' ) end [2024-12-22 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080418', 'tblTempVendorCDR_20' ) start [2024-12-22 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080418', 'tblTempVendorCDR_20' ) end [2024-12-22 22:01:18] Production.INFO: ProcessCDR(1,14080418,1,1,2) [2024-12-22 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080418', 'tblTempUsageDetail_20' ) start [2024-12-22 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080418', 'tblTempUsageDetail_20' ) end [2024-12-22 22:01:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:01:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:01:23] Production.INFO: ==2640== Releasing lock... [2024-12-22 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:01:23] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:02:05 [end_date_ymd] => 2024-12-22 22:02:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:02:05' and `end` < '2024-12-22 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-22 22:02:17] Production.INFO: count ==948 [2024-12-22 22:02:18] Production.ERROR: pbx CDR StartTime 2024-12-22 19:02:05 - End Time 2024-12-22 22:02:05 [2024-12-22 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080423', 'tblTempUsageDetail_20' ) start [2024-12-22 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080423', 'tblTempUsageDetail_20' ) end [2024-12-22 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080423', 'tblTempVendorCDR_20' ) start [2024-12-22 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080423', 'tblTempVendorCDR_20' ) end [2024-12-22 22:02:18] Production.INFO: ProcessCDR(1,14080423,1,1,2) [2024-12-22 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080423', 'tblTempUsageDetail_20' ) start [2024-12-22 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080423', 'tblTempUsageDetail_20' ) end [2024-12-22 22:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:02:21] Production.INFO: ==2757== Releasing lock... [2024-12-22 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:02:21] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:03:04 [end_date_ymd] => 2024-12-22 22:03:04 [RateCDR] => 1 ) [2024-12-22 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-22 19:03:04' and `end` < '2024-12-22 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-22 22:03:16] Production.INFO: count ==945 [2024-12-22 22:03:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:03:04 - End Time 2024-12-22 22:03:04 [2024-12-22 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080428', 'tblTempUsageDetail_20' ) start [2024-12-22 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080428', 'tblTempUsageDetail_20' ) end [2024-12-22 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080428', 'tblTempVendorCDR_20' ) start [2024-12-22 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080428', 'tblTempVendorCDR_20' ) end [2024-12-22 22:03:17] Production.INFO: ProcessCDR(1,14080428,1,1,2) [2024-12-22 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080428', 'tblTempUsageDetail_20' ) start [2024-12-22 22:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080428', 'tblTempUsageDetail_20' ) end [2024-12-22 22:03:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:03:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:03:20] Production.INFO: ==2834== Releasing lock... [2024-12-22 22:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:03:20] Production.INFO: 34.75 MB #Memory Used# [2024-12-22 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:04:05 [end_date_ymd] => 2024-12-22 22:04:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:04:05' and `end` < '2024-12-22 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-22 22:04:17] Production.INFO: count ==936 [2024-12-22 22:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:04:05 - End Time 2024-12-22 22:04:05 [2024-12-22 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080433', 'tblTempUsageDetail_20' ) start [2024-12-22 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080433', 'tblTempUsageDetail_20' ) end [2024-12-22 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080433', 'tblTempVendorCDR_20' ) start [2024-12-22 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080433', 'tblTempVendorCDR_20' ) end [2024-12-22 22:04:17] Production.INFO: ProcessCDR(1,14080433,1,1,2) [2024-12-22 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080433', 'tblTempUsageDetail_20' ) start [2024-12-22 22:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080433', 'tblTempUsageDetail_20' ) end [2024-12-22 22:04:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:04:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:04:20] Production.INFO: ==2917== Releasing lock... [2024-12-22 22:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:04:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:05:05 [end_date_ymd] => 2024-12-22 22:05:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:05:05' and `end` < '2024-12-22 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-22 22:05:17] Production.INFO: count ==931 [2024-12-22 22:05:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:05:05 - End Time 2024-12-22 22:05:05 [2024-12-22 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080438', 'tblTempUsageDetail_20' ) start [2024-12-22 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080438', 'tblTempUsageDetail_20' ) end [2024-12-22 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080438', 'tblTempVendorCDR_20' ) start [2024-12-22 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080438', 'tblTempVendorCDR_20' ) end [2024-12-22 22:05:17] Production.INFO: ProcessCDR(1,14080438,1,1,2) [2024-12-22 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080438', 'tblTempUsageDetail_20' ) start [2024-12-22 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080438', 'tblTempUsageDetail_20' ) end [2024-12-22 22:05:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:05:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:05:20] Production.INFO: ==2994== Releasing lock... [2024-12-22 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:05:20] Production.INFO: 34.5 MB #Memory Used# [2024-12-22 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:06:05 [end_date_ymd] => 2024-12-22 22:06:05 [RateCDR] => 1 ) [2024-12-22 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:06:05' and `end` < '2024-12-22 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:06:17] Production.INFO: count ==923 [2024-12-22 22:06:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:06:05 - End Time 2024-12-22 22:06:05 [2024-12-22 22:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080443', 'tblTempUsageDetail_20' ) start [2024-12-22 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080443', 'tblTempUsageDetail_20' ) end [2024-12-22 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080443', 'tblTempVendorCDR_20' ) start [2024-12-22 22:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080443', 'tblTempVendorCDR_20' ) end [2024-12-22 22:06:17] Production.INFO: ProcessCDR(1,14080443,1,1,2) [2024-12-22 22:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080443', 'tblTempUsageDetail_20' ) start [2024-12-22 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080443', 'tblTempUsageDetail_20' ) end [2024-12-22 22:06:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:06:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:06:22] Production.INFO: ==3072== Releasing lock... [2024-12-22 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:06:22] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:07:05 [end_date_ymd] => 2024-12-22 22:07:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:07:05' and `end` < '2024-12-22 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-22 22:07:17] Production.INFO: count ==921 [2024-12-22 22:07:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:07:05 - End Time 2024-12-22 22:07:05 [2024-12-22 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080448', 'tblTempUsageDetail_20' ) start [2024-12-22 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080448', 'tblTempUsageDetail_20' ) end [2024-12-22 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080448', 'tblTempVendorCDR_20' ) start [2024-12-22 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080448', 'tblTempVendorCDR_20' ) end [2024-12-22 22:07:17] Production.INFO: ProcessCDR(1,14080448,1,1,2) [2024-12-22 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080448', 'tblTempUsageDetail_20' ) start [2024-12-22 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080448', 'tblTempUsageDetail_20' ) end [2024-12-22 22:07:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:07:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:07:22] Production.INFO: ==3154== Releasing lock... [2024-12-22 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:07:22] Production.INFO: 34.25 MB #Memory Used# [2024-12-22 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:08:05 [end_date_ymd] => 2024-12-22 22:08:05 [RateCDR] => 1 ) [2024-12-22 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:08:05' and `end` < '2024-12-22 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:08:17] Production.INFO: count ==919 [2024-12-22 22:08:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:08:05 - End Time 2024-12-22 22:08:05 [2024-12-22 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080453', 'tblTempUsageDetail_20' ) start [2024-12-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080453', 'tblTempUsageDetail_20' ) end [2024-12-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080453', 'tblTempVendorCDR_20' ) start [2024-12-22 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080453', 'tblTempVendorCDR_20' ) end [2024-12-22 22:08:17] Production.INFO: ProcessCDR(1,14080453,1,1,2) [2024-12-22 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080453', 'tblTempUsageDetail_20' ) start [2024-12-22 22:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080453', 'tblTempUsageDetail_20' ) end [2024-12-22 22:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:08:20] Production.INFO: ==3235== Releasing lock... [2024-12-22 22:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:08:20] Production.INFO: 34.25 MB #Memory Used# [2024-12-22 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:09:05 [end_date_ymd] => 2024-12-22 22:09:05 [RateCDR] => 1 ) [2024-12-22 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:09:05' and `end` < '2024-12-22 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:09:17] Production.INFO: count ==913 [2024-12-22 22:09:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:09:05 - End Time 2024-12-22 22:09:05 [2024-12-22 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080458', 'tblTempUsageDetail_20' ) start [2024-12-22 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080458', 'tblTempUsageDetail_20' ) end [2024-12-22 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080458', 'tblTempVendorCDR_20' ) start [2024-12-22 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080458', 'tblTempVendorCDR_20' ) end [2024-12-22 22:09:17] Production.INFO: ProcessCDR(1,14080458,1,1,2) [2024-12-22 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080458', 'tblTempUsageDetail_20' ) start [2024-12-22 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080458', 'tblTempUsageDetail_20' ) end [2024-12-22 22:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:09:21] Production.INFO: ==3323== Releasing lock... [2024-12-22 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:09:21] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:10:05 [end_date_ymd] => 2024-12-22 22:10:05 [RateCDR] => 1 ) [2024-12-22 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:10:05' and `end` < '2024-12-22 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:10:17] Production.INFO: count ==916 [2024-12-22 22:10:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:10:05 - End Time 2024-12-22 22:10:05 [2024-12-22 22:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080464', 'tblTempUsageDetail_20' ) start [2024-12-22 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080464', 'tblTempUsageDetail_20' ) end [2024-12-22 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080464', 'tblTempVendorCDR_20' ) start [2024-12-22 22:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080464', 'tblTempVendorCDR_20' ) end [2024-12-22 22:10:17] Production.INFO: ProcessCDR(1,14080464,1,1,2) [2024-12-22 22:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080464', 'tblTempUsageDetail_20' ) start [2024-12-22 22:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080464', 'tblTempUsageDetail_20' ) end [2024-12-22 22:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:10:20] Production.INFO: ==3401== Releasing lock... [2024-12-22 22:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:10:20] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:11:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:11:04 [end_date_ymd] => 2024-12-22 22:11:04 [RateCDR] => 1 ) [2024-12-22 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-22 19:11:04' and `end` < '2024-12-22 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-22 22:11:16] Production.INFO: count ==898 [2024-12-22 22:11:16] Production.ERROR: pbx CDR StartTime 2024-12-22 19:11:04 - End Time 2024-12-22 22:11:04 [2024-12-22 22:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080469', 'tblTempUsageDetail_20' ) start [2024-12-22 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080469', 'tblTempUsageDetail_20' ) end [2024-12-22 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080469', 'tblTempVendorCDR_20' ) start [2024-12-22 22:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080469', 'tblTempVendorCDR_20' ) end [2024-12-22 22:11:16] Production.INFO: ProcessCDR(1,14080469,1,1,2) [2024-12-22 22:11:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:11:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:11:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:11:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080469', 'tblTempUsageDetail_20' ) start [2024-12-22 22:11:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080469', 'tblTempUsageDetail_20' ) end [2024-12-22 22:11:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:11:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:11:20] Production.INFO: ==3477== Releasing lock... [2024-12-22 22:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:11:20] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:12:05 [end_date_ymd] => 2024-12-22 22:12:05 [RateCDR] => 1 ) [2024-12-22 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:12:05' and `end` < '2024-12-22 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:12:17] Production.INFO: count ==899 [2024-12-22 22:12:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:12:05 - End Time 2024-12-22 22:12:05 [2024-12-22 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080474', 'tblTempUsageDetail_20' ) start [2024-12-22 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080474', 'tblTempUsageDetail_20' ) end [2024-12-22 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080474', 'tblTempVendorCDR_20' ) start [2024-12-22 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080474', 'tblTempVendorCDR_20' ) end [2024-12-22 22:12:17] Production.INFO: ProcessCDR(1,14080474,1,1,2) [2024-12-22 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080474', 'tblTempUsageDetail_20' ) start [2024-12-22 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080474', 'tblTempUsageDetail_20' ) end [2024-12-22 22:12:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:12:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:12:22] Production.INFO: ==3557== Releasing lock... [2024-12-22 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:12:22] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:13:05 [end_date_ymd] => 2024-12-22 22:13:05 [RateCDR] => 1 ) [2024-12-22 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:13:05' and `end` < '2024-12-22 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:13:17] Production.INFO: count ==899 [2024-12-22 22:13:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:13:05 - End Time 2024-12-22 22:13:05 [2024-12-22 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080479', 'tblTempUsageDetail_20' ) start [2024-12-22 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080479', 'tblTempUsageDetail_20' ) end [2024-12-22 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080479', 'tblTempVendorCDR_20' ) start [2024-12-22 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080479', 'tblTempVendorCDR_20' ) end [2024-12-22 22:13:17] Production.INFO: ProcessCDR(1,14080479,1,1,2) [2024-12-22 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080479', 'tblTempUsageDetail_20' ) start [2024-12-22 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080479', 'tblTempUsageDetail_20' ) end [2024-12-22 22:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:13:21] Production.INFO: ==3636== Releasing lock... [2024-12-22 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:13:21] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:14:05 [end_date_ymd] => 2024-12-22 22:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:14:05' and `end` < '2024-12-22 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-22 22:14:18] Production.INFO: count ==902 [2024-12-22 22:14:18] Production.ERROR: pbx CDR StartTime 2024-12-22 19:14:05 - End Time 2024-12-22 22:14:05 [2024-12-22 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080484', 'tblTempUsageDetail_20' ) start [2024-12-22 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080484', 'tblTempUsageDetail_20' ) end [2024-12-22 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080484', 'tblTempVendorCDR_20' ) start [2024-12-22 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080484', 'tblTempVendorCDR_20' ) end [2024-12-22 22:14:18] Production.INFO: ProcessCDR(1,14080484,1,1,2) [2024-12-22 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080484', 'tblTempUsageDetail_20' ) start [2024-12-22 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080484', 'tblTempUsageDetail_20' ) end [2024-12-22 22:14:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:14:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:14:21] Production.INFO: ==3720== Releasing lock... [2024-12-22 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:14:21] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:15:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:15:04 [end_date_ymd] => 2024-12-22 22:15:04 [RateCDR] => 1 ) [2024-12-22 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-22 19:15:04' and `end` < '2024-12-22 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-22 22:15:16] Production.INFO: count ==902 [2024-12-22 22:15:16] Production.ERROR: pbx CDR StartTime 2024-12-22 19:15:04 - End Time 2024-12-22 22:15:04 [2024-12-22 22:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080489', 'tblTempUsageDetail_20' ) start [2024-12-22 22:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080489', 'tblTempUsageDetail_20' ) end [2024-12-22 22:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080489', 'tblTempVendorCDR_20' ) start [2024-12-22 22:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080489', 'tblTempVendorCDR_20' ) end [2024-12-22 22:15:16] Production.INFO: ProcessCDR(1,14080489,1,1,2) [2024-12-22 22:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080489', 'tblTempUsageDetail_20' ) start [2024-12-22 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080489', 'tblTempUsageDetail_20' ) end [2024-12-22 22:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:15:20] Production.INFO: ==3796== Releasing lock... [2024-12-22 22:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:15:20] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:16:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:16:04 [end_date_ymd] => 2024-12-22 22:16:04 [RateCDR] => 1 ) [2024-12-22 22: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-22 19:16:04' and `end` < '2024-12-22 22: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-22 22:16:17] Production.INFO: count ==905 [2024-12-22 22:16:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:16:04 - End Time 2024-12-22 22:16:04 [2024-12-22 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080494', 'tblTempUsageDetail_20' ) start [2024-12-22 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080494', 'tblTempUsageDetail_20' ) end [2024-12-22 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080494', 'tblTempVendorCDR_20' ) start [2024-12-22 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080494', 'tblTempVendorCDR_20' ) end [2024-12-22 22:16:17] Production.INFO: ProcessCDR(1,14080494,1,1,2) [2024-12-22 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080494', 'tblTempUsageDetail_20' ) start [2024-12-22 22:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080494', 'tblTempUsageDetail_20' ) end [2024-12-22 22:16:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:16:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:16:20] Production.INFO: ==3872== Releasing lock... [2024-12-22 22:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:16:20] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:17:04 [end_date_ymd] => 2024-12-22 22:17:04 [RateCDR] => 1 ) [2024-12-22 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-22 19:17:04' and `end` < '2024-12-22 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-22 22:17:17] Production.INFO: count ==903 [2024-12-22 22:17:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:17:04 - End Time 2024-12-22 22:17:04 [2024-12-22 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080499', 'tblTempUsageDetail_20' ) start [2024-12-22 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080499', 'tblTempUsageDetail_20' ) end [2024-12-22 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080499', 'tblTempVendorCDR_20' ) start [2024-12-22 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080499', 'tblTempVendorCDR_20' ) end [2024-12-22 22:17:17] Production.INFO: ProcessCDR(1,14080499,1,1,2) [2024-12-22 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080499', 'tblTempUsageDetail_20' ) start [2024-12-22 22:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080499', 'tblTempUsageDetail_20' ) end [2024-12-22 22:17:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:17:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:17:20] Production.INFO: ==3950== Releasing lock... [2024-12-22 22:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:17:20] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:18:04 [end_date_ymd] => 2024-12-22 22:18:04 [RateCDR] => 1 ) [2024-12-22 22:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:18:04' and `end` < '2024-12-22 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-22 22:18:17] Production.INFO: count ==903 [2024-12-22 22:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:18:04 - End Time 2024-12-22 22:18:04 [2024-12-22 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080504', 'tblTempUsageDetail_20' ) start [2024-12-22 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080504', 'tblTempUsageDetail_20' ) end [2024-12-22 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080504', 'tblTempVendorCDR_20' ) start [2024-12-22 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080504', 'tblTempVendorCDR_20' ) end [2024-12-22 22:18:18] Production.INFO: ProcessCDR(1,14080504,1,1,2) [2024-12-22 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080504', 'tblTempUsageDetail_20' ) start [2024-12-22 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080504', 'tblTempUsageDetail_20' ) end [2024-12-22 22:18:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:18:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:18:21] Production.INFO: ==4072== Releasing lock... [2024-12-22 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:18:21] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:19:05 [end_date_ymd] => 2024-12-22 22:19:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:19:05' and `end` < '2024-12-22 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-22 22:19:17] Production.INFO: count ==901 [2024-12-22 22:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:19:05 - End Time 2024-12-22 22:19:05 [2024-12-22 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080507', 'tblTempUsageDetail_20' ) start [2024-12-22 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080507', 'tblTempUsageDetail_20' ) end [2024-12-22 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080507', 'tblTempVendorCDR_20' ) start [2024-12-22 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080507', 'tblTempVendorCDR_20' ) end [2024-12-22 22:19:17] Production.INFO: ProcessCDR(1,14080507,1,1,2) [2024-12-22 22:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080507', 'tblTempUsageDetail_20' ) start [2024-12-22 22:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080507', 'tblTempUsageDetail_20' ) end [2024-12-22 22:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:19:20] Production.INFO: ==4145== Releasing lock... [2024-12-22 22:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:19:20] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:20:05 [end_date_ymd] => 2024-12-22 22:20:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:20:05' and `end` < '2024-12-22 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-22 22:20:17] Production.INFO: count ==902 [2024-12-22 22:20:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:20:05 - End Time 2024-12-22 22:20:05 [2024-12-22 22:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080515', 'tblTempUsageDetail_20' ) start [2024-12-22 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080515', 'tblTempUsageDetail_20' ) end [2024-12-22 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080515', 'tblTempVendorCDR_20' ) start [2024-12-22 22:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080515', 'tblTempVendorCDR_20' ) end [2024-12-22 22:20:17] Production.INFO: ProcessCDR(1,14080515,1,1,2) [2024-12-22 22:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080515', 'tblTempUsageDetail_20' ) start [2024-12-22 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080515', 'tblTempUsageDetail_20' ) end [2024-12-22 22:20:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:20:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:20:22] Production.INFO: ==4222== Releasing lock... [2024-12-22 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:20:22] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:21:05 [end_date_ymd] => 2024-12-22 22:21:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:21:05' and `end` < '2024-12-22 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-22 22:21:17] Production.INFO: count ==887 [2024-12-22 22:21:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:21:05 - End Time 2024-12-22 22:21:05 [2024-12-22 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080520', 'tblTempUsageDetail_20' ) start [2024-12-22 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080520', 'tblTempUsageDetail_20' ) end [2024-12-22 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080520', 'tblTempVendorCDR_20' ) start [2024-12-22 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080520', 'tblTempVendorCDR_20' ) end [2024-12-22 22:21:18] Production.INFO: ProcessCDR(1,14080520,1,1,2) [2024-12-22 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080520', 'tblTempUsageDetail_20' ) start [2024-12-22 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080520', 'tblTempUsageDetail_20' ) end [2024-12-22 22:21:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:21:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:21:21] Production.INFO: ==4307== Releasing lock... [2024-12-22 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:21:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:22:05 [end_date_ymd] => 2024-12-22 22:22:05 [RateCDR] => 1 ) [2024-12-22 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:22:05' and `end` < '2024-12-22 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:22:17] Production.INFO: count ==885 [2024-12-22 22:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:22:05 - End Time 2024-12-22 22:22:05 [2024-12-22 22:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080525', 'tblTempUsageDetail_20' ) start [2024-12-22 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080525', 'tblTempUsageDetail_20' ) end [2024-12-22 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080525', 'tblTempVendorCDR_20' ) start [2024-12-22 22:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080525', 'tblTempVendorCDR_20' ) end [2024-12-22 22:22:17] Production.INFO: ProcessCDR(1,14080525,1,1,2) [2024-12-22 22:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080525', 'tblTempUsageDetail_20' ) start [2024-12-22 22:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080525', 'tblTempUsageDetail_20' ) end [2024-12-22 22:22:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:22:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:22:20] Production.INFO: ==4384== Releasing lock... [2024-12-22 22:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:22:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:23:05 [end_date_ymd] => 2024-12-22 22:23:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:23:05' and `end` < '2024-12-22 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-22 22:23:18] Production.INFO: count ==884 [2024-12-22 22:23:18] Production.ERROR: pbx CDR StartTime 2024-12-22 19:23:05 - End Time 2024-12-22 22:23:05 [2024-12-22 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080530', 'tblTempUsageDetail_20' ) start [2024-12-22 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080530', 'tblTempUsageDetail_20' ) end [2024-12-22 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080530', 'tblTempVendorCDR_20' ) start [2024-12-22 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080530', 'tblTempVendorCDR_20' ) end [2024-12-22 22:23:18] Production.INFO: ProcessCDR(1,14080530,1,1,2) [2024-12-22 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080530', 'tblTempUsageDetail_20' ) start [2024-12-22 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080530', 'tblTempUsageDetail_20' ) end [2024-12-22 22:23:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:23:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:23:21] Production.INFO: ==4466== Releasing lock... [2024-12-22 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:23:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:24:05 [end_date_ymd] => 2024-12-22 22:24:05 [RateCDR] => 1 ) [2024-12-22 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:24:05' and `end` < '2024-12-22 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:24:18] Production.INFO: count ==884 [2024-12-22 22:24:18] Production.ERROR: pbx CDR StartTime 2024-12-22 19:24:05 - End Time 2024-12-22 22:24:05 [2024-12-22 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080535', 'tblTempUsageDetail_20' ) start [2024-12-22 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080535', 'tblTempUsageDetail_20' ) end [2024-12-22 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080535', 'tblTempVendorCDR_20' ) start [2024-12-22 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080535', 'tblTempVendorCDR_20' ) end [2024-12-22 22:24:18] Production.INFO: ProcessCDR(1,14080535,1,1,2) [2024-12-22 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080535', 'tblTempUsageDetail_20' ) start [2024-12-22 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080535', 'tblTempUsageDetail_20' ) end [2024-12-22 22:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:24:21] Production.INFO: ==4548== Releasing lock... [2024-12-22 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:24:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:25:05 [end_date_ymd] => 2024-12-22 22:25:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:25:05' and `end` < '2024-12-22 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-22 22:25:17] Production.INFO: count ==884 [2024-12-22 22:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:25:05 - End Time 2024-12-22 22:25:05 [2024-12-22 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080540', 'tblTempUsageDetail_20' ) start [2024-12-22 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080540', 'tblTempUsageDetail_20' ) end [2024-12-22 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080540', 'tblTempVendorCDR_20' ) start [2024-12-22 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080540', 'tblTempVendorCDR_20' ) end [2024-12-22 22:25:17] Production.INFO: ProcessCDR(1,14080540,1,1,2) [2024-12-22 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080540', 'tblTempUsageDetail_20' ) start [2024-12-22 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080540', 'tblTempUsageDetail_20' ) end [2024-12-22 22:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:25:20] Production.INFO: ==4633== Releasing lock... [2024-12-22 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:25:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 22:26:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:26:04 [end_date_ymd] => 2024-12-22 22:26:04 [RateCDR] => 1 ) [2024-12-22 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-22 19:26:04' and `end` < '2024-12-22 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-22 22:26:17] Production.INFO: count ==884 [2024-12-22 22:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:26:04 - End Time 2024-12-22 22:26:04 [2024-12-22 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080545', 'tblTempUsageDetail_20' ) start [2024-12-22 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080545', 'tblTempUsageDetail_20' ) end [2024-12-22 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080545', 'tblTempVendorCDR_20' ) start [2024-12-22 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080545', 'tblTempVendorCDR_20' ) end [2024-12-22 22:26:17] Production.INFO: ProcessCDR(1,14080545,1,1,2) [2024-12-22 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080545', 'tblTempUsageDetail_20' ) start [2024-12-22 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080545', 'tblTempUsageDetail_20' ) end [2024-12-22 22:26:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:26:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:26:21] Production.INFO: ==4710== Releasing lock... [2024-12-22 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:26:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:27:04 [end_date_ymd] => 2024-12-22 22:27:04 [RateCDR] => 1 ) [2024-12-22 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-22 19:27:04' and `end` < '2024-12-22 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-22 22:27:17] Production.INFO: count ==884 [2024-12-22 22:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:27:04 - End Time 2024-12-22 22:27:04 [2024-12-22 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080550', 'tblTempUsageDetail_20' ) start [2024-12-22 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080550', 'tblTempUsageDetail_20' ) end [2024-12-22 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080550', 'tblTempVendorCDR_20' ) start [2024-12-22 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080550', 'tblTempVendorCDR_20' ) end [2024-12-22 22:27:17] Production.INFO: ProcessCDR(1,14080550,1,1,2) [2024-12-22 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080550', 'tblTempUsageDetail_20' ) start [2024-12-22 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080550', 'tblTempUsageDetail_20' ) end [2024-12-22 22:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:27:20] Production.INFO: ==4784== Releasing lock... [2024-12-22 22:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:27:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:28:05 [end_date_ymd] => 2024-12-22 22:28:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:28:05' and `end` < '2024-12-22 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-22 22:28:17] Production.INFO: count ==884 [2024-12-22 22:28:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:28:05 - End Time 2024-12-22 22:28:05 [2024-12-22 22:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080555', 'tblTempUsageDetail_20' ) start [2024-12-22 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080555', 'tblTempUsageDetail_20' ) end [2024-12-22 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080555', 'tblTempVendorCDR_20' ) start [2024-12-22 22:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080555', 'tblTempVendorCDR_20' ) end [2024-12-22 22:28:17] Production.INFO: ProcessCDR(1,14080555,1,1,2) [2024-12-22 22:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080555', 'tblTempUsageDetail_20' ) start [2024-12-22 22:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080555', 'tblTempUsageDetail_20' ) end [2024-12-22 22:28:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:28:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:28:20] Production.INFO: ==4869== Releasing lock... [2024-12-22 22:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:28:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:29:04 [end_date_ymd] => 2024-12-22 22:29:04 [RateCDR] => 1 ) [2024-12-22 22:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:29:04' and `end` < '2024-12-22 22:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:29:17] Production.INFO: count ==886 [2024-12-22 22:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:29:04 - End Time 2024-12-22 22:29:04 [2024-12-22 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080560', 'tblTempUsageDetail_20' ) start [2024-12-22 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080560', 'tblTempUsageDetail_20' ) end [2024-12-22 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080560', 'tblTempVendorCDR_20' ) start [2024-12-22 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080560', 'tblTempVendorCDR_20' ) end [2024-12-22 22:29:17] Production.INFO: ProcessCDR(1,14080560,1,1,2) [2024-12-22 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080560', 'tblTempUsageDetail_20' ) start [2024-12-22 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080560', 'tblTempUsageDetail_20' ) end [2024-12-22 22:29:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:29:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:29:21] Production.INFO: ==4944== Releasing lock... [2024-12-22 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:29:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:30:06 [end_date_ymd] => 2024-12-22 22:30:06 [RateCDR] => 1 ) [2024-12-22 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:30:06' and `end` < '2024-12-22 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:30:18] Production.INFO: count ==891 [2024-12-22 22:30:18] Production.ERROR: pbx CDR StartTime 2024-12-22 19:30:06 - End Time 2024-12-22 22:30:06 [2024-12-22 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080566', 'tblTempUsageDetail_20' ) start [2024-12-22 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080566', 'tblTempUsageDetail_20' ) end [2024-12-22 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080566', 'tblTempVendorCDR_20' ) start [2024-12-22 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080566', 'tblTempVendorCDR_20' ) end [2024-12-22 22:30:18] Production.INFO: ProcessCDR(1,14080566,1,1,2) [2024-12-22 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080566', 'tblTempUsageDetail_20' ) start [2024-12-22 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080566', 'tblTempUsageDetail_20' ) end [2024-12-22 22:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:30:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:30:23] Production.INFO: ==5020== Releasing lock... [2024-12-22 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:30:23] Production.INFO: 34 MB #Memory Used# [2024-12-22 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:31:04 [end_date_ymd] => 2024-12-22 22:31:04 [RateCDR] => 1 ) [2024-12-22 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-22 19:31:04' and `end` < '2024-12-22 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-22 22:31:16] Production.INFO: count ==842 [2024-12-22 22:31:16] Production.ERROR: pbx CDR StartTime 2024-12-22 19:31:04 - End Time 2024-12-22 22:31:04 [2024-12-22 22:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080571', 'tblTempUsageDetail_20' ) start [2024-12-22 22:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080571', 'tblTempUsageDetail_20' ) end [2024-12-22 22:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080571', 'tblTempVendorCDR_20' ) start [2024-12-22 22:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080571', 'tblTempVendorCDR_20' ) end [2024-12-22 22:31:16] Production.INFO: ProcessCDR(1,14080571,1,1,2) [2024-12-22 22:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080571', 'tblTempUsageDetail_20' ) start [2024-12-22 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080571', 'tblTempUsageDetail_20' ) end [2024-12-22 22:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:31:20] Production.INFO: ==5097== Releasing lock... [2024-12-22 22:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:31:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:32:05 [end_date_ymd] => 2024-12-22 22:32:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:32:05' and `end` < '2024-12-22 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-22 22:32:18] Production.INFO: count ==848 [2024-12-22 22:32:18] Production.ERROR: pbx CDR StartTime 2024-12-22 19:32:05 - End Time 2024-12-22 22:32:05 [2024-12-22 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080576', 'tblTempUsageDetail_20' ) start [2024-12-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080576', 'tblTempUsageDetail_20' ) end [2024-12-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080576', 'tblTempVendorCDR_20' ) start [2024-12-22 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080576', 'tblTempVendorCDR_20' ) end [2024-12-22 22:32:18] Production.INFO: ProcessCDR(1,14080576,1,1,2) [2024-12-22 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080576', 'tblTempUsageDetail_20' ) start [2024-12-22 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080576', 'tblTempUsageDetail_20' ) end [2024-12-22 22:32:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:32:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:32:21] Production.INFO: ==5176== Releasing lock... [2024-12-22 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:32:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:33:05 [end_date_ymd] => 2024-12-22 22:33:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:33:05' and `end` < '2024-12-22 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-22 22:33:17] Production.INFO: count ==847 [2024-12-22 22:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:33:05 - End Time 2024-12-22 22:33:05 [2024-12-22 22:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080581', 'tblTempUsageDetail_20' ) start [2024-12-22 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080581', 'tblTempUsageDetail_20' ) end [2024-12-22 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080581', 'tblTempVendorCDR_20' ) start [2024-12-22 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080581', 'tblTempVendorCDR_20' ) end [2024-12-22 22:33:18] Production.INFO: ProcessCDR(1,14080581,1,1,2) [2024-12-22 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080581', 'tblTempUsageDetail_20' ) start [2024-12-22 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080581', 'tblTempUsageDetail_20' ) end [2024-12-22 22:33:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:33:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:33:21] Production.INFO: ==5251== Releasing lock... [2024-12-22 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:33:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:34:04 [end_date_ymd] => 2024-12-22 22:34:04 [RateCDR] => 1 ) [2024-12-22 22:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:34:04' and `end` < '2024-12-22 22:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:34:17] Production.INFO: count ==850 [2024-12-22 22:34:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:34:04 - End Time 2024-12-22 22:34:04 [2024-12-22 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080586', 'tblTempUsageDetail_20' ) start [2024-12-22 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080586', 'tblTempUsageDetail_20' ) end [2024-12-22 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080586', 'tblTempVendorCDR_20' ) start [2024-12-22 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080586', 'tblTempVendorCDR_20' ) end [2024-12-22 22:34:17] Production.INFO: ProcessCDR(1,14080586,1,1,2) [2024-12-22 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080586', 'tblTempUsageDetail_20' ) start [2024-12-22 22:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080586', 'tblTempUsageDetail_20' ) end [2024-12-22 22:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:34:20] Production.INFO: ==5371== Releasing lock... [2024-12-22 22:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:34:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:35:05 [end_date_ymd] => 2024-12-22 22:35:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:35:05' and `end` < '2024-12-22 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-22 22:35:17] Production.INFO: count ==847 [2024-12-22 22:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:35:05 - End Time 2024-12-22 22:35:05 [2024-12-22 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080591', 'tblTempUsageDetail_20' ) start [2024-12-22 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080591', 'tblTempUsageDetail_20' ) end [2024-12-22 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080591', 'tblTempVendorCDR_20' ) start [2024-12-22 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080591', 'tblTempVendorCDR_20' ) end [2024-12-22 22:35:17] Production.INFO: ProcessCDR(1,14080591,1,1,2) [2024-12-22 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080591', 'tblTempUsageDetail_20' ) start [2024-12-22 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080591', 'tblTempUsageDetail_20' ) end [2024-12-22 22:35:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:35:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:35:21] Production.INFO: ==5445== Releasing lock... [2024-12-22 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:35:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:36:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:36:04 [end_date_ymd] => 2024-12-22 22:36:04 [RateCDR] => 1 ) [2024-12-22 22:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:36:04' and `end` < '2024-12-22 22:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:36:16] Production.INFO: count ==848 [2024-12-22 22:36:16] Production.ERROR: pbx CDR StartTime 2024-12-22 19:36:04 - End Time 2024-12-22 22:36:04 [2024-12-22 22:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080596', 'tblTempUsageDetail_20' ) start [2024-12-22 22:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080596', 'tblTempUsageDetail_20' ) end [2024-12-22 22:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080596', 'tblTempVendorCDR_20' ) start [2024-12-22 22:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080596', 'tblTempVendorCDR_20' ) end [2024-12-22 22:36:16] Production.INFO: ProcessCDR(1,14080596,1,1,2) [2024-12-22 22:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080596', 'tblTempUsageDetail_20' ) start [2024-12-22 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080596', 'tblTempUsageDetail_20' ) end [2024-12-22 22:36:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:36:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:36:21] Production.INFO: ==5521== Releasing lock... [2024-12-22 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:36:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:37:04 [end_date_ymd] => 2024-12-22 22:37:04 [RateCDR] => 1 ) [2024-12-22 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-22 19:37:04' and `end` < '2024-12-22 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-22 22:37:18] Production.INFO: count ==847 [2024-12-22 22:37:18] Production.ERROR: pbx CDR StartTime 2024-12-22 19:37:04 - End Time 2024-12-22 22:37:04 [2024-12-22 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080601', 'tblTempUsageDetail_20' ) start [2024-12-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080601', 'tblTempUsageDetail_20' ) end [2024-12-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080601', 'tblTempVendorCDR_20' ) start [2024-12-22 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080601', 'tblTempVendorCDR_20' ) end [2024-12-22 22:37:18] Production.INFO: ProcessCDR(1,14080601,1,1,2) [2024-12-22 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080601', 'tblTempUsageDetail_20' ) start [2024-12-22 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080601', 'tblTempUsageDetail_20' ) end [2024-12-22 22:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:37:22] Production.INFO: ==5600== Releasing lock... [2024-12-22 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:37:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:38:04 [end_date_ymd] => 2024-12-22 22:38:04 [RateCDR] => 1 ) [2024-12-22 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-22 19:38:04' and `end` < '2024-12-22 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-22 22:38:16] Production.INFO: count ==845 [2024-12-22 22:38:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:38:04 - End Time 2024-12-22 22:38:04 [2024-12-22 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080606', 'tblTempUsageDetail_20' ) start [2024-12-22 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080606', 'tblTempUsageDetail_20' ) end [2024-12-22 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080606', 'tblTempVendorCDR_20' ) start [2024-12-22 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080606', 'tblTempVendorCDR_20' ) end [2024-12-22 22:38:17] Production.INFO: ProcessCDR(1,14080606,1,1,2) [2024-12-22 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080606', 'tblTempUsageDetail_20' ) start [2024-12-22 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080606', 'tblTempUsageDetail_20' ) end [2024-12-22 22:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:38:20] Production.INFO: ==5687== Releasing lock... [2024-12-22 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:38:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:39:05 [end_date_ymd] => 2024-12-22 22:39:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:39:05' and `end` < '2024-12-22 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-22 22:39:17] Production.INFO: count ==840 [2024-12-22 22:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:39:05 - End Time 2024-12-22 22:39:05 [2024-12-22 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080611', 'tblTempUsageDetail_20' ) start [2024-12-22 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080611', 'tblTempUsageDetail_20' ) end [2024-12-22 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080611', 'tblTempVendorCDR_20' ) start [2024-12-22 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080611', 'tblTempVendorCDR_20' ) end [2024-12-22 22:39:17] Production.INFO: ProcessCDR(1,14080611,1,1,2) [2024-12-22 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080611', 'tblTempUsageDetail_20' ) start [2024-12-22 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080611', 'tblTempUsageDetail_20' ) end [2024-12-22 22:39:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:39:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:39:21] Production.INFO: ==5764== Releasing lock... [2024-12-22 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:39:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:40:05 [end_date_ymd] => 2024-12-22 22:40:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:40:05' and `end` < '2024-12-22 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-22 22:40:18] Production.INFO: count ==853 [2024-12-22 22:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 19:40:05 - End Time 2024-12-22 22:40:05 [2024-12-22 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080616', 'tblTempUsageDetail_20' ) start [2024-12-22 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080616', 'tblTempUsageDetail_20' ) end [2024-12-22 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080616', 'tblTempVendorCDR_20' ) start [2024-12-22 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080616', 'tblTempVendorCDR_20' ) end [2024-12-22 22:40:18] Production.INFO: ProcessCDR(1,14080616,1,1,2) [2024-12-22 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080616', 'tblTempUsageDetail_20' ) start [2024-12-22 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080616', 'tblTempUsageDetail_20' ) end [2024-12-22 22:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:40:21] Production.INFO: ==5838== Releasing lock... [2024-12-22 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:40:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:41:05 [end_date_ymd] => 2024-12-22 22:41:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:41:05' and `end` < '2024-12-22 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-22 22:41:17] Production.INFO: count ==831 [2024-12-22 22:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:41:05 - End Time 2024-12-22 22:41:05 [2024-12-22 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080622', 'tblTempUsageDetail_20' ) start [2024-12-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080622', 'tblTempUsageDetail_20' ) end [2024-12-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080622', 'tblTempVendorCDR_20' ) start [2024-12-22 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080622', 'tblTempVendorCDR_20' ) end [2024-12-22 22:41:17] Production.INFO: ProcessCDR(1,14080622,1,1,2) [2024-12-22 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080622', 'tblTempUsageDetail_20' ) start [2024-12-22 22:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080622', 'tblTempUsageDetail_20' ) end [2024-12-22 22:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:41:20] Production.INFO: ==5916== Releasing lock... [2024-12-22 22:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:41:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:42:05 [end_date_ymd] => 2024-12-22 22:42:05 [RateCDR] => 1 ) [2024-12-22 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:42:05' and `end` < '2024-12-22 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:42:17] Production.INFO: count ==826 [2024-12-22 22:42:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:42:05 - End Time 2024-12-22 22:42:05 [2024-12-22 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080627', 'tblTempUsageDetail_20' ) start [2024-12-22 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080627', 'tblTempUsageDetail_20' ) end [2024-12-22 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080627', 'tblTempVendorCDR_20' ) start [2024-12-22 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080627', 'tblTempVendorCDR_20' ) end [2024-12-22 22:42:17] Production.INFO: ProcessCDR(1,14080627,1,1,2) [2024-12-22 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080627', 'tblTempUsageDetail_20' ) start [2024-12-22 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080627', 'tblTempUsageDetail_20' ) end [2024-12-22 22:42:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:42:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:42:20] Production.INFO: ==5986== Releasing lock... [2024-12-22 22:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:42:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:43:05 [end_date_ymd] => 2024-12-22 22:43:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:43:05' and `end` < '2024-12-22 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-22 22:43:17] Production.INFO: count ==827 [2024-12-22 22:43:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:43:05 - End Time 2024-12-22 22:43:05 [2024-12-22 22:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080632', 'tblTempUsageDetail_20' ) start [2024-12-22 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080632', 'tblTempUsageDetail_20' ) end [2024-12-22 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080632', 'tblTempVendorCDR_20' ) start [2024-12-22 22:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080632', 'tblTempVendorCDR_20' ) end [2024-12-22 22:43:17] Production.INFO: ProcessCDR(1,14080632,1,1,2) [2024-12-22 22:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080632', 'tblTempUsageDetail_20' ) start [2024-12-22 22:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080632', 'tblTempUsageDetail_20' ) end [2024-12-22 22:43:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:43:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:43:20] Production.INFO: ==6061== Releasing lock... [2024-12-22 22:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:43:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:44:05 [end_date_ymd] => 2024-12-22 22:44:05 [RateCDR] => 1 ) [2024-12-22 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:44:05' and `end` < '2024-12-22 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:44:17] Production.INFO: count ==822 [2024-12-22 22:44:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:44:05 - End Time 2024-12-22 22:44:05 [2024-12-22 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080637', 'tblTempUsageDetail_20' ) start [2024-12-22 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080637', 'tblTempUsageDetail_20' ) end [2024-12-22 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080637', 'tblTempVendorCDR_20' ) start [2024-12-22 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080637', 'tblTempVendorCDR_20' ) end [2024-12-22 22:44:17] Production.INFO: ProcessCDR(1,14080637,1,1,2) [2024-12-22 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080637', 'tblTempUsageDetail_20' ) start [2024-12-22 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080637', 'tblTempUsageDetail_20' ) end [2024-12-22 22:44:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:44:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:44:20] Production.INFO: ==6140== Releasing lock... [2024-12-22 22:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:44:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 22:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:45:04 [end_date_ymd] => 2024-12-22 22:45:04 [RateCDR] => 1 ) [2024-12-22 22: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-22 19:45:04' and `end` < '2024-12-22 22: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-22 22:45:16] Production.INFO: count ==821 [2024-12-22 22:45:16] Production.ERROR: pbx CDR StartTime 2024-12-22 19:45:04 - End Time 2024-12-22 22:45:04 [2024-12-22 22:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080642', 'tblTempUsageDetail_20' ) start [2024-12-22 22:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080642', 'tblTempUsageDetail_20' ) end [2024-12-22 22:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080642', 'tblTempVendorCDR_20' ) start [2024-12-22 22:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080642', 'tblTempVendorCDR_20' ) end [2024-12-22 22:45:16] Production.INFO: ProcessCDR(1,14080642,1,1,2) [2024-12-22 22:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080642', 'tblTempUsageDetail_20' ) start [2024-12-22 22:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080642', 'tblTempUsageDetail_20' ) end [2024-12-22 22:45:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:45:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:45:19] Production.INFO: ==6216== Releasing lock... [2024-12-22 22:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:45:19] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:46:04 [end_date_ymd] => 2024-12-22 22:46:04 [RateCDR] => 1 ) [2024-12-22 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-22 19:46:04' and `end` < '2024-12-22 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-22 22:46:17] Production.INFO: count ==820 [2024-12-22 22:46:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:46:04 - End Time 2024-12-22 22:46:04 [2024-12-22 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080647', 'tblTempUsageDetail_20' ) start [2024-12-22 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080647', 'tblTempUsageDetail_20' ) end [2024-12-22 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080647', 'tblTempVendorCDR_20' ) start [2024-12-22 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080647', 'tblTempVendorCDR_20' ) end [2024-12-22 22:46:17] Production.INFO: ProcessCDR(1,14080647,1,1,2) [2024-12-22 22:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080647', 'tblTempUsageDetail_20' ) start [2024-12-22 22:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080647', 'tblTempUsageDetail_20' ) end [2024-12-22 22:46:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:46:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:46:20] Production.INFO: ==6299== Releasing lock... [2024-12-22 22:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:46:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:47:05 [end_date_ymd] => 2024-12-22 22:47:05 [RateCDR] => 1 ) [2024-12-22 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:47:05' and `end` < '2024-12-22 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:47:17] Production.INFO: count ==817 [2024-12-22 22:47:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:47:05 - End Time 2024-12-22 22:47:05 [2024-12-22 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080652', 'tblTempUsageDetail_20' ) start [2024-12-22 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080652', 'tblTempUsageDetail_20' ) end [2024-12-22 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080652', 'tblTempVendorCDR_20' ) start [2024-12-22 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080652', 'tblTempVendorCDR_20' ) end [2024-12-22 22:47:17] Production.INFO: ProcessCDR(1,14080652,1,1,2) [2024-12-22 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080652', 'tblTempUsageDetail_20' ) start [2024-12-22 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080652', 'tblTempUsageDetail_20' ) end [2024-12-22 22:47:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:47:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:47:22] Production.INFO: ==6377== Releasing lock... [2024-12-22 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:47:22] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:48:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:48:04 [end_date_ymd] => 2024-12-22 22:48:04 [RateCDR] => 1 ) [2024-12-22 22:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:48:04' and `end` < '2024-12-22 22:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:48:17] Production.INFO: count ==819 [2024-12-22 22:48:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:48:04 - End Time 2024-12-22 22:48:04 [2024-12-22 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080657', 'tblTempUsageDetail_20' ) start [2024-12-22 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080657', 'tblTempUsageDetail_20' ) end [2024-12-22 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080657', 'tblTempVendorCDR_20' ) start [2024-12-22 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080657', 'tblTempVendorCDR_20' ) end [2024-12-22 22:48:17] Production.INFO: ProcessCDR(1,14080657,1,1,2) [2024-12-22 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080657', 'tblTempUsageDetail_20' ) start [2024-12-22 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080657', 'tblTempUsageDetail_20' ) end [2024-12-22 22:48:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:48:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:48:20] Production.INFO: ==6458== Releasing lock... [2024-12-22 22:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:48:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:49:05 [end_date_ymd] => 2024-12-22 22:49:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:49:05' and `end` < '2024-12-22 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-22 22:49:18] Production.INFO: count ==817 [2024-12-22 22:49:18] Production.ERROR: pbx CDR StartTime 2024-12-22 19:49:05 - End Time 2024-12-22 22:49:05 [2024-12-22 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080662', 'tblTempUsageDetail_20' ) start [2024-12-22 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080662', 'tblTempUsageDetail_20' ) end [2024-12-22 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080662', 'tblTempVendorCDR_20' ) start [2024-12-22 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080662', 'tblTempVendorCDR_20' ) end [2024-12-22 22:49:18] Production.INFO: ProcessCDR(1,14080662,1,1,2) [2024-12-22 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080662', 'tblTempUsageDetail_20' ) start [2024-12-22 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080662', 'tblTempUsageDetail_20' ) end [2024-12-22 22:49:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:49:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:49:21] Production.INFO: ==6576== Releasing lock... [2024-12-22 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:49:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:50:05 [end_date_ymd] => 2024-12-22 22:50:05 [RateCDR] => 1 ) [2024-12-22 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:50:05' and `end` < '2024-12-22 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:50:17] Production.INFO: count ==815 [2024-12-22 22:50:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:50:05 - End Time 2024-12-22 22:50:05 [2024-12-22 22:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080667', 'tblTempUsageDetail_20' ) start [2024-12-22 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080667', 'tblTempUsageDetail_20' ) end [2024-12-22 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080667', 'tblTempVendorCDR_20' ) start [2024-12-22 22:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080667', 'tblTempVendorCDR_20' ) end [2024-12-22 22:50:17] Production.INFO: ProcessCDR(1,14080667,1,1,2) [2024-12-22 22:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080667', 'tblTempUsageDetail_20' ) start [2024-12-22 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080667', 'tblTempUsageDetail_20' ) end [2024-12-22 22:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:50:21] Production.INFO: ==6659== Releasing lock... [2024-12-22 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:50:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:51:05 [end_date_ymd] => 2024-12-22 22:51:05 [RateCDR] => 1 ) [2024-12-22 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:51:05' and `end` < '2024-12-22 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:51:18] Production.INFO: count ==813 [2024-12-22 22:51:18] Production.ERROR: pbx CDR StartTime 2024-12-22 19:51:05 - End Time 2024-12-22 22:51:05 [2024-12-22 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080673', 'tblTempUsageDetail_20' ) start [2024-12-22 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080673', 'tblTempUsageDetail_20' ) end [2024-12-22 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080673', 'tblTempVendorCDR_20' ) start [2024-12-22 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080673', 'tblTempVendorCDR_20' ) end [2024-12-22 22:51:18] Production.INFO: ProcessCDR(1,14080673,1,1,2) [2024-12-22 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080673', 'tblTempUsageDetail_20' ) start [2024-12-22 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080673', 'tblTempUsageDetail_20' ) end [2024-12-22 22:51:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:51:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:51:21] Production.INFO: ==6737== Releasing lock... [2024-12-22 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:51:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:52:05 [end_date_ymd] => 2024-12-22 22:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:52:05' and `end` < '2024-12-22 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-22 22:52:17] Production.INFO: count ==819 [2024-12-22 22:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:52:05 - End Time 2024-12-22 22:52:05 [2024-12-22 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080678', 'tblTempUsageDetail_20' ) start [2024-12-22 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080678', 'tblTempUsageDetail_20' ) end [2024-12-22 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080678', 'tblTempVendorCDR_20' ) start [2024-12-22 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080678', 'tblTempVendorCDR_20' ) end [2024-12-22 22:52:17] Production.INFO: ProcessCDR(1,14080678,1,1,2) [2024-12-22 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080678', 'tblTempUsageDetail_20' ) start [2024-12-22 22:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080678', 'tblTempUsageDetail_20' ) end [2024-12-22 22:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:52:20] Production.INFO: ==6821== Releasing lock... [2024-12-22 22:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:52:20] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 22:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:53:04 [end_date_ymd] => 2024-12-22 22:53:04 [RateCDR] => 1 ) [2024-12-22 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-22 19:53:04' and `end` < '2024-12-22 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-22 22:53:17] Production.INFO: count ==823 [2024-12-22 22:53:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:53:04 - End Time 2024-12-22 22:53:04 [2024-12-22 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080683', 'tblTempUsageDetail_20' ) start [2024-12-22 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080683', 'tblTempUsageDetail_20' ) end [2024-12-22 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080683', 'tblTempVendorCDR_20' ) start [2024-12-22 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080683', 'tblTempVendorCDR_20' ) end [2024-12-22 22:53:17] Production.INFO: ProcessCDR(1,14080683,1,1,2) [2024-12-22 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080683', 'tblTempUsageDetail_20' ) start [2024-12-22 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080683', 'tblTempUsageDetail_20' ) end [2024-12-22 22:53:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:53:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:53:20] Production.INFO: ==6900== Releasing lock... [2024-12-22 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:53:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:54:05 [end_date_ymd] => 2024-12-22 22:54:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:54:05' and `end` < '2024-12-22 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-22 22:54:18] Production.INFO: count ==824 [2024-12-22 22:54:18] Production.ERROR: pbx CDR StartTime 2024-12-22 19:54:05 - End Time 2024-12-22 22:54:05 [2024-12-22 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080688', 'tblTempUsageDetail_20' ) start [2024-12-22 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080688', 'tblTempUsageDetail_20' ) end [2024-12-22 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080688', 'tblTempVendorCDR_20' ) start [2024-12-22 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080688', 'tblTempVendorCDR_20' ) end [2024-12-22 22:54:18] Production.INFO: ProcessCDR(1,14080688,1,1,2) [2024-12-22 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080688', 'tblTempUsageDetail_20' ) start [2024-12-22 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080688', 'tblTempUsageDetail_20' ) end [2024-12-22 22:54:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:54:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:54:21] Production.INFO: ==6977== Releasing lock... [2024-12-22 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:54:21] Production.INFO: 33.25 MB #Memory Used# [2024-12-22 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:55:04 [end_date_ymd] => 2024-12-22 22:55:04 [RateCDR] => 1 ) [2024-12-22 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-22 19:55:04' and `end` < '2024-12-22 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-22 22:55:17] Production.INFO: count ==851 [2024-12-22 22:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:55:04 - End Time 2024-12-22 22:55:04 [2024-12-22 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080693', 'tblTempUsageDetail_20' ) start [2024-12-22 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080693', 'tblTempUsageDetail_20' ) end [2024-12-22 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080693', 'tblTempVendorCDR_20' ) start [2024-12-22 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080693', 'tblTempVendorCDR_20' ) end [2024-12-22 22:55:17] Production.INFO: ProcessCDR(1,14080693,1,1,2) [2024-12-22 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080693', 'tblTempUsageDetail_20' ) start [2024-12-22 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080693', 'tblTempUsageDetail_20' ) end [2024-12-22 22:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:55:20] Production.INFO: ==7062== Releasing lock... [2024-12-22 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:55:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:56:05 [end_date_ymd] => 2024-12-22 22:56:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:56:05' and `end` < '2024-12-22 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-22 22:56:17] Production.INFO: count ==852 [2024-12-22 22:56:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:56:05 - End Time 2024-12-22 22:56:05 [2024-12-22 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080698', 'tblTempUsageDetail_20' ) start [2024-12-22 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080698', 'tblTempUsageDetail_20' ) end [2024-12-22 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080698', 'tblTempVendorCDR_20' ) start [2024-12-22 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080698', 'tblTempVendorCDR_20' ) end [2024-12-22 22:56:17] Production.INFO: ProcessCDR(1,14080698,1,1,2) [2024-12-22 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080698', 'tblTempUsageDetail_20' ) start [2024-12-22 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080698', 'tblTempUsageDetail_20' ) end [2024-12-22 22:56:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:56:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:56:20] Production.INFO: ==7144== Releasing lock... [2024-12-22 22:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:56:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:57:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:57:04 [end_date_ymd] => 2024-12-22 22:57:04 [RateCDR] => 1 ) [2024-12-22 22:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 19:57:04' and `end` < '2024-12-22 22:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 22:57:16] Production.INFO: count ==853 [2024-12-22 22:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:57:04 - End Time 2024-12-22 22:57:04 [2024-12-22 22:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080703', 'tblTempUsageDetail_20' ) start [2024-12-22 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080703', 'tblTempUsageDetail_20' ) end [2024-12-22 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080703', 'tblTempVendorCDR_20' ) start [2024-12-22 22:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080703', 'tblTempVendorCDR_20' ) end [2024-12-22 22:57:17] Production.INFO: ProcessCDR(1,14080703,1,1,2) [2024-12-22 22:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080703', 'tblTempUsageDetail_20' ) start [2024-12-22 22:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080703', 'tblTempUsageDetail_20' ) end [2024-12-22 22:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:57:20] Production.INFO: ==7218== Releasing lock... [2024-12-22 22:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:57:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:58:05 [end_date_ymd] => 2024-12-22 22:58:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:58:05' and `end` < '2024-12-22 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-22 22:58:17] Production.INFO: count ==847 [2024-12-22 22:58:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:58:05 - End Time 2024-12-22 22:58:05 [2024-12-22 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080708', 'tblTempUsageDetail_20' ) start [2024-12-22 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080708', 'tblTempUsageDetail_20' ) end [2024-12-22 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080708', 'tblTempVendorCDR_20' ) start [2024-12-22 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080708', 'tblTempVendorCDR_20' ) end [2024-12-22 22:58:17] Production.INFO: ProcessCDR(1,14080708,1,1,2) [2024-12-22 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080708', 'tblTempUsageDetail_20' ) start [2024-12-22 22:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080708', 'tblTempUsageDetail_20' ) end [2024-12-22 22:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:58:20] Production.INFO: ==7296== Releasing lock... [2024-12-22 22:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:58:20] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 19:59:05 [end_date_ymd] => 2024-12-22 22:59:05 [RateCDR] => 1 ) [2024-12-22 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-22 19:59:05' and `end` < '2024-12-22 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-22 22:59:17] Production.INFO: count ==849 [2024-12-22 22:59:17] Production.ERROR: pbx CDR StartTime 2024-12-22 19:59:05 - End Time 2024-12-22 22:59:05 [2024-12-22 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080713', 'tblTempUsageDetail_20' ) start [2024-12-22 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080713', 'tblTempUsageDetail_20' ) end [2024-12-22 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080713', 'tblTempVendorCDR_20' ) start [2024-12-22 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080713', 'tblTempVendorCDR_20' ) end [2024-12-22 22:59:17] Production.INFO: ProcessCDR(1,14080713,1,1,2) [2024-12-22 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080713', 'tblTempUsageDetail_20' ) start [2024-12-22 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080713', 'tblTempUsageDetail_20' ) end [2024-12-22 22:59:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 22:59:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 22:59:21] Production.INFO: ==7378== Releasing lock... [2024-12-22 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 22:59:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:00:06 [end_date_ymd] => 2024-12-22 23:00:06 [RateCDR] => 1 ) [2024-12-22 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:00:06' and `end` < '2024-12-22 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:00:18] Production.INFO: count ==848 [2024-12-22 23:00:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:00:06 - End Time 2024-12-22 23:00:06 [2024-12-22 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080719', 'tblTempUsageDetail_20' ) start [2024-12-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080719', 'tblTempUsageDetail_20' ) end [2024-12-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080719', 'tblTempVendorCDR_20' ) start [2024-12-22 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080719', 'tblTempVendorCDR_20' ) end [2024-12-22 23:00:18] Production.INFO: ProcessCDR(1,14080719,1,1,2) [2024-12-22 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080719', 'tblTempUsageDetail_20' ) start [2024-12-22 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080719', 'tblTempUsageDetail_20' ) end [2024-12-22 23:00:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:00:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:00:21] Production.INFO: ==7458== Releasing lock... [2024-12-22 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:00:21] Production.INFO: 33.5 MB #Memory Used# [2024-12-22 23:01:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:01:04 [end_date_ymd] => 2024-12-22 23:01:04 [RateCDR] => 1 ) [2024-12-22 23:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:01:04' and `end` < '2024-12-22 23:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:01:17] Production.INFO: count ==859 [2024-12-22 23:01:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:01:04 - End Time 2024-12-22 23:01:04 [2024-12-22 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080724', 'tblTempUsageDetail_20' ) start [2024-12-22 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080724', 'tblTempUsageDetail_20' ) end [2024-12-22 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080724', 'tblTempVendorCDR_20' ) start [2024-12-22 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080724', 'tblTempVendorCDR_20' ) end [2024-12-22 23:01:17] Production.INFO: ProcessCDR(1,14080724,1,1,2) [2024-12-22 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080724', 'tblTempUsageDetail_20' ) start [2024-12-22 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080724', 'tblTempUsageDetail_20' ) end [2024-12-22 23:01:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:01:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:01:20] Production.INFO: ==7549== Releasing lock... [2024-12-22 23:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:01:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:02:05 [end_date_ymd] => 2024-12-22 23:02:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:02:05' and `end` < '2024-12-22 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-22 23:02:17] Production.INFO: count ==862 [2024-12-22 23:02:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:02:05 - End Time 2024-12-22 23:02:05 [2024-12-22 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080729', 'tblTempUsageDetail_20' ) start [2024-12-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080729', 'tblTempUsageDetail_20' ) end [2024-12-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080729', 'tblTempVendorCDR_20' ) start [2024-12-22 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080729', 'tblTempVendorCDR_20' ) end [2024-12-22 23:02:18] Production.INFO: ProcessCDR(1,14080729,1,1,2) [2024-12-22 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080729', 'tblTempUsageDetail_20' ) start [2024-12-22 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080729', 'tblTempUsageDetail_20' ) end [2024-12-22 23:02:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:02:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:02:21] Production.INFO: ==7708== Releasing lock... [2024-12-22 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:02:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:03:04 [end_date_ymd] => 2024-12-22 23:03:04 [RateCDR] => 1 ) [2024-12-22 23: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-22 20:03:04' and `end` < '2024-12-22 23: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-22 23:03:16] Production.INFO: count ==862 [2024-12-22 23:03:16] Production.ERROR: pbx CDR StartTime 2024-12-22 20:03:04 - End Time 2024-12-22 23:03:04 [2024-12-22 23:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080734', 'tblTempUsageDetail_20' ) start [2024-12-22 23:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080734', 'tblTempUsageDetail_20' ) end [2024-12-22 23:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080734', 'tblTempVendorCDR_20' ) start [2024-12-22 23:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080734', 'tblTempVendorCDR_20' ) end [2024-12-22 23:03:16] Production.INFO: ProcessCDR(1,14080734,1,1,2) [2024-12-22 23:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:03:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080734', 'tblTempUsageDetail_20' ) start [2024-12-22 23:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080734', 'tblTempUsageDetail_20' ) end [2024-12-22 23:03:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:03:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:03:19] Production.INFO: ==7789== Releasing lock... [2024-12-22 23:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:03:19] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:04:05 [end_date_ymd] => 2024-12-22 23:04:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:04:05' and `end` < '2024-12-22 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-22 23:04:17] Production.INFO: count ==887 [2024-12-22 23:04:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:04:05 - End Time 2024-12-22 23:04:05 [2024-12-22 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080739', 'tblTempUsageDetail_20' ) start [2024-12-22 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080739', 'tblTempUsageDetail_20' ) end [2024-12-22 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080739', 'tblTempVendorCDR_20' ) start [2024-12-22 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080739', 'tblTempVendorCDR_20' ) end [2024-12-22 23:04:17] Production.INFO: ProcessCDR(1,14080739,1,1,2) [2024-12-22 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080739', 'tblTempUsageDetail_20' ) start [2024-12-22 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080739', 'tblTempUsageDetail_20' ) end [2024-12-22 23:04:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:04:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:04:22] Production.INFO: ==7868== Releasing lock... [2024-12-22 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:04:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:05:04 [end_date_ymd] => 2024-12-22 23:05:04 [RateCDR] => 1 ) [2024-12-22 23: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-22 20:05:04' and `end` < '2024-12-22 23: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-22 23:05:16] Production.INFO: count ==888 [2024-12-22 23:05:16] Production.ERROR: pbx CDR StartTime 2024-12-22 20:05:04 - End Time 2024-12-22 23:05:04 [2024-12-22 23:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080744', 'tblTempUsageDetail_20' ) start [2024-12-22 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080744', 'tblTempUsageDetail_20' ) end [2024-12-22 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080744', 'tblTempVendorCDR_20' ) start [2024-12-22 23:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080744', 'tblTempVendorCDR_20' ) end [2024-12-22 23:05:16] Production.INFO: ProcessCDR(1,14080744,1,1,2) [2024-12-22 23:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:05:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080744', 'tblTempUsageDetail_20' ) start [2024-12-22 23:05:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080744', 'tblTempUsageDetail_20' ) end [2024-12-22 23:05:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:05:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:05:19] Production.INFO: ==8066== Releasing lock... [2024-12-22 23:05:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:05:19] Production.INFO: 34 MB #Memory Used# [2024-12-22 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:06:05 [end_date_ymd] => 2024-12-22 23:06:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:06:05' and `end` < '2024-12-22 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-22 23:06:17] Production.INFO: count ==887 [2024-12-22 23:06:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:06:05 - End Time 2024-12-22 23:06:05 [2024-12-22 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080749', 'tblTempUsageDetail_20' ) start [2024-12-22 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080749', 'tblTempUsageDetail_20' ) end [2024-12-22 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080749', 'tblTempVendorCDR_20' ) start [2024-12-22 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080749', 'tblTempVendorCDR_20' ) end [2024-12-22 23:06:17] Production.INFO: ProcessCDR(1,14080749,1,1,2) [2024-12-22 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080749', 'tblTempUsageDetail_20' ) start [2024-12-22 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080749', 'tblTempUsageDetail_20' ) end [2024-12-22 23:06:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:06:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:06:20] Production.INFO: ==8142== Releasing lock... [2024-12-22 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:06:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:07:05 [end_date_ymd] => 2024-12-22 23:07:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:07:05' and `end` < '2024-12-22 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-22 23:07:17] Production.INFO: count ==886 [2024-12-22 23:07:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:07:05 - End Time 2024-12-22 23:07:05 [2024-12-22 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080754', 'tblTempUsageDetail_20' ) start [2024-12-22 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080754', 'tblTempUsageDetail_20' ) end [2024-12-22 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080754', 'tblTempVendorCDR_20' ) start [2024-12-22 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080754', 'tblTempVendorCDR_20' ) end [2024-12-22 23:07:17] Production.INFO: ProcessCDR(1,14080754,1,1,2) [2024-12-22 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080754', 'tblTempUsageDetail_20' ) start [2024-12-22 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080754', 'tblTempUsageDetail_20' ) end [2024-12-22 23:07:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:07:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:07:20] Production.INFO: ==8235== Releasing lock... [2024-12-22 23:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:07:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:08:05 [end_date_ymd] => 2024-12-22 23:08:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:08:05' and `end` < '2024-12-22 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-22 23:08:17] Production.INFO: count ==883 [2024-12-22 23:08:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:08:05 - End Time 2024-12-22 23:08:05 [2024-12-22 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080759', 'tblTempUsageDetail_20' ) start [2024-12-22 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080759', 'tblTempUsageDetail_20' ) end [2024-12-22 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080759', 'tblTempVendorCDR_20' ) start [2024-12-22 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080759', 'tblTempVendorCDR_20' ) end [2024-12-22 23:08:17] Production.INFO: ProcessCDR(1,14080759,1,1,2) [2024-12-22 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080759', 'tblTempUsageDetail_20' ) start [2024-12-22 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080759', 'tblTempUsageDetail_20' ) end [2024-12-22 23:08:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:08:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:08:20] Production.INFO: ==8389== Releasing lock... [2024-12-22 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:08:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:09:05 [end_date_ymd] => 2024-12-22 23:09:05 [RateCDR] => 1 ) [2024-12-22 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:09:05' and `end` < '2024-12-22 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:09:18] Production.INFO: count ==882 [2024-12-22 23:09:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:09:05 - End Time 2024-12-22 23:09:05 [2024-12-22 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080764', 'tblTempUsageDetail_20' ) start [2024-12-22 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080764', 'tblTempUsageDetail_20' ) end [2024-12-22 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080764', 'tblTempVendorCDR_20' ) start [2024-12-22 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080764', 'tblTempVendorCDR_20' ) end [2024-12-22 23:09:18] Production.INFO: ProcessCDR(1,14080764,1,1,2) [2024-12-22 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080764', 'tblTempUsageDetail_20' ) start [2024-12-22 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080764', 'tblTempUsageDetail_20' ) end [2024-12-22 23:09:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:09:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:09:21] Production.INFO: ==8473== Releasing lock... [2024-12-22 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:09:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:10:05 [end_date_ymd] => 2024-12-22 23:10:05 [RateCDR] => 1 ) [2024-12-22 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:10:05' and `end` < '2024-12-22 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:10:17] Production.INFO: count ==880 [2024-12-22 23:10:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:10:05 - End Time 2024-12-22 23:10:05 [2024-12-22 23:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080770', 'tblTempUsageDetail_20' ) start [2024-12-22 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080770', 'tblTempUsageDetail_20' ) end [2024-12-22 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080770', 'tblTempVendorCDR_20' ) start [2024-12-22 23:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080770', 'tblTempVendorCDR_20' ) end [2024-12-22 23:10:17] Production.INFO: ProcessCDR(1,14080770,1,1,2) [2024-12-22 23:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080770', 'tblTempUsageDetail_20' ) start [2024-12-22 23:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080770', 'tblTempUsageDetail_20' ) end [2024-12-22 23:10:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:10:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:10:20] Production.INFO: ==8554== Releasing lock... [2024-12-22 23:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:10:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:11:05 [end_date_ymd] => 2024-12-22 23:11:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:11:05' and `end` < '2024-12-22 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-22 23:11:18] Production.INFO: count ==881 [2024-12-22 23:11:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:11:05 - End Time 2024-12-22 23:11:05 [2024-12-22 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080775', 'tblTempUsageDetail_20' ) start [2024-12-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080775', 'tblTempUsageDetail_20' ) end [2024-12-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080775', 'tblTempVendorCDR_20' ) start [2024-12-22 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080775', 'tblTempVendorCDR_20' ) end [2024-12-22 23:11:18] Production.INFO: ProcessCDR(1,14080775,1,1,2) [2024-12-22 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080775', 'tblTempUsageDetail_20' ) start [2024-12-22 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080775', 'tblTempUsageDetail_20' ) end [2024-12-22 23:11:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:11:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:11:21] Production.INFO: ==8634== Releasing lock... [2024-12-22 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:11:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:12:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:12:04 [end_date_ymd] => 2024-12-22 23:12:04 [RateCDR] => 1 ) [2024-12-22 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-22 20:12:04' and `end` < '2024-12-22 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-22 23:12:16] Production.INFO: count ==885 [2024-12-22 23:12:16] Production.ERROR: pbx CDR StartTime 2024-12-22 20:12:04 - End Time 2024-12-22 23:12:04 [2024-12-22 23:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080780', 'tblTempUsageDetail_20' ) start [2024-12-22 23:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080780', 'tblTempUsageDetail_20' ) end [2024-12-22 23:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080780', 'tblTempVendorCDR_20' ) start [2024-12-22 23:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080780', 'tblTempVendorCDR_20' ) end [2024-12-22 23:12:16] Production.INFO: ProcessCDR(1,14080780,1,1,2) [2024-12-22 23:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:12:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:12:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:12:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:12:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080780', 'tblTempUsageDetail_20' ) start [2024-12-22 23:12:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080780', 'tblTempUsageDetail_20' ) end [2024-12-22 23:12:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:12:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:12:19] Production.INFO: ==8792== Releasing lock... [2024-12-22 23:12:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:12:19] Production.INFO: 34 MB #Memory Used# [2024-12-22 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:13:05 [end_date_ymd] => 2024-12-22 23:13:05 [RateCDR] => 1 ) [2024-12-22 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:13:05' and `end` < '2024-12-22 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:13:18] Production.INFO: count ==885 [2024-12-22 23:13:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:13:05 - End Time 2024-12-22 23:13:05 [2024-12-22 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080785', 'tblTempUsageDetail_20' ) start [2024-12-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080785', 'tblTempUsageDetail_20' ) end [2024-12-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080785', 'tblTempVendorCDR_20' ) start [2024-12-22 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080785', 'tblTempVendorCDR_20' ) end [2024-12-22 23:13:18] Production.INFO: ProcessCDR(1,14080785,1,1,2) [2024-12-22 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080785', 'tblTempUsageDetail_20' ) start [2024-12-22 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080785', 'tblTempUsageDetail_20' ) end [2024-12-22 23:13:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:13:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:13:21] Production.INFO: ==8873== Releasing lock... [2024-12-22 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:13:21] Production.INFO: 34 MB #Memory Used# [2024-12-22 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:14:05 [end_date_ymd] => 2024-12-22 23:14:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:14:05' and `end` < '2024-12-22 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-22 23:14:18] Production.INFO: count ==888 [2024-12-22 23:14:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:14:05 - End Time 2024-12-22 23:14:05 [2024-12-22 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080790', 'tblTempUsageDetail_20' ) start [2024-12-22 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080790', 'tblTempUsageDetail_20' ) end [2024-12-22 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080790', 'tblTempVendorCDR_20' ) start [2024-12-22 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080790', 'tblTempVendorCDR_20' ) end [2024-12-22 23:14:18] Production.INFO: ProcessCDR(1,14080790,1,1,2) [2024-12-22 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080790', 'tblTempUsageDetail_20' ) start [2024-12-22 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080790', 'tblTempUsageDetail_20' ) end [2024-12-22 23:14:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:14:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:14:22] Production.INFO: ==8953== Releasing lock... [2024-12-22 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:14:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:15:05 [end_date_ymd] => 2024-12-22 23:15:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:15:05' and `end` < '2024-12-22 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-22 23:15:17] Production.INFO: count ==883 [2024-12-22 23:15:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:15:05 - End Time 2024-12-22 23:15:05 [2024-12-22 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080795', 'tblTempUsageDetail_20' ) start [2024-12-22 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080795', 'tblTempUsageDetail_20' ) end [2024-12-22 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080795', 'tblTempVendorCDR_20' ) start [2024-12-22 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080795', 'tblTempVendorCDR_20' ) end [2024-12-22 23:15:17] Production.INFO: ProcessCDR(1,14080795,1,1,2) [2024-12-22 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080795', 'tblTempUsageDetail_20' ) start [2024-12-22 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080795', 'tblTempUsageDetail_20' ) end [2024-12-22 23:15:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:15:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:15:20] Production.INFO: ==9115== Releasing lock... [2024-12-22 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:15:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:16:05 [end_date_ymd] => 2024-12-22 23:16:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:16:05' and `end` < '2024-12-22 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-22 23:16:18] Production.INFO: count ==882 [2024-12-22 23:16:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:16:05 - End Time 2024-12-22 23:16:05 [2024-12-22 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080800', 'tblTempUsageDetail_20' ) start [2024-12-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080800', 'tblTempUsageDetail_20' ) end [2024-12-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080800', 'tblTempVendorCDR_20' ) start [2024-12-22 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080800', 'tblTempVendorCDR_20' ) end [2024-12-22 23:16:18] Production.INFO: ProcessCDR(1,14080800,1,1,2) [2024-12-22 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080800', 'tblTempUsageDetail_20' ) start [2024-12-22 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080800', 'tblTempUsageDetail_20' ) end [2024-12-22 23:16:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:16:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:16:21] Production.INFO: ==9196== Releasing lock... [2024-12-22 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:16:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:17:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:17:04 [end_date_ymd] => 2024-12-22 23:17:04 [RateCDR] => 1 ) [2024-12-22 23:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:17:04' and `end` < '2024-12-22 23:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:17:18] Production.INFO: count ==882 [2024-12-22 23:17:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:17:04 - End Time 2024-12-22 23:17:04 [2024-12-22 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080805', 'tblTempUsageDetail_20' ) start [2024-12-22 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080805', 'tblTempUsageDetail_20' ) end [2024-12-22 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080805', 'tblTempVendorCDR_20' ) start [2024-12-22 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080805', 'tblTempVendorCDR_20' ) end [2024-12-22 23:17:18] Production.INFO: ProcessCDR(1,14080805,1,1,2) [2024-12-22 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080805', 'tblTempUsageDetail_20' ) start [2024-12-22 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080805', 'tblTempUsageDetail_20' ) end [2024-12-22 23:17:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:17:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:17:22] Production.INFO: ==9275== Releasing lock... [2024-12-22 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:17:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:18:05 [end_date_ymd] => 2024-12-22 23:18:05 [RateCDR] => 1 ) [2024-12-22 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:18:05' and `end` < '2024-12-22 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:18:17] Production.INFO: count ==885 [2024-12-22 23:18:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:18:05 - End Time 2024-12-22 23:18:05 [2024-12-22 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080810', 'tblTempUsageDetail_20' ) start [2024-12-22 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080810', 'tblTempUsageDetail_20' ) end [2024-12-22 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080810', 'tblTempVendorCDR_20' ) start [2024-12-22 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080810', 'tblTempVendorCDR_20' ) end [2024-12-22 23:18:17] Production.INFO: ProcessCDR(1,14080810,1,1,2) [2024-12-22 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080810', 'tblTempUsageDetail_20' ) start [2024-12-22 23:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080810', 'tblTempUsageDetail_20' ) end [2024-12-22 23:18:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:18:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:18:20] Production.INFO: ==9358== Releasing lock... [2024-12-22 23:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:18:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:19:04 [end_date_ymd] => 2024-12-22 23:19:04 [RateCDR] => 1 ) [2024-12-22 23:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:19:04' and `end` < '2024-12-22 23:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:19:17] Production.INFO: count ==888 [2024-12-22 23:19:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:19:04 - End Time 2024-12-22 23:19:04 [2024-12-22 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080815', 'tblTempUsageDetail_20' ) start [2024-12-22 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080815', 'tblTempUsageDetail_20' ) end [2024-12-22 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080815', 'tblTempVendorCDR_20' ) start [2024-12-22 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080815', 'tblTempVendorCDR_20' ) end [2024-12-22 23:19:17] Production.INFO: ProcessCDR(1,14080815,1,1,2) [2024-12-22 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080815', 'tblTempUsageDetail_20' ) start [2024-12-22 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080815', 'tblTempUsageDetail_20' ) end [2024-12-22 23:19:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:19:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:19:20] Production.INFO: ==9442== Releasing lock... [2024-12-22 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:19:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:20:05 [end_date_ymd] => 2024-12-22 23:20:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:20:05' and `end` < '2024-12-22 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-22 23:20:17] Production.INFO: count ==888 [2024-12-22 23:20:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:20:05 - End Time 2024-12-22 23:20:05 [2024-12-22 23:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080820', 'tblTempUsageDetail_20' ) start [2024-12-22 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080820', 'tblTempUsageDetail_20' ) end [2024-12-22 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080820', 'tblTempVendorCDR_20' ) start [2024-12-22 23:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080820', 'tblTempVendorCDR_20' ) end [2024-12-22 23:20:17] Production.INFO: ProcessCDR(1,14080820,1,1,2) [2024-12-22 23:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080820', 'tblTempUsageDetail_20' ) start [2024-12-22 23:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080820', 'tblTempUsageDetail_20' ) end [2024-12-22 23:20:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:20:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:20:20] Production.INFO: ==9520== Releasing lock... [2024-12-22 23:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:20:20] Production.INFO: 34 MB #Memory Used# [2024-12-22 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:21:04 [end_date_ymd] => 2024-12-22 23:21:04 [RateCDR] => 1 ) [2024-12-22 23:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:21:04' and `end` < '2024-12-22 23:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:21:16] Production.INFO: count ==876 [2024-12-22 23:21:16] Production.ERROR: pbx CDR StartTime 2024-12-22 20:21:04 - End Time 2024-12-22 23:21:04 [2024-12-22 23:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080826', 'tblTempUsageDetail_20' ) start [2024-12-22 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080826', 'tblTempUsageDetail_20' ) end [2024-12-22 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080826', 'tblTempVendorCDR_20' ) start [2024-12-22 23:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080826', 'tblTempVendorCDR_20' ) end [2024-12-22 23:21:16] Production.INFO: ProcessCDR(1,14080826,1,1,2) [2024-12-22 23:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080826', 'tblTempUsageDetail_20' ) start [2024-12-22 23:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080826', 'tblTempUsageDetail_20' ) end [2024-12-22 23:21:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:21:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:21:19] Production.INFO: ==9642== Releasing lock... [2024-12-22 23:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:21:19] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:22:05 [end_date_ymd] => 2024-12-22 23:22:05 [RateCDR] => 1 ) [2024-12-22 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:22:05' and `end` < '2024-12-22 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:22:17] Production.INFO: count ==874 [2024-12-22 23:22:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:22:05 - End Time 2024-12-22 23:22:05 [2024-12-22 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080831', 'tblTempUsageDetail_20' ) start [2024-12-22 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080831', 'tblTempUsageDetail_20' ) end [2024-12-22 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080831', 'tblTempVendorCDR_20' ) start [2024-12-22 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080831', 'tblTempVendorCDR_20' ) end [2024-12-22 23:22:17] Production.INFO: ProcessCDR(1,14080831,1,1,2) [2024-12-22 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080831', 'tblTempUsageDetail_20' ) start [2024-12-22 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080831', 'tblTempUsageDetail_20' ) end [2024-12-22 23:22:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:22:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:22:21] Production.INFO: ==9718== Releasing lock... [2024-12-22 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:22:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:23:05 [end_date_ymd] => 2024-12-22 23:23:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:23:05' and `end` < '2024-12-22 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-22 23:23:19] Production.INFO: count ==872 [2024-12-22 23:23:19] Production.ERROR: pbx CDR StartTime 2024-12-22 20:23:05 - End Time 2024-12-22 23:23:05 [2024-12-22 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080836', 'tblTempUsageDetail_20' ) start [2024-12-22 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080836', 'tblTempUsageDetail_20' ) end [2024-12-22 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080836', 'tblTempVendorCDR_20' ) start [2024-12-22 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080836', 'tblTempVendorCDR_20' ) end [2024-12-22 23:23:19] Production.INFO: ProcessCDR(1,14080836,1,1,2) [2024-12-22 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080836', 'tblTempUsageDetail_20' ) start [2024-12-22 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080836', 'tblTempUsageDetail_20' ) end [2024-12-22 23:23:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:23:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:23:22] Production.INFO: ==9795== Releasing lock... [2024-12-22 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:23:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:24:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:24:04 [end_date_ymd] => 2024-12-22 23:24:04 [RateCDR] => 1 ) [2024-12-22 23: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-22 20:24:04' and `end` < '2024-12-22 23: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-22 23:24:17] Production.INFO: count ==873 [2024-12-22 23:24:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:24:04 - End Time 2024-12-22 23:24:04 [2024-12-22 23:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080841', 'tblTempUsageDetail_20' ) start [2024-12-22 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080841', 'tblTempUsageDetail_20' ) end [2024-12-22 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080841', 'tblTempVendorCDR_20' ) start [2024-12-22 23:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080841', 'tblTempVendorCDR_20' ) end [2024-12-22 23:24:17] Production.INFO: ProcessCDR(1,14080841,1,1,2) [2024-12-22 23:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080841', 'tblTempUsageDetail_20' ) start [2024-12-22 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080841', 'tblTempUsageDetail_20' ) end [2024-12-22 23:24:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:24:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:24:21] Production.INFO: ==9869== Releasing lock... [2024-12-22 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:24:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:25:05 [end_date_ymd] => 2024-12-22 23:25:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:25:05' and `end` < '2024-12-22 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-22 23:25:17] Production.INFO: count ==874 [2024-12-22 23:25:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:25:05 - End Time 2024-12-22 23:25:05 [2024-12-22 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080846', 'tblTempUsageDetail_20' ) start [2024-12-22 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080846', 'tblTempUsageDetail_20' ) end [2024-12-22 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080846', 'tblTempVendorCDR_20' ) start [2024-12-22 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080846', 'tblTempVendorCDR_20' ) end [2024-12-22 23:25:17] Production.INFO: ProcessCDR(1,14080846,1,1,2) [2024-12-22 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080846', 'tblTempUsageDetail_20' ) start [2024-12-22 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080846', 'tblTempUsageDetail_20' ) end [2024-12-22 23:25:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:25:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:25:20] Production.INFO: ==9946== Releasing lock... [2024-12-22 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:25:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:26:05 [end_date_ymd] => 2024-12-22 23:26:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:26:05' and `end` < '2024-12-22 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-22 23:26:17] Production.INFO: count ==874 [2024-12-22 23:26:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:26:05 - End Time 2024-12-22 23:26:05 [2024-12-22 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080851', 'tblTempUsageDetail_20' ) start [2024-12-22 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080851', 'tblTempUsageDetail_20' ) end [2024-12-22 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080851', 'tblTempVendorCDR_20' ) start [2024-12-22 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080851', 'tblTempVendorCDR_20' ) end [2024-12-22 23:26:17] Production.INFO: ProcessCDR(1,14080851,1,1,2) [2024-12-22 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080851', 'tblTempUsageDetail_20' ) start [2024-12-22 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080851', 'tblTempUsageDetail_20' ) end [2024-12-22 23:26:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:26:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:26:20] Production.INFO: ==10022== Releasing lock... [2024-12-22 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:26:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:27:05 [end_date_ymd] => 2024-12-22 23:27:05 [RateCDR] => 1 ) [2024-12-22 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:27:05' and `end` < '2024-12-22 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:27:17] Production.INFO: count ==874 [2024-12-22 23:27:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:27:05 - End Time 2024-12-22 23:27:05 [2024-12-22 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080856', 'tblTempUsageDetail_20' ) start [2024-12-22 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080856', 'tblTempUsageDetail_20' ) end [2024-12-22 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080856', 'tblTempVendorCDR_20' ) start [2024-12-22 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080856', 'tblTempVendorCDR_20' ) end [2024-12-22 23:27:17] Production.INFO: ProcessCDR(1,14080856,1,1,2) [2024-12-22 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080856', 'tblTempUsageDetail_20' ) start [2024-12-22 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080856', 'tblTempUsageDetail_20' ) end [2024-12-22 23:27:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:27:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:27:20] Production.INFO: ==10095== Releasing lock... [2024-12-22 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:27:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:28:05 [end_date_ymd] => 2024-12-22 23:28:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:28:05' and `end` < '2024-12-22 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-22 23:28:19] Production.INFO: count ==875 [2024-12-22 23:28:19] Production.ERROR: pbx CDR StartTime 2024-12-22 20:28:05 - End Time 2024-12-22 23:28:05 [2024-12-22 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080861', 'tblTempUsageDetail_20' ) start [2024-12-22 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080861', 'tblTempUsageDetail_20' ) end [2024-12-22 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080861', 'tblTempVendorCDR_20' ) start [2024-12-22 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080861', 'tblTempVendorCDR_20' ) end [2024-12-22 23:28:19] Production.INFO: ProcessCDR(1,14080861,1,1,2) [2024-12-22 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080861', 'tblTempUsageDetail_20' ) start [2024-12-22 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080861', 'tblTempUsageDetail_20' ) end [2024-12-22 23:28:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:28:23] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:28:23] Production.INFO: ==10173== Releasing lock... [2024-12-22 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:28:23] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:29:04 [end_date_ymd] => 2024-12-22 23:29:04 [RateCDR] => 1 ) [2024-12-22 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-22 20:29:04' and `end` < '2024-12-22 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-22 23:29:16] Production.INFO: count ==875 [2024-12-22 23:29:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:29:04 - End Time 2024-12-22 23:29:04 [2024-12-22 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080866', 'tblTempUsageDetail_20' ) start [2024-12-22 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080866', 'tblTempUsageDetail_20' ) end [2024-12-22 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080866', 'tblTempVendorCDR_20' ) start [2024-12-22 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080866', 'tblTempVendorCDR_20' ) end [2024-12-22 23:29:17] Production.INFO: ProcessCDR(1,14080866,1,1,2) [2024-12-22 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080866', 'tblTempUsageDetail_20' ) start [2024-12-22 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080866', 'tblTempUsageDetail_20' ) end [2024-12-22 23:29:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:29:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:29:20] Production.INFO: ==10252== Releasing lock... [2024-12-22 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:29:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:30:06 [end_date_ymd] => 2024-12-22 23:30:06 [RateCDR] => 1 ) [2024-12-22 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:30:06' and `end` < '2024-12-22 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:30:19] Production.INFO: count ==876 [2024-12-22 23:30:19] Production.ERROR: pbx CDR StartTime 2024-12-22 20:30:06 - End Time 2024-12-22 23:30:06 [2024-12-22 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080872', 'tblTempUsageDetail_20' ) start [2024-12-22 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080872', 'tblTempUsageDetail_20' ) end [2024-12-22 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080872', 'tblTempVendorCDR_20' ) start [2024-12-22 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080872', 'tblTempVendorCDR_20' ) end [2024-12-22 23:30:19] Production.INFO: ProcessCDR(1,14080872,1,1,2) [2024-12-22 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080872', 'tblTempUsageDetail_20' ) start [2024-12-22 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080872', 'tblTempUsageDetail_20' ) end [2024-12-22 23:30:23] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:30:24] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:30:24] Production.INFO: ==10327== Releasing lock... [2024-12-22 23:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:30:24] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:31:04 [end_date_ymd] => 2024-12-22 23:31:04 [RateCDR] => 1 ) [2024-12-22 23:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:31:04' and `end` < '2024-12-22 23:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:31:16] Production.INFO: count ==868 [2024-12-22 23:31:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:31:04 - End Time 2024-12-22 23:31:04 [2024-12-22 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080877', 'tblTempUsageDetail_20' ) start [2024-12-22 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080877', 'tblTempUsageDetail_20' ) end [2024-12-22 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080877', 'tblTempVendorCDR_20' ) start [2024-12-22 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080877', 'tblTempVendorCDR_20' ) end [2024-12-22 23:31:17] Production.INFO: ProcessCDR(1,14080877,1,1,2) [2024-12-22 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080877', 'tblTempUsageDetail_20' ) start [2024-12-22 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080877', 'tblTempUsageDetail_20' ) end [2024-12-22 23:31:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:31:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:31:20] Production.INFO: ==10409== Releasing lock... [2024-12-22 23:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:31:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:32:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:32:04 [end_date_ymd] => 2024-12-22 23:32:04 [RateCDR] => 1 ) [2024-12-22 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-22 20:32:04' and `end` < '2024-12-22 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-22 23:32:16] Production.INFO: count ==867 [2024-12-22 23:32:16] Production.ERROR: pbx CDR StartTime 2024-12-22 20:32:04 - End Time 2024-12-22 23:32:04 [2024-12-22 23:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080882', 'tblTempUsageDetail_20' ) start [2024-12-22 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080882', 'tblTempUsageDetail_20' ) end [2024-12-22 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080882', 'tblTempVendorCDR_20' ) start [2024-12-22 23:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080882', 'tblTempVendorCDR_20' ) end [2024-12-22 23:32:16] Production.INFO: ProcessCDR(1,14080882,1,1,2) [2024-12-22 23:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:32:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080882', 'tblTempUsageDetail_20' ) start [2024-12-22 23:32:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080882', 'tblTempUsageDetail_20' ) end [2024-12-22 23:32:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:32:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:32:19] Production.INFO: ==10486== Releasing lock... [2024-12-22 23:32:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:32:19] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:33:05 [end_date_ymd] => 2024-12-22 23:33:05 [RateCDR] => 1 ) [2024-12-22 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:33:05' and `end` < '2024-12-22 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:33:17] Production.INFO: count ==867 [2024-12-22 23:33:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:33:05 - End Time 2024-12-22 23:33:05 [2024-12-22 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080887', 'tblTempUsageDetail_20' ) start [2024-12-22 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080887', 'tblTempUsageDetail_20' ) end [2024-12-22 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080887', 'tblTempVendorCDR_20' ) start [2024-12-22 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080887', 'tblTempVendorCDR_20' ) end [2024-12-22 23:33:17] Production.INFO: ProcessCDR(1,14080887,1,1,2) [2024-12-22 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080887', 'tblTempUsageDetail_20' ) start [2024-12-22 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080887', 'tblTempUsageDetail_20' ) end [2024-12-22 23:33:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:33:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:33:20] Production.INFO: ==10561== Releasing lock... [2024-12-22 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:33:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:34:05 [end_date_ymd] => 2024-12-22 23:34:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:34:05' and `end` < '2024-12-22 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-22 23:34:17] Production.INFO: count ==866 [2024-12-22 23:34:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:34:05 - End Time 2024-12-22 23:34:05 [2024-12-22 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080892', 'tblTempUsageDetail_20' ) start [2024-12-22 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080892', 'tblTempUsageDetail_20' ) end [2024-12-22 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080892', 'tblTempVendorCDR_20' ) start [2024-12-22 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080892', 'tblTempVendorCDR_20' ) end [2024-12-22 23:34:17] Production.INFO: ProcessCDR(1,14080892,1,1,2) [2024-12-22 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080892', 'tblTempUsageDetail_20' ) start [2024-12-22 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080892', 'tblTempUsageDetail_20' ) end [2024-12-22 23:34:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:34:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:34:20] Production.INFO: ==10642== Releasing lock... [2024-12-22 23:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:34:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:35:05 [end_date_ymd] => 2024-12-22 23:35:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:35:05' and `end` < '2024-12-22 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-22 23:35:17] Production.INFO: count ==869 [2024-12-22 23:35:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:35:05 - End Time 2024-12-22 23:35:05 [2024-12-22 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080897', 'tblTempUsageDetail_20' ) start [2024-12-22 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080897', 'tblTempUsageDetail_20' ) end [2024-12-22 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080897', 'tblTempVendorCDR_20' ) start [2024-12-22 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080897', 'tblTempVendorCDR_20' ) end [2024-12-22 23:35:17] Production.INFO: ProcessCDR(1,14080897,1,1,2) [2024-12-22 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080897', 'tblTempUsageDetail_20' ) start [2024-12-22 23:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080897', 'tblTempUsageDetail_20' ) end [2024-12-22 23:35:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:35:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:35:20] Production.INFO: ==10716== Releasing lock... [2024-12-22 23:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:35:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:36:05 [end_date_ymd] => 2024-12-22 23:36:05 [RateCDR] => 1 ) [2024-12-22 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:36:05' and `end` < '2024-12-22 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:36:17] Production.INFO: count ==869 [2024-12-22 23:36:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:36:05 - End Time 2024-12-22 23:36:05 [2024-12-22 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080902', 'tblTempUsageDetail_20' ) start [2024-12-22 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080902', 'tblTempUsageDetail_20' ) end [2024-12-22 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080902', 'tblTempVendorCDR_20' ) start [2024-12-22 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080902', 'tblTempVendorCDR_20' ) end [2024-12-22 23:36:17] Production.INFO: ProcessCDR(1,14080902,1,1,2) [2024-12-22 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080902', 'tblTempUsageDetail_20' ) start [2024-12-22 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080902', 'tblTempUsageDetail_20' ) end [2024-12-22 23:36:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:36:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:36:22] Production.INFO: ==10837== Releasing lock... [2024-12-22 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:36:22] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:37:04 [end_date_ymd] => 2024-12-22 23:37:04 [RateCDR] => 1 ) [2024-12-22 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-22 20:37:04' and `end` < '2024-12-22 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-22 23:37:18] Production.INFO: count ==873 [2024-12-22 23:37:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:37:04 - End Time 2024-12-22 23:37:04 [2024-12-22 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080906', 'tblTempUsageDetail_20' ) start [2024-12-22 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080906', 'tblTempUsageDetail_20' ) end [2024-12-22 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080906', 'tblTempVendorCDR_20' ) start [2024-12-22 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080906', 'tblTempVendorCDR_20' ) end [2024-12-22 23:37:18] Production.INFO: ProcessCDR(1,14080906,1,1,2) [2024-12-22 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080906', 'tblTempUsageDetail_20' ) start [2024-12-22 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080906', 'tblTempUsageDetail_20' ) end [2024-12-22 23:37:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:37:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:37:21] Production.INFO: ==10915== Releasing lock... [2024-12-22 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:37:21] Production.INFO: 34 MB #Memory Used# [2024-12-22 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:38:05 [end_date_ymd] => 2024-12-22 23:38:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:38:05' and `end` < '2024-12-22 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-22 23:38:17] Production.INFO: count ==870 [2024-12-22 23:38:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:38:05 - End Time 2024-12-22 23:38:05 [2024-12-22 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080912', 'tblTempUsageDetail_20' ) start [2024-12-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080912', 'tblTempUsageDetail_20' ) end [2024-12-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080912', 'tblTempVendorCDR_20' ) start [2024-12-22 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080912', 'tblTempVendorCDR_20' ) end [2024-12-22 23:38:18] Production.INFO: ProcessCDR(1,14080912,1,1,2) [2024-12-22 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080912', 'tblTempUsageDetail_20' ) start [2024-12-22 23:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080912', 'tblTempUsageDetail_20' ) end [2024-12-22 23:38:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:38:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:38:20] Production.INFO: ==10989== Releasing lock... [2024-12-22 23:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:38:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:39:05 [end_date_ymd] => 2024-12-22 23:39:05 [RateCDR] => 1 ) [2024-12-22 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:39:05' and `end` < '2024-12-22 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:39:17] Production.INFO: count ==865 [2024-12-22 23:39:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:39:05 - End Time 2024-12-22 23:39:05 [2024-12-22 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080917', 'tblTempUsageDetail_20' ) start [2024-12-22 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080917', 'tblTempUsageDetail_20' ) end [2024-12-22 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080917', 'tblTempVendorCDR_20' ) start [2024-12-22 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080917', 'tblTempVendorCDR_20' ) end [2024-12-22 23:39:17] Production.INFO: ProcessCDR(1,14080917,1,1,2) [2024-12-22 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080917', 'tblTempUsageDetail_20' ) start [2024-12-22 23:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080917', 'tblTempUsageDetail_20' ) end [2024-12-22 23:39:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:39:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:39:20] Production.INFO: ==11067== Releasing lock... [2024-12-22 23:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:39:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:40:06 [end_date_ymd] => 2024-12-22 23:40:06 [RateCDR] => 1 ) [2024-12-22 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-22 20:40:06' and `end` < '2024-12-22 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-22 23:40:18] Production.INFO: count ==866 [2024-12-22 23:40:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:40:06 - End Time 2024-12-22 23:40:06 [2024-12-22 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080922', 'tblTempUsageDetail_20' ) start [2024-12-22 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080922', 'tblTempUsageDetail_20' ) end [2024-12-22 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080922', 'tblTempVendorCDR_20' ) start [2024-12-22 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080922', 'tblTempVendorCDR_20' ) end [2024-12-22 23:40:18] Production.INFO: ProcessCDR(1,14080922,1,1,2) [2024-12-22 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080922', 'tblTempUsageDetail_20' ) start [2024-12-22 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080922', 'tblTempUsageDetail_20' ) end [2024-12-22 23:40:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:40:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:40:21] Production.INFO: ==11142== Releasing lock... [2024-12-22 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:40:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:41:04 [end_date_ymd] => 2024-12-22 23:41:04 [RateCDR] => 1 ) [2024-12-22 23:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:41:04' and `end` < '2024-12-22 23:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:41:17] Production.INFO: count ==871 [2024-12-22 23:41:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:41:04 - End Time 2024-12-22 23:41:04 [2024-12-22 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080928', 'tblTempUsageDetail_20' ) start [2024-12-22 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080928', 'tblTempUsageDetail_20' ) end [2024-12-22 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080928', 'tblTempVendorCDR_20' ) start [2024-12-22 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080928', 'tblTempVendorCDR_20' ) end [2024-12-22 23:41:17] Production.INFO: ProcessCDR(1,14080928,1,1,2) [2024-12-22 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080928', 'tblTempUsageDetail_20' ) start [2024-12-22 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080928', 'tblTempUsageDetail_20' ) end [2024-12-22 23:41:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:41:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:41:20] Production.INFO: ==11224== Releasing lock... [2024-12-22 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:41:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:42:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:42:04 [end_date_ymd] => 2024-12-22 23:42:04 [RateCDR] => 1 ) [2024-12-22 23: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-22 20:42:04' and `end` < '2024-12-22 23: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-22 23:42:17] Production.INFO: count ==871 [2024-12-22 23:42:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:42:04 - End Time 2024-12-22 23:42:04 [2024-12-22 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080933', 'tblTempUsageDetail_20' ) start [2024-12-22 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080933', 'tblTempUsageDetail_20' ) end [2024-12-22 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080933', 'tblTempVendorCDR_20' ) start [2024-12-22 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080933', 'tblTempVendorCDR_20' ) end [2024-12-22 23:42:18] Production.INFO: ProcessCDR(1,14080933,1,1,2) [2024-12-22 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080933', 'tblTempUsageDetail_20' ) start [2024-12-22 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080933', 'tblTempUsageDetail_20' ) end [2024-12-22 23:42:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:42:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:42:21] Production.INFO: ==11301== Releasing lock... [2024-12-22 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:42:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:43:05 [end_date_ymd] => 2024-12-22 23:43:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:43:05' and `end` < '2024-12-22 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-22 23:43:18] Production.INFO: count ==871 [2024-12-22 23:43:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:43:05 - End Time 2024-12-22 23:43:05 [2024-12-22 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080938', 'tblTempUsageDetail_20' ) start [2024-12-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080938', 'tblTempUsageDetail_20' ) end [2024-12-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080938', 'tblTempVendorCDR_20' ) start [2024-12-22 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080938', 'tblTempVendorCDR_20' ) end [2024-12-22 23:43:18] Production.INFO: ProcessCDR(1,14080938,1,1,2) [2024-12-22 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080938', 'tblTempUsageDetail_20' ) start [2024-12-22 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080938', 'tblTempUsageDetail_20' ) end [2024-12-22 23:43:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:43:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:43:21] Production.INFO: ==11376== Releasing lock... [2024-12-22 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:43:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:44:05 [end_date_ymd] => 2024-12-22 23:44:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:44:05' and `end` < '2024-12-22 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-22 23:44:18] Production.INFO: count ==870 [2024-12-22 23:44:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:44:05 - End Time 2024-12-22 23:44:05 [2024-12-22 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080943', 'tblTempUsageDetail_20' ) start [2024-12-22 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080943', 'tblTempUsageDetail_20' ) end [2024-12-22 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080943', 'tblTempVendorCDR_20' ) start [2024-12-22 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080943', 'tblTempVendorCDR_20' ) end [2024-12-22 23:44:18] Production.INFO: ProcessCDR(1,14080943,1,1,2) [2024-12-22 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080943', 'tblTempUsageDetail_20' ) start [2024-12-22 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080943', 'tblTempUsageDetail_20' ) end [2024-12-22 23:44:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:44:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:44:21] Production.INFO: ==11455== Releasing lock... [2024-12-22 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:44:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:45:04 [end_date_ymd] => 2024-12-22 23:45:04 [RateCDR] => 1 ) [2024-12-22 23:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:45:04' and `end` < '2024-12-22 23:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:45:17] Production.INFO: count ==868 [2024-12-22 23:45:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:45:04 - End Time 2024-12-22 23:45:04 [2024-12-22 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080948', 'tblTempUsageDetail_20' ) start [2024-12-22 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080948', 'tblTempUsageDetail_20' ) end [2024-12-22 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080948', 'tblTempVendorCDR_20' ) start [2024-12-22 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080948', 'tblTempVendorCDR_20' ) end [2024-12-22 23:45:17] Production.INFO: ProcessCDR(1,14080948,1,1,2) [2024-12-22 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080948', 'tblTempUsageDetail_20' ) start [2024-12-22 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080948', 'tblTempUsageDetail_20' ) end [2024-12-22 23:45:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:45:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:45:20] Production.INFO: ==11530== Releasing lock... [2024-12-22 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:45:20] Production.INFO: 34 MB #Memory Used# [2024-12-22 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:46:05 [end_date_ymd] => 2024-12-22 23:46:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:46:05' and `end` < '2024-12-22 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-22 23:46:18] Production.INFO: count ==866 [2024-12-22 23:46:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:46:05 - End Time 2024-12-22 23:46:05 [2024-12-22 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080953', 'tblTempUsageDetail_20' ) start [2024-12-22 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080953', 'tblTempUsageDetail_20' ) end [2024-12-22 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080953', 'tblTempVendorCDR_20' ) start [2024-12-22 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080953', 'tblTempVendorCDR_20' ) end [2024-12-22 23:46:18] Production.INFO: ProcessCDR(1,14080953,1,1,2) [2024-12-22 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080953', 'tblTempUsageDetail_20' ) start [2024-12-22 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080953', 'tblTempUsageDetail_20' ) end [2024-12-22 23:46:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:46:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:46:21] Production.INFO: ==11611== Releasing lock... [2024-12-22 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:46:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:47:05 [end_date_ymd] => 2024-12-22 23:47:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:47:05' and `end` < '2024-12-22 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-22 23:47:18] Production.INFO: count ==866 [2024-12-22 23:47:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:47:05 - End Time 2024-12-22 23:47:05 [2024-12-22 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080958', 'tblTempUsageDetail_20' ) start [2024-12-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080958', 'tblTempUsageDetail_20' ) end [2024-12-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080958', 'tblTempVendorCDR_20' ) start [2024-12-22 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080958', 'tblTempVendorCDR_20' ) end [2024-12-22 23:47:18] Production.INFO: ProcessCDR(1,14080958,1,1,2) [2024-12-22 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080958', 'tblTempUsageDetail_20' ) start [2024-12-22 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080958', 'tblTempUsageDetail_20' ) end [2024-12-22 23:47:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:47:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:47:21] Production.INFO: ==11685== Releasing lock... [2024-12-22 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:47:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:48:05 [end_date_ymd] => 2024-12-22 23:48:05 [RateCDR] => 1 ) [2024-12-22 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:48:05' and `end` < '2024-12-22 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:48:17] Production.INFO: count ==863 [2024-12-22 23:48:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:48:05 - End Time 2024-12-22 23:48:05 [2024-12-22 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080963', 'tblTempUsageDetail_20' ) start [2024-12-22 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080963', 'tblTempUsageDetail_20' ) end [2024-12-22 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080963', 'tblTempVendorCDR_20' ) start [2024-12-22 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080963', 'tblTempVendorCDR_20' ) end [2024-12-22 23:48:18] Production.INFO: ProcessCDR(1,14080963,1,1,2) [2024-12-22 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080963', 'tblTempUsageDetail_20' ) start [2024-12-22 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080963', 'tblTempUsageDetail_20' ) end [2024-12-22 23:48:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:48:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:48:21] Production.INFO: ==11761== Releasing lock... [2024-12-22 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:48:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:49:05 [end_date_ymd] => 2024-12-22 23:49:05 [RateCDR] => 1 ) [2024-12-22 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:49:05' and `end` < '2024-12-22 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:49:17] Production.INFO: count ==862 [2024-12-22 23:49:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:49:05 - End Time 2024-12-22 23:49:05 [2024-12-22 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080968', 'tblTempUsageDetail_20' ) start [2024-12-22 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080968', 'tblTempUsageDetail_20' ) end [2024-12-22 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080968', 'tblTempVendorCDR_20' ) start [2024-12-22 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080968', 'tblTempVendorCDR_20' ) end [2024-12-22 23:49:17] Production.INFO: ProcessCDR(1,14080968,1,1,2) [2024-12-22 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080968', 'tblTempUsageDetail_20' ) start [2024-12-22 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080968', 'tblTempUsageDetail_20' ) end [2024-12-22 23:49:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:49:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:49:20] Production.INFO: ==11842== Releasing lock... [2024-12-22 23:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:49:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:50:06 [end_date_ymd] => 2024-12-22 23:50:06 [RateCDR] => 1 ) [2024-12-22 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-22 20:50:06' and `end` < '2024-12-22 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-22 23:50:18] Production.INFO: count ==862 [2024-12-22 23:50:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:50:06 - End Time 2024-12-22 23:50:06 [2024-12-22 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080974', 'tblTempUsageDetail_20' ) start [2024-12-22 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080974', 'tblTempUsageDetail_20' ) end [2024-12-22 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080974', 'tblTempVendorCDR_20' ) start [2024-12-22 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080974', 'tblTempVendorCDR_20' ) end [2024-12-22 23:50:18] Production.INFO: ProcessCDR(1,14080974,1,1,2) [2024-12-22 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080974', 'tblTempUsageDetail_20' ) start [2024-12-22 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080974', 'tblTempUsageDetail_20' ) end [2024-12-22 23:50:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:50:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:50:21] Production.INFO: ==11923== Releasing lock... [2024-12-22 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:50:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:51:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:51:04 [end_date_ymd] => 2024-12-22 23:51:04 [RateCDR] => 1 ) [2024-12-22 23:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2024-12-22 20:51:04' and `end` < '2024-12-22 23:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2024-12-22 23:51:16] Production.INFO: count ==872 [2024-12-22 23:51:16] Production.ERROR: pbx CDR StartTime 2024-12-22 20:51:04 - End Time 2024-12-22 23:51:04 [2024-12-22 23:51:16] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080979', 'tblTempUsageDetail_20' ) start [2024-12-22 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080979', 'tblTempUsageDetail_20' ) end [2024-12-22 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080979', 'tblTempVendorCDR_20' ) start [2024-12-22 23:51:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080979', 'tblTempVendorCDR_20' ) end [2024-12-22 23:51:16] Production.INFO: ProcessCDR(1,14080979,1,1,2) [2024-12-22 23:51:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:51:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:51:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:51:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080979', 'tblTempUsageDetail_20' ) start [2024-12-22 23:51:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080979', 'tblTempUsageDetail_20' ) end [2024-12-22 23:51:19] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:51:19] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:51:19] Production.INFO: ==12007== Releasing lock... [2024-12-22 23:51:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:51:19] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:52:05 [end_date_ymd] => 2024-12-22 23:52:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:52:05' and `end` < '2024-12-22 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-22 23:52:17] Production.INFO: count ==872 [2024-12-22 23:52:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:52:05 - End Time 2024-12-22 23:52:05 [2024-12-22 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080984', 'tblTempUsageDetail_20' ) start [2024-12-22 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080984', 'tblTempUsageDetail_20' ) end [2024-12-22 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080984', 'tblTempVendorCDR_20' ) start [2024-12-22 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080984', 'tblTempVendorCDR_20' ) end [2024-12-22 23:52:17] Production.INFO: ProcessCDR(1,14080984,1,1,2) [2024-12-22 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080984', 'tblTempUsageDetail_20' ) start [2024-12-22 23:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080984', 'tblTempUsageDetail_20' ) end [2024-12-22 23:52:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:52:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:52:20] Production.INFO: ==12123== Releasing lock... [2024-12-22 23:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:52:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:53:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:53:04 [end_date_ymd] => 2024-12-22 23:53:04 [RateCDR] => 1 ) [2024-12-22 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-22 20:53:04' and `end` < '2024-12-22 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-22 23:53:19] Production.INFO: count ==880 [2024-12-22 23:53:19] Production.ERROR: pbx CDR StartTime 2024-12-22 20:53:04 - End Time 2024-12-22 23:53:04 [2024-12-22 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080989', 'tblTempUsageDetail_20' ) start [2024-12-22 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080989', 'tblTempUsageDetail_20' ) end [2024-12-22 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080989', 'tblTempVendorCDR_20' ) start [2024-12-22 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080989', 'tblTempVendorCDR_20' ) end [2024-12-22 23:53:19] Production.INFO: ProcessCDR(1,14080989,1,1,2) [2024-12-22 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080989', 'tblTempUsageDetail_20' ) start [2024-12-22 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080989', 'tblTempUsageDetail_20' ) end [2024-12-22 23:53:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:53:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:53:22] Production.INFO: ==12200== Releasing lock... [2024-12-22 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:53:22] Production.INFO: 34 MB #Memory Used# [2024-12-22 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:54:05 [end_date_ymd] => 2024-12-22 23:54:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:54:05' and `end` < '2024-12-22 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-22 23:54:17] Production.INFO: count ==885 [2024-12-22 23:54:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:54:05 - End Time 2024-12-22 23:54:05 [2024-12-22 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080994', 'tblTempUsageDetail_20' ) start [2024-12-22 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080994', 'tblTempUsageDetail_20' ) end [2024-12-22 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080994', 'tblTempVendorCDR_20' ) start [2024-12-22 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080994', 'tblTempVendorCDR_20' ) end [2024-12-22 23:54:17] Production.INFO: ProcessCDR(1,14080994,1,1,2) [2024-12-22 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080994', 'tblTempUsageDetail_20' ) start [2024-12-22 23:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080994', 'tblTempUsageDetail_20' ) end [2024-12-22 23:54:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:54:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:54:20] Production.INFO: ==12285== Releasing lock... [2024-12-22 23:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:54:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:55:05 [end_date_ymd] => 2024-12-22 23:55:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:55:05' and `end` < '2024-12-22 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-22 23:55:17] Production.INFO: count ==885 [2024-12-22 23:55:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:55:05 - End Time 2024-12-22 23:55:05 [2024-12-22 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080999', 'tblTempUsageDetail_20' ) start [2024-12-22 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14080999', 'tblTempUsageDetail_20' ) end [2024-12-22 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080999', 'tblTempVendorCDR_20' ) start [2024-12-22 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14080999', 'tblTempVendorCDR_20' ) end [2024-12-22 23:55:17] Production.INFO: ProcessCDR(1,14080999,1,1,2) [2024-12-22 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14080999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14080999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14080999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14080999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080999', 'tblTempUsageDetail_20' ) start [2024-12-22 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14080999', 'tblTempUsageDetail_20' ) end [2024-12-22 23:55:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:55:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:55:20] Production.INFO: ==12361== Releasing lock... [2024-12-22 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:55:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:56:05 [end_date_ymd] => 2024-12-22 23:56:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:56:05' and `end` < '2024-12-22 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-22 23:56:18] Production.INFO: count ==883 [2024-12-22 23:56:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:56:05 - End Time 2024-12-22 23:56:05 [2024-12-22 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081004', 'tblTempUsageDetail_20' ) start [2024-12-22 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081004', 'tblTempUsageDetail_20' ) end [2024-12-22 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081004', 'tblTempVendorCDR_20' ) start [2024-12-22 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081004', 'tblTempVendorCDR_20' ) end [2024-12-22 23:56:18] Production.INFO: ProcessCDR(1,14081004,1,1,2) [2024-12-22 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081004', 'tblTempUsageDetail_20' ) start [2024-12-22 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081004', 'tblTempUsageDetail_20' ) end [2024-12-22 23:56:21] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:56:21] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:56:21] Production.INFO: ==12440== Releasing lock... [2024-12-22 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:56:21] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:57:05 [end_date_ymd] => 2024-12-22 23:57:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:57:05' and `end` < '2024-12-22 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-22 23:57:17] Production.INFO: count ==882 [2024-12-22 23:57:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:57:05 - End Time 2024-12-22 23:57:05 [2024-12-22 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081009', 'tblTempUsageDetail_20' ) start [2024-12-22 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081009', 'tblTempUsageDetail_20' ) end [2024-12-22 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081009', 'tblTempVendorCDR_20' ) start [2024-12-22 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081009', 'tblTempVendorCDR_20' ) end [2024-12-22 23:57:17] Production.INFO: ProcessCDR(1,14081009,1,1,2) [2024-12-22 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081009', 'tblTempUsageDetail_20' ) start [2024-12-22 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081009', 'tblTempUsageDetail_20' ) end [2024-12-22 23:57:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:57:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:57:20] Production.INFO: ==12522== Releasing lock... [2024-12-22 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:57:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:58:04] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:58:04 [end_date_ymd] => 2024-12-22 23:58:04 [RateCDR] => 1 ) [2024-12-22 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-22 20:58:04' and `end` < '2024-12-22 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-22 23:58:17] Production.INFO: count ==881 [2024-12-22 23:58:17] Production.ERROR: pbx CDR StartTime 2024-12-22 20:58:04 - End Time 2024-12-22 23:58:04 [2024-12-22 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081014', 'tblTempUsageDetail_20' ) start [2024-12-22 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081014', 'tblTempUsageDetail_20' ) end [2024-12-22 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081014', 'tblTempVendorCDR_20' ) start [2024-12-22 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081014', 'tblTempVendorCDR_20' ) end [2024-12-22 23:58:17] Production.INFO: ProcessCDR(1,14081014,1,1,2) [2024-12-22 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081014', 'tblTempUsageDetail_20' ) start [2024-12-22 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081014', 'tblTempUsageDetail_20' ) end [2024-12-22 23:58:20] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:58:20] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:58:20] Production.INFO: ==12596== Releasing lock... [2024-12-22 23:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:58:20] Production.INFO: 33.75 MB #Memory Used# [2024-12-22 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2024-12-22 20:59:05 [end_date_ymd] => 2024-12-22 23:59:05 [RateCDR] => 1 ) [2024-12-22 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-22 20:59:05' and `end` < '2024-12-22 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-22 23:59:18] Production.INFO: count ==880 [2024-12-22 23:59:18] Production.ERROR: pbx CDR StartTime 2024-12-22 20:59:05 - End Time 2024-12-22 23:59:05 [2024-12-22 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2024-12-22 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081019', 'tblTempUsageDetail_20' ) start [2024-12-22 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14081019', 'tblTempUsageDetail_20' ) end [2024-12-22 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081019', 'tblTempVendorCDR_20' ) start [2024-12-22 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14081019', 'tblTempVendorCDR_20' ) end [2024-12-22 23:59:19] Production.INFO: ProcessCDR(1,14081019,1,1,2) [2024-12-22 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14081019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14081019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2024-12-22 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14081019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14081019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2024-12-22 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081019', 'tblTempUsageDetail_20' ) start [2024-12-22 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14081019', 'tblTempUsageDetail_20' ) end [2024-12-22 23:59:22] Production.ERROR: pbx prc_insertCDR start [2024-12-22 23:59:22] Production.ERROR: pbx prc_insertCDR end [2024-12-22 23:59:22] Production.INFO: ==12679== Releasing lock... [2024-12-22 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2024-12-22 23:59:22] Production.INFO: 33.75 MB #Memory Used#