[2025-01-13 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:00:06 [end_date_ymd] => 2025-01-13 00:00:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:00:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:00:20] Production.INFO: count ==454 [2025-01-13 00:00:20] Production.ERROR: pbx CDR StartTime 2025-01-12 21:00:06 - End Time 2025-01-13 00:00:06 [2025-01-13 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235126', 'tblTempUsageDetail_20' ) start [2025-01-13 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235126', 'tblTempUsageDetail_20' ) end [2025-01-13 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235126', 'tblTempVendorCDR_20' ) start [2025-01-13 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235126', 'tblTempVendorCDR_20' ) end [2025-01-13 00:00:20] Production.INFO: ProcessCDR(1,14235126,1,1,2) [2025-01-13 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235126', 'tblTempUsageDetail_20' ) start [2025-01-13 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235126', 'tblTempUsageDetail_20' ) end [2025-01-13 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:00:26] Production.INFO: ==3303== Releasing lock... [2025-01-13 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:00:26] Production.INFO: 32 MB #Memory Used# [2025-01-13 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:01:06 [end_date_ymd] => 2025-01-13 00:01:06 [RateCDR] => 1 ) [2025-01-13 00: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` >= '2025-01-12 21:01:06' and `end` < '2025-01-13 00: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 ,'') [2025-01-13 00:01:19] Production.INFO: count ==460 [2025-01-13 00:01:19] Production.ERROR: pbx CDR StartTime 2025-01-12 21:01:06 - End Time 2025-01-13 00:01:06 [2025-01-13 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235131', 'tblTempUsageDetail_20' ) start [2025-01-13 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235131', 'tblTempUsageDetail_20' ) end [2025-01-13 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235131', 'tblTempVendorCDR_20' ) start [2025-01-13 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235131', 'tblTempVendorCDR_20' ) end [2025-01-13 00:01:19] Production.INFO: ProcessCDR(1,14235131,1,1,2) [2025-01-13 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235131', 'tblTempUsageDetail_20' ) start [2025-01-13 00:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235131', 'tblTempUsageDetail_20' ) end [2025-01-13 00:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:01:22] Production.INFO: ==3402== Releasing lock... [2025-01-13 00:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:01:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-13 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:02:05 [end_date_ymd] => 2025-01-13 00:02:05 [RateCDR] => 1 ) [2025-01-13 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:02:05' and `end` < '2025-01-13 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:02:24] Production.INFO: count ==123 [2025-01-13 00:02:24] Production.ERROR: pbx CDR StartTime 2025-01-12 21:02:05 - End Time 2025-01-13 00:02:05 [2025-01-13 00:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235136', 'tblTempUsageDetail_20' ) start [2025-01-13 00:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235136', 'tblTempUsageDetail_20' ) end [2025-01-13 00:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235136', 'tblTempVendorCDR_20' ) start [2025-01-13 00:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235136', 'tblTempVendorCDR_20' ) end [2025-01-13 00:02:24] Production.INFO: ProcessCDR(1,14235136,1,1,2) [2025-01-13 00:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235136', 'tblTempUsageDetail_20' ) start [2025-01-13 00:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235136', 'tblTempUsageDetail_20' ) end [2025-01-13 00:02:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:02:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:02:27] Production.INFO: ==3472== Releasing lock... [2025-01-13 00:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:02:27] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:03:05 [end_date_ymd] => 2025-01-13 00:03:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:03:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:03:18] Production.INFO: count ==122 [2025-01-13 00:03:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:03:05 - End Time 2025-01-13 00:03:05 [2025-01-13 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235141', 'tblTempUsageDetail_20' ) start [2025-01-13 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235141', 'tblTempUsageDetail_20' ) end [2025-01-13 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235141', 'tblTempVendorCDR_20' ) start [2025-01-13 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235141', 'tblTempVendorCDR_20' ) end [2025-01-13 00:03:18] Production.INFO: ProcessCDR(1,14235141,1,1,2) [2025-01-13 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235141', 'tblTempUsageDetail_20' ) start [2025-01-13 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235141', 'tblTempUsageDetail_20' ) end [2025-01-13 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:03:22] Production.INFO: ==3544== Releasing lock... [2025-01-13 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:03:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:04:05 [end_date_ymd] => 2025-01-13 00:04:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:04:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:04:18] Production.INFO: count ==122 [2025-01-13 00:04:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:04:05 - End Time 2025-01-13 00:04:05 [2025-01-13 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235146', 'tblTempUsageDetail_20' ) start [2025-01-13 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235146', 'tblTempUsageDetail_20' ) end [2025-01-13 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235146', 'tblTempVendorCDR_20' ) start [2025-01-13 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235146', 'tblTempVendorCDR_20' ) end [2025-01-13 00:04:18] Production.INFO: ProcessCDR(1,14235146,1,1,2) [2025-01-13 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235146', 'tblTempUsageDetail_20' ) start [2025-01-13 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235146', 'tblTempUsageDetail_20' ) end [2025-01-13 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:04:21] Production.INFO: ==3614== Releasing lock... [2025-01-13 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:04:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:05:05 [end_date_ymd] => 2025-01-13 00:05:05 [RateCDR] => 1 ) [2025-01-13 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:05:05' and `end` < '2025-01-13 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:05:19] Production.INFO: count ==122 [2025-01-13 00:05:19] Production.ERROR: pbx CDR StartTime 2025-01-12 21:05:05 - End Time 2025-01-13 00:05:05 [2025-01-13 00:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235151', 'tblTempUsageDetail_20' ) start [2025-01-13 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235151', 'tblTempUsageDetail_20' ) end [2025-01-13 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235151', 'tblTempVendorCDR_20' ) start [2025-01-13 00:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235151', 'tblTempVendorCDR_20' ) end [2025-01-13 00:05:19] Production.INFO: ProcessCDR(1,14235151,1,1,2) [2025-01-13 00:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235151', 'tblTempUsageDetail_20' ) start [2025-01-13 00:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235151', 'tblTempUsageDetail_20' ) end [2025-01-13 00:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:05:24] Production.INFO: ==3689== Releasing lock... [2025-01-13 00:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:05:24] Production.INFO: 29 MB #Memory Used# [2025-01-13 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:06:05 [end_date_ymd] => 2025-01-13 00:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:06:18] Production.INFO: count ==121 [2025-01-13 00:06:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:06:05 - End Time 2025-01-13 00:06:05 [2025-01-13 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235156', 'tblTempUsageDetail_20' ) start [2025-01-13 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235156', 'tblTempUsageDetail_20' ) end [2025-01-13 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235156', 'tblTempVendorCDR_20' ) start [2025-01-13 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235156', 'tblTempVendorCDR_20' ) end [2025-01-13 00:06:18] Production.INFO: ProcessCDR(1,14235156,1,1,2) [2025-01-13 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235156', 'tblTempUsageDetail_20' ) start [2025-01-13 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235156', 'tblTempUsageDetail_20' ) end [2025-01-13 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:06:21] Production.INFO: ==3761== Releasing lock... [2025-01-13 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:07:05 [end_date_ymd] => 2025-01-13 00:07:05 [RateCDR] => 1 ) [2025-01-13 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:07:05' and `end` < '2025-01-13 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:07:18] Production.INFO: count ==121 [2025-01-13 00:07:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:07:05 - End Time 2025-01-13 00:07:05 [2025-01-13 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235161', 'tblTempUsageDetail_20' ) start [2025-01-13 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235161', 'tblTempUsageDetail_20' ) end [2025-01-13 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235161', 'tblTempVendorCDR_20' ) start [2025-01-13 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235161', 'tblTempVendorCDR_20' ) end [2025-01-13 00:07:18] Production.INFO: ProcessCDR(1,14235161,1,1,2) [2025-01-13 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235161', 'tblTempUsageDetail_20' ) start [2025-01-13 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235161', 'tblTempUsageDetail_20' ) end [2025-01-13 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:07:21] Production.INFO: ==3833== Releasing lock... [2025-01-13 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:08:04 [end_date_ymd] => 2025-01-13 00:08:04 [RateCDR] => 1 ) [2025-01-13 00:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:08:04' and `end` < '2025-01-13 00:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:08:22] Production.INFO: count ==121 [2025-01-13 00:08:22] Production.ERROR: pbx CDR StartTime 2025-01-12 21:08:04 - End Time 2025-01-13 00:08:04 [2025-01-13 00:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235166', 'tblTempUsageDetail_20' ) start [2025-01-13 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235166', 'tblTempUsageDetail_20' ) end [2025-01-13 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235166', 'tblTempVendorCDR_20' ) start [2025-01-13 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235166', 'tblTempVendorCDR_20' ) end [2025-01-13 00:08:22] Production.INFO: ProcessCDR(1,14235166,1,1,2) [2025-01-13 00:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235166', 'tblTempUsageDetail_20' ) start [2025-01-13 00:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235166', 'tblTempUsageDetail_20' ) end [2025-01-13 00:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:08:25] Production.INFO: ==3905== Releasing lock... [2025-01-13 00:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:08:25] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:09:04 [end_date_ymd] => 2025-01-13 00:09:04 [RateCDR] => 1 ) [2025-01-13 00:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:09:04' and `end` < '2025-01-13 00:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:09:19] Production.INFO: count ==121 [2025-01-13 00:09:19] Production.ERROR: pbx CDR StartTime 2025-01-12 21:09:04 - End Time 2025-01-13 00:09:04 [2025-01-13 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235171', 'tblTempUsageDetail_20' ) start [2025-01-13 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235171', 'tblTempUsageDetail_20' ) end [2025-01-13 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235171', 'tblTempVendorCDR_20' ) start [2025-01-13 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235171', 'tblTempVendorCDR_20' ) end [2025-01-13 00:09:19] Production.INFO: ProcessCDR(1,14235171,1,1,2) [2025-01-13 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235171', 'tblTempUsageDetail_20' ) start [2025-01-13 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235171', 'tblTempUsageDetail_20' ) end [2025-01-13 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:09:22] Production.INFO: ==3975== Releasing lock... [2025-01-13 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:10:05 [end_date_ymd] => 2025-01-13 00:10:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:10:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:10:18] Production.INFO: count ==127 [2025-01-13 00:10:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:10:05 - End Time 2025-01-13 00:10:05 [2025-01-13 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235176', 'tblTempUsageDetail_20' ) start [2025-01-13 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235176', 'tblTempUsageDetail_20' ) end [2025-01-13 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235176', 'tblTempVendorCDR_20' ) start [2025-01-13 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235176', 'tblTempVendorCDR_20' ) end [2025-01-13 00:10:18] Production.INFO: ProcessCDR(1,14235176,1,1,2) [2025-01-13 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235176', 'tblTempUsageDetail_20' ) start [2025-01-13 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235176', 'tblTempUsageDetail_20' ) end [2025-01-13 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:10:21] Production.INFO: ==4090== Releasing lock... [2025-01-13 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:10:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 00:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:11:04 [end_date_ymd] => 2025-01-13 00:11:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:11:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:11:18] Production.INFO: count ==148 [2025-01-13 00:11:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:11:04 - End Time 2025-01-13 00:11:04 [2025-01-13 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235182', 'tblTempUsageDetail_20' ) start [2025-01-13 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235182', 'tblTempUsageDetail_20' ) end [2025-01-13 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235182', 'tblTempVendorCDR_20' ) start [2025-01-13 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235182', 'tblTempVendorCDR_20' ) end [2025-01-13 00:11:18] Production.INFO: ProcessCDR(1,14235182,1,1,2) [2025-01-13 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235182', 'tblTempUsageDetail_20' ) start [2025-01-13 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235182', 'tblTempUsageDetail_20' ) end [2025-01-13 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:11:21] Production.INFO: ==4162== Releasing lock... [2025-01-13 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:12:05 [end_date_ymd] => 2025-01-13 00:12:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:12:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:12:17] Production.INFO: count ==148 [2025-01-13 00:12:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:12:05 - End Time 2025-01-13 00:12:05 [2025-01-13 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235187', 'tblTempUsageDetail_20' ) start [2025-01-13 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235187', 'tblTempUsageDetail_20' ) end [2025-01-13 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235187', 'tblTempVendorCDR_20' ) start [2025-01-13 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235187', 'tblTempVendorCDR_20' ) end [2025-01-13 00:12:17] Production.INFO: ProcessCDR(1,14235187,1,1,2) [2025-01-13 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235187', 'tblTempUsageDetail_20' ) start [2025-01-13 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235187', 'tblTempUsageDetail_20' ) end [2025-01-13 00:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:12:20] Production.INFO: ==4240== Releasing lock... [2025-01-13 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:12:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:13:04 [end_date_ymd] => 2025-01-13 00:13:04 [RateCDR] => 1 ) [2025-01-13 00:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:13:04' and `end` < '2025-01-13 00:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:13:17] Production.INFO: count ==146 [2025-01-13 00:13:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:13:04 - End Time 2025-01-13 00:13:04 [2025-01-13 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235192', 'tblTempUsageDetail_20' ) start [2025-01-13 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235192', 'tblTempUsageDetail_20' ) end [2025-01-13 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235192', 'tblTempVendorCDR_20' ) start [2025-01-13 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235192', 'tblTempVendorCDR_20' ) end [2025-01-13 00:13:17] Production.INFO: ProcessCDR(1,14235192,1,1,2) [2025-01-13 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235192', 'tblTempUsageDetail_20' ) start [2025-01-13 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235192', 'tblTempUsageDetail_20' ) end [2025-01-13 00:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:13:20] Production.INFO: ==4313== Releasing lock... [2025-01-13 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:13:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:14:05 [end_date_ymd] => 2025-01-13 00:14:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:14:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:14:17] Production.INFO: count ==145 [2025-01-13 00:14:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:14:05 - End Time 2025-01-13 00:14:05 [2025-01-13 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235197', 'tblTempUsageDetail_20' ) start [2025-01-13 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235197', 'tblTempUsageDetail_20' ) end [2025-01-13 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235197', 'tblTempVendorCDR_20' ) start [2025-01-13 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235197', 'tblTempVendorCDR_20' ) end [2025-01-13 00:14:18] Production.INFO: ProcessCDR(1,14235197,1,1,2) [2025-01-13 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235197', 'tblTempUsageDetail_20' ) start [2025-01-13 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235197', 'tblTempUsageDetail_20' ) end [2025-01-13 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:14:21] Production.INFO: ==4386== Releasing lock... [2025-01-13 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:15:05 [end_date_ymd] => 2025-01-13 00:15:05 [RateCDR] => 1 ) [2025-01-13 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:15:05' and `end` < '2025-01-13 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:15:18] Production.INFO: count ==144 [2025-01-13 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:15:05 - End Time 2025-01-13 00:15:05 [2025-01-13 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235202', 'tblTempUsageDetail_20' ) start [2025-01-13 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235202', 'tblTempUsageDetail_20' ) end [2025-01-13 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235202', 'tblTempVendorCDR_20' ) start [2025-01-13 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235202', 'tblTempVendorCDR_20' ) end [2025-01-13 00:15:18] Production.INFO: ProcessCDR(1,14235202,1,1,2) [2025-01-13 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235202', 'tblTempUsageDetail_20' ) start [2025-01-13 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235202', 'tblTempUsageDetail_20' ) end [2025-01-13 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:15:22] Production.INFO: ==4459== Releasing lock... [2025-01-13 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:15:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:16:05 [end_date_ymd] => 2025-01-13 00:16:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:16:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:16:17] Production.INFO: count ==144 [2025-01-13 00:16:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:16:05 - End Time 2025-01-13 00:16:05 [2025-01-13 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235207', 'tblTempUsageDetail_20' ) start [2025-01-13 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235207', 'tblTempUsageDetail_20' ) end [2025-01-13 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235207', 'tblTempVendorCDR_20' ) start [2025-01-13 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235207', 'tblTempVendorCDR_20' ) end [2025-01-13 00:16:17] Production.INFO: ProcessCDR(1,14235207,1,1,2) [2025-01-13 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235207', 'tblTempUsageDetail_20' ) start [2025-01-13 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235207', 'tblTempUsageDetail_20' ) end [2025-01-13 00:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:16:20] Production.INFO: ==4528== Releasing lock... [2025-01-13 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:16:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:17:05 [end_date_ymd] => 2025-01-13 00:17:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:17:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:17:17] Production.INFO: count ==144 [2025-01-13 00:17:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:17:05 - End Time 2025-01-13 00:17:05 [2025-01-13 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235212', 'tblTempUsageDetail_20' ) start [2025-01-13 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235212', 'tblTempUsageDetail_20' ) end [2025-01-13 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235212', 'tblTempVendorCDR_20' ) start [2025-01-13 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235212', 'tblTempVendorCDR_20' ) end [2025-01-13 00:17:17] Production.INFO: ProcessCDR(1,14235212,1,1,2) [2025-01-13 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235212', 'tblTempUsageDetail_20' ) start [2025-01-13 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235212', 'tblTempUsageDetail_20' ) end [2025-01-13 00:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:17:20] Production.INFO: ==4608== Releasing lock... [2025-01-13 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:18:04 [end_date_ymd] => 2025-01-13 00:18:04 [RateCDR] => 1 ) [2025-01-13 00: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` >= '2025-01-12 21:18:04' and `end` < '2025-01-13 00: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 ,'') [2025-01-13 00:18:17] Production.INFO: count ==144 [2025-01-13 00:18:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:18:04 - End Time 2025-01-13 00:18:04 [2025-01-13 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235217', 'tblTempUsageDetail_20' ) start [2025-01-13 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235217', 'tblTempUsageDetail_20' ) end [2025-01-13 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235217', 'tblTempVendorCDR_20' ) start [2025-01-13 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235217', 'tblTempVendorCDR_20' ) end [2025-01-13 00:18:17] Production.INFO: ProcessCDR(1,14235217,1,1,2) [2025-01-13 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235217', 'tblTempUsageDetail_20' ) start [2025-01-13 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235217', 'tblTempUsageDetail_20' ) end [2025-01-13 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:18:20] Production.INFO: ==4699== Releasing lock... [2025-01-13 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:18:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:19:05 [end_date_ymd] => 2025-01-13 00:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:19:17] Production.INFO: count ==144 [2025-01-13 00:19:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:19:05 - End Time 2025-01-13 00:19:05 [2025-01-13 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235222', 'tblTempUsageDetail_20' ) start [2025-01-13 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235222', 'tblTempUsageDetail_20' ) end [2025-01-13 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235222', 'tblTempVendorCDR_20' ) start [2025-01-13 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235222', 'tblTempVendorCDR_20' ) end [2025-01-13 00:19:17] Production.INFO: ProcessCDR(1,14235222,1,1,2) [2025-01-13 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235222', 'tblTempUsageDetail_20' ) start [2025-01-13 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235222', 'tblTempUsageDetail_20' ) end [2025-01-13 00:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:19:20] Production.INFO: ==4776== Releasing lock... [2025-01-13 00:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:20:05 [end_date_ymd] => 2025-01-13 00:20:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:20:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:20:17] Production.INFO: count ==151 [2025-01-13 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:20:05 - End Time 2025-01-13 00:20:05 [2025-01-13 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235228', 'tblTempUsageDetail_20' ) start [2025-01-13 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235228', 'tblTempUsageDetail_20' ) end [2025-01-13 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235228', 'tblTempVendorCDR_20' ) start [2025-01-13 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235228', 'tblTempVendorCDR_20' ) end [2025-01-13 00:20:18] Production.INFO: ProcessCDR(1,14235228,1,1,2) [2025-01-13 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235228', 'tblTempUsageDetail_20' ) start [2025-01-13 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235228', 'tblTempUsageDetail_20' ) end [2025-01-13 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:20:21] Production.INFO: ==4854== Releasing lock... [2025-01-13 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:21:04 [end_date_ymd] => 2025-01-13 00:21:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:21:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:21:18] Production.INFO: count ==157 [2025-01-13 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:21:04 - End Time 2025-01-13 00:21:04 [2025-01-13 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235233', 'tblTempUsageDetail_20' ) start [2025-01-13 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235233', 'tblTempUsageDetail_20' ) end [2025-01-13 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235233', 'tblTempVendorCDR_20' ) start [2025-01-13 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235233', 'tblTempVendorCDR_20' ) end [2025-01-13 00:21:18] Production.INFO: ProcessCDR(1,14235233,1,1,2) [2025-01-13 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235233', 'tblTempUsageDetail_20' ) start [2025-01-13 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235233', 'tblTempUsageDetail_20' ) end [2025-01-13 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:21:21] Production.INFO: ==4937== Releasing lock... [2025-01-13 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:22:06 [end_date_ymd] => 2025-01-13 00:22:06 [RateCDR] => 1 ) [2025-01-13 00: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` >= '2025-01-12 21:22:06' and `end` < '2025-01-13 00: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 ,'') [2025-01-13 00:22:18] Production.INFO: count ==157 [2025-01-13 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:22:06 - End Time 2025-01-13 00:22:06 [2025-01-13 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235238', 'tblTempUsageDetail_20' ) start [2025-01-13 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235238', 'tblTempUsageDetail_20' ) end [2025-01-13 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235238', 'tblTempVendorCDR_20' ) start [2025-01-13 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235238', 'tblTempVendorCDR_20' ) end [2025-01-13 00:22:18] Production.INFO: ProcessCDR(1,14235238,1,1,2) [2025-01-13 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235238', 'tblTempUsageDetail_20' ) start [2025-01-13 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235238', 'tblTempUsageDetail_20' ) end [2025-01-13 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:22:21] Production.INFO: ==5024== Releasing lock... [2025-01-13 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:23:05 [end_date_ymd] => 2025-01-13 00:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:23:17] Production.INFO: count ==157 [2025-01-13 00:23:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:23:05 - End Time 2025-01-13 00:23:05 [2025-01-13 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235243', 'tblTempUsageDetail_20' ) start [2025-01-13 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235243', 'tblTempUsageDetail_20' ) end [2025-01-13 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235243', 'tblTempVendorCDR_20' ) start [2025-01-13 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235243', 'tblTempVendorCDR_20' ) end [2025-01-13 00:23:17] Production.INFO: ProcessCDR(1,14235243,1,1,2) [2025-01-13 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235243', 'tblTempUsageDetail_20' ) start [2025-01-13 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235243', 'tblTempUsageDetail_20' ) end [2025-01-13 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:23:20] Production.INFO: ==5115== Releasing lock... [2025-01-13 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:23:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:24:05 [end_date_ymd] => 2025-01-13 00:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:24:17] Production.INFO: count ==157 [2025-01-13 00:24:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:24:05 - End Time 2025-01-13 00:24:05 [2025-01-13 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235248', 'tblTempUsageDetail_20' ) start [2025-01-13 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235248', 'tblTempUsageDetail_20' ) end [2025-01-13 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235248', 'tblTempVendorCDR_20' ) start [2025-01-13 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235248', 'tblTempVendorCDR_20' ) end [2025-01-13 00:24:18] Production.INFO: ProcessCDR(1,14235248,1,1,2) [2025-01-13 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235248', 'tblTempUsageDetail_20' ) start [2025-01-13 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235248', 'tblTempUsageDetail_20' ) end [2025-01-13 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:24:21] Production.INFO: ==5207== Releasing lock... [2025-01-13 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:25:05 [end_date_ymd] => 2025-01-13 00:25:05 [RateCDR] => 1 ) [2025-01-13 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:25:05' and `end` < '2025-01-13 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:25:17] Production.INFO: count ==152 [2025-01-13 00:25:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:25:05 - End Time 2025-01-13 00:25:05 [2025-01-13 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235253', 'tblTempUsageDetail_20' ) start [2025-01-13 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235253', 'tblTempUsageDetail_20' ) end [2025-01-13 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235253', 'tblTempVendorCDR_20' ) start [2025-01-13 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235253', 'tblTempVendorCDR_20' ) end [2025-01-13 00:25:17] Production.INFO: ProcessCDR(1,14235253,1,1,2) [2025-01-13 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235253', 'tblTempUsageDetail_20' ) start [2025-01-13 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235253', 'tblTempUsageDetail_20' ) end [2025-01-13 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:25:21] Production.INFO: ==5339== Releasing lock... [2025-01-13 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:26:06 [end_date_ymd] => 2025-01-13 00:26:06 [RateCDR] => 1 ) [2025-01-13 00: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` >= '2025-01-12 21:26:06' and `end` < '2025-01-13 00: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 ,'') [2025-01-13 00:26:18] Production.INFO: count ==152 [2025-01-13 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:26:06 - End Time 2025-01-13 00:26:06 [2025-01-13 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235258', 'tblTempUsageDetail_20' ) start [2025-01-13 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235258', 'tblTempUsageDetail_20' ) end [2025-01-13 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235258', 'tblTempVendorCDR_20' ) start [2025-01-13 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235258', 'tblTempVendorCDR_20' ) end [2025-01-13 00:26:18] Production.INFO: ProcessCDR(1,14235258,1,1,2) [2025-01-13 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235258', 'tblTempUsageDetail_20' ) start [2025-01-13 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235258', 'tblTempUsageDetail_20' ) end [2025-01-13 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:26:21] Production.INFO: ==5433== Releasing lock... [2025-01-13 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:27:05 [end_date_ymd] => 2025-01-13 00:27:05 [RateCDR] => 1 ) [2025-01-13 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:27:05' and `end` < '2025-01-13 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:27:17] Production.INFO: count ==151 [2025-01-13 00:27:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:27:05 - End Time 2025-01-13 00:27:05 [2025-01-13 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235263', 'tblTempUsageDetail_20' ) start [2025-01-13 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235263', 'tblTempUsageDetail_20' ) end [2025-01-13 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235263', 'tblTempVendorCDR_20' ) start [2025-01-13 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235263', 'tblTempVendorCDR_20' ) end [2025-01-13 00:27:17] Production.INFO: ProcessCDR(1,14235263,1,1,2) [2025-01-13 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235263', 'tblTempUsageDetail_20' ) start [2025-01-13 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235263', 'tblTempUsageDetail_20' ) end [2025-01-13 00:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:27:20] Production.INFO: ==5524== Releasing lock... [2025-01-13 00:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:27:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:28:05 [end_date_ymd] => 2025-01-13 00:28:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:28:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:28:18] Production.INFO: count ==150 [2025-01-13 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:28:05 - End Time 2025-01-13 00:28:05 [2025-01-13 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235268', 'tblTempUsageDetail_20' ) start [2025-01-13 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235268', 'tblTempUsageDetail_20' ) end [2025-01-13 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235268', 'tblTempVendorCDR_20' ) start [2025-01-13 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235268', 'tblTempVendorCDR_20' ) end [2025-01-13 00:28:18] Production.INFO: ProcessCDR(1,14235268,1,1,2) [2025-01-13 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235268', 'tblTempUsageDetail_20' ) start [2025-01-13 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235268', 'tblTempUsageDetail_20' ) end [2025-01-13 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:28:21] Production.INFO: ==5617== Releasing lock... [2025-01-13 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:28:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:29:04 [end_date_ymd] => 2025-01-13 00:29:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:29:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:29:17] Production.INFO: count ==151 [2025-01-13 00:29:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:29:04 - End Time 2025-01-13 00:29:04 [2025-01-13 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235273', 'tblTempUsageDetail_20' ) start [2025-01-13 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235273', 'tblTempUsageDetail_20' ) end [2025-01-13 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235273', 'tblTempVendorCDR_20' ) start [2025-01-13 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235273', 'tblTempVendorCDR_20' ) end [2025-01-13 00:29:17] Production.INFO: ProcessCDR(1,14235273,1,1,2) [2025-01-13 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235273', 'tblTempUsageDetail_20' ) start [2025-01-13 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235273', 'tblTempUsageDetail_20' ) end [2025-01-13 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:29:22] Production.INFO: ==5706== Releasing lock... [2025-01-13 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:29:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:30:06 [end_date_ymd] => 2025-01-13 00:30:06 [RateCDR] => 1 ) [2025-01-13 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:30:06' and `end` < '2025-01-13 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:30:18] Production.INFO: count ==159 [2025-01-13 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:30:06 - End Time 2025-01-13 00:30:06 [2025-01-13 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235279', 'tblTempUsageDetail_20' ) start [2025-01-13 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235279', 'tblTempUsageDetail_20' ) end [2025-01-13 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235279', 'tblTempVendorCDR_20' ) start [2025-01-13 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235279', 'tblTempVendorCDR_20' ) end [2025-01-13 00:30:18] Production.INFO: ProcessCDR(1,14235279,1,1,2) [2025-01-13 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235279', 'tblTempUsageDetail_20' ) start [2025-01-13 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235279', 'tblTempUsageDetail_20' ) end [2025-01-13 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:30:22] Production.INFO: ==5804== Releasing lock... [2025-01-13 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:30:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:31:05 [end_date_ymd] => 2025-01-13 00:31:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:31:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:31:18] Production.INFO: count ==158 [2025-01-13 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:31:05 - End Time 2025-01-13 00:31:05 [2025-01-13 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235284', 'tblTempUsageDetail_20' ) start [2025-01-13 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235284', 'tblTempUsageDetail_20' ) end [2025-01-13 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235284', 'tblTempVendorCDR_20' ) start [2025-01-13 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235284', 'tblTempVendorCDR_20' ) end [2025-01-13 00:31:18] Production.INFO: ProcessCDR(1,14235284,1,1,2) [2025-01-13 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235284', 'tblTempUsageDetail_20' ) start [2025-01-13 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235284', 'tblTempUsageDetail_20' ) end [2025-01-13 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:31:21] Production.INFO: ==5898== Releasing lock... [2025-01-13 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:32:06 [end_date_ymd] => 2025-01-13 00:32:06 [RateCDR] => 1 ) [2025-01-13 00:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:32:06' and `end` < '2025-01-13 00:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:32:18] Production.INFO: count ==157 [2025-01-13 00:32:19] Production.ERROR: pbx CDR StartTime 2025-01-12 21:32:06 - End Time 2025-01-13 00:32:06 [2025-01-13 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235289', 'tblTempUsageDetail_20' ) start [2025-01-13 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235289', 'tblTempUsageDetail_20' ) end [2025-01-13 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235289', 'tblTempVendorCDR_20' ) start [2025-01-13 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235289', 'tblTempVendorCDR_20' ) end [2025-01-13 00:32:19] Production.INFO: ProcessCDR(1,14235289,1,1,2) [2025-01-13 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235289', 'tblTempUsageDetail_20' ) start [2025-01-13 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235289', 'tblTempUsageDetail_20' ) end [2025-01-13 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:32:22] Production.INFO: ==5987== Releasing lock... [2025-01-13 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:33:05 [end_date_ymd] => 2025-01-13 00:33:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:33:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:33:18] Production.INFO: count ==157 [2025-01-13 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:33:05 - End Time 2025-01-13 00:33:05 [2025-01-13 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235294', 'tblTempUsageDetail_20' ) start [2025-01-13 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235294', 'tblTempUsageDetail_20' ) end [2025-01-13 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235294', 'tblTempVendorCDR_20' ) start [2025-01-13 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235294', 'tblTempVendorCDR_20' ) end [2025-01-13 00:33:18] Production.INFO: ProcessCDR(1,14235294,1,1,2) [2025-01-13 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235294', 'tblTempUsageDetail_20' ) start [2025-01-13 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235294', 'tblTempUsageDetail_20' ) end [2025-01-13 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:33:21] Production.INFO: ==6080== Releasing lock... [2025-01-13 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-13 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:34:05 [end_date_ymd] => 2025-01-13 00:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:34:18] Production.INFO: count ==156 [2025-01-13 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:34:05 - End Time 2025-01-13 00:34:05 [2025-01-13 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235299', 'tblTempUsageDetail_20' ) start [2025-01-13 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235299', 'tblTempUsageDetail_20' ) end [2025-01-13 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235299', 'tblTempVendorCDR_20' ) start [2025-01-13 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235299', 'tblTempVendorCDR_20' ) end [2025-01-13 00:34:18] Production.INFO: ProcessCDR(1,14235299,1,1,2) [2025-01-13 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235299', 'tblTempUsageDetail_20' ) start [2025-01-13 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235299', 'tblTempUsageDetail_20' ) end [2025-01-13 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:34:21] Production.INFO: ==6168== Releasing lock... [2025-01-13 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:35:04 [end_date_ymd] => 2025-01-13 00:35:04 [RateCDR] => 1 ) [2025-01-13 00:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:35:04' and `end` < '2025-01-13 00:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:35:17] Production.INFO: count ==156 [2025-01-13 00:35:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:35:04 - End Time 2025-01-13 00:35:04 [2025-01-13 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235304', 'tblTempUsageDetail_20' ) start [2025-01-13 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235304', 'tblTempUsageDetail_20' ) end [2025-01-13 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235304', 'tblTempVendorCDR_20' ) start [2025-01-13 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235304', 'tblTempVendorCDR_20' ) end [2025-01-13 00:35:17] Production.INFO: ProcessCDR(1,14235304,1,1,2) [2025-01-13 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235304', 'tblTempUsageDetail_20' ) start [2025-01-13 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235304', 'tblTempUsageDetail_20' ) end [2025-01-13 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:35:20] Production.INFO: ==6259== Releasing lock... [2025-01-13 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:35:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:36:05 [end_date_ymd] => 2025-01-13 00:36:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:36:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:36:18] Production.INFO: count ==151 [2025-01-13 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:36:05 - End Time 2025-01-13 00:36:05 [2025-01-13 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235309', 'tblTempUsageDetail_20' ) start [2025-01-13 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235309', 'tblTempUsageDetail_20' ) end [2025-01-13 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235309', 'tblTempVendorCDR_20' ) start [2025-01-13 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235309', 'tblTempVendorCDR_20' ) end [2025-01-13 00:36:18] Production.INFO: ProcessCDR(1,14235309,1,1,2) [2025-01-13 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235309', 'tblTempUsageDetail_20' ) start [2025-01-13 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235309', 'tblTempUsageDetail_20' ) end [2025-01-13 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:36:21] Production.INFO: ==6350== Releasing lock... [2025-01-13 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:37:05 [end_date_ymd] => 2025-01-13 00:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:37:18] Production.INFO: count ==151 [2025-01-13 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:37:05 - End Time 2025-01-13 00:37:05 [2025-01-13 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235314', 'tblTempUsageDetail_20' ) start [2025-01-13 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235314', 'tblTempUsageDetail_20' ) end [2025-01-13 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235314', 'tblTempVendorCDR_20' ) start [2025-01-13 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235314', 'tblTempVendorCDR_20' ) end [2025-01-13 00:37:18] Production.INFO: ProcessCDR(1,14235314,1,1,2) [2025-01-13 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235314', 'tblTempUsageDetail_20' ) start [2025-01-13 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235314', 'tblTempUsageDetail_20' ) end [2025-01-13 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:37:21] Production.INFO: ==6443== Releasing lock... [2025-01-13 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:38:05 [end_date_ymd] => 2025-01-13 00:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:38:17] Production.INFO: count ==150 [2025-01-13 00:38:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:38:05 - End Time 2025-01-13 00:38:05 [2025-01-13 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235319', 'tblTempUsageDetail_20' ) start [2025-01-13 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235319', 'tblTempUsageDetail_20' ) end [2025-01-13 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235319', 'tblTempVendorCDR_20' ) start [2025-01-13 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235319', 'tblTempVendorCDR_20' ) end [2025-01-13 00:38:18] Production.INFO: ProcessCDR(1,14235319,1,1,2) [2025-01-13 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235319', 'tblTempUsageDetail_20' ) start [2025-01-13 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235319', 'tblTempUsageDetail_20' ) end [2025-01-13 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:38:21] Production.INFO: ==6535== Releasing lock... [2025-01-13 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:38:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:39:04 [end_date_ymd] => 2025-01-13 00:39:04 [RateCDR] => 1 ) [2025-01-13 00:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:39:04' and `end` < '2025-01-13 00:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:39:19] Production.INFO: count ==149 [2025-01-13 00:39:19] Production.ERROR: pbx CDR StartTime 2025-01-12 21:39:04 - End Time 2025-01-13 00:39:04 [2025-01-13 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235324', 'tblTempUsageDetail_20' ) start [2025-01-13 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235324', 'tblTempUsageDetail_20' ) end [2025-01-13 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235324', 'tblTempVendorCDR_20' ) start [2025-01-13 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235324', 'tblTempVendorCDR_20' ) end [2025-01-13 00:39:19] Production.INFO: ProcessCDR(1,14235324,1,1,2) [2025-01-13 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235324', 'tblTempUsageDetail_20' ) start [2025-01-13 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235324', 'tblTempUsageDetail_20' ) end [2025-01-13 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:39:22] Production.INFO: ==6627== Releasing lock... [2025-01-13 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:40:06 [end_date_ymd] => 2025-01-13 00:40:06 [RateCDR] => 1 ) [2025-01-13 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:40:06' and `end` < '2025-01-13 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:40:18] Production.INFO: count ==157 [2025-01-13 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:40:06 - End Time 2025-01-13 00:40:06 [2025-01-13 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235329', 'tblTempUsageDetail_20' ) start [2025-01-13 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235329', 'tblTempUsageDetail_20' ) end [2025-01-13 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235329', 'tblTempVendorCDR_20' ) start [2025-01-13 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235329', 'tblTempVendorCDR_20' ) end [2025-01-13 00:40:18] Production.INFO: ProcessCDR(1,14235329,1,1,2) [2025-01-13 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235329', 'tblTempUsageDetail_20' ) start [2025-01-13 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235329', 'tblTempUsageDetail_20' ) end [2025-01-13 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:40:21] Production.INFO: ==6724== Releasing lock... [2025-01-13 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:41:05 [end_date_ymd] => 2025-01-13 00:41:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:41:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:41:19] Production.INFO: count ==158 [2025-01-13 00:41:19] Production.ERROR: pbx CDR StartTime 2025-01-12 21:41:05 - End Time 2025-01-13 00:41:05 [2025-01-13 00:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235335', 'tblTempUsageDetail_20' ) start [2025-01-13 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235335', 'tblTempUsageDetail_20' ) end [2025-01-13 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235335', 'tblTempVendorCDR_20' ) start [2025-01-13 00:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235335', 'tblTempVendorCDR_20' ) end [2025-01-13 00:41:19] Production.INFO: ProcessCDR(1,14235335,1,1,2) [2025-01-13 00:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235335', 'tblTempUsageDetail_20' ) start [2025-01-13 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235335', 'tblTempUsageDetail_20' ) end [2025-01-13 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:41:22] Production.INFO: ==6852== Releasing lock... [2025-01-13 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:41:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:42:05 [end_date_ymd] => 2025-01-13 00:42:05 [RateCDR] => 1 ) [2025-01-13 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:42:05' and `end` < '2025-01-13 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:42:18] Production.INFO: count ==158 [2025-01-13 00:42:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:42:05 - End Time 2025-01-13 00:42:05 [2025-01-13 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235340', 'tblTempUsageDetail_20' ) start [2025-01-13 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235340', 'tblTempUsageDetail_20' ) end [2025-01-13 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235340', 'tblTempVendorCDR_20' ) start [2025-01-13 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235340', 'tblTempVendorCDR_20' ) end [2025-01-13 00:42:18] Production.INFO: ProcessCDR(1,14235340,1,1,2) [2025-01-13 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235340', 'tblTempUsageDetail_20' ) start [2025-01-13 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235340', 'tblTempUsageDetail_20' ) end [2025-01-13 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:42:21] Production.INFO: ==6930== Releasing lock... [2025-01-13 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:43:04 [end_date_ymd] => 2025-01-13 00:43:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:43:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:43:18] Production.INFO: count ==154 [2025-01-13 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:43:04 - End Time 2025-01-13 00:43:04 [2025-01-13 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235345', 'tblTempUsageDetail_20' ) start [2025-01-13 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235345', 'tblTempUsageDetail_20' ) end [2025-01-13 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235345', 'tblTempVendorCDR_20' ) start [2025-01-13 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235345', 'tblTempVendorCDR_20' ) end [2025-01-13 00:43:18] Production.INFO: ProcessCDR(1,14235345,1,1,2) [2025-01-13 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235345', 'tblTempUsageDetail_20' ) start [2025-01-13 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235345', 'tblTempUsageDetail_20' ) end [2025-01-13 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:43:21] Production.INFO: ==7010== Releasing lock... [2025-01-13 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:44:05 [end_date_ymd] => 2025-01-13 00:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:44:17] Production.INFO: count ==153 [2025-01-13 00:44:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:44:05 - End Time 2025-01-13 00:44:05 [2025-01-13 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235350', 'tblTempUsageDetail_20' ) start [2025-01-13 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235350', 'tblTempUsageDetail_20' ) end [2025-01-13 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235350', 'tblTempVendorCDR_20' ) start [2025-01-13 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235350', 'tblTempVendorCDR_20' ) end [2025-01-13 00:44:17] Production.INFO: ProcessCDR(1,14235350,1,1,2) [2025-01-13 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235350', 'tblTempUsageDetail_20' ) start [2025-01-13 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235350', 'tblTempUsageDetail_20' ) end [2025-01-13 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:44:21] Production.INFO: ==7089== Releasing lock... [2025-01-13 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:45:04 [end_date_ymd] => 2025-01-13 00:45:04 [RateCDR] => 1 ) [2025-01-13 00:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:45:04' and `end` < '2025-01-13 00:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:45:17] Production.INFO: count ==152 [2025-01-13 00:45:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:45:04 - End Time 2025-01-13 00:45:04 [2025-01-13 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235355', 'tblTempUsageDetail_20' ) start [2025-01-13 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235355', 'tblTempUsageDetail_20' ) end [2025-01-13 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235355', 'tblTempVendorCDR_20' ) start [2025-01-13 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235355', 'tblTempVendorCDR_20' ) end [2025-01-13 00:45:17] Production.INFO: ProcessCDR(1,14235355,1,1,2) [2025-01-13 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235355', 'tblTempUsageDetail_20' ) start [2025-01-13 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235355', 'tblTempUsageDetail_20' ) end [2025-01-13 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:45:20] Production.INFO: ==7162== Releasing lock... [2025-01-13 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:45:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:46:05 [end_date_ymd] => 2025-01-13 00:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:46:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:46:18] Production.INFO: count ==152 [2025-01-13 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:46:05 - End Time 2025-01-13 00:46:05 [2025-01-13 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235360', 'tblTempUsageDetail_20' ) start [2025-01-13 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235360', 'tblTempUsageDetail_20' ) end [2025-01-13 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235360', 'tblTempVendorCDR_20' ) start [2025-01-13 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235360', 'tblTempVendorCDR_20' ) end [2025-01-13 00:46:18] Production.INFO: ProcessCDR(1,14235360,1,1,2) [2025-01-13 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235360', 'tblTempUsageDetail_20' ) start [2025-01-13 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235360', 'tblTempUsageDetail_20' ) end [2025-01-13 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:46:21] Production.INFO: ==7235== Releasing lock... [2025-01-13 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:47:05 [end_date_ymd] => 2025-01-13 00:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:47:18] Production.INFO: count ==149 [2025-01-13 00:47:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:47:05 - End Time 2025-01-13 00:47:05 [2025-01-13 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235365', 'tblTempUsageDetail_20' ) start [2025-01-13 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235365', 'tblTempUsageDetail_20' ) end [2025-01-13 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235365', 'tblTempVendorCDR_20' ) start [2025-01-13 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235365', 'tblTempVendorCDR_20' ) end [2025-01-13 00:47:18] Production.INFO: ProcessCDR(1,14235365,1,1,2) [2025-01-13 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235365', 'tblTempUsageDetail_20' ) start [2025-01-13 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235365', 'tblTempUsageDetail_20' ) end [2025-01-13 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:47:21] Production.INFO: ==7312== Releasing lock... [2025-01-13 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:48:04 [end_date_ymd] => 2025-01-13 00:48:04 [RateCDR] => 1 ) [2025-01-13 00:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:48:04' and `end` < '2025-01-13 00:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:48:17] Production.INFO: count ==149 [2025-01-13 00:48:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:48:04 - End Time 2025-01-13 00:48:04 [2025-01-13 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235370', 'tblTempUsageDetail_20' ) start [2025-01-13 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235370', 'tblTempUsageDetail_20' ) end [2025-01-13 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235370', 'tblTempVendorCDR_20' ) start [2025-01-13 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235370', 'tblTempVendorCDR_20' ) end [2025-01-13 00:48:17] Production.INFO: ProcessCDR(1,14235370,1,1,2) [2025-01-13 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235370', 'tblTempUsageDetail_20' ) start [2025-01-13 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235370', 'tblTempUsageDetail_20' ) end [2025-01-13 00:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:48:21] Production.INFO: ==7386== Releasing lock... [2025-01-13 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:49:05 [end_date_ymd] => 2025-01-13 00:49:05 [RateCDR] => 1 ) [2025-01-13 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:49:05' and `end` < '2025-01-13 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:49:19] Production.INFO: count ==147 [2025-01-13 00:49:19] Production.ERROR: pbx CDR StartTime 2025-01-12 21:49:05 - End Time 2025-01-13 00:49:05 [2025-01-13 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235375', 'tblTempUsageDetail_20' ) start [2025-01-13 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235375', 'tblTempUsageDetail_20' ) end [2025-01-13 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235375', 'tblTempVendorCDR_20' ) start [2025-01-13 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235375', 'tblTempVendorCDR_20' ) end [2025-01-13 00:49:19] Production.INFO: ProcessCDR(1,14235375,1,1,2) [2025-01-13 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235375', 'tblTempUsageDetail_20' ) start [2025-01-13 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235375', 'tblTempUsageDetail_20' ) end [2025-01-13 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:49:22] Production.INFO: ==7457== Releasing lock... [2025-01-13 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:49:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:50:05 [end_date_ymd] => 2025-01-13 00:50:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:50:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:50:17] Production.INFO: count ==149 [2025-01-13 00:50:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:50:05 - End Time 2025-01-13 00:50:05 [2025-01-13 00:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235381', 'tblTempUsageDetail_20' ) start [2025-01-13 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235381', 'tblTempUsageDetail_20' ) end [2025-01-13 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235381', 'tblTempVendorCDR_20' ) start [2025-01-13 00:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235381', 'tblTempVendorCDR_20' ) end [2025-01-13 00:50:17] Production.INFO: ProcessCDR(1,14235381,1,1,2) [2025-01-13 00:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235381', 'tblTempUsageDetail_20' ) start [2025-01-13 00:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235381', 'tblTempUsageDetail_20' ) end [2025-01-13 00:50:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:50:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:50:20] Production.INFO: ==7533== Releasing lock... [2025-01-13 00:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:50:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:51:05 [end_date_ymd] => 2025-01-13 00:51:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:51:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:51:17] Production.INFO: count ==147 [2025-01-13 00:51:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:51:05 - End Time 2025-01-13 00:51:05 [2025-01-13 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235386', 'tblTempUsageDetail_20' ) start [2025-01-13 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235386', 'tblTempUsageDetail_20' ) end [2025-01-13 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235386', 'tblTempVendorCDR_20' ) start [2025-01-13 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235386', 'tblTempVendorCDR_20' ) end [2025-01-13 00:51:17] Production.INFO: ProcessCDR(1,14235386,1,1,2) [2025-01-13 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235386', 'tblTempUsageDetail_20' ) start [2025-01-13 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235386', 'tblTempUsageDetail_20' ) end [2025-01-13 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:51:21] Production.INFO: ==7609== Releasing lock... [2025-01-13 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:51:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 00:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:52:04 [end_date_ymd] => 2025-01-13 00:52:04 [RateCDR] => 1 ) [2025-01-13 00:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:52:04' and `end` < '2025-01-13 00:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:52:17] Production.INFO: count ==146 [2025-01-13 00:52:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:52:04 - End Time 2025-01-13 00:52:04 [2025-01-13 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235391', 'tblTempUsageDetail_20' ) start [2025-01-13 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235391', 'tblTempUsageDetail_20' ) end [2025-01-13 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235391', 'tblTempVendorCDR_20' ) start [2025-01-13 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235391', 'tblTempVendorCDR_20' ) end [2025-01-13 00:52:17] Production.INFO: ProcessCDR(1,14235391,1,1,2) [2025-01-13 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235391', 'tblTempUsageDetail_20' ) start [2025-01-13 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235391', 'tblTempUsageDetail_20' ) end [2025-01-13 00:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:52:20] Production.INFO: ==7685== Releasing lock... [2025-01-13 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:52:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 00:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:53:04 [end_date_ymd] => 2025-01-13 00:53:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:53:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:53:17] Production.INFO: count ==142 [2025-01-13 00:53:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:53:04 - End Time 2025-01-13 00:53:04 [2025-01-13 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235396', 'tblTempUsageDetail_20' ) start [2025-01-13 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235396', 'tblTempUsageDetail_20' ) end [2025-01-13 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235396', 'tblTempVendorCDR_20' ) start [2025-01-13 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235396', 'tblTempVendorCDR_20' ) end [2025-01-13 00:53:17] Production.INFO: ProcessCDR(1,14235396,1,1,2) [2025-01-13 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235396', 'tblTempUsageDetail_20' ) start [2025-01-13 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235396', 'tblTempUsageDetail_20' ) end [2025-01-13 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:53:20] Production.INFO: ==7765== Releasing lock... [2025-01-13 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:54:05 [end_date_ymd] => 2025-01-13 00:54:05 [RateCDR] => 1 ) [2025-01-13 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:54:05' and `end` < '2025-01-13 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:54:19] Production.INFO: count ==141 [2025-01-13 00:54:19] Production.ERROR: pbx CDR StartTime 2025-01-12 21:54:05 - End Time 2025-01-13 00:54:05 [2025-01-13 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235401', 'tblTempUsageDetail_20' ) start [2025-01-13 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235401', 'tblTempUsageDetail_20' ) end [2025-01-13 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235401', 'tblTempVendorCDR_20' ) start [2025-01-13 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235401', 'tblTempVendorCDR_20' ) end [2025-01-13 00:54:19] Production.INFO: ProcessCDR(1,14235401,1,1,2) [2025-01-13 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235401', 'tblTempUsageDetail_20' ) start [2025-01-13 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235401', 'tblTempUsageDetail_20' ) end [2025-01-13 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:54:22] Production.INFO: ==7855== Releasing lock... [2025-01-13 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:55:05 [end_date_ymd] => 2025-01-13 00:55:05 [RateCDR] => 1 ) [2025-01-13 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:55:05' and `end` < '2025-01-13 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:55:18] Production.INFO: count ==141 [2025-01-13 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:55:05 - End Time 2025-01-13 00:55:05 [2025-01-13 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235406', 'tblTempUsageDetail_20' ) start [2025-01-13 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235406', 'tblTempUsageDetail_20' ) end [2025-01-13 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235406', 'tblTempVendorCDR_20' ) start [2025-01-13 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235406', 'tblTempVendorCDR_20' ) end [2025-01-13 00:55:18] Production.INFO: ProcessCDR(1,14235406,1,1,2) [2025-01-13 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235406', 'tblTempUsageDetail_20' ) start [2025-01-13 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235406', 'tblTempUsageDetail_20' ) end [2025-01-13 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:55:21] Production.INFO: ==7944== Releasing lock... [2025-01-13 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:56:05 [end_date_ymd] => 2025-01-13 00:56:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:56:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:56:17] Production.INFO: count ==140 [2025-01-13 00:56:17] Production.ERROR: pbx CDR StartTime 2025-01-12 21:56:05 - End Time 2025-01-13 00:56:05 [2025-01-13 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235411', 'tblTempUsageDetail_20' ) start [2025-01-13 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235411', 'tblTempUsageDetail_20' ) end [2025-01-13 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235411', 'tblTempVendorCDR_20' ) start [2025-01-13 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235411', 'tblTempVendorCDR_20' ) end [2025-01-13 00:56:17] Production.INFO: ProcessCDR(1,14235411,1,1,2) [2025-01-13 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235411', 'tblTempUsageDetail_20' ) start [2025-01-13 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235411', 'tblTempUsageDetail_20' ) end [2025-01-13 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:56:22] Production.INFO: ==8036== Releasing lock... [2025-01-13 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:56:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:57:04 [end_date_ymd] => 2025-01-13 00:57:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 21:57:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 00:57:19] Production.INFO: count ==142 [2025-01-13 00:57:19] Production.ERROR: pbx CDR StartTime 2025-01-12 21:57:04 - End Time 2025-01-13 00:57:04 [2025-01-13 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235416', 'tblTempUsageDetail_20' ) start [2025-01-13 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235416', 'tblTempUsageDetail_20' ) end [2025-01-13 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235416', 'tblTempVendorCDR_20' ) start [2025-01-13 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235416', 'tblTempVendorCDR_20' ) end [2025-01-13 00:57:19] Production.INFO: ProcessCDR(1,14235416,1,1,2) [2025-01-13 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235416', 'tblTempUsageDetail_20' ) start [2025-01-13 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235416', 'tblTempUsageDetail_20' ) end [2025-01-13 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:57:22] Production.INFO: ==8166== Releasing lock... [2025-01-13 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:58:05 [end_date_ymd] => 2025-01-13 00:58:05 [RateCDR] => 1 ) [2025-01-13 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:58:05' and `end` < '2025-01-13 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:58:18] Production.INFO: count ==142 [2025-01-13 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-12 21:58:05 - End Time 2025-01-13 00:58:05 [2025-01-13 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235421', 'tblTempUsageDetail_20' ) start [2025-01-13 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235421', 'tblTempUsageDetail_20' ) end [2025-01-13 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235421', 'tblTempVendorCDR_20' ) start [2025-01-13 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235421', 'tblTempVendorCDR_20' ) end [2025-01-13 00:58:18] Production.INFO: ProcessCDR(1,14235421,1,1,2) [2025-01-13 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235421', 'tblTempUsageDetail_20' ) start [2025-01-13 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235421', 'tblTempUsageDetail_20' ) end [2025-01-13 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:58:21] Production.INFO: ==8255== Releasing lock... [2025-01-13 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 00:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 21:59:04 [end_date_ymd] => 2025-01-13 00:59:04 [RateCDR] => 1 ) [2025-01-13 00:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 21:59:04' and `end` < '2025-01-13 00:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 00:59:16] Production.INFO: count ==143 [2025-01-13 00:59:16] Production.ERROR: pbx CDR StartTime 2025-01-12 21:59:04 - End Time 2025-01-13 00:59:04 [2025-01-13 00:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235426', 'tblTempUsageDetail_20' ) start [2025-01-13 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235426', 'tblTempUsageDetail_20' ) end [2025-01-13 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235426', 'tblTempVendorCDR_20' ) start [2025-01-13 00:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235426', 'tblTempVendorCDR_20' ) end [2025-01-13 00:59:16] Production.INFO: ProcessCDR(1,14235426,1,1,2) [2025-01-13 00:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235426', 'tblTempUsageDetail_20' ) start [2025-01-13 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235426', 'tblTempUsageDetail_20' ) end [2025-01-13 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 00:59:21] Production.INFO: ==8339== Releasing lock... [2025-01-13 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 00:59:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:00:05 [end_date_ymd] => 2025-01-13 01:00:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:00:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:00:18] Production.INFO: count ==150 [2025-01-13 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:00:05 - End Time 2025-01-13 01:00:05 [2025-01-13 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235432', 'tblTempUsageDetail_20' ) start [2025-01-13 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235432', 'tblTempUsageDetail_20' ) end [2025-01-13 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235432', 'tblTempVendorCDR_20' ) start [2025-01-13 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235432', 'tblTempVendorCDR_20' ) end [2025-01-13 01:00:18] Production.INFO: ProcessCDR(1,14235432,1,1,2) [2025-01-13 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235432', 'tblTempUsageDetail_20' ) start [2025-01-13 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235432', 'tblTempUsageDetail_20' ) end [2025-01-13 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:00:23] Production.INFO: ==8429== Releasing lock... [2025-01-13 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:00:23] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:01:05 [end_date_ymd] => 2025-01-13 01:01:05 [RateCDR] => 1 ) [2025-01-13 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:01:05' and `end` < '2025-01-13 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:01:18] Production.INFO: count ==155 [2025-01-13 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:01:05 - End Time 2025-01-13 01:01:05 [2025-01-13 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235437', 'tblTempUsageDetail_20' ) start [2025-01-13 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235437', 'tblTempUsageDetail_20' ) end [2025-01-13 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235437', 'tblTempVendorCDR_20' ) start [2025-01-13 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235437', 'tblTempVendorCDR_20' ) end [2025-01-13 01:01:18] Production.INFO: ProcessCDR(1,14235437,1,1,2) [2025-01-13 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235437', 'tblTempUsageDetail_20' ) start [2025-01-13 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235437', 'tblTempUsageDetail_20' ) end [2025-01-13 01:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:01:23] Production.INFO: ==8530== Releasing lock... [2025-01-13 01:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:01:23] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:02:05 [end_date_ymd] => 2025-01-13 01:02:05 [RateCDR] => 1 ) [2025-01-13 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:02:05' and `end` < '2025-01-13 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:02:17] Production.INFO: count ==155 [2025-01-13 01:02:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:02:05 - End Time 2025-01-13 01:02:05 [2025-01-13 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235442', 'tblTempUsageDetail_20' ) start [2025-01-13 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235442', 'tblTempUsageDetail_20' ) end [2025-01-13 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235442', 'tblTempVendorCDR_20' ) start [2025-01-13 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235442', 'tblTempVendorCDR_20' ) end [2025-01-13 01:02:17] Production.INFO: ProcessCDR(1,14235442,1,1,2) [2025-01-13 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235442', 'tblTempUsageDetail_20' ) start [2025-01-13 01:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235442', 'tblTempUsageDetail_20' ) end [2025-01-13 01:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:02:20] Production.INFO: ==8618== Releasing lock... [2025-01-13 01:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:02:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:03:05 [end_date_ymd] => 2025-01-13 01:03:05 [RateCDR] => 1 ) [2025-01-13 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:03:05' and `end` < '2025-01-13 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:03:18] Production.INFO: count ==155 [2025-01-13 01:03:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:03:05 - End Time 2025-01-13 01:03:05 [2025-01-13 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235447', 'tblTempUsageDetail_20' ) start [2025-01-13 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235447', 'tblTempUsageDetail_20' ) end [2025-01-13 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235447', 'tblTempVendorCDR_20' ) start [2025-01-13 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235447', 'tblTempVendorCDR_20' ) end [2025-01-13 01:03:18] Production.INFO: ProcessCDR(1,14235447,1,1,2) [2025-01-13 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235447', 'tblTempUsageDetail_20' ) start [2025-01-13 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235447', 'tblTempUsageDetail_20' ) end [2025-01-13 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:03:21] Production.INFO: ==8696== Releasing lock... [2025-01-13 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:04:05 [end_date_ymd] => 2025-01-13 01:04:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:04:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:04:17] Production.INFO: count ==155 [2025-01-13 01:04:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:04:05 - End Time 2025-01-13 01:04:05 [2025-01-13 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235452', 'tblTempUsageDetail_20' ) start [2025-01-13 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235452', 'tblTempUsageDetail_20' ) end [2025-01-13 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235452', 'tblTempVendorCDR_20' ) start [2025-01-13 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235452', 'tblTempVendorCDR_20' ) end [2025-01-13 01:04:17] Production.INFO: ProcessCDR(1,14235452,1,1,2) [2025-01-13 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235452', 'tblTempUsageDetail_20' ) start [2025-01-13 01:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235452', 'tblTempUsageDetail_20' ) end [2025-01-13 01:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:04:20] Production.INFO: ==8777== Releasing lock... [2025-01-13 01:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:04:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:05:05 [end_date_ymd] => 2025-01-13 01:05:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:05:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:05:17] Production.INFO: count ==154 [2025-01-13 01:05:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:05:05 - End Time 2025-01-13 01:05:05 [2025-01-13 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235457', 'tblTempUsageDetail_20' ) start [2025-01-13 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235457', 'tblTempUsageDetail_20' ) end [2025-01-13 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235457', 'tblTempVendorCDR_20' ) start [2025-01-13 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235457', 'tblTempVendorCDR_20' ) end [2025-01-13 01:05:17] Production.INFO: ProcessCDR(1,14235457,1,1,2) [2025-01-13 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235457', 'tblTempUsageDetail_20' ) start [2025-01-13 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235457', 'tblTempUsageDetail_20' ) end [2025-01-13 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:05:20] Production.INFO: ==8867== Releasing lock... [2025-01-13 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:05:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:06:04 [end_date_ymd] => 2025-01-13 01:06:04 [RateCDR] => 1 ) [2025-01-13 01:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:06:04' and `end` < '2025-01-13 01:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:06:16] Production.INFO: count ==153 [2025-01-13 01:06:16] Production.ERROR: pbx CDR StartTime 2025-01-12 22:06:04 - End Time 2025-01-13 01:06:04 [2025-01-13 01:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235461', 'tblTempUsageDetail_20' ) start [2025-01-13 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235461', 'tblTempUsageDetail_20' ) end [2025-01-13 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235461', 'tblTempVendorCDR_20' ) start [2025-01-13 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235461', 'tblTempVendorCDR_20' ) end [2025-01-13 01:06:17] Production.INFO: ProcessCDR(1,14235461,1,1,2) [2025-01-13 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:06:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:06:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:06:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:06:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235461', 'tblTempUsageDetail_20' ) start [2025-01-13 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235461', 'tblTempUsageDetail_20' ) end [2025-01-13 01:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:06:20] Production.INFO: ==8956== Releasing lock... [2025-01-13 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:06:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:07:04 [end_date_ymd] => 2025-01-13 01:07:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:07:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:07:16] Production.INFO: count ==149 [2025-01-13 01:07:16] Production.ERROR: pbx CDR StartTime 2025-01-12 22:07:04 - End Time 2025-01-13 01:07:04 [2025-01-13 01:07:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235467', 'tblTempUsageDetail_20' ) start [2025-01-13 01:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235467', 'tblTempUsageDetail_20' ) end [2025-01-13 01:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235467', 'tblTempVendorCDR_20' ) start [2025-01-13 01:07:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235467', 'tblTempVendorCDR_20' ) end [2025-01-13 01:07:16] Production.INFO: ProcessCDR(1,14235467,1,1,2) [2025-01-13 01:07:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:07:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:07:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235467', 'tblTempUsageDetail_20' ) start [2025-01-13 01:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235467', 'tblTempUsageDetail_20' ) end [2025-01-13 01:07:19] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:07:19] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:07:19] Production.INFO: ==9045== Releasing lock... [2025-01-13 01:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:07:19] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:08:05 [end_date_ymd] => 2025-01-13 01:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:08:17] Production.INFO: count ==149 [2025-01-13 01:08:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:08:05 - End Time 2025-01-13 01:08:05 [2025-01-13 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235472', 'tblTempUsageDetail_20' ) start [2025-01-13 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235472', 'tblTempUsageDetail_20' ) end [2025-01-13 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235472', 'tblTempVendorCDR_20' ) start [2025-01-13 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235472', 'tblTempVendorCDR_20' ) end [2025-01-13 01:08:17] Production.INFO: ProcessCDR(1,14235472,1,1,2) [2025-01-13 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235472', 'tblTempUsageDetail_20' ) start [2025-01-13 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235472', 'tblTempUsageDetail_20' ) end [2025-01-13 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:08:20] Production.INFO: ==9130== Releasing lock... [2025-01-13 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:08:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:09:04 [end_date_ymd] => 2025-01-13 01:09:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:09:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:09:18] Production.INFO: count ==146 [2025-01-13 01:09:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:09:04 - End Time 2025-01-13 01:09:04 [2025-01-13 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235477', 'tblTempUsageDetail_20' ) start [2025-01-13 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235477', 'tblTempUsageDetail_20' ) end [2025-01-13 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235477', 'tblTempVendorCDR_20' ) start [2025-01-13 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235477', 'tblTempVendorCDR_20' ) end [2025-01-13 01:09:18] Production.INFO: ProcessCDR(1,14235477,1,1,2) [2025-01-13 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235477', 'tblTempUsageDetail_20' ) start [2025-01-13 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235477', 'tblTempUsageDetail_20' ) end [2025-01-13 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:09:21] Production.INFO: ==9219== Releasing lock... [2025-01-13 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 01:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:10:05 [end_date_ymd] => 2025-01-13 01:10:05 [RateCDR] => 1 ) [2025-01-13 01:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:10:05' and `end` < '2025-01-13 01:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:10:18] Production.INFO: count ==151 [2025-01-13 01:10:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:10:05 - End Time 2025-01-13 01:10:05 [2025-01-13 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235483', 'tblTempUsageDetail_20' ) start [2025-01-13 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235483', 'tblTempUsageDetail_20' ) end [2025-01-13 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235483', 'tblTempVendorCDR_20' ) start [2025-01-13 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235483', 'tblTempVendorCDR_20' ) end [2025-01-13 01:10:18] Production.INFO: ProcessCDR(1,14235483,1,1,2) [2025-01-13 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235483', 'tblTempUsageDetail_20' ) start [2025-01-13 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235483', 'tblTempUsageDetail_20' ) end [2025-01-13 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:10:21] Production.INFO: ==9312== Releasing lock... [2025-01-13 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 01:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:11:04 [end_date_ymd] => 2025-01-13 01:11:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:11:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:11:19] Production.INFO: count ==169 [2025-01-13 01:11:19] Production.ERROR: pbx CDR StartTime 2025-01-12 22:11:04 - End Time 2025-01-13 01:11:04 [2025-01-13 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235488', 'tblTempUsageDetail_20' ) start [2025-01-13 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235488', 'tblTempUsageDetail_20' ) end [2025-01-13 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235488', 'tblTempVendorCDR_20' ) start [2025-01-13 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235488', 'tblTempVendorCDR_20' ) end [2025-01-13 01:11:19] Production.INFO: ProcessCDR(1,14235488,1,1,2) [2025-01-13 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235488', 'tblTempUsageDetail_20' ) start [2025-01-13 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235488', 'tblTempUsageDetail_20' ) end [2025-01-13 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:11:22] Production.INFO: ==9404== Releasing lock... [2025-01-13 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:11:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:12:05 [end_date_ymd] => 2025-01-13 01:12:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:12:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:12:18] Production.INFO: count ==169 [2025-01-13 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:12:05 - End Time 2025-01-13 01:12:05 [2025-01-13 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235493', 'tblTempUsageDetail_20' ) start [2025-01-13 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235493', 'tblTempUsageDetail_20' ) end [2025-01-13 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235493', 'tblTempVendorCDR_20' ) start [2025-01-13 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235493', 'tblTempVendorCDR_20' ) end [2025-01-13 01:12:18] Production.INFO: ProcessCDR(1,14235493,1,1,2) [2025-01-13 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235493', 'tblTempUsageDetail_20' ) start [2025-01-13 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235493', 'tblTempUsageDetail_20' ) end [2025-01-13 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:12:21] Production.INFO: ==9528== Releasing lock... [2025-01-13 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:12:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:13:05 [end_date_ymd] => 2025-01-13 01:13:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:13:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:13:18] Production.INFO: count ==169 [2025-01-13 01:13:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:13:05 - End Time 2025-01-13 01:13:05 [2025-01-13 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235498', 'tblTempUsageDetail_20' ) start [2025-01-13 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235498', 'tblTempUsageDetail_20' ) end [2025-01-13 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235498', 'tblTempVendorCDR_20' ) start [2025-01-13 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235498', 'tblTempVendorCDR_20' ) end [2025-01-13 01:13:18] Production.INFO: ProcessCDR(1,14235498,1,1,2) [2025-01-13 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235498', 'tblTempUsageDetail_20' ) start [2025-01-13 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235498', 'tblTempUsageDetail_20' ) end [2025-01-13 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:13:21] Production.INFO: ==9617== Releasing lock... [2025-01-13 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:13:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:14:04 [end_date_ymd] => 2025-01-13 01:14:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:14:04' and `end` < '2025-01-13 01:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:14:17] Production.INFO: count ==169 [2025-01-13 01:14:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:14:04 - End Time 2025-01-13 01:14:04 [2025-01-13 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235503', 'tblTempUsageDetail_20' ) start [2025-01-13 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235503', 'tblTempUsageDetail_20' ) end [2025-01-13 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235503', 'tblTempVendorCDR_20' ) start [2025-01-13 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235503', 'tblTempVendorCDR_20' ) end [2025-01-13 01:14:17] Production.INFO: ProcessCDR(1,14235503,1,1,2) [2025-01-13 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235503', 'tblTempUsageDetail_20' ) start [2025-01-13 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235503', 'tblTempUsageDetail_20' ) end [2025-01-13 01:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:14:20] Production.INFO: ==9700== Releasing lock... [2025-01-13 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:14:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:15:05 [end_date_ymd] => 2025-01-13 01:15:05 [RateCDR] => 1 ) [2025-01-13 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:15:05' and `end` < '2025-01-13 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:15:18] Production.INFO: count ==170 [2025-01-13 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:15:05 - End Time 2025-01-13 01:15:05 [2025-01-13 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235508', 'tblTempUsageDetail_20' ) start [2025-01-13 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235508', 'tblTempUsageDetail_20' ) end [2025-01-13 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235508', 'tblTempVendorCDR_20' ) start [2025-01-13 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235508', 'tblTempVendorCDR_20' ) end [2025-01-13 01:15:18] Production.INFO: ProcessCDR(1,14235508,1,1,2) [2025-01-13 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235508', 'tblTempUsageDetail_20' ) start [2025-01-13 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235508', 'tblTempUsageDetail_20' ) end [2025-01-13 01:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:15:23] Production.INFO: ==9790== Releasing lock... [2025-01-13 01:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:15:23] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:16:05 [end_date_ymd] => 2025-01-13 01:16:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:16:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:16:18] Production.INFO: count ==170 [2025-01-13 01:16:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:16:05 - End Time 2025-01-13 01:16:05 [2025-01-13 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235513', 'tblTempUsageDetail_20' ) start [2025-01-13 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235513', 'tblTempUsageDetail_20' ) end [2025-01-13 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235513', 'tblTempVendorCDR_20' ) start [2025-01-13 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235513', 'tblTempVendorCDR_20' ) end [2025-01-13 01:16:18] Production.INFO: ProcessCDR(1,14235513,1,1,2) [2025-01-13 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235513', 'tblTempUsageDetail_20' ) start [2025-01-13 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235513', 'tblTempUsageDetail_20' ) end [2025-01-13 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:16:21] Production.INFO: ==9871== Releasing lock... [2025-01-13 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:16:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:17:05 [end_date_ymd] => 2025-01-13 01:17:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:17:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:17:18] Production.INFO: count ==170 [2025-01-13 01:17:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:17:05 - End Time 2025-01-13 01:17:05 [2025-01-13 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235518', 'tblTempUsageDetail_20' ) start [2025-01-13 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235518', 'tblTempUsageDetail_20' ) end [2025-01-13 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235518', 'tblTempVendorCDR_20' ) start [2025-01-13 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235518', 'tblTempVendorCDR_20' ) end [2025-01-13 01:17:18] Production.INFO: ProcessCDR(1,14235518,1,1,2) [2025-01-13 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235518', 'tblTempUsageDetail_20' ) start [2025-01-13 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235518', 'tblTempUsageDetail_20' ) end [2025-01-13 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:17:21] Production.INFO: ==9949== Releasing lock... [2025-01-13 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:17:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:18:04 [end_date_ymd] => 2025-01-13 01:18:04 [RateCDR] => 1 ) [2025-01-13 01: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` >= '2025-01-12 22:18:04' and `end` < '2025-01-13 01: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 ,'') [2025-01-13 01:18:17] Production.INFO: count ==170 [2025-01-13 01:18:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:18:04 - End Time 2025-01-13 01:18:04 [2025-01-13 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235523', 'tblTempUsageDetail_20' ) start [2025-01-13 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235523', 'tblTempUsageDetail_20' ) end [2025-01-13 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235523', 'tblTempVendorCDR_20' ) start [2025-01-13 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235523', 'tblTempVendorCDR_20' ) end [2025-01-13 01:18:17] Production.INFO: ProcessCDR(1,14235523,1,1,2) [2025-01-13 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235523', 'tblTempUsageDetail_20' ) start [2025-01-13 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235523', 'tblTempUsageDetail_20' ) end [2025-01-13 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:18:20] Production.INFO: ==10029== Releasing lock... [2025-01-13 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:18:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:19:04 [end_date_ymd] => 2025-01-13 01:19:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:19:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:19:17] Production.INFO: count ==170 [2025-01-13 01:19:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:19:04 - End Time 2025-01-13 01:19:04 [2025-01-13 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235528', 'tblTempUsageDetail_20' ) start [2025-01-13 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235528', 'tblTempUsageDetail_20' ) end [2025-01-13 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235528', 'tblTempVendorCDR_20' ) start [2025-01-13 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235528', 'tblTempVendorCDR_20' ) end [2025-01-13 01:19:17] Production.INFO: ProcessCDR(1,14235528,1,1,2) [2025-01-13 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235528', 'tblTempUsageDetail_20' ) start [2025-01-13 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235528', 'tblTempUsageDetail_20' ) end [2025-01-13 01:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:19:20] Production.INFO: ==10110== Releasing lock... [2025-01-13 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:19:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:20:05 [end_date_ymd] => 2025-01-13 01:20:05 [RateCDR] => 1 ) [2025-01-13 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:20:05' and `end` < '2025-01-13 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:20:18] Production.INFO: count ==176 [2025-01-13 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:20:05 - End Time 2025-01-13 01:20:05 [2025-01-13 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235533', 'tblTempUsageDetail_20' ) start [2025-01-13 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235533', 'tblTempUsageDetail_20' ) end [2025-01-13 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235533', 'tblTempVendorCDR_20' ) start [2025-01-13 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235533', 'tblTempVendorCDR_20' ) end [2025-01-13 01:20:18] Production.INFO: ProcessCDR(1,14235533,1,1,2) [2025-01-13 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235533', 'tblTempUsageDetail_20' ) start [2025-01-13 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235533', 'tblTempUsageDetail_20' ) end [2025-01-13 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:20:21] Production.INFO: ==10200== Releasing lock... [2025-01-13 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:20:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:21:04 [end_date_ymd] => 2025-01-13 01:21:04 [RateCDR] => 1 ) [2025-01-13 01:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:21:04' and `end` < '2025-01-13 01:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:21:17] Production.INFO: count ==184 [2025-01-13 01:21:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:21:04 - End Time 2025-01-13 01:21:04 [2025-01-13 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235539', 'tblTempUsageDetail_20' ) start [2025-01-13 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235539', 'tblTempUsageDetail_20' ) end [2025-01-13 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235539', 'tblTempVendorCDR_20' ) start [2025-01-13 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235539', 'tblTempVendorCDR_20' ) end [2025-01-13 01:21:17] Production.INFO: ProcessCDR(1,14235539,1,1,2) [2025-01-13 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235539', 'tblTempUsageDetail_20' ) start [2025-01-13 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235539', 'tblTempUsageDetail_20' ) end [2025-01-13 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:21:20] Production.INFO: ==10289== Releasing lock... [2025-01-13 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:21:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:22:05 [end_date_ymd] => 2025-01-13 01:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:22:19] Production.INFO: count ==184 [2025-01-13 01:22:19] Production.ERROR: pbx CDR StartTime 2025-01-12 22:22:05 - End Time 2025-01-13 01:22:05 [2025-01-13 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235544', 'tblTempUsageDetail_20' ) start [2025-01-13 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235544', 'tblTempUsageDetail_20' ) end [2025-01-13 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235544', 'tblTempVendorCDR_20' ) start [2025-01-13 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235544', 'tblTempVendorCDR_20' ) end [2025-01-13 01:22:19] Production.INFO: ProcessCDR(1,14235544,1,1,2) [2025-01-13 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235544', 'tblTempUsageDetail_20' ) start [2025-01-13 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235544', 'tblTempUsageDetail_20' ) end [2025-01-13 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:22:22] Production.INFO: ==10367== Releasing lock... [2025-01-13 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:22:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:23:05 [end_date_ymd] => 2025-01-13 01:23:05 [RateCDR] => 1 ) [2025-01-13 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:23:05' and `end` < '2025-01-13 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:23:18] Production.INFO: count ==184 [2025-01-13 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:23:05 - End Time 2025-01-13 01:23:05 [2025-01-13 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235549', 'tblTempUsageDetail_20' ) start [2025-01-13 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235549', 'tblTempUsageDetail_20' ) end [2025-01-13 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235549', 'tblTempVendorCDR_20' ) start [2025-01-13 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235549', 'tblTempVendorCDR_20' ) end [2025-01-13 01:23:18] Production.INFO: ProcessCDR(1,14235549,1,1,2) [2025-01-13 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235549', 'tblTempUsageDetail_20' ) start [2025-01-13 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235549', 'tblTempUsageDetail_20' ) end [2025-01-13 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:23:21] Production.INFO: ==10441== Releasing lock... [2025-01-13 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:23:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:24:04 [end_date_ymd] => 2025-01-13 01:24:04 [RateCDR] => 1 ) [2025-01-13 01:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:24:04' and `end` < '2025-01-13 01:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:24:17] Production.INFO: count ==183 [2025-01-13 01:24:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:24:04 - End Time 2025-01-13 01:24:04 [2025-01-13 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235554', 'tblTempUsageDetail_20' ) start [2025-01-13 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235554', 'tblTempUsageDetail_20' ) end [2025-01-13 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235554', 'tblTempVendorCDR_20' ) start [2025-01-13 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235554', 'tblTempVendorCDR_20' ) end [2025-01-13 01:24:17] Production.INFO: ProcessCDR(1,14235554,1,1,2) [2025-01-13 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235554', 'tblTempUsageDetail_20' ) start [2025-01-13 01:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235554', 'tblTempUsageDetail_20' ) end [2025-01-13 01:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:24:20] Production.INFO: ==10512== Releasing lock... [2025-01-13 01:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:24:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:25:05 [end_date_ymd] => 2025-01-13 01:25:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:25:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:25:18] Production.INFO: count ==182 [2025-01-13 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:25:05 - End Time 2025-01-13 01:25:05 [2025-01-13 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235559', 'tblTempUsageDetail_20' ) start [2025-01-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235559', 'tblTempUsageDetail_20' ) end [2025-01-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235559', 'tblTempVendorCDR_20' ) start [2025-01-13 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235559', 'tblTempVendorCDR_20' ) end [2025-01-13 01:25:18] Production.INFO: ProcessCDR(1,14235559,1,1,2) [2025-01-13 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235559', 'tblTempUsageDetail_20' ) start [2025-01-13 01:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235559', 'tblTempUsageDetail_20' ) end [2025-01-13 01:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:25:22] Production.INFO: ==10583== Releasing lock... [2025-01-13 01:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:25:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:26:05 [end_date_ymd] => 2025-01-13 01:26:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:26:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:26:17] Production.INFO: count ==182 [2025-01-13 01:26:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:26:05 - End Time 2025-01-13 01:26:05 [2025-01-13 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235564', 'tblTempUsageDetail_20' ) start [2025-01-13 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235564', 'tblTempUsageDetail_20' ) end [2025-01-13 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235564', 'tblTempVendorCDR_20' ) start [2025-01-13 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235564', 'tblTempVendorCDR_20' ) end [2025-01-13 01:26:17] Production.INFO: ProcessCDR(1,14235564,1,1,2) [2025-01-13 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235564', 'tblTempUsageDetail_20' ) start [2025-01-13 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235564', 'tblTempUsageDetail_20' ) end [2025-01-13 01:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:26:20] Production.INFO: ==10657== Releasing lock... [2025-01-13 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:26:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:27:05 [end_date_ymd] => 2025-01-13 01:27:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:27:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:27:19] Production.INFO: count ==176 [2025-01-13 01:27:19] Production.ERROR: pbx CDR StartTime 2025-01-12 22:27:05 - End Time 2025-01-13 01:27:05 [2025-01-13 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235569', 'tblTempUsageDetail_20' ) start [2025-01-13 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235569', 'tblTempUsageDetail_20' ) end [2025-01-13 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235569', 'tblTempVendorCDR_20' ) start [2025-01-13 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235569', 'tblTempVendorCDR_20' ) end [2025-01-13 01:27:19] Production.INFO: ProcessCDR(1,14235569,1,1,2) [2025-01-13 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235569', 'tblTempUsageDetail_20' ) start [2025-01-13 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235569', 'tblTempUsageDetail_20' ) end [2025-01-13 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:27:22] Production.INFO: ==10730== Releasing lock... [2025-01-13 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:27:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:28:04 [end_date_ymd] => 2025-01-13 01:28:04 [RateCDR] => 1 ) [2025-01-13 01:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:28:04' and `end` < '2025-01-13 01:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:28:17] Production.INFO: count ==175 [2025-01-13 01:28:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:28:04 - End Time 2025-01-13 01:28:04 [2025-01-13 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235574', 'tblTempUsageDetail_20' ) start [2025-01-13 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235574', 'tblTempUsageDetail_20' ) end [2025-01-13 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235574', 'tblTempVendorCDR_20' ) start [2025-01-13 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235574', 'tblTempVendorCDR_20' ) end [2025-01-13 01:28:17] Production.INFO: ProcessCDR(1,14235574,1,1,2) [2025-01-13 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235574', 'tblTempUsageDetail_20' ) start [2025-01-13 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235574', 'tblTempUsageDetail_20' ) end [2025-01-13 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:28:21] Production.INFO: ==10841== Releasing lock... [2025-01-13 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:28:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:29:05 [end_date_ymd] => 2025-01-13 01:29:05 [RateCDR] => 1 ) [2025-01-13 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:29:05' and `end` < '2025-01-13 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:29:18] Production.INFO: count ==175 [2025-01-13 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:29:05 - End Time 2025-01-13 01:29:05 [2025-01-13 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235579', 'tblTempUsageDetail_20' ) start [2025-01-13 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235579', 'tblTempUsageDetail_20' ) end [2025-01-13 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235579', 'tblTempVendorCDR_20' ) start [2025-01-13 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235579', 'tblTempVendorCDR_20' ) end [2025-01-13 01:29:18] Production.INFO: ProcessCDR(1,14235579,1,1,2) [2025-01-13 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235579', 'tblTempUsageDetail_20' ) start [2025-01-13 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235579', 'tblTempUsageDetail_20' ) end [2025-01-13 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:29:22] Production.INFO: ==10912== Releasing lock... [2025-01-13 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:29:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:30:05 [end_date_ymd] => 2025-01-13 01:30:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:30:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:30:17] Production.INFO: count ==183 [2025-01-13 01:30:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:30:05 - End Time 2025-01-13 01:30:05 [2025-01-13 01:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235585', 'tblTempUsageDetail_20' ) start [2025-01-13 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235585', 'tblTempUsageDetail_20' ) end [2025-01-13 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235585', 'tblTempVendorCDR_20' ) start [2025-01-13 01:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235585', 'tblTempVendorCDR_20' ) end [2025-01-13 01:30:17] Production.INFO: ProcessCDR(1,14235585,1,1,2) [2025-01-13 01:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235585', 'tblTempUsageDetail_20' ) start [2025-01-13 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235585', 'tblTempUsageDetail_20' ) end [2025-01-13 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:30:21] Production.INFO: ==10983== Releasing lock... [2025-01-13 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:30:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:31:05 [end_date_ymd] => 2025-01-13 01:31:05 [RateCDR] => 1 ) [2025-01-13 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:31:05' and `end` < '2025-01-13 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:31:19] Production.INFO: count ==196 [2025-01-13 01:31:19] Production.ERROR: pbx CDR StartTime 2025-01-12 22:31:05 - End Time 2025-01-13 01:31:05 [2025-01-13 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235590', 'tblTempUsageDetail_20' ) start [2025-01-13 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235590', 'tblTempUsageDetail_20' ) end [2025-01-13 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235590', 'tblTempVendorCDR_20' ) start [2025-01-13 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235590', 'tblTempVendorCDR_20' ) end [2025-01-13 01:31:19] Production.INFO: ProcessCDR(1,14235590,1,1,2) [2025-01-13 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235590', 'tblTempUsageDetail_20' ) start [2025-01-13 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235590', 'tblTempUsageDetail_20' ) end [2025-01-13 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:31:23] Production.INFO: ==11058== Releasing lock... [2025-01-13 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:31:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 01:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:32:04 [end_date_ymd] => 2025-01-13 01:32:04 [RateCDR] => 1 ) [2025-01-13 01: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` >= '2025-01-12 22:32:04' and `end` < '2025-01-13 01: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 ,'') [2025-01-13 01:32:17] Production.INFO: count ==194 [2025-01-13 01:32:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:32:04 - End Time 2025-01-13 01:32:04 [2025-01-13 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235595', 'tblTempUsageDetail_20' ) start [2025-01-13 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235595', 'tblTempUsageDetail_20' ) end [2025-01-13 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235595', 'tblTempVendorCDR_20' ) start [2025-01-13 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235595', 'tblTempVendorCDR_20' ) end [2025-01-13 01:32:17] Production.INFO: ProcessCDR(1,14235595,1,1,2) [2025-01-13 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235595', 'tblTempUsageDetail_20' ) start [2025-01-13 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235595', 'tblTempUsageDetail_20' ) end [2025-01-13 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:32:21] Production.INFO: ==11130== Releasing lock... [2025-01-13 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:32:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:33:04 [end_date_ymd] => 2025-01-13 01:33:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:33:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:33:17] Production.INFO: count ==197 [2025-01-13 01:33:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:33:04 - End Time 2025-01-13 01:33:04 [2025-01-13 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235600', 'tblTempUsageDetail_20' ) start [2025-01-13 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235600', 'tblTempUsageDetail_20' ) end [2025-01-13 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235600', 'tblTempVendorCDR_20' ) start [2025-01-13 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235600', 'tblTempVendorCDR_20' ) end [2025-01-13 01:33:17] Production.INFO: ProcessCDR(1,14235600,1,1,2) [2025-01-13 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235600', 'tblTempUsageDetail_20' ) start [2025-01-13 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235600', 'tblTempUsageDetail_20' ) end [2025-01-13 01:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:33:20] Production.INFO: ==11204== Releasing lock... [2025-01-13 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:33:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:34:06 [end_date_ymd] => 2025-01-13 01:34:06 [RateCDR] => 1 ) [2025-01-13 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:34:06' and `end` < '2025-01-13 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:34:18] Production.INFO: count ==197 [2025-01-13 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:34:06 - End Time 2025-01-13 01:34:06 [2025-01-13 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235605', 'tblTempUsageDetail_20' ) start [2025-01-13 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235605', 'tblTempUsageDetail_20' ) end [2025-01-13 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235605', 'tblTempVendorCDR_20' ) start [2025-01-13 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235605', 'tblTempVendorCDR_20' ) end [2025-01-13 01:34:18] Production.INFO: ProcessCDR(1,14235605,1,1,2) [2025-01-13 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235605', 'tblTempUsageDetail_20' ) start [2025-01-13 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235605', 'tblTempUsageDetail_20' ) end [2025-01-13 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:34:21] Production.INFO: ==11274== Releasing lock... [2025-01-13 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:34:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:35:05 [end_date_ymd] => 2025-01-13 01:35:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:35:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:35:18] Production.INFO: count ==195 [2025-01-13 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:35:05 - End Time 2025-01-13 01:35:05 [2025-01-13 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235610', 'tblTempUsageDetail_20' ) start [2025-01-13 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235610', 'tblTempUsageDetail_20' ) end [2025-01-13 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235610', 'tblTempVendorCDR_20' ) start [2025-01-13 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235610', 'tblTempVendorCDR_20' ) end [2025-01-13 01:35:18] Production.INFO: ProcessCDR(1,14235610,1,1,2) [2025-01-13 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235610', 'tblTempUsageDetail_20' ) start [2025-01-13 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235610', 'tblTempUsageDetail_20' ) end [2025-01-13 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:35:21] Production.INFO: ==11345== Releasing lock... [2025-01-13 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:35:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:36:05 [end_date_ymd] => 2025-01-13 01:36:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:36:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:36:18] Production.INFO: count ==194 [2025-01-13 01:36:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:36:05 - End Time 2025-01-13 01:36:05 [2025-01-13 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235615', 'tblTempUsageDetail_20' ) start [2025-01-13 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235615', 'tblTempUsageDetail_20' ) end [2025-01-13 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235615', 'tblTempVendorCDR_20' ) start [2025-01-13 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235615', 'tblTempVendorCDR_20' ) end [2025-01-13 01:36:18] Production.INFO: ProcessCDR(1,14235615,1,1,2) [2025-01-13 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235615', 'tblTempUsageDetail_20' ) start [2025-01-13 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235615', 'tblTempUsageDetail_20' ) end [2025-01-13 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:36:21] Production.INFO: ==11418== Releasing lock... [2025-01-13 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:36:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:37:05 [end_date_ymd] => 2025-01-13 01:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:37:17] Production.INFO: count ==194 [2025-01-13 01:37:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:37:05 - End Time 2025-01-13 01:37:05 [2025-01-13 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235620', 'tblTempUsageDetail_20' ) start [2025-01-13 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235620', 'tblTempUsageDetail_20' ) end [2025-01-13 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235620', 'tblTempVendorCDR_20' ) start [2025-01-13 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235620', 'tblTempVendorCDR_20' ) end [2025-01-13 01:37:17] Production.INFO: ProcessCDR(1,14235620,1,1,2) [2025-01-13 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235620', 'tblTempUsageDetail_20' ) start [2025-01-13 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235620', 'tblTempUsageDetail_20' ) end [2025-01-13 01:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:37:20] Production.INFO: ==11490== Releasing lock... [2025-01-13 01:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:37:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:38:04 [end_date_ymd] => 2025-01-13 01:38:04 [RateCDR] => 1 ) [2025-01-13 01:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:38:04' and `end` < '2025-01-13 01:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:38:17] Production.INFO: count ==194 [2025-01-13 01:38:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:38:04 - End Time 2025-01-13 01:38:04 [2025-01-13 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235625', 'tblTempUsageDetail_20' ) start [2025-01-13 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235625', 'tblTempUsageDetail_20' ) end [2025-01-13 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235625', 'tblTempVendorCDR_20' ) start [2025-01-13 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235625', 'tblTempVendorCDR_20' ) end [2025-01-13 01:38:17] Production.INFO: ProcessCDR(1,14235625,1,1,2) [2025-01-13 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235625', 'tblTempUsageDetail_20' ) start [2025-01-13 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235625', 'tblTempUsageDetail_20' ) end [2025-01-13 01:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:38:20] Production.INFO: ==11560== Releasing lock... [2025-01-13 01:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:38:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:39:05 [end_date_ymd] => 2025-01-13 01:39:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:39:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:39:17] Production.INFO: count ==194 [2025-01-13 01:39:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:39:05 - End Time 2025-01-13 01:39:05 [2025-01-13 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235630', 'tblTempUsageDetail_20' ) start [2025-01-13 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235630', 'tblTempUsageDetail_20' ) end [2025-01-13 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235630', 'tblTempVendorCDR_20' ) start [2025-01-13 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235630', 'tblTempVendorCDR_20' ) end [2025-01-13 01:39:17] Production.INFO: ProcessCDR(1,14235630,1,1,2) [2025-01-13 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235630', 'tblTempUsageDetail_20' ) start [2025-01-13 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235630', 'tblTempUsageDetail_20' ) end [2025-01-13 01:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:39:20] Production.INFO: ==11633== Releasing lock... [2025-01-13 01:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:39:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:40:06 [end_date_ymd] => 2025-01-13 01:40:06 [RateCDR] => 1 ) [2025-01-13 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:40:06' and `end` < '2025-01-13 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:40:18] Production.INFO: count ==200 [2025-01-13 01:40:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:40:06 - End Time 2025-01-13 01:40:06 [2025-01-13 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235636', 'tblTempUsageDetail_20' ) start [2025-01-13 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235636', 'tblTempUsageDetail_20' ) end [2025-01-13 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235636', 'tblTempVendorCDR_20' ) start [2025-01-13 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235636', 'tblTempVendorCDR_20' ) end [2025-01-13 01:40:18] Production.INFO: ProcessCDR(1,14235636,1,1,2) [2025-01-13 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235636', 'tblTempUsageDetail_20' ) start [2025-01-13 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235636', 'tblTempUsageDetail_20' ) end [2025-01-13 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:40:22] Production.INFO: ==11706== Releasing lock... [2025-01-13 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:40:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:41:05 [end_date_ymd] => 2025-01-13 01:41:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:41:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:41:17] Production.INFO: count ==200 [2025-01-13 01:41:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:41:05 - End Time 2025-01-13 01:41:05 [2025-01-13 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235641', 'tblTempUsageDetail_20' ) start [2025-01-13 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235641', 'tblTempUsageDetail_20' ) end [2025-01-13 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235641', 'tblTempVendorCDR_20' ) start [2025-01-13 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235641', 'tblTempVendorCDR_20' ) end [2025-01-13 01:41:17] Production.INFO: ProcessCDR(1,14235641,1,1,2) [2025-01-13 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235641', 'tblTempUsageDetail_20' ) start [2025-01-13 01:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235641', 'tblTempUsageDetail_20' ) end [2025-01-13 01:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:41:20] Production.INFO: ==11777== Releasing lock... [2025-01-13 01:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:41:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:42:05 [end_date_ymd] => 2025-01-13 01:42:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:42:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:42:18] Production.INFO: count ==200 [2025-01-13 01:42:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:42:05 - End Time 2025-01-13 01:42:05 [2025-01-13 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235646', 'tblTempUsageDetail_20' ) start [2025-01-13 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235646', 'tblTempUsageDetail_20' ) end [2025-01-13 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235646', 'tblTempVendorCDR_20' ) start [2025-01-13 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235646', 'tblTempVendorCDR_20' ) end [2025-01-13 01:42:18] Production.INFO: ProcessCDR(1,14235646,1,1,2) [2025-01-13 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235646', 'tblTempUsageDetail_20' ) start [2025-01-13 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235646', 'tblTempUsageDetail_20' ) end [2025-01-13 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:42:21] Production.INFO: ==11847== Releasing lock... [2025-01-13 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:42:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:43:04 [end_date_ymd] => 2025-01-13 01:43:04 [RateCDR] => 1 ) [2025-01-13 01:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:43:04' and `end` < '2025-01-13 01:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:43:17] Production.INFO: count ==200 [2025-01-13 01:43:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:43:04 - End Time 2025-01-13 01:43:04 [2025-01-13 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235651', 'tblTempUsageDetail_20' ) start [2025-01-13 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235651', 'tblTempUsageDetail_20' ) end [2025-01-13 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235651', 'tblTempVendorCDR_20' ) start [2025-01-13 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235651', 'tblTempVendorCDR_20' ) end [2025-01-13 01:43:17] Production.INFO: ProcessCDR(1,14235651,1,1,2) [2025-01-13 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235651', 'tblTempUsageDetail_20' ) start [2025-01-13 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235651', 'tblTempUsageDetail_20' ) end [2025-01-13 01:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:43:20] Production.INFO: ==11957== Releasing lock... [2025-01-13 01:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:43:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:44:05 [end_date_ymd] => 2025-01-13 01:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:44:18] Production.INFO: count ==200 [2025-01-13 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:44:05 - End Time 2025-01-13 01:44:05 [2025-01-13 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235656', 'tblTempUsageDetail_20' ) start [2025-01-13 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235656', 'tblTempUsageDetail_20' ) end [2025-01-13 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235656', 'tblTempVendorCDR_20' ) start [2025-01-13 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235656', 'tblTempVendorCDR_20' ) end [2025-01-13 01:44:18] Production.INFO: ProcessCDR(1,14235656,1,1,2) [2025-01-13 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235656', 'tblTempUsageDetail_20' ) start [2025-01-13 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235656', 'tblTempUsageDetail_20' ) end [2025-01-13 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:44:21] Production.INFO: ==12030== Releasing lock... [2025-01-13 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:44:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:45:04 [end_date_ymd] => 2025-01-13 01:45:04 [RateCDR] => 1 ) [2025-01-13 01: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` >= '2025-01-12 22:45:04' and `end` < '2025-01-13 01: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 ,'') [2025-01-13 01:45:18] Production.INFO: count ==200 [2025-01-13 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:45:04 - End Time 2025-01-13 01:45:04 [2025-01-13 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235661', 'tblTempUsageDetail_20' ) start [2025-01-13 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235661', 'tblTempUsageDetail_20' ) end [2025-01-13 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235661', 'tblTempVendorCDR_20' ) start [2025-01-13 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235661', 'tblTempVendorCDR_20' ) end [2025-01-13 01:45:18] Production.INFO: ProcessCDR(1,14235661,1,1,2) [2025-01-13 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235661', 'tblTempUsageDetail_20' ) start [2025-01-13 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235661', 'tblTempUsageDetail_20' ) end [2025-01-13 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:45:21] Production.INFO: ==12100== Releasing lock... [2025-01-13 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:45:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:46:05 [end_date_ymd] => 2025-01-13 01:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:46:05' and `end` < '2025-01-13 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:46:18] Production.INFO: count ==200 [2025-01-13 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:46:05 - End Time 2025-01-13 01:46:05 [2025-01-13 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235666', 'tblTempUsageDetail_20' ) start [2025-01-13 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235666', 'tblTempUsageDetail_20' ) end [2025-01-13 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235666', 'tblTempVendorCDR_20' ) start [2025-01-13 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235666', 'tblTempVendorCDR_20' ) end [2025-01-13 01:46:18] Production.INFO: ProcessCDR(1,14235666,1,1,2) [2025-01-13 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235666', 'tblTempUsageDetail_20' ) start [2025-01-13 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235666', 'tblTempUsageDetail_20' ) end [2025-01-13 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:46:21] Production.INFO: ==12178== Releasing lock... [2025-01-13 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:46:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:47:04 [end_date_ymd] => 2025-01-13 01:47:04 [RateCDR] => 1 ) [2025-01-13 01:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:47:04' and `end` < '2025-01-13 01:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:47:17] Production.INFO: count ==198 [2025-01-13 01:47:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:47:04 - End Time 2025-01-13 01:47:04 [2025-01-13 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235671', 'tblTempUsageDetail_20' ) start [2025-01-13 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235671', 'tblTempUsageDetail_20' ) end [2025-01-13 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235671', 'tblTempVendorCDR_20' ) start [2025-01-13 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235671', 'tblTempVendorCDR_20' ) end [2025-01-13 01:47:17] Production.INFO: ProcessCDR(1,14235671,1,1,2) [2025-01-13 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235671', 'tblTempUsageDetail_20' ) start [2025-01-13 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235671', 'tblTempUsageDetail_20' ) end [2025-01-13 01:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:47:20] Production.INFO: ==12248== Releasing lock... [2025-01-13 01:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:47:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:48:05 [end_date_ymd] => 2025-01-13 01:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:48:18] Production.INFO: count ==198 [2025-01-13 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:48:05 - End Time 2025-01-13 01:48:05 [2025-01-13 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235676', 'tblTempUsageDetail_20' ) start [2025-01-13 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235676', 'tblTempUsageDetail_20' ) end [2025-01-13 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235676', 'tblTempVendorCDR_20' ) start [2025-01-13 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235676', 'tblTempVendorCDR_20' ) end [2025-01-13 01:48:18] Production.INFO: ProcessCDR(1,14235676,1,1,2) [2025-01-13 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235676', 'tblTempUsageDetail_20' ) start [2025-01-13 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235676', 'tblTempUsageDetail_20' ) end [2025-01-13 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:48:21] Production.INFO: ==12319== Releasing lock... [2025-01-13 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:48:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:49:04 [end_date_ymd] => 2025-01-13 01:49:04 [RateCDR] => 1 ) [2025-01-13 01:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:49:04' and `end` < '2025-01-13 01:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:49:18] Production.INFO: count ==198 [2025-01-13 01:49:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:49:04 - End Time 2025-01-13 01:49:04 [2025-01-13 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235681', 'tblTempUsageDetail_20' ) start [2025-01-13 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235681', 'tblTempUsageDetail_20' ) end [2025-01-13 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235681', 'tblTempVendorCDR_20' ) start [2025-01-13 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235681', 'tblTempVendorCDR_20' ) end [2025-01-13 01:49:18] Production.INFO: ProcessCDR(1,14235681,1,1,2) [2025-01-13 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235681', 'tblTempUsageDetail_20' ) start [2025-01-13 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235681', 'tblTempUsageDetail_20' ) end [2025-01-13 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:49:21] Production.INFO: ==12391== Releasing lock... [2025-01-13 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:49:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:50:06 [end_date_ymd] => 2025-01-13 01:50:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:50:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:50:18] Production.INFO: count ==203 [2025-01-13 01:50:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:50:06 - End Time 2025-01-13 01:50:06 [2025-01-13 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235686', 'tblTempUsageDetail_20' ) start [2025-01-13 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235686', 'tblTempUsageDetail_20' ) end [2025-01-13 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235686', 'tblTempVendorCDR_20' ) start [2025-01-13 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235686', 'tblTempVendorCDR_20' ) end [2025-01-13 01:50:18] Production.INFO: ProcessCDR(1,14235686,1,1,2) [2025-01-13 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235686', 'tblTempUsageDetail_20' ) start [2025-01-13 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235686', 'tblTempUsageDetail_20' ) end [2025-01-13 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:50:21] Production.INFO: ==12466== Releasing lock... [2025-01-13 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:50:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:51:05 [end_date_ymd] => 2025-01-13 01:51:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:51:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:51:19] Production.INFO: count ==202 [2025-01-13 01:51:19] Production.ERROR: pbx CDR StartTime 2025-01-12 22:51:05 - End Time 2025-01-13 01:51:05 [2025-01-13 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235692', 'tblTempUsageDetail_20' ) start [2025-01-13 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235692', 'tblTempUsageDetail_20' ) end [2025-01-13 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235692', 'tblTempVendorCDR_20' ) start [2025-01-13 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235692', 'tblTempVendorCDR_20' ) end [2025-01-13 01:51:19] Production.INFO: ProcessCDR(1,14235692,1,1,2) [2025-01-13 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235692', 'tblTempUsageDetail_20' ) start [2025-01-13 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235692', 'tblTempUsageDetail_20' ) end [2025-01-13 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:51:22] Production.INFO: ==12537== Releasing lock... [2025-01-13 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:51:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:52:06 [end_date_ymd] => 2025-01-13 01:52:06 [RateCDR] => 1 ) [2025-01-13 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:52:06' and `end` < '2025-01-13 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:52:19] Production.INFO: count ==196 [2025-01-13 01:52:19] Production.ERROR: pbx CDR StartTime 2025-01-12 22:52:06 - End Time 2025-01-13 01:52:06 [2025-01-13 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235697', 'tblTempUsageDetail_20' ) start [2025-01-13 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235697', 'tblTempUsageDetail_20' ) end [2025-01-13 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235697', 'tblTempVendorCDR_20' ) start [2025-01-13 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235697', 'tblTempVendorCDR_20' ) end [2025-01-13 01:52:19] Production.INFO: ProcessCDR(1,14235697,1,1,2) [2025-01-13 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235697', 'tblTempUsageDetail_20' ) start [2025-01-13 01:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235697', 'tblTempUsageDetail_20' ) end [2025-01-13 01:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:52:23] Production.INFO: ==12610== Releasing lock... [2025-01-13 01:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:52:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 01:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:53:04 [end_date_ymd] => 2025-01-13 01:53:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:53:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:53:18] Production.INFO: count ==195 [2025-01-13 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:53:04 - End Time 2025-01-13 01:53:04 [2025-01-13 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235702', 'tblTempUsageDetail_20' ) start [2025-01-13 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235702', 'tblTempUsageDetail_20' ) end [2025-01-13 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235702', 'tblTempVendorCDR_20' ) start [2025-01-13 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235702', 'tblTempVendorCDR_20' ) end [2025-01-13 01:53:18] Production.INFO: ProcessCDR(1,14235702,1,1,2) [2025-01-13 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235702', 'tblTempUsageDetail_20' ) start [2025-01-13 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235702', 'tblTempUsageDetail_20' ) end [2025-01-13 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:53:21] Production.INFO: ==12679== Releasing lock... [2025-01-13 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:54:05 [end_date_ymd] => 2025-01-13 01:54:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:54:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:54:18] Production.INFO: count ==193 [2025-01-13 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:54:05 - End Time 2025-01-13 01:54:05 [2025-01-13 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235707', 'tblTempUsageDetail_20' ) start [2025-01-13 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235707', 'tblTempUsageDetail_20' ) end [2025-01-13 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235707', 'tblTempVendorCDR_20' ) start [2025-01-13 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235707', 'tblTempVendorCDR_20' ) end [2025-01-13 01:54:18] Production.INFO: ProcessCDR(1,14235707,1,1,2) [2025-01-13 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235707', 'tblTempUsageDetail_20' ) start [2025-01-13 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235707', 'tblTempUsageDetail_20' ) end [2025-01-13 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:54:21] Production.INFO: ==12749== Releasing lock... [2025-01-13 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:55:05 [end_date_ymd] => 2025-01-13 01:55:05 [RateCDR] => 1 ) [2025-01-13 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:55:05' and `end` < '2025-01-13 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:55:18] Production.INFO: count ==191 [2025-01-13 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:55:05 - End Time 2025-01-13 01:55:05 [2025-01-13 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235712', 'tblTempUsageDetail_20' ) start [2025-01-13 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235712', 'tblTempUsageDetail_20' ) end [2025-01-13 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235712', 'tblTempVendorCDR_20' ) start [2025-01-13 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235712', 'tblTempVendorCDR_20' ) end [2025-01-13 01:55:18] Production.INFO: ProcessCDR(1,14235712,1,1,2) [2025-01-13 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235712', 'tblTempUsageDetail_20' ) start [2025-01-13 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235712', 'tblTempUsageDetail_20' ) end [2025-01-13 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:55:21] Production.INFO: ==12818== Releasing lock... [2025-01-13 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:56:05 [end_date_ymd] => 2025-01-13 01:56:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:56:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:56:18] Production.INFO: count ==190 [2025-01-13 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:56:05 - End Time 2025-01-13 01:56:05 [2025-01-13 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235717', 'tblTempUsageDetail_20' ) start [2025-01-13 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235717', 'tblTempUsageDetail_20' ) end [2025-01-13 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235717', 'tblTempVendorCDR_20' ) start [2025-01-13 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235717', 'tblTempVendorCDR_20' ) end [2025-01-13 01:56:18] Production.INFO: ProcessCDR(1,14235717,1,1,2) [2025-01-13 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235717', 'tblTempUsageDetail_20' ) start [2025-01-13 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235717', 'tblTempUsageDetail_20' ) end [2025-01-13 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:56:21] Production.INFO: ==12890== Releasing lock... [2025-01-13 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:57:05 [end_date_ymd] => 2025-01-13 01:57:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:57:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:57:17] Production.INFO: count ==190 [2025-01-13 01:57:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:57:05 - End Time 2025-01-13 01:57:05 [2025-01-13 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235722', 'tblTempUsageDetail_20' ) start [2025-01-13 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235722', 'tblTempUsageDetail_20' ) end [2025-01-13 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235722', 'tblTempVendorCDR_20' ) start [2025-01-13 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235722', 'tblTempVendorCDR_20' ) end [2025-01-13 01:57:17] Production.INFO: ProcessCDR(1,14235722,1,1,2) [2025-01-13 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235722', 'tblTempUsageDetail_20' ) start [2025-01-13 01:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235722', 'tblTempUsageDetail_20' ) end [2025-01-13 01:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:57:21] Production.INFO: ==12960== Releasing lock... [2025-01-13 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:58:05 [end_date_ymd] => 2025-01-13 01:58:05 [RateCDR] => 1 ) [2025-01-13 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 22:58:05' and `end` < '2025-01-13 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 01:58:18] Production.INFO: count ==190 [2025-01-13 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-12 22:58:05 - End Time 2025-01-13 01:58:05 [2025-01-13 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235727', 'tblTempUsageDetail_20' ) start [2025-01-13 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235727', 'tblTempUsageDetail_20' ) end [2025-01-13 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235727', 'tblTempVendorCDR_20' ) start [2025-01-13 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235727', 'tblTempVendorCDR_20' ) end [2025-01-13 01:58:18] Production.INFO: ProcessCDR(1,14235727,1,1,2) [2025-01-13 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235727', 'tblTempUsageDetail_20' ) start [2025-01-13 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235727', 'tblTempUsageDetail_20' ) end [2025-01-13 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:58:21] Production.INFO: ==13033== Releasing lock... [2025-01-13 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 22:59:05 [end_date_ymd] => 2025-01-13 01:59:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 22:59:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 01:59:17] Production.INFO: count ==190 [2025-01-13 01:59:17] Production.ERROR: pbx CDR StartTime 2025-01-12 22:59:05 - End Time 2025-01-13 01:59:05 [2025-01-13 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235732', 'tblTempUsageDetail_20' ) start [2025-01-13 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235732', 'tblTempUsageDetail_20' ) end [2025-01-13 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235732', 'tblTempVendorCDR_20' ) start [2025-01-13 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235732', 'tblTempVendorCDR_20' ) end [2025-01-13 01:59:17] Production.INFO: ProcessCDR(1,14235732,1,1,2) [2025-01-13 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235732', 'tblTempUsageDetail_20' ) start [2025-01-13 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235732', 'tblTempUsageDetail_20' ) end [2025-01-13 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 01:59:21] Production.INFO: ==13144== Releasing lock... [2025-01-13 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 01:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:00:06 [end_date_ymd] => 2025-01-13 02:00:06 [RateCDR] => 1 ) [2025-01-13 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:00:06' and `end` < '2025-01-13 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:00:19] Production.INFO: count ==195 [2025-01-13 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-12 23:00:06 - End Time 2025-01-13 02:00:06 [2025-01-13 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235738', 'tblTempUsageDetail_20' ) start [2025-01-13 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235738', 'tblTempUsageDetail_20' ) end [2025-01-13 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235738', 'tblTempVendorCDR_20' ) start [2025-01-13 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235738', 'tblTempVendorCDR_20' ) end [2025-01-13 02:00:19] Production.INFO: ProcessCDR(1,14235738,1,1,2) [2025-01-13 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235738', 'tblTempUsageDetail_20' ) start [2025-01-13 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235738', 'tblTempUsageDetail_20' ) end [2025-01-13 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:00:22] Production.INFO: ==13220== Releasing lock... [2025-01-13 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:01:05 [end_date_ymd] => 2025-01-13 02:01:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:01:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:01:18] Production.INFO: count ==195 [2025-01-13 02:01:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:01:05 - End Time 2025-01-13 02:01:05 [2025-01-13 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235743', 'tblTempUsageDetail_20' ) start [2025-01-13 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235743', 'tblTempUsageDetail_20' ) end [2025-01-13 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235743', 'tblTempVendorCDR_20' ) start [2025-01-13 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235743', 'tblTempVendorCDR_20' ) end [2025-01-13 02:01:18] Production.INFO: ProcessCDR(1,14235743,1,1,2) [2025-01-13 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235743', 'tblTempUsageDetail_20' ) start [2025-01-13 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235743', 'tblTempUsageDetail_20' ) end [2025-01-13 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:01:21] Production.INFO: ==13392== Releasing lock... [2025-01-13 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:02:05 [end_date_ymd] => 2025-01-13 02:02:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:02:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:02:18] Production.INFO: count ==195 [2025-01-13 02:02:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:02:05 - End Time 2025-01-13 02:02:05 [2025-01-13 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235748', 'tblTempUsageDetail_20' ) start [2025-01-13 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235748', 'tblTempUsageDetail_20' ) end [2025-01-13 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235748', 'tblTempVendorCDR_20' ) start [2025-01-13 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235748', 'tblTempVendorCDR_20' ) end [2025-01-13 02:02:18] Production.INFO: ProcessCDR(1,14235748,1,1,2) [2025-01-13 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235748', 'tblTempUsageDetail_20' ) start [2025-01-13 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235748', 'tblTempUsageDetail_20' ) end [2025-01-13 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:02:21] Production.INFO: ==13463== Releasing lock... [2025-01-13 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:03:04 [end_date_ymd] => 2025-01-13 02:03:04 [RateCDR] => 1 ) [2025-01-13 02:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:03:04' and `end` < '2025-01-13 02:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:03:18] Production.INFO: count ==193 [2025-01-13 02:03:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:03:04 - End Time 2025-01-13 02:03:04 [2025-01-13 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235750', 'tblTempUsageDetail_20' ) start [2025-01-13 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235750', 'tblTempUsageDetail_20' ) end [2025-01-13 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235750', 'tblTempVendorCDR_20' ) start [2025-01-13 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235750', 'tblTempVendorCDR_20' ) end [2025-01-13 02:03:18] Production.INFO: ProcessCDR(1,14235750,1,1,2) [2025-01-13 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235750', 'tblTempUsageDetail_20' ) start [2025-01-13 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235750', 'tblTempUsageDetail_20' ) end [2025-01-13 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:03:21] Production.INFO: ==13538== Releasing lock... [2025-01-13 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:04:05 [end_date_ymd] => 2025-01-13 02:04:05 [RateCDR] => 1 ) [2025-01-13 02: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` >= '2025-01-12 23:04:05' and `end` < '2025-01-13 02: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 ,'') [2025-01-13 02:04:18] Production.INFO: count ==192 [2025-01-13 02:04:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:04:05 - End Time 2025-01-13 02:04:05 [2025-01-13 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235758', 'tblTempUsageDetail_20' ) start [2025-01-13 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235758', 'tblTempUsageDetail_20' ) end [2025-01-13 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235758', 'tblTempVendorCDR_20' ) start [2025-01-13 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235758', 'tblTempVendorCDR_20' ) end [2025-01-13 02:04:18] Production.INFO: ProcessCDR(1,14235758,1,1,2) [2025-01-13 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235758', 'tblTempUsageDetail_20' ) start [2025-01-13 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235758', 'tblTempUsageDetail_20' ) end [2025-01-13 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:04:21] Production.INFO: ==13611== Releasing lock... [2025-01-13 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:05:04 [end_date_ymd] => 2025-01-13 02:05:04 [RateCDR] => 1 ) [2025-01-13 02:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:05:04' and `end` < '2025-01-13 02:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:05:17] Production.INFO: count ==191 [2025-01-13 02:05:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:05:04 - End Time 2025-01-13 02:05:04 [2025-01-13 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235763', 'tblTempUsageDetail_20' ) start [2025-01-13 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235763', 'tblTempUsageDetail_20' ) end [2025-01-13 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235763', 'tblTempVendorCDR_20' ) start [2025-01-13 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235763', 'tblTempVendorCDR_20' ) end [2025-01-13 02:05:17] Production.INFO: ProcessCDR(1,14235763,1,1,2) [2025-01-13 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235763', 'tblTempUsageDetail_20' ) start [2025-01-13 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235763', 'tblTempUsageDetail_20' ) end [2025-01-13 02:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:05:20] Production.INFO: ==13683== Releasing lock... [2025-01-13 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:05:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:06:05 [end_date_ymd] => 2025-01-13 02:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:06:18] Production.INFO: count ==191 [2025-01-13 02:06:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:06:05 - End Time 2025-01-13 02:06:05 [2025-01-13 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235768', 'tblTempUsageDetail_20' ) start [2025-01-13 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235768', 'tblTempUsageDetail_20' ) end [2025-01-13 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235768', 'tblTempVendorCDR_20' ) start [2025-01-13 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235768', 'tblTempVendorCDR_20' ) end [2025-01-13 02:06:18] Production.INFO: ProcessCDR(1,14235768,1,1,2) [2025-01-13 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235768', 'tblTempUsageDetail_20' ) start [2025-01-13 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235768', 'tblTempUsageDetail_20' ) end [2025-01-13 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:06:21] Production.INFO: ==13759== Releasing lock... [2025-01-13 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:07:05 [end_date_ymd] => 2025-01-13 02:07:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:07:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:07:18] Production.INFO: count ==191 [2025-01-13 02:07:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:07:05 - End Time 2025-01-13 02:07:05 [2025-01-13 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235773', 'tblTempUsageDetail_20' ) start [2025-01-13 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235773', 'tblTempUsageDetail_20' ) end [2025-01-13 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235773', 'tblTempVendorCDR_20' ) start [2025-01-13 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235773', 'tblTempVendorCDR_20' ) end [2025-01-13 02:07:18] Production.INFO: ProcessCDR(1,14235773,1,1,2) [2025-01-13 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235773', 'tblTempUsageDetail_20' ) start [2025-01-13 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235773', 'tblTempUsageDetail_20' ) end [2025-01-13 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:07:21] Production.INFO: ==13831== Releasing lock... [2025-01-13 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:08:05 [end_date_ymd] => 2025-01-13 02:08:05 [RateCDR] => 1 ) [2025-01-13 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:08:05' and `end` < '2025-01-13 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:08:18] Production.INFO: count ==191 [2025-01-13 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:08:05 - End Time 2025-01-13 02:08:05 [2025-01-13 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235778', 'tblTempUsageDetail_20' ) start [2025-01-13 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235778', 'tblTempUsageDetail_20' ) end [2025-01-13 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235778', 'tblTempVendorCDR_20' ) start [2025-01-13 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235778', 'tblTempVendorCDR_20' ) end [2025-01-13 02:08:18] Production.INFO: ProcessCDR(1,14235778,1,1,2) [2025-01-13 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235778', 'tblTempUsageDetail_20' ) start [2025-01-13 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235778', 'tblTempUsageDetail_20' ) end [2025-01-13 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:08:21] Production.INFO: ==13901== Releasing lock... [2025-01-13 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:09:05 [end_date_ymd] => 2025-01-13 02:09:05 [RateCDR] => 1 ) [2025-01-13 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:09:05' and `end` < '2025-01-13 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:09:19] Production.INFO: count ==191 [2025-01-13 02:09:19] Production.ERROR: pbx CDR StartTime 2025-01-12 23:09:05 - End Time 2025-01-13 02:09:05 [2025-01-13 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235783', 'tblTempUsageDetail_20' ) start [2025-01-13 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235783', 'tblTempUsageDetail_20' ) end [2025-01-13 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235783', 'tblTempVendorCDR_20' ) start [2025-01-13 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235783', 'tblTempVendorCDR_20' ) end [2025-01-13 02:09:19] Production.INFO: ProcessCDR(1,14235783,1,1,2) [2025-01-13 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235783', 'tblTempUsageDetail_20' ) start [2025-01-13 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235783', 'tblTempUsageDetail_20' ) end [2025-01-13 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:09:22] Production.INFO: ==13970== Releasing lock... [2025-01-13 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:10:05 [end_date_ymd] => 2025-01-13 02:10:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:10:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:10:17] Production.INFO: count ==197 [2025-01-13 02:10:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:10:05 - End Time 2025-01-13 02:10:05 [2025-01-13 02:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235789', 'tblTempUsageDetail_20' ) start [2025-01-13 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235789', 'tblTempUsageDetail_20' ) end [2025-01-13 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235789', 'tblTempVendorCDR_20' ) start [2025-01-13 02:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235789', 'tblTempVendorCDR_20' ) end [2025-01-13 02:10:17] Production.INFO: ProcessCDR(1,14235789,1,1,2) [2025-01-13 02:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235789', 'tblTempUsageDetail_20' ) start [2025-01-13 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235789', 'tblTempUsageDetail_20' ) end [2025-01-13 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:10:21] Production.INFO: ==14043== Releasing lock... [2025-01-13 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:11:05 [end_date_ymd] => 2025-01-13 02:11:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:11:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:11:18] Production.INFO: count ==197 [2025-01-13 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:11:05 - End Time 2025-01-13 02:11:05 [2025-01-13 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235794', 'tblTempUsageDetail_20' ) start [2025-01-13 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235794', 'tblTempUsageDetail_20' ) end [2025-01-13 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235794', 'tblTempVendorCDR_20' ) start [2025-01-13 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235794', 'tblTempVendorCDR_20' ) end [2025-01-13 02:11:18] Production.INFO: ProcessCDR(1,14235794,1,1,2) [2025-01-13 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235794', 'tblTempUsageDetail_20' ) start [2025-01-13 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235794', 'tblTempUsageDetail_20' ) end [2025-01-13 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:11:21] Production.INFO: ==14116== Releasing lock... [2025-01-13 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:12:05 [end_date_ymd] => 2025-01-13 02:12:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:12:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:12:17] Production.INFO: count ==197 [2025-01-13 02:12:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:12:05 - End Time 2025-01-13 02:12:05 [2025-01-13 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235799', 'tblTempUsageDetail_20' ) start [2025-01-13 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235799', 'tblTempUsageDetail_20' ) end [2025-01-13 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235799', 'tblTempVendorCDR_20' ) start [2025-01-13 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235799', 'tblTempVendorCDR_20' ) end [2025-01-13 02:12:17] Production.INFO: ProcessCDR(1,14235799,1,1,2) [2025-01-13 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235799', 'tblTempUsageDetail_20' ) start [2025-01-13 02:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235799', 'tblTempUsageDetail_20' ) end [2025-01-13 02:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:12:20] Production.INFO: ==14190== Releasing lock... [2025-01-13 02:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:12:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:13:05 [end_date_ymd] => 2025-01-13 02:13:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:13:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:13:18] Production.INFO: count ==197 [2025-01-13 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:13:05 - End Time 2025-01-13 02:13:05 [2025-01-13 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235804', 'tblTempUsageDetail_20' ) start [2025-01-13 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235804', 'tblTempUsageDetail_20' ) end [2025-01-13 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235804', 'tblTempVendorCDR_20' ) start [2025-01-13 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235804', 'tblTempVendorCDR_20' ) end [2025-01-13 02:13:18] Production.INFO: ProcessCDR(1,14235804,1,1,2) [2025-01-13 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235804', 'tblTempUsageDetail_20' ) start [2025-01-13 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235804', 'tblTempUsageDetail_20' ) end [2025-01-13 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:13:21] Production.INFO: ==14260== Releasing lock... [2025-01-13 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:14:05 [end_date_ymd] => 2025-01-13 02:14:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:14:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:14:17] Production.INFO: count ==197 [2025-01-13 02:14:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:14:05 - End Time 2025-01-13 02:14:05 [2025-01-13 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235809', 'tblTempUsageDetail_20' ) start [2025-01-13 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235809', 'tblTempUsageDetail_20' ) end [2025-01-13 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235809', 'tblTempVendorCDR_20' ) start [2025-01-13 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235809', 'tblTempVendorCDR_20' ) end [2025-01-13 02:14:17] Production.INFO: ProcessCDR(1,14235809,1,1,2) [2025-01-13 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235809', 'tblTempUsageDetail_20' ) start [2025-01-13 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235809', 'tblTempUsageDetail_20' ) end [2025-01-13 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:14:21] Production.INFO: ==14331== Releasing lock... [2025-01-13 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:15:05 [end_date_ymd] => 2025-01-13 02:15:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:15:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:15:18] Production.INFO: count ==197 [2025-01-13 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:15:05 - End Time 2025-01-13 02:15:05 [2025-01-13 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235814', 'tblTempUsageDetail_20' ) start [2025-01-13 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235814', 'tblTempUsageDetail_20' ) end [2025-01-13 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235814', 'tblTempVendorCDR_20' ) start [2025-01-13 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235814', 'tblTempVendorCDR_20' ) end [2025-01-13 02:15:18] Production.INFO: ProcessCDR(1,14235814,1,1,2) [2025-01-13 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235814', 'tblTempUsageDetail_20' ) start [2025-01-13 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235814', 'tblTempUsageDetail_20' ) end [2025-01-13 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:15:21] Production.INFO: ==14441== Releasing lock... [2025-01-13 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:16:05 [end_date_ymd] => 2025-01-13 02:16:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:16:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:16:18] Production.INFO: count ==197 [2025-01-13 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:16:05 - End Time 2025-01-13 02:16:05 [2025-01-13 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235819', 'tblTempUsageDetail_20' ) start [2025-01-13 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235819', 'tblTempUsageDetail_20' ) end [2025-01-13 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235819', 'tblTempVendorCDR_20' ) start [2025-01-13 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235819', 'tblTempVendorCDR_20' ) end [2025-01-13 02:16:18] Production.INFO: ProcessCDR(1,14235819,1,1,2) [2025-01-13 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235819', 'tblTempUsageDetail_20' ) start [2025-01-13 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235819', 'tblTempUsageDetail_20' ) end [2025-01-13 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:16:21] Production.INFO: ==14513== Releasing lock... [2025-01-13 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:17:05 [end_date_ymd] => 2025-01-13 02:17:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:17:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:17:17] Production.INFO: count ==197 [2025-01-13 02:17:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:17:05 - End Time 2025-01-13 02:17:05 [2025-01-13 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235824', 'tblTempUsageDetail_20' ) start [2025-01-13 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235824', 'tblTempUsageDetail_20' ) end [2025-01-13 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235824', 'tblTempVendorCDR_20' ) start [2025-01-13 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235824', 'tblTempVendorCDR_20' ) end [2025-01-13 02:17:17] Production.INFO: ProcessCDR(1,14235824,1,1,2) [2025-01-13 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235824', 'tblTempUsageDetail_20' ) start [2025-01-13 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235824', 'tblTempUsageDetail_20' ) end [2025-01-13 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:17:21] Production.INFO: ==14584== Releasing lock... [2025-01-13 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:18:05 [end_date_ymd] => 2025-01-13 02:18:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:18:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:18:18] Production.INFO: count ==197 [2025-01-13 02:18:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:18:05 - End Time 2025-01-13 02:18:05 [2025-01-13 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235829', 'tblTempUsageDetail_20' ) start [2025-01-13 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235829', 'tblTempUsageDetail_20' ) end [2025-01-13 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235829', 'tblTempVendorCDR_20' ) start [2025-01-13 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235829', 'tblTempVendorCDR_20' ) end [2025-01-13 02:18:18] Production.INFO: ProcessCDR(1,14235829,1,1,2) [2025-01-13 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235829', 'tblTempUsageDetail_20' ) start [2025-01-13 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235829', 'tblTempUsageDetail_20' ) end [2025-01-13 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:18:21] Production.INFO: ==14657== Releasing lock... [2025-01-13 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:19:04 [end_date_ymd] => 2025-01-13 02:19:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:19:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:19:17] Production.INFO: count ==197 [2025-01-13 02:19:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:19:04 - End Time 2025-01-13 02:19:04 [2025-01-13 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235834', 'tblTempUsageDetail_20' ) start [2025-01-13 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235834', 'tblTempUsageDetail_20' ) end [2025-01-13 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235834', 'tblTempVendorCDR_20' ) start [2025-01-13 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235834', 'tblTempVendorCDR_20' ) end [2025-01-13 02:19:17] Production.INFO: ProcessCDR(1,14235834,1,1,2) [2025-01-13 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235834', 'tblTempUsageDetail_20' ) start [2025-01-13 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235834', 'tblTempUsageDetail_20' ) end [2025-01-13 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:19:21] Production.INFO: ==14729== Releasing lock... [2025-01-13 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:20:06 [end_date_ymd] => 2025-01-13 02:20:06 [RateCDR] => 1 ) [2025-01-13 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:20:06' and `end` < '2025-01-13 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:20:19] Production.INFO: count ==201 [2025-01-13 02:20:19] Production.ERROR: pbx CDR StartTime 2025-01-12 23:20:06 - End Time 2025-01-13 02:20:06 [2025-01-13 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235840', 'tblTempUsageDetail_20' ) start [2025-01-13 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235840', 'tblTempUsageDetail_20' ) end [2025-01-13 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235840', 'tblTempVendorCDR_20' ) start [2025-01-13 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235840', 'tblTempVendorCDR_20' ) end [2025-01-13 02:20:19] Production.INFO: ProcessCDR(1,14235840,1,1,2) [2025-01-13 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235840', 'tblTempUsageDetail_20' ) start [2025-01-13 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235840', 'tblTempUsageDetail_20' ) end [2025-01-13 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:20:22] Production.INFO: ==14802== Releasing lock... [2025-01-13 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:21:05 [end_date_ymd] => 2025-01-13 02:21:05 [RateCDR] => 1 ) [2025-01-13 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:21:05' and `end` < '2025-01-13 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:21:17] Production.INFO: count ==201 [2025-01-13 02:21:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:21:05 - End Time 2025-01-13 02:21:05 [2025-01-13 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235845', 'tblTempUsageDetail_20' ) start [2025-01-13 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235845', 'tblTempUsageDetail_20' ) end [2025-01-13 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235845', 'tblTempVendorCDR_20' ) start [2025-01-13 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235845', 'tblTempVendorCDR_20' ) end [2025-01-13 02:21:17] Production.INFO: ProcessCDR(1,14235845,1,1,2) [2025-01-13 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235845', 'tblTempUsageDetail_20' ) start [2025-01-13 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235845', 'tblTempUsageDetail_20' ) end [2025-01-13 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:21:20] Production.INFO: ==14874== Releasing lock... [2025-01-13 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:22:04 [end_date_ymd] => 2025-01-13 02:22:04 [RateCDR] => 1 ) [2025-01-13 02: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` >= '2025-01-12 23:22:04' and `end` < '2025-01-13 02: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 ,'') [2025-01-13 02:22:18] Production.INFO: count ==201 [2025-01-13 02:22:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:22:04 - End Time 2025-01-13 02:22:04 [2025-01-13 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235850', 'tblTempUsageDetail_20' ) start [2025-01-13 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235850', 'tblTempUsageDetail_20' ) end [2025-01-13 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235850', 'tblTempVendorCDR_20' ) start [2025-01-13 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235850', 'tblTempVendorCDR_20' ) end [2025-01-13 02:22:18] Production.INFO: ProcessCDR(1,14235850,1,1,2) [2025-01-13 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235850', 'tblTempUsageDetail_20' ) start [2025-01-13 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235850', 'tblTempUsageDetail_20' ) end [2025-01-13 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:22:21] Production.INFO: ==14948== Releasing lock... [2025-01-13 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:23:05 [end_date_ymd] => 2025-01-13 02:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:23:18] Production.INFO: count ==201 [2025-01-13 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:23:05 - End Time 2025-01-13 02:23:05 [2025-01-13 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235855', 'tblTempUsageDetail_20' ) start [2025-01-13 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235855', 'tblTempUsageDetail_20' ) end [2025-01-13 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235855', 'tblTempVendorCDR_20' ) start [2025-01-13 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235855', 'tblTempVendorCDR_20' ) end [2025-01-13 02:23:18] Production.INFO: ProcessCDR(1,14235855,1,1,2) [2025-01-13 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235855', 'tblTempUsageDetail_20' ) start [2025-01-13 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235855', 'tblTempUsageDetail_20' ) end [2025-01-13 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:23:21] Production.INFO: ==15021== Releasing lock... [2025-01-13 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:24:05 [end_date_ymd] => 2025-01-13 02:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:24:18] Production.INFO: count ==201 [2025-01-13 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:24:05 - End Time 2025-01-13 02:24:05 [2025-01-13 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235860', 'tblTempUsageDetail_20' ) start [2025-01-13 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235860', 'tblTempUsageDetail_20' ) end [2025-01-13 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235860', 'tblTempVendorCDR_20' ) start [2025-01-13 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235860', 'tblTempVendorCDR_20' ) end [2025-01-13 02:24:18] Production.INFO: ProcessCDR(1,14235860,1,1,2) [2025-01-13 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235860', 'tblTempUsageDetail_20' ) start [2025-01-13 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235860', 'tblTempUsageDetail_20' ) end [2025-01-13 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:24:21] Production.INFO: ==15092== Releasing lock... [2025-01-13 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:25:05 [end_date_ymd] => 2025-01-13 02:25:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:25:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:25:17] Production.INFO: count ==201 [2025-01-13 02:25:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:25:05 - End Time 2025-01-13 02:25:05 [2025-01-13 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235865', 'tblTempUsageDetail_20' ) start [2025-01-13 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235865', 'tblTempUsageDetail_20' ) end [2025-01-13 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235865', 'tblTempVendorCDR_20' ) start [2025-01-13 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235865', 'tblTempVendorCDR_20' ) end [2025-01-13 02:25:17] Production.INFO: ProcessCDR(1,14235865,1,1,2) [2025-01-13 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235865', 'tblTempUsageDetail_20' ) start [2025-01-13 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235865', 'tblTempUsageDetail_20' ) end [2025-01-13 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:25:21] Production.INFO: ==15165== Releasing lock... [2025-01-13 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:26:06 [end_date_ymd] => 2025-01-13 02:26:06 [RateCDR] => 1 ) [2025-01-13 02: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` >= '2025-01-12 23:26:06' and `end` < '2025-01-13 02: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 ,'') [2025-01-13 02:26:18] Production.INFO: count ==202 [2025-01-13 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:26:06 - End Time 2025-01-13 02:26:06 [2025-01-13 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235870', 'tblTempUsageDetail_20' ) start [2025-01-13 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235870', 'tblTempUsageDetail_20' ) end [2025-01-13 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235870', 'tblTempVendorCDR_20' ) start [2025-01-13 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235870', 'tblTempVendorCDR_20' ) end [2025-01-13 02:26:18] Production.INFO: ProcessCDR(1,14235870,1,1,2) [2025-01-13 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235870', 'tblTempUsageDetail_20' ) start [2025-01-13 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235870', 'tblTempUsageDetail_20' ) end [2025-01-13 02:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:26:23] Production.INFO: ==15236== Releasing lock... [2025-01-13 02:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:26:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:27:05 [end_date_ymd] => 2025-01-13 02:27:05 [RateCDR] => 1 ) [2025-01-13 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:27:05' and `end` < '2025-01-13 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:27:17] Production.INFO: count ==202 [2025-01-13 02:27:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:27:05 - End Time 2025-01-13 02:27:05 [2025-01-13 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235875', 'tblTempUsageDetail_20' ) start [2025-01-13 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235875', 'tblTempUsageDetail_20' ) end [2025-01-13 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235875', 'tblTempVendorCDR_20' ) start [2025-01-13 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235875', 'tblTempVendorCDR_20' ) end [2025-01-13 02:27:17] Production.INFO: ProcessCDR(1,14235875,1,1,2) [2025-01-13 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235875', 'tblTempUsageDetail_20' ) start [2025-01-13 02:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235875', 'tblTempUsageDetail_20' ) end [2025-01-13 02:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:27:21] Production.INFO: ==15307== Releasing lock... [2025-01-13 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:28:04 [end_date_ymd] => 2025-01-13 02:28:04 [RateCDR] => 1 ) [2025-01-13 02: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` >= '2025-01-12 23:28:04' and `end` < '2025-01-13 02: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 ,'') [2025-01-13 02:28:17] Production.INFO: count ==202 [2025-01-13 02:28:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:28:04 - End Time 2025-01-13 02:28:04 [2025-01-13 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235880', 'tblTempUsageDetail_20' ) start [2025-01-13 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235880', 'tblTempUsageDetail_20' ) end [2025-01-13 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235880', 'tblTempVendorCDR_20' ) start [2025-01-13 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235880', 'tblTempVendorCDR_20' ) end [2025-01-13 02:28:17] Production.INFO: ProcessCDR(1,14235880,1,1,2) [2025-01-13 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235880', 'tblTempUsageDetail_20' ) start [2025-01-13 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235880', 'tblTempUsageDetail_20' ) end [2025-01-13 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:28:20] Production.INFO: ==15376== Releasing lock... [2025-01-13 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:28:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:29:04 [end_date_ymd] => 2025-01-13 02:29:04 [RateCDR] => 1 ) [2025-01-13 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:29:04' and `end` < '2025-01-13 02:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:29:17] Production.INFO: count ==202 [2025-01-13 02:29:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:29:04 - End Time 2025-01-13 02:29:04 [2025-01-13 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235885', 'tblTempUsageDetail_20' ) start [2025-01-13 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235885', 'tblTempUsageDetail_20' ) end [2025-01-13 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235885', 'tblTempVendorCDR_20' ) start [2025-01-13 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235885', 'tblTempVendorCDR_20' ) end [2025-01-13 02:29:17] Production.INFO: ProcessCDR(1,14235885,1,1,2) [2025-01-13 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235885', 'tblTempUsageDetail_20' ) start [2025-01-13 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235885', 'tblTempUsageDetail_20' ) end [2025-01-13 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:29:20] Production.INFO: ==15448== Releasing lock... [2025-01-13 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:30:06 [end_date_ymd] => 2025-01-13 02:30:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:30:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:30:18] Production.INFO: count ==210 [2025-01-13 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:30:06 - End Time 2025-01-13 02:30:06 [2025-01-13 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235891', 'tblTempUsageDetail_20' ) start [2025-01-13 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235891', 'tblTempUsageDetail_20' ) end [2025-01-13 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235891', 'tblTempVendorCDR_20' ) start [2025-01-13 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235891', 'tblTempVendorCDR_20' ) end [2025-01-13 02:30:18] Production.INFO: ProcessCDR(1,14235891,1,1,2) [2025-01-13 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235891', 'tblTempUsageDetail_20' ) start [2025-01-13 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235891', 'tblTempUsageDetail_20' ) end [2025-01-13 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:30:21] Production.INFO: ==15562== Releasing lock... [2025-01-13 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:30:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:31:05 [end_date_ymd] => 2025-01-13 02:31:05 [RateCDR] => 1 ) [2025-01-13 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:31:05' and `end` < '2025-01-13 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:31:18] Production.INFO: count ==215 [2025-01-13 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:31:05 - End Time 2025-01-13 02:31:05 [2025-01-13 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235896', 'tblTempUsageDetail_20' ) start [2025-01-13 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235896', 'tblTempUsageDetail_20' ) end [2025-01-13 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235896', 'tblTempVendorCDR_20' ) start [2025-01-13 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235896', 'tblTempVendorCDR_20' ) end [2025-01-13 02:31:18] Production.INFO: ProcessCDR(1,14235896,1,1,2) [2025-01-13 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235896', 'tblTempUsageDetail_20' ) start [2025-01-13 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235896', 'tblTempUsageDetail_20' ) end [2025-01-13 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:31:21] Production.INFO: ==15636== Releasing lock... [2025-01-13 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:31:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:32:05 [end_date_ymd] => 2025-01-13 02:32:05 [RateCDR] => 1 ) [2025-01-13 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:32:05' and `end` < '2025-01-13 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:32:19] Production.INFO: count ==215 [2025-01-13 02:32:19] Production.ERROR: pbx CDR StartTime 2025-01-12 23:32:05 - End Time 2025-01-13 02:32:05 [2025-01-13 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235901', 'tblTempUsageDetail_20' ) start [2025-01-13 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235901', 'tblTempUsageDetail_20' ) end [2025-01-13 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235901', 'tblTempVendorCDR_20' ) start [2025-01-13 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235901', 'tblTempVendorCDR_20' ) end [2025-01-13 02:32:19] Production.INFO: ProcessCDR(1,14235901,1,1,2) [2025-01-13 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235901', 'tblTempUsageDetail_20' ) start [2025-01-13 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235901', 'tblTempUsageDetail_20' ) end [2025-01-13 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:32:22] Production.INFO: ==15718== Releasing lock... [2025-01-13 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:32:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:33:04 [end_date_ymd] => 2025-01-13 02:33:04 [RateCDR] => 1 ) [2025-01-13 02: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` >= '2025-01-12 23:33:04' and `end` < '2025-01-13 02: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 ,'') [2025-01-13 02:33:18] Production.INFO: count ==215 [2025-01-13 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:33:04 - End Time 2025-01-13 02:33:04 [2025-01-13 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235906', 'tblTempUsageDetail_20' ) start [2025-01-13 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235906', 'tblTempUsageDetail_20' ) end [2025-01-13 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235906', 'tblTempVendorCDR_20' ) start [2025-01-13 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235906', 'tblTempVendorCDR_20' ) end [2025-01-13 02:33:18] Production.INFO: ProcessCDR(1,14235906,1,1,2) [2025-01-13 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235906', 'tblTempUsageDetail_20' ) start [2025-01-13 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235906', 'tblTempUsageDetail_20' ) end [2025-01-13 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:33:21] Production.INFO: ==15808== Releasing lock... [2025-01-13 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:33:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:34:05 [end_date_ymd] => 2025-01-13 02:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:34:17] Production.INFO: count ==215 [2025-01-13 02:34:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:34:05 - End Time 2025-01-13 02:34:05 [2025-01-13 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235911', 'tblTempUsageDetail_20' ) start [2025-01-13 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235911', 'tblTempUsageDetail_20' ) end [2025-01-13 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235911', 'tblTempVendorCDR_20' ) start [2025-01-13 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235911', 'tblTempVendorCDR_20' ) end [2025-01-13 02:34:18] Production.INFO: ProcessCDR(1,14235911,1,1,2) [2025-01-13 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235911', 'tblTempUsageDetail_20' ) start [2025-01-13 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235911', 'tblTempUsageDetail_20' ) end [2025-01-13 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:34:21] Production.INFO: ==15883== Releasing lock... [2025-01-13 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:34:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:35:04 [end_date_ymd] => 2025-01-13 02:35:04 [RateCDR] => 1 ) [2025-01-13 02:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:35:04' and `end` < '2025-01-13 02:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:35:17] Production.INFO: count ==213 [2025-01-13 02:35:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:35:04 - End Time 2025-01-13 02:35:04 [2025-01-13 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235916', 'tblTempUsageDetail_20' ) start [2025-01-13 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235916', 'tblTempUsageDetail_20' ) end [2025-01-13 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235916', 'tblTempVendorCDR_20' ) start [2025-01-13 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235916', 'tblTempVendorCDR_20' ) end [2025-01-13 02:35:17] Production.INFO: ProcessCDR(1,14235916,1,1,2) [2025-01-13 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235916', 'tblTempUsageDetail_20' ) start [2025-01-13 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235916', 'tblTempUsageDetail_20' ) end [2025-01-13 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:35:20] Production.INFO: ==15982== Releasing lock... [2025-01-13 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:35:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:36:04 [end_date_ymd] => 2025-01-13 02:36:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:36:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:36:17] Production.INFO: count ==211 [2025-01-13 02:36:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:36:04 - End Time 2025-01-13 02:36:04 [2025-01-13 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235921', 'tblTempUsageDetail_20' ) start [2025-01-13 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235921', 'tblTempUsageDetail_20' ) end [2025-01-13 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235921', 'tblTempVendorCDR_20' ) start [2025-01-13 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235921', 'tblTempVendorCDR_20' ) end [2025-01-13 02:36:17] Production.INFO: ProcessCDR(1,14235921,1,1,2) [2025-01-13 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235921', 'tblTempUsageDetail_20' ) start [2025-01-13 02:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235921', 'tblTempUsageDetail_20' ) end [2025-01-13 02:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:36:20] Production.INFO: ==16060== Releasing lock... [2025-01-13 02:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:36:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:37:04 [end_date_ymd] => 2025-01-13 02:37:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:37:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:37:17] Production.INFO: count ==208 [2025-01-13 02:37:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:37:04 - End Time 2025-01-13 02:37:04 [2025-01-13 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235926', 'tblTempUsageDetail_20' ) start [2025-01-13 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235926', 'tblTempUsageDetail_20' ) end [2025-01-13 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235926', 'tblTempVendorCDR_20' ) start [2025-01-13 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235926', 'tblTempVendorCDR_20' ) end [2025-01-13 02:37:17] Production.INFO: ProcessCDR(1,14235926,1,1,2) [2025-01-13 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235926', 'tblTempUsageDetail_20' ) start [2025-01-13 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235926', 'tblTempUsageDetail_20' ) end [2025-01-13 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:37:20] Production.INFO: ==16151== Releasing lock... [2025-01-13 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:37:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:38:05 [end_date_ymd] => 2025-01-13 02:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:38:17] Production.INFO: count ==204 [2025-01-13 02:38:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:38:05 - End Time 2025-01-13 02:38:05 [2025-01-13 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235931', 'tblTempUsageDetail_20' ) start [2025-01-13 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235931', 'tblTempUsageDetail_20' ) end [2025-01-13 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235931', 'tblTempVendorCDR_20' ) start [2025-01-13 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235931', 'tblTempVendorCDR_20' ) end [2025-01-13 02:38:17] Production.INFO: ProcessCDR(1,14235931,1,1,2) [2025-01-13 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235931', 'tblTempUsageDetail_20' ) start [2025-01-13 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235931', 'tblTempUsageDetail_20' ) end [2025-01-13 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:38:21] Production.INFO: ==16230== Releasing lock... [2025-01-13 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:38:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:39:04 [end_date_ymd] => 2025-01-13 02:39:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:39:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:39:18] Production.INFO: count ==203 [2025-01-13 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:39:04 - End Time 2025-01-13 02:39:04 [2025-01-13 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235936', 'tblTempUsageDetail_20' ) start [2025-01-13 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235936', 'tblTempUsageDetail_20' ) end [2025-01-13 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235936', 'tblTempVendorCDR_20' ) start [2025-01-13 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235936', 'tblTempVendorCDR_20' ) end [2025-01-13 02:39:18] Production.INFO: ProcessCDR(1,14235936,1,1,2) [2025-01-13 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235936', 'tblTempUsageDetail_20' ) start [2025-01-13 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235936', 'tblTempUsageDetail_20' ) end [2025-01-13 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:39:21] Production.INFO: ==16331== Releasing lock... [2025-01-13 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:40:06 [end_date_ymd] => 2025-01-13 02:40:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:40:06' and `end` < '2025-01-13 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:40:19] Production.INFO: count ==209 [2025-01-13 02:40:19] Production.ERROR: pbx CDR StartTime 2025-01-12 23:40:06 - End Time 2025-01-13 02:40:06 [2025-01-13 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235942', 'tblTempUsageDetail_20' ) start [2025-01-13 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235942', 'tblTempUsageDetail_20' ) end [2025-01-13 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235942', 'tblTempVendorCDR_20' ) start [2025-01-13 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235942', 'tblTempVendorCDR_20' ) end [2025-01-13 02:40:19] Production.INFO: ProcessCDR(1,14235942,1,1,2) [2025-01-13 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235942', 'tblTempUsageDetail_20' ) start [2025-01-13 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235942', 'tblTempUsageDetail_20' ) end [2025-01-13 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:40:23] Production.INFO: ==16416== Releasing lock... [2025-01-13 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:40:23] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:41:05 [end_date_ymd] => 2025-01-13 02:41:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:41:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:41:18] Production.INFO: count ==210 [2025-01-13 02:41:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:41:05 - End Time 2025-01-13 02:41:05 [2025-01-13 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235947', 'tblTempUsageDetail_20' ) start [2025-01-13 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235947', 'tblTempUsageDetail_20' ) end [2025-01-13 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235947', 'tblTempVendorCDR_20' ) start [2025-01-13 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235947', 'tblTempVendorCDR_20' ) end [2025-01-13 02:41:18] Production.INFO: ProcessCDR(1,14235947,1,1,2) [2025-01-13 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235947', 'tblTempUsageDetail_20' ) start [2025-01-13 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235947', 'tblTempUsageDetail_20' ) end [2025-01-13 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:41:22] Production.INFO: ==16509== Releasing lock... [2025-01-13 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:41:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:42:05 [end_date_ymd] => 2025-01-13 02:42:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:42:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:42:19] Production.INFO: count ==210 [2025-01-13 02:42:19] Production.ERROR: pbx CDR StartTime 2025-01-12 23:42:05 - End Time 2025-01-13 02:42:05 [2025-01-13 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235952', 'tblTempUsageDetail_20' ) start [2025-01-13 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235952', 'tblTempUsageDetail_20' ) end [2025-01-13 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235952', 'tblTempVendorCDR_20' ) start [2025-01-13 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235952', 'tblTempVendorCDR_20' ) end [2025-01-13 02:42:19] Production.INFO: ProcessCDR(1,14235952,1,1,2) [2025-01-13 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235952', 'tblTempUsageDetail_20' ) start [2025-01-13 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235952', 'tblTempUsageDetail_20' ) end [2025-01-13 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:42:22] Production.INFO: ==16591== Releasing lock... [2025-01-13 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:42:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:43:04 [end_date_ymd] => 2025-01-13 02:43:04 [RateCDR] => 1 ) [2025-01-13 02:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:43:04' and `end` < '2025-01-13 02:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:43:18] Production.INFO: count ==214 [2025-01-13 02:43:19] Production.ERROR: pbx CDR StartTime 2025-01-12 23:43:04 - End Time 2025-01-13 02:43:04 [2025-01-13 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235957', 'tblTempUsageDetail_20' ) start [2025-01-13 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235957', 'tblTempUsageDetail_20' ) end [2025-01-13 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235957', 'tblTempVendorCDR_20' ) start [2025-01-13 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235957', 'tblTempVendorCDR_20' ) end [2025-01-13 02:43:19] Production.INFO: ProcessCDR(1,14235957,1,1,2) [2025-01-13 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235957', 'tblTempUsageDetail_20' ) start [2025-01-13 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235957', 'tblTempUsageDetail_20' ) end [2025-01-13 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:43:22] Production.INFO: ==16680== Releasing lock... [2025-01-13 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:43:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:44:05 [end_date_ymd] => 2025-01-13 02:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:44:17] Production.INFO: count ==214 [2025-01-13 02:44:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:44:05 - End Time 2025-01-13 02:44:05 [2025-01-13 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235962', 'tblTempUsageDetail_20' ) start [2025-01-13 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235962', 'tblTempUsageDetail_20' ) end [2025-01-13 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235962', 'tblTempVendorCDR_20' ) start [2025-01-13 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235962', 'tblTempVendorCDR_20' ) end [2025-01-13 02:44:17] Production.INFO: ProcessCDR(1,14235962,1,1,2) [2025-01-13 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235962', 'tblTempUsageDetail_20' ) start [2025-01-13 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235962', 'tblTempUsageDetail_20' ) end [2025-01-13 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:44:21] Production.INFO: ==16801== Releasing lock... [2025-01-13 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:44:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:45:04 [end_date_ymd] => 2025-01-13 02:45:04 [RateCDR] => 1 ) [2025-01-13 02: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` >= '2025-01-12 23:45:04' and `end` < '2025-01-13 02: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 ,'') [2025-01-13 02:45:16] Production.INFO: count ==214 [2025-01-13 02:45:16] Production.ERROR: pbx CDR StartTime 2025-01-12 23:45:04 - End Time 2025-01-13 02:45:04 [2025-01-13 02:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235967', 'tblTempUsageDetail_20' ) start [2025-01-13 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235967', 'tblTempUsageDetail_20' ) end [2025-01-13 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235967', 'tblTempVendorCDR_20' ) start [2025-01-13 02:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235967', 'tblTempVendorCDR_20' ) end [2025-01-13 02:45:16] Production.INFO: ProcessCDR(1,14235967,1,1,2) [2025-01-13 02:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235967', 'tblTempUsageDetail_20' ) start [2025-01-13 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235967', 'tblTempUsageDetail_20' ) end [2025-01-13 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:45:20] Production.INFO: ==16908== Releasing lock... [2025-01-13 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:45:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:46:05 [end_date_ymd] => 2025-01-13 02:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:46:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:46:18] Production.INFO: count ==214 [2025-01-13 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:46:05 - End Time 2025-01-13 02:46:05 [2025-01-13 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235972', 'tblTempUsageDetail_20' ) start [2025-01-13 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235972', 'tblTempUsageDetail_20' ) end [2025-01-13 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235972', 'tblTempVendorCDR_20' ) start [2025-01-13 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235972', 'tblTempVendorCDR_20' ) end [2025-01-13 02:46:18] Production.INFO: ProcessCDR(1,14235972,1,1,2) [2025-01-13 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235972', 'tblTempUsageDetail_20' ) start [2025-01-13 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235972', 'tblTempUsageDetail_20' ) end [2025-01-13 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:46:21] Production.INFO: ==17049== Releasing lock... [2025-01-13 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:46:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:47:05 [end_date_ymd] => 2025-01-13 02:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:47:18] Production.INFO: count ==214 [2025-01-13 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:47:05 - End Time 2025-01-13 02:47:05 [2025-01-13 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235977', 'tblTempUsageDetail_20' ) start [2025-01-13 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235977', 'tblTempUsageDetail_20' ) end [2025-01-13 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235977', 'tblTempVendorCDR_20' ) start [2025-01-13 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235977', 'tblTempVendorCDR_20' ) end [2025-01-13 02:47:18] Production.INFO: ProcessCDR(1,14235977,1,1,2) [2025-01-13 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235977', 'tblTempUsageDetail_20' ) start [2025-01-13 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235977', 'tblTempUsageDetail_20' ) end [2025-01-13 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:47:21] Production.INFO: ==17141== Releasing lock... [2025-01-13 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:47:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:48:05 [end_date_ymd] => 2025-01-13 02:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:48:18] Production.INFO: count ==214 [2025-01-13 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:48:05 - End Time 2025-01-13 02:48:05 [2025-01-13 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235982', 'tblTempUsageDetail_20' ) start [2025-01-13 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235982', 'tblTempUsageDetail_20' ) end [2025-01-13 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235982', 'tblTempVendorCDR_20' ) start [2025-01-13 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235982', 'tblTempVendorCDR_20' ) end [2025-01-13 02:48:18] Production.INFO: ProcessCDR(1,14235982,1,1,2) [2025-01-13 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235982', 'tblTempUsageDetail_20' ) start [2025-01-13 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235982', 'tblTempUsageDetail_20' ) end [2025-01-13 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:48:21] Production.INFO: ==17243== Releasing lock... [2025-01-13 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:48:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:49:06 [end_date_ymd] => 2025-01-13 02:49:06 [RateCDR] => 1 ) [2025-01-13 02: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` >= '2025-01-12 23:49:06' and `end` < '2025-01-13 02: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 ,'') [2025-01-13 02:49:19] Production.INFO: count ==212 [2025-01-13 02:49:19] Production.ERROR: pbx CDR StartTime 2025-01-12 23:49:06 - End Time 2025-01-13 02:49:06 [2025-01-13 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235987', 'tblTempUsageDetail_20' ) start [2025-01-13 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235987', 'tblTempUsageDetail_20' ) end [2025-01-13 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235987', 'tblTempVendorCDR_20' ) start [2025-01-13 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235987', 'tblTempVendorCDR_20' ) end [2025-01-13 02:49:19] Production.INFO: ProcessCDR(1,14235987,1,1,2) [2025-01-13 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235987', 'tblTempUsageDetail_20' ) start [2025-01-13 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235987', 'tblTempUsageDetail_20' ) end [2025-01-13 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:49:22] Production.INFO: ==17334== Releasing lock... [2025-01-13 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:49:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:50:06 [end_date_ymd] => 2025-01-13 02:50:06 [RateCDR] => 1 ) [2025-01-13 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:50:06' and `end` < '2025-01-13 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:50:18] Production.INFO: count ==220 [2025-01-13 02:50:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:50:06 - End Time 2025-01-13 02:50:06 [2025-01-13 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235993', 'tblTempUsageDetail_20' ) start [2025-01-13 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235993', 'tblTempUsageDetail_20' ) end [2025-01-13 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235993', 'tblTempVendorCDR_20' ) start [2025-01-13 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235993', 'tblTempVendorCDR_20' ) end [2025-01-13 02:50:18] Production.INFO: ProcessCDR(1,14235993,1,1,2) [2025-01-13 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235993', 'tblTempUsageDetail_20' ) start [2025-01-13 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235993', 'tblTempUsageDetail_20' ) end [2025-01-13 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:50:21] Production.INFO: ==17436== Releasing lock... [2025-01-13 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:50:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:51:06 [end_date_ymd] => 2025-01-13 02:51:06 [RateCDR] => 1 ) [2025-01-13 02:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:51:06' and `end` < '2025-01-13 02:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:51:20] Production.INFO: count ==225 [2025-01-13 02:51:20] Production.ERROR: pbx CDR StartTime 2025-01-12 23:51:06 - End Time 2025-01-13 02:51:06 [2025-01-13 02:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235998', 'tblTempUsageDetail_20' ) start [2025-01-13 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14235998', 'tblTempUsageDetail_20' ) end [2025-01-13 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235998', 'tblTempVendorCDR_20' ) start [2025-01-13 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14235998', 'tblTempVendorCDR_20' ) end [2025-01-13 02:51:20] Production.INFO: ProcessCDR(1,14235998,1,1,2) [2025-01-13 02:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14235998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14235998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14235998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14235998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235998', 'tblTempUsageDetail_20' ) start [2025-01-13 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14235998', 'tblTempUsageDetail_20' ) end [2025-01-13 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:51:23] Production.INFO: ==17536== Releasing lock... [2025-01-13 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:51:23] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:52:04 [end_date_ymd] => 2025-01-13 02:52:04 [RateCDR] => 1 ) [2025-01-13 02:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:52:04' and `end` < '2025-01-13 02:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:52:18] Production.INFO: count ==225 [2025-01-13 02:52:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:52:04 - End Time 2025-01-13 02:52:04 [2025-01-13 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236003', 'tblTempUsageDetail_20' ) start [2025-01-13 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236003', 'tblTempUsageDetail_20' ) end [2025-01-13 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236003', 'tblTempVendorCDR_20' ) start [2025-01-13 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236003', 'tblTempVendorCDR_20' ) end [2025-01-13 02:52:18] Production.INFO: ProcessCDR(1,14236003,1,1,2) [2025-01-13 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236003', 'tblTempUsageDetail_20' ) start [2025-01-13 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236003', 'tblTempUsageDetail_20' ) end [2025-01-13 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:52:21] Production.INFO: ==17623== Releasing lock... [2025-01-13 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:52:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:53:05 [end_date_ymd] => 2025-01-13 02:53:05 [RateCDR] => 1 ) [2025-01-13 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:53:05' and `end` < '2025-01-13 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:53:18] Production.INFO: count ==225 [2025-01-13 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:53:05 - End Time 2025-01-13 02:53:05 [2025-01-13 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236008', 'tblTempUsageDetail_20' ) start [2025-01-13 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236008', 'tblTempUsageDetail_20' ) end [2025-01-13 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236008', 'tblTempVendorCDR_20' ) start [2025-01-13 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236008', 'tblTempVendorCDR_20' ) end [2025-01-13 02:53:18] Production.INFO: ProcessCDR(1,14236008,1,1,2) [2025-01-13 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236008', 'tblTempUsageDetail_20' ) start [2025-01-13 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236008', 'tblTempUsageDetail_20' ) end [2025-01-13 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:53:22] Production.INFO: ==17705== Releasing lock... [2025-01-13 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:53:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:54:04 [end_date_ymd] => 2025-01-13 02:54:04 [RateCDR] => 1 ) [2025-01-13 02: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` >= '2025-01-12 23:54:04' and `end` < '2025-01-13 02: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 ,'') [2025-01-13 02:54:17] Production.INFO: count ==225 [2025-01-13 02:54:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:54:04 - End Time 2025-01-13 02:54:04 [2025-01-13 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236013', 'tblTempUsageDetail_20' ) start [2025-01-13 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236013', 'tblTempUsageDetail_20' ) end [2025-01-13 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236013', 'tblTempVendorCDR_20' ) start [2025-01-13 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236013', 'tblTempVendorCDR_20' ) end [2025-01-13 02:54:17] Production.INFO: ProcessCDR(1,14236013,1,1,2) [2025-01-13 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236013', 'tblTempUsageDetail_20' ) start [2025-01-13 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236013', 'tblTempUsageDetail_20' ) end [2025-01-13 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:54:20] Production.INFO: ==17781== Releasing lock... [2025-01-13 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:54:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:55:05 [end_date_ymd] => 2025-01-13 02:55:05 [RateCDR] => 1 ) [2025-01-13 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:55:05' and `end` < '2025-01-13 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:55:18] Production.INFO: count ==225 [2025-01-13 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:55:05 - End Time 2025-01-13 02:55:05 [2025-01-13 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236018', 'tblTempUsageDetail_20' ) start [2025-01-13 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236018', 'tblTempUsageDetail_20' ) end [2025-01-13 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236018', 'tblTempVendorCDR_20' ) start [2025-01-13 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236018', 'tblTempVendorCDR_20' ) end [2025-01-13 02:55:18] Production.INFO: ProcessCDR(1,14236018,1,1,2) [2025-01-13 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236018', 'tblTempUsageDetail_20' ) start [2025-01-13 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236018', 'tblTempUsageDetail_20' ) end [2025-01-13 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:55:21] Production.INFO: ==17864== Releasing lock... [2025-01-13 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:55:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:56:06 [end_date_ymd] => 2025-01-13 02:56:06 [RateCDR] => 1 ) [2025-01-13 02: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` >= '2025-01-12 23:56:06' and `end` < '2025-01-13 02: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 ,'') [2025-01-13 02:56:18] Production.INFO: count ==225 [2025-01-13 02:56:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:56:06 - End Time 2025-01-13 02:56:06 [2025-01-13 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236023', 'tblTempUsageDetail_20' ) start [2025-01-13 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236023', 'tblTempUsageDetail_20' ) end [2025-01-13 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236023', 'tblTempVendorCDR_20' ) start [2025-01-13 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236023', 'tblTempVendorCDR_20' ) end [2025-01-13 02:56:18] Production.INFO: ProcessCDR(1,14236023,1,1,2) [2025-01-13 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236023', 'tblTempUsageDetail_20' ) start [2025-01-13 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236023', 'tblTempUsageDetail_20' ) end [2025-01-13 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:56:22] Production.INFO: ==17940== Releasing lock... [2025-01-13 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:56:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:57:05 [end_date_ymd] => 2025-01-13 02:57:05 [RateCDR] => 1 ) [2025-01-13 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:57:05' and `end` < '2025-01-13 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:57:17] Production.INFO: count ==223 [2025-01-13 02:57:17] Production.ERROR: pbx CDR StartTime 2025-01-12 23:57:05 - End Time 2025-01-13 02:57:05 [2025-01-13 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236028', 'tblTempUsageDetail_20' ) start [2025-01-13 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236028', 'tblTempUsageDetail_20' ) end [2025-01-13 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236028', 'tblTempVendorCDR_20' ) start [2025-01-13 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236028', 'tblTempVendorCDR_20' ) end [2025-01-13 02:57:17] Production.INFO: ProcessCDR(1,14236028,1,1,2) [2025-01-13 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236028', 'tblTempUsageDetail_20' ) start [2025-01-13 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236028', 'tblTempUsageDetail_20' ) end [2025-01-13 02:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:57:20] Production.INFO: ==18019== Releasing lock... [2025-01-13 02:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:57:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:58:05 [end_date_ymd] => 2025-01-13 02:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-12 23:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 02:58:18] Production.INFO: count ==223 [2025-01-13 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-12 23:58:05 - End Time 2025-01-13 02:58:05 [2025-01-13 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236033', 'tblTempUsageDetail_20' ) start [2025-01-13 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236033', 'tblTempUsageDetail_20' ) end [2025-01-13 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236033', 'tblTempVendorCDR_20' ) start [2025-01-13 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236033', 'tblTempVendorCDR_20' ) end [2025-01-13 02:58:18] Production.INFO: ProcessCDR(1,14236033,1,1,2) [2025-01-13 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236033', 'tblTempUsageDetail_20' ) start [2025-01-13 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236033', 'tblTempUsageDetail_20' ) end [2025-01-13 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:58:22] Production.INFO: ==18098== Releasing lock... [2025-01-13 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:58:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-12 23:59:05 [end_date_ymd] => 2025-01-13 02:59:05 [RateCDR] => 1 ) [2025-01-13 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-12 23:59:05' and `end` < '2025-01-13 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 02:59:19] Production.INFO: count ==222 [2025-01-13 02:59:19] Production.ERROR: pbx CDR StartTime 2025-01-12 23:59:05 - End Time 2025-01-13 02:59:05 [2025-01-13 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236038', 'tblTempUsageDetail_20' ) start [2025-01-13 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236038', 'tblTempUsageDetail_20' ) end [2025-01-13 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236038', 'tblTempVendorCDR_20' ) start [2025-01-13 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236038', 'tblTempVendorCDR_20' ) end [2025-01-13 02:59:19] Production.INFO: ProcessCDR(1,14236038,1,1,2) [2025-01-13 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236038', 'tblTempUsageDetail_20' ) start [2025-01-13 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236038', 'tblTempUsageDetail_20' ) end [2025-01-13 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 02:59:22] Production.INFO: ==18176== Releasing lock... [2025-01-13 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 02:59:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:00:06 [end_date_ymd] => 2025-01-13 03:00:06 [RateCDR] => 1 ) [2025-01-13 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:00:06' and `end` < '2025-01-13 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:00:19] Production.INFO: count ==226 [2025-01-13 03:00:19] Production.ERROR: pbx CDR StartTime 2025-01-13 00:00:06 - End Time 2025-01-13 03:00:06 [2025-01-13 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236044', 'tblTempUsageDetail_20' ) start [2025-01-13 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236044', 'tblTempUsageDetail_20' ) end [2025-01-13 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236044', 'tblTempVendorCDR_20' ) start [2025-01-13 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236044', 'tblTempVendorCDR_20' ) end [2025-01-13 03:00:19] Production.INFO: ProcessCDR(1,14236044,1,1,2) [2025-01-13 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236044', 'tblTempUsageDetail_20' ) start [2025-01-13 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236044', 'tblTempUsageDetail_20' ) end [2025-01-13 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:00:22] Production.INFO: ==18251== Releasing lock... [2025-01-13 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:00:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:01:04 [end_date_ymd] => 2025-01-13 03:01:04 [RateCDR] => 1 ) [2025-01-13 03:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:01:04' and `end` < '2025-01-13 03:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:01:18] Production.INFO: count ==226 [2025-01-13 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:01:04 - End Time 2025-01-13 03:01:04 [2025-01-13 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236049', 'tblTempUsageDetail_20' ) start [2025-01-13 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236049', 'tblTempUsageDetail_20' ) end [2025-01-13 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236049', 'tblTempVendorCDR_20' ) start [2025-01-13 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236049', 'tblTempVendorCDR_20' ) end [2025-01-13 03:01:18] Production.INFO: ProcessCDR(1,14236049,1,1,2) [2025-01-13 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236049', 'tblTempUsageDetail_20' ) start [2025-01-13 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236049', 'tblTempUsageDetail_20' ) end [2025-01-13 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:01:22] Production.INFO: ==18342== Releasing lock... [2025-01-13 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:01:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:02:05 [end_date_ymd] => 2025-01-13 03:02:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:02:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:02:18] Production.INFO: count ==226 [2025-01-13 03:02:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:02:05 - End Time 2025-01-13 03:02:05 [2025-01-13 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236054', 'tblTempUsageDetail_20' ) start [2025-01-13 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236054', 'tblTempUsageDetail_20' ) end [2025-01-13 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236054', 'tblTempVendorCDR_20' ) start [2025-01-13 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236054', 'tblTempVendorCDR_20' ) end [2025-01-13 03:02:18] Production.INFO: ProcessCDR(1,14236054,1,1,2) [2025-01-13 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236054', 'tblTempUsageDetail_20' ) start [2025-01-13 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236054', 'tblTempUsageDetail_20' ) end [2025-01-13 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:02:21] Production.INFO: ==18534== Releasing lock... [2025-01-13 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:02:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 03:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:03:04 [end_date_ymd] => 2025-01-13 03:03:04 [RateCDR] => 1 ) [2025-01-13 03:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:03:04' and `end` < '2025-01-13 03:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:03:16] Production.INFO: count ==226 [2025-01-13 03:03:16] Production.ERROR: pbx CDR StartTime 2025-01-13 00:03:04 - End Time 2025-01-13 03:03:04 [2025-01-13 03:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236059', 'tblTempUsageDetail_20' ) start [2025-01-13 03:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236059', 'tblTempUsageDetail_20' ) end [2025-01-13 03:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236059', 'tblTempVendorCDR_20' ) start [2025-01-13 03:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236059', 'tblTempVendorCDR_20' ) end [2025-01-13 03:03:16] Production.INFO: ProcessCDR(1,14236059,1,1,2) [2025-01-13 03:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:03:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236059', 'tblTempUsageDetail_20' ) start [2025-01-13 03:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236059', 'tblTempUsageDetail_20' ) end [2025-01-13 03:03:19] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:03:19] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:03:19] Production.INFO: ==18608== Releasing lock... [2025-01-13 03:03:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:03:19] Production.INFO: 29 MB #Memory Used# [2025-01-13 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:04:05 [end_date_ymd] => 2025-01-13 03:04:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:04:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:04:18] Production.INFO: count ==226 [2025-01-13 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:04:05 - End Time 2025-01-13 03:04:05 [2025-01-13 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236064', 'tblTempUsageDetail_20' ) start [2025-01-13 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236064', 'tblTempUsageDetail_20' ) end [2025-01-13 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236064', 'tblTempVendorCDR_20' ) start [2025-01-13 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236064', 'tblTempVendorCDR_20' ) end [2025-01-13 03:04:18] Production.INFO: ProcessCDR(1,14236064,1,1,2) [2025-01-13 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236064', 'tblTempUsageDetail_20' ) start [2025-01-13 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236064', 'tblTempUsageDetail_20' ) end [2025-01-13 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:04:21] Production.INFO: ==18682== Releasing lock... [2025-01-13 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:04:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 03:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:05:04 [end_date_ymd] => 2025-01-13 03:05:04 [RateCDR] => 1 ) [2025-01-13 03: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` >= '2025-01-13 00:05:04' and `end` < '2025-01-13 03: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 ,'') [2025-01-13 03:05:17] Production.INFO: count ==225 [2025-01-13 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:05:04 - End Time 2025-01-13 03:05:04 [2025-01-13 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236069', 'tblTempUsageDetail_20' ) start [2025-01-13 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236069', 'tblTempUsageDetail_20' ) end [2025-01-13 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236069', 'tblTempVendorCDR_20' ) start [2025-01-13 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236069', 'tblTempVendorCDR_20' ) end [2025-01-13 03:05:17] Production.INFO: ProcessCDR(1,14236069,1,1,2) [2025-01-13 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236069', 'tblTempUsageDetail_20' ) start [2025-01-13 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236069', 'tblTempUsageDetail_20' ) end [2025-01-13 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:05:20] Production.INFO: ==18762== Releasing lock... [2025-01-13 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:05:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:06:05 [end_date_ymd] => 2025-01-13 03:06:05 [RateCDR] => 1 ) [2025-01-13 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:06:05' and `end` < '2025-01-13 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:06:18] Production.INFO: count ==225 [2025-01-13 03:06:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:06:05 - End Time 2025-01-13 03:06:05 [2025-01-13 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236074', 'tblTempUsageDetail_20' ) start [2025-01-13 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236074', 'tblTempUsageDetail_20' ) end [2025-01-13 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236074', 'tblTempVendorCDR_20' ) start [2025-01-13 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236074', 'tblTempVendorCDR_20' ) end [2025-01-13 03:06:18] Production.INFO: ProcessCDR(1,14236074,1,1,2) [2025-01-13 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236074', 'tblTempUsageDetail_20' ) start [2025-01-13 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236074', 'tblTempUsageDetail_20' ) end [2025-01-13 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:06:21] Production.INFO: ==18919== Releasing lock... [2025-01-13 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:06:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:07:05 [end_date_ymd] => 2025-01-13 03:07:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:07:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:07:19] Production.INFO: count ==225 [2025-01-13 03:07:19] Production.ERROR: pbx CDR StartTime 2025-01-13 00:07:05 - End Time 2025-01-13 03:07:05 [2025-01-13 03:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236079', 'tblTempUsageDetail_20' ) start [2025-01-13 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236079', 'tblTempUsageDetail_20' ) end [2025-01-13 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236079', 'tblTempVendorCDR_20' ) start [2025-01-13 03:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236079', 'tblTempVendorCDR_20' ) end [2025-01-13 03:07:19] Production.INFO: ProcessCDR(1,14236079,1,1,2) [2025-01-13 03:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236079', 'tblTempUsageDetail_20' ) start [2025-01-13 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236079', 'tblTempUsageDetail_20' ) end [2025-01-13 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:07:22] Production.INFO: ==19001== Releasing lock... [2025-01-13 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:07:22] Production.INFO: 29 MB #Memory Used# [2025-01-13 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:08:05 [end_date_ymd] => 2025-01-13 03:08:05 [RateCDR] => 1 ) [2025-01-13 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:08:05' and `end` < '2025-01-13 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:08:17] Production.INFO: count ==225 [2025-01-13 03:08:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:08:05 - End Time 2025-01-13 03:08:05 [2025-01-13 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236084', 'tblTempUsageDetail_20' ) start [2025-01-13 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236084', 'tblTempUsageDetail_20' ) end [2025-01-13 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236084', 'tblTempVendorCDR_20' ) start [2025-01-13 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236084', 'tblTempVendorCDR_20' ) end [2025-01-13 03:08:17] Production.INFO: ProcessCDR(1,14236084,1,1,2) [2025-01-13 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236084', 'tblTempUsageDetail_20' ) start [2025-01-13 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236084', 'tblTempUsageDetail_20' ) end [2025-01-13 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:08:20] Production.INFO: ==19078== Releasing lock... [2025-01-13 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:08:20] Production.INFO: 29 MB #Memory Used# [2025-01-13 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:09:05 [end_date_ymd] => 2025-01-13 03:09:05 [RateCDR] => 1 ) [2025-01-13 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:09:05' and `end` < '2025-01-13 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:09:18] Production.INFO: count ==225 [2025-01-13 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:09:05 - End Time 2025-01-13 03:09:05 [2025-01-13 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236089', 'tblTempUsageDetail_20' ) start [2025-01-13 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236089', 'tblTempUsageDetail_20' ) end [2025-01-13 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236089', 'tblTempVendorCDR_20' ) start [2025-01-13 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236089', 'tblTempVendorCDR_20' ) end [2025-01-13 03:09:18] Production.INFO: ProcessCDR(1,14236089,1,1,2) [2025-01-13 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236089', 'tblTempUsageDetail_20' ) start [2025-01-13 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236089', 'tblTempUsageDetail_20' ) end [2025-01-13 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:09:21] Production.INFO: ==19251== Releasing lock... [2025-01-13 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:09:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:10:06 [end_date_ymd] => 2025-01-13 03:10:06 [RateCDR] => 1 ) [2025-01-13 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:10:06' and `end` < '2025-01-13 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:10:18] Production.INFO: count ==219 [2025-01-13 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:10:06 - End Time 2025-01-13 03:10:06 [2025-01-13 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236095', 'tblTempUsageDetail_20' ) start [2025-01-13 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236095', 'tblTempUsageDetail_20' ) end [2025-01-13 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236095', 'tblTempVendorCDR_20' ) start [2025-01-13 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236095', 'tblTempVendorCDR_20' ) end [2025-01-13 03:10:18] Production.INFO: ProcessCDR(1,14236095,1,1,2) [2025-01-13 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236095', 'tblTempUsageDetail_20' ) start [2025-01-13 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236095', 'tblTempUsageDetail_20' ) end [2025-01-13 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:10:21] Production.INFO: ==19345== Releasing lock... [2025-01-13 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:10:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:11:05 [end_date_ymd] => 2025-01-13 03:11:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:11:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:11:19] Production.INFO: count ==197 [2025-01-13 03:11:19] Production.ERROR: pbx CDR StartTime 2025-01-13 00:11:05 - End Time 2025-01-13 03:11:05 [2025-01-13 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236100', 'tblTempUsageDetail_20' ) start [2025-01-13 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236100', 'tblTempUsageDetail_20' ) end [2025-01-13 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236100', 'tblTempVendorCDR_20' ) start [2025-01-13 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236100', 'tblTempVendorCDR_20' ) end [2025-01-13 03:11:19] Production.INFO: ProcessCDR(1,14236100,1,1,2) [2025-01-13 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236100', 'tblTempUsageDetail_20' ) start [2025-01-13 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236100', 'tblTempUsageDetail_20' ) end [2025-01-13 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:11:22] Production.INFO: ==19447== Releasing lock... [2025-01-13 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:12:05 [end_date_ymd] => 2025-01-13 03:12:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:12:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:12:18] Production.INFO: count ==197 [2025-01-13 03:12:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:12:05 - End Time 2025-01-13 03:12:05 [2025-01-13 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236105', 'tblTempUsageDetail_20' ) start [2025-01-13 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236105', 'tblTempUsageDetail_20' ) end [2025-01-13 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236105', 'tblTempVendorCDR_20' ) start [2025-01-13 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236105', 'tblTempVendorCDR_20' ) end [2025-01-13 03:12:18] Production.INFO: ProcessCDR(1,14236105,1,1,2) [2025-01-13 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236105', 'tblTempUsageDetail_20' ) start [2025-01-13 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236105', 'tblTempUsageDetail_20' ) end [2025-01-13 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:12:21] Production.INFO: ==19553== Releasing lock... [2025-01-13 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:13:05 [end_date_ymd] => 2025-01-13 03:13:05 [RateCDR] => 1 ) [2025-01-13 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:13:05' and `end` < '2025-01-13 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:13:18] Production.INFO: count ==197 [2025-01-13 03:13:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:13:05 - End Time 2025-01-13 03:13:05 [2025-01-13 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236110', 'tblTempUsageDetail_20' ) start [2025-01-13 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236110', 'tblTempUsageDetail_20' ) end [2025-01-13 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236110', 'tblTempVendorCDR_20' ) start [2025-01-13 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236110', 'tblTempVendorCDR_20' ) end [2025-01-13 03:13:18] Production.INFO: ProcessCDR(1,14236110,1,1,2) [2025-01-13 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236110', 'tblTempUsageDetail_20' ) start [2025-01-13 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236110', 'tblTempUsageDetail_20' ) end [2025-01-13 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:13:22] Production.INFO: ==19733== Releasing lock... [2025-01-13 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:13:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:14:05 [end_date_ymd] => 2025-01-13 03:14:05 [RateCDR] => 1 ) [2025-01-13 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:14:05' and `end` < '2025-01-13 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:14:17] Production.INFO: count ==197 [2025-01-13 03:14:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:14:05 - End Time 2025-01-13 03:14:05 [2025-01-13 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236115', 'tblTempUsageDetail_20' ) start [2025-01-13 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236115', 'tblTempUsageDetail_20' ) end [2025-01-13 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236115', 'tblTempVendorCDR_20' ) start [2025-01-13 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236115', 'tblTempVendorCDR_20' ) end [2025-01-13 03:14:17] Production.INFO: ProcessCDR(1,14236115,1,1,2) [2025-01-13 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236115', 'tblTempUsageDetail_20' ) start [2025-01-13 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236115', 'tblTempUsageDetail_20' ) end [2025-01-13 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:14:20] Production.INFO: ==19835== Releasing lock... [2025-01-13 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:14:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:15:05 [end_date_ymd] => 2025-01-13 03:15:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:15:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:15:17] Production.INFO: count ==197 [2025-01-13 03:15:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:15:05 - End Time 2025-01-13 03:15:05 [2025-01-13 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236120', 'tblTempUsageDetail_20' ) start [2025-01-13 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236120', 'tblTempUsageDetail_20' ) end [2025-01-13 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236120', 'tblTempVendorCDR_20' ) start [2025-01-13 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236120', 'tblTempVendorCDR_20' ) end [2025-01-13 03:15:17] Production.INFO: ProcessCDR(1,14236120,1,1,2) [2025-01-13 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236120', 'tblTempUsageDetail_20' ) start [2025-01-13 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236120', 'tblTempUsageDetail_20' ) end [2025-01-13 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:15:21] Production.INFO: ==19930== Releasing lock... [2025-01-13 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:16:04 [end_date_ymd] => 2025-01-13 03:16:04 [RateCDR] => 1 ) [2025-01-13 03:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:16:04' and `end` < '2025-01-13 03:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:16:17] Production.INFO: count ==197 [2025-01-13 03:16:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:16:04 - End Time 2025-01-13 03:16:04 [2025-01-13 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236125', 'tblTempUsageDetail_20' ) start [2025-01-13 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236125', 'tblTempUsageDetail_20' ) end [2025-01-13 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236125', 'tblTempVendorCDR_20' ) start [2025-01-13 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236125', 'tblTempVendorCDR_20' ) end [2025-01-13 03:16:17] Production.INFO: ProcessCDR(1,14236125,1,1,2) [2025-01-13 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236125', 'tblTempUsageDetail_20' ) start [2025-01-13 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236125', 'tblTempUsageDetail_20' ) end [2025-01-13 03:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:16:20] Production.INFO: ==20032== Releasing lock... [2025-01-13 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:16:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:17:05 [end_date_ymd] => 2025-01-13 03:17:05 [RateCDR] => 1 ) [2025-01-13 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:17:05' and `end` < '2025-01-13 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:17:17] Production.INFO: count ==197 [2025-01-13 03:17:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:17:05 - End Time 2025-01-13 03:17:05 [2025-01-13 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236130', 'tblTempUsageDetail_20' ) start [2025-01-13 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236130', 'tblTempUsageDetail_20' ) end [2025-01-13 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236130', 'tblTempVendorCDR_20' ) start [2025-01-13 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236130', 'tblTempVendorCDR_20' ) end [2025-01-13 03:17:17] Production.INFO: ProcessCDR(1,14236130,1,1,2) [2025-01-13 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236130', 'tblTempUsageDetail_20' ) start [2025-01-13 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236130', 'tblTempUsageDetail_20' ) end [2025-01-13 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:17:20] Production.INFO: ==20222== Releasing lock... [2025-01-13 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:17:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:18:05 [end_date_ymd] => 2025-01-13 03:18:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:18:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:18:18] Production.INFO: count ==197 [2025-01-13 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:18:05 - End Time 2025-01-13 03:18:05 [2025-01-13 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236135', 'tblTempUsageDetail_20' ) start [2025-01-13 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236135', 'tblTempUsageDetail_20' ) end [2025-01-13 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236135', 'tblTempVendorCDR_20' ) start [2025-01-13 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236135', 'tblTempVendorCDR_20' ) end [2025-01-13 03:18:18] Production.INFO: ProcessCDR(1,14236135,1,1,2) [2025-01-13 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236135', 'tblTempUsageDetail_20' ) start [2025-01-13 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236135', 'tblTempUsageDetail_20' ) end [2025-01-13 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:18:21] Production.INFO: ==20333== Releasing lock... [2025-01-13 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:19:04 [end_date_ymd] => 2025-01-13 03:19:04 [RateCDR] => 1 ) [2025-01-13 03:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:19:04' and `end` < '2025-01-13 03:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:19:17] Production.INFO: count ==197 [2025-01-13 03:19:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:19:04 - End Time 2025-01-13 03:19:04 [2025-01-13 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236140', 'tblTempUsageDetail_20' ) start [2025-01-13 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236140', 'tblTempUsageDetail_20' ) end [2025-01-13 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236140', 'tblTempVendorCDR_20' ) start [2025-01-13 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236140', 'tblTempVendorCDR_20' ) end [2025-01-13 03:19:17] Production.INFO: ProcessCDR(1,14236140,1,1,2) [2025-01-13 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236140', 'tblTempUsageDetail_20' ) start [2025-01-13 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236140', 'tblTempUsageDetail_20' ) end [2025-01-13 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:19:20] Production.INFO: ==20489== Releasing lock... [2025-01-13 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:20:05 [end_date_ymd] => 2025-01-13 03:20:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:20:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:20:17] Production.INFO: count ==191 [2025-01-13 03:20:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:20:05 - End Time 2025-01-13 03:20:05 [2025-01-13 03:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236145', 'tblTempUsageDetail_20' ) start [2025-01-13 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236145', 'tblTempUsageDetail_20' ) end [2025-01-13 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236145', 'tblTempVendorCDR_20' ) start [2025-01-13 03:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236145', 'tblTempVendorCDR_20' ) end [2025-01-13 03:20:17] Production.INFO: ProcessCDR(1,14236145,1,1,2) [2025-01-13 03:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236145', 'tblTempUsageDetail_20' ) start [2025-01-13 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236145', 'tblTempUsageDetail_20' ) end [2025-01-13 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:20:21] Production.INFO: ==20601== Releasing lock... [2025-01-13 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:21:05 [end_date_ymd] => 2025-01-13 03:21:05 [RateCDR] => 1 ) [2025-01-13 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:21:05' and `end` < '2025-01-13 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:21:17] Production.INFO: count ==185 [2025-01-13 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:21:05 - End Time 2025-01-13 03:21:05 [2025-01-13 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236151', 'tblTempUsageDetail_20' ) start [2025-01-13 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236151', 'tblTempUsageDetail_20' ) end [2025-01-13 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236151', 'tblTempVendorCDR_20' ) start [2025-01-13 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236151', 'tblTempVendorCDR_20' ) end [2025-01-13 03:21:17] Production.INFO: ProcessCDR(1,14236151,1,1,2) [2025-01-13 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236151', 'tblTempUsageDetail_20' ) start [2025-01-13 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236151', 'tblTempUsageDetail_20' ) end [2025-01-13 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:21:21] Production.INFO: ==20708== Releasing lock... [2025-01-13 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:22:05 [end_date_ymd] => 2025-01-13 03:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:22:19] Production.INFO: count ==185 [2025-01-13 03:22:19] Production.ERROR: pbx CDR StartTime 2025-01-13 00:22:05 - End Time 2025-01-13 03:22:05 [2025-01-13 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236156', 'tblTempUsageDetail_20' ) start [2025-01-13 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236156', 'tblTempUsageDetail_20' ) end [2025-01-13 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236156', 'tblTempVendorCDR_20' ) start [2025-01-13 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236156', 'tblTempVendorCDR_20' ) end [2025-01-13 03:22:19] Production.INFO: ProcessCDR(1,14236156,1,1,2) [2025-01-13 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236156', 'tblTempUsageDetail_20' ) start [2025-01-13 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236156', 'tblTempUsageDetail_20' ) end [2025-01-13 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:22:22] Production.INFO: ==20814== Releasing lock... [2025-01-13 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:22:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:23:04 [end_date_ymd] => 2025-01-13 03:23:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:23:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:23:17] Production.INFO: count ==185 [2025-01-13 03:23:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:23:04 - End Time 2025-01-13 03:23:04 [2025-01-13 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236160', 'tblTempUsageDetail_20' ) start [2025-01-13 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236160', 'tblTempUsageDetail_20' ) end [2025-01-13 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236160', 'tblTempVendorCDR_20' ) start [2025-01-13 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236160', 'tblTempVendorCDR_20' ) end [2025-01-13 03:23:17] Production.INFO: ProcessCDR(1,14236160,1,1,2) [2025-01-13 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236160', 'tblTempUsageDetail_20' ) start [2025-01-13 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236160', 'tblTempUsageDetail_20' ) end [2025-01-13 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:23:20] Production.INFO: ==20920== Releasing lock... [2025-01-13 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:24:05 [end_date_ymd] => 2025-01-13 03:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:24:17] Production.INFO: count ==185 [2025-01-13 03:24:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:24:05 - End Time 2025-01-13 03:24:05 [2025-01-13 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236166', 'tblTempUsageDetail_20' ) start [2025-01-13 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236166', 'tblTempUsageDetail_20' ) end [2025-01-13 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236166', 'tblTempVendorCDR_20' ) start [2025-01-13 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236166', 'tblTempVendorCDR_20' ) end [2025-01-13 03:24:17] Production.INFO: ProcessCDR(1,14236166,1,1,2) [2025-01-13 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236166', 'tblTempUsageDetail_20' ) start [2025-01-13 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236166', 'tblTempUsageDetail_20' ) end [2025-01-13 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:24:21] Production.INFO: ==21035== Releasing lock... [2025-01-13 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:25:05 [end_date_ymd] => 2025-01-13 03:25:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:25:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:25:17] Production.INFO: count ==185 [2025-01-13 03:25:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:25:05 - End Time 2025-01-13 03:25:05 [2025-01-13 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236171', 'tblTempUsageDetail_20' ) start [2025-01-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236171', 'tblTempUsageDetail_20' ) end [2025-01-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236171', 'tblTempVendorCDR_20' ) start [2025-01-13 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236171', 'tblTempVendorCDR_20' ) end [2025-01-13 03:25:17] Production.INFO: ProcessCDR(1,14236171,1,1,2) [2025-01-13 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236171', 'tblTempUsageDetail_20' ) start [2025-01-13 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236171', 'tblTempUsageDetail_20' ) end [2025-01-13 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:25:20] Production.INFO: ==21139== Releasing lock... [2025-01-13 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:25:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:26:05 [end_date_ymd] => 2025-01-13 03:26:05 [RateCDR] => 1 ) [2025-01-13 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:26:05' and `end` < '2025-01-13 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:26:18] Production.INFO: count ==185 [2025-01-13 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:26:05 - End Time 2025-01-13 03:26:05 [2025-01-13 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236176', 'tblTempUsageDetail_20' ) start [2025-01-13 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236176', 'tblTempUsageDetail_20' ) end [2025-01-13 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236176', 'tblTempVendorCDR_20' ) start [2025-01-13 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236176', 'tblTempVendorCDR_20' ) end [2025-01-13 03:26:18] Production.INFO: ProcessCDR(1,14236176,1,1,2) [2025-01-13 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236176', 'tblTempUsageDetail_20' ) start [2025-01-13 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236176', 'tblTempUsageDetail_20' ) end [2025-01-13 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:26:21] Production.INFO: ==21244== Releasing lock... [2025-01-13 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:27:05 [end_date_ymd] => 2025-01-13 03:27:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:27:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:27:18] Production.INFO: count ==185 [2025-01-13 03:27:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:27:05 - End Time 2025-01-13 03:27:05 [2025-01-13 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236181', 'tblTempUsageDetail_20' ) start [2025-01-13 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236181', 'tblTempUsageDetail_20' ) end [2025-01-13 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236181', 'tblTempVendorCDR_20' ) start [2025-01-13 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236181', 'tblTempVendorCDR_20' ) end [2025-01-13 03:27:18] Production.INFO: ProcessCDR(1,14236181,1,1,2) [2025-01-13 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236181', 'tblTempUsageDetail_20' ) start [2025-01-13 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236181', 'tblTempUsageDetail_20' ) end [2025-01-13 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:27:21] Production.INFO: ==21350== Releasing lock... [2025-01-13 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:28:04 [end_date_ymd] => 2025-01-13 03:28:04 [RateCDR] => 1 ) [2025-01-13 03:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:28:04' and `end` < '2025-01-13 03:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:28:18] Production.INFO: count ==185 [2025-01-13 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:28:04 - End Time 2025-01-13 03:28:04 [2025-01-13 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236186', 'tblTempUsageDetail_20' ) start [2025-01-13 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236186', 'tblTempUsageDetail_20' ) end [2025-01-13 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236186', 'tblTempVendorCDR_20' ) start [2025-01-13 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236186', 'tblTempVendorCDR_20' ) end [2025-01-13 03:28:18] Production.INFO: ProcessCDR(1,14236186,1,1,2) [2025-01-13 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236186', 'tblTempUsageDetail_20' ) start [2025-01-13 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236186', 'tblTempUsageDetail_20' ) end [2025-01-13 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:28:21] Production.INFO: ==21451== Releasing lock... [2025-01-13 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:29:05 [end_date_ymd] => 2025-01-13 03:29:05 [RateCDR] => 1 ) [2025-01-13 03:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:29:05' and `end` < '2025-01-13 03:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:29:18] Production.INFO: count ==184 [2025-01-13 03:29:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:29:05 - End Time 2025-01-13 03:29:05 [2025-01-13 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236191', 'tblTempUsageDetail_20' ) start [2025-01-13 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236191', 'tblTempUsageDetail_20' ) end [2025-01-13 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236191', 'tblTempVendorCDR_20' ) start [2025-01-13 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236191', 'tblTempVendorCDR_20' ) end [2025-01-13 03:29:18] Production.INFO: ProcessCDR(1,14236191,1,1,2) [2025-01-13 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236191', 'tblTempUsageDetail_20' ) start [2025-01-13 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236191', 'tblTempUsageDetail_20' ) end [2025-01-13 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:29:22] Production.INFO: ==21547== Releasing lock... [2025-01-13 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:30:05 [end_date_ymd] => 2025-01-13 03:30:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:30:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:30:18] Production.INFO: count ==186 [2025-01-13 03:30:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:30:05 - End Time 2025-01-13 03:30:05 [2025-01-13 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236197', 'tblTempUsageDetail_20' ) start [2025-01-13 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236197', 'tblTempUsageDetail_20' ) end [2025-01-13 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236197', 'tblTempVendorCDR_20' ) start [2025-01-13 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236197', 'tblTempVendorCDR_20' ) end [2025-01-13 03:30:18] Production.INFO: ProcessCDR(1,14236197,1,1,2) [2025-01-13 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236197', 'tblTempUsageDetail_20' ) start [2025-01-13 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236197', 'tblTempUsageDetail_20' ) end [2025-01-13 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:30:22] Production.INFO: ==21647== Releasing lock... [2025-01-13 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:31:05 [end_date_ymd] => 2025-01-13 03:31:05 [RateCDR] => 1 ) [2025-01-13 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:31:05' and `end` < '2025-01-13 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:31:19] Production.INFO: count ==188 [2025-01-13 03:31:19] Production.ERROR: pbx CDR StartTime 2025-01-13 00:31:05 - End Time 2025-01-13 03:31:05 [2025-01-13 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236202', 'tblTempUsageDetail_20' ) start [2025-01-13 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236202', 'tblTempUsageDetail_20' ) end [2025-01-13 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236202', 'tblTempVendorCDR_20' ) start [2025-01-13 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236202', 'tblTempVendorCDR_20' ) end [2025-01-13 03:31:19] Production.INFO: ProcessCDR(1,14236202,1,1,2) [2025-01-13 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236202', 'tblTempUsageDetail_20' ) start [2025-01-13 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236202', 'tblTempUsageDetail_20' ) end [2025-01-13 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:31:22] Production.INFO: ==21746== Releasing lock... [2025-01-13 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:32:04 [end_date_ymd] => 2025-01-13 03:32:04 [RateCDR] => 1 ) [2025-01-13 03:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:32:04' and `end` < '2025-01-13 03:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:32:17] Production.INFO: count ==188 [2025-01-13 03:32:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:32:04 - End Time 2025-01-13 03:32:04 [2025-01-13 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236207', 'tblTempUsageDetail_20' ) start [2025-01-13 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236207', 'tblTempUsageDetail_20' ) end [2025-01-13 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236207', 'tblTempVendorCDR_20' ) start [2025-01-13 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236207', 'tblTempVendorCDR_20' ) end [2025-01-13 03:32:17] Production.INFO: ProcessCDR(1,14236207,1,1,2) [2025-01-13 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236207', 'tblTempUsageDetail_20' ) start [2025-01-13 03:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236207', 'tblTempUsageDetail_20' ) end [2025-01-13 03:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:32:20] Production.INFO: ==21839== Releasing lock... [2025-01-13 03:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:32:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:33:05 [end_date_ymd] => 2025-01-13 03:33:05 [RateCDR] => 1 ) [2025-01-13 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:33:05' and `end` < '2025-01-13 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:33:19] Production.INFO: count ==188 [2025-01-13 03:33:19] Production.ERROR: pbx CDR StartTime 2025-01-13 00:33:05 - End Time 2025-01-13 03:33:05 [2025-01-13 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236212', 'tblTempUsageDetail_20' ) start [2025-01-13 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236212', 'tblTempUsageDetail_20' ) end [2025-01-13 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236212', 'tblTempVendorCDR_20' ) start [2025-01-13 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236212', 'tblTempVendorCDR_20' ) end [2025-01-13 03:33:19] Production.INFO: ProcessCDR(1,14236212,1,1,2) [2025-01-13 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236212', 'tblTempUsageDetail_20' ) start [2025-01-13 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236212', 'tblTempUsageDetail_20' ) end [2025-01-13 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:33:22] Production.INFO: ==21933== Releasing lock... [2025-01-13 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:33:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:34:04 [end_date_ymd] => 2025-01-13 03:34:04 [RateCDR] => 1 ) [2025-01-13 03:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:34:04' and `end` < '2025-01-13 03:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:34:17] Production.INFO: count ==188 [2025-01-13 03:34:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:34:04 - End Time 2025-01-13 03:34:04 [2025-01-13 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236217', 'tblTempUsageDetail_20' ) start [2025-01-13 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236217', 'tblTempUsageDetail_20' ) end [2025-01-13 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236217', 'tblTempVendorCDR_20' ) start [2025-01-13 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236217', 'tblTempVendorCDR_20' ) end [2025-01-13 03:34:17] Production.INFO: ProcessCDR(1,14236217,1,1,2) [2025-01-13 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236217', 'tblTempUsageDetail_20' ) start [2025-01-13 03:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236217', 'tblTempUsageDetail_20' ) end [2025-01-13 03:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:34:20] Production.INFO: ==22053== Releasing lock... [2025-01-13 03:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:34:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:35:05 [end_date_ymd] => 2025-01-13 03:35:05 [RateCDR] => 1 ) [2025-01-13 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:35:05' and `end` < '2025-01-13 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:35:17] Production.INFO: count ==188 [2025-01-13 03:35:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:35:05 - End Time 2025-01-13 03:35:05 [2025-01-13 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236222', 'tblTempUsageDetail_20' ) start [2025-01-13 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236222', 'tblTempUsageDetail_20' ) end [2025-01-13 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236222', 'tblTempVendorCDR_20' ) start [2025-01-13 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236222', 'tblTempVendorCDR_20' ) end [2025-01-13 03:35:17] Production.INFO: ProcessCDR(1,14236222,1,1,2) [2025-01-13 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236222', 'tblTempUsageDetail_20' ) start [2025-01-13 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236222', 'tblTempUsageDetail_20' ) end [2025-01-13 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:35:20] Production.INFO: ==22134== Releasing lock... [2025-01-13 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:35:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:36:05 [end_date_ymd] => 2025-01-13 03:36:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:36:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:36:18] Production.INFO: count ==188 [2025-01-13 03:36:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:36:05 - End Time 2025-01-13 03:36:05 [2025-01-13 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236227', 'tblTempUsageDetail_20' ) start [2025-01-13 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236227', 'tblTempUsageDetail_20' ) end [2025-01-13 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236227', 'tblTempVendorCDR_20' ) start [2025-01-13 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236227', 'tblTempVendorCDR_20' ) end [2025-01-13 03:36:18] Production.INFO: ProcessCDR(1,14236227,1,1,2) [2025-01-13 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236227', 'tblTempUsageDetail_20' ) start [2025-01-13 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236227', 'tblTempUsageDetail_20' ) end [2025-01-13 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:36:21] Production.INFO: ==22211== Releasing lock... [2025-01-13 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:37:05 [end_date_ymd] => 2025-01-13 03:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:37:17] Production.INFO: count ==188 [2025-01-13 03:37:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:37:05 - End Time 2025-01-13 03:37:05 [2025-01-13 03:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236232', 'tblTempUsageDetail_20' ) start [2025-01-13 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236232', 'tblTempUsageDetail_20' ) end [2025-01-13 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236232', 'tblTempVendorCDR_20' ) start [2025-01-13 03:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236232', 'tblTempVendorCDR_20' ) end [2025-01-13 03:37:17] Production.INFO: ProcessCDR(1,14236232,1,1,2) [2025-01-13 03:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236232', 'tblTempUsageDetail_20' ) start [2025-01-13 03:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236232', 'tblTempUsageDetail_20' ) end [2025-01-13 03:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:37:21] Production.INFO: ==22287== Releasing lock... [2025-01-13 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:38:04 [end_date_ymd] => 2025-01-13 03:38:04 [RateCDR] => 1 ) [2025-01-13 03: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` >= '2025-01-13 00:38:04' and `end` < '2025-01-13 03: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 ,'') [2025-01-13 03:38:17] Production.INFO: count ==188 [2025-01-13 03:38:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:38:04 - End Time 2025-01-13 03:38:04 [2025-01-13 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236237', 'tblTempUsageDetail_20' ) start [2025-01-13 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236237', 'tblTempUsageDetail_20' ) end [2025-01-13 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236237', 'tblTempVendorCDR_20' ) start [2025-01-13 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236237', 'tblTempVendorCDR_20' ) end [2025-01-13 03:38:17] Production.INFO: ProcessCDR(1,14236237,1,1,2) [2025-01-13 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236237', 'tblTempUsageDetail_20' ) start [2025-01-13 03:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236237', 'tblTempUsageDetail_20' ) end [2025-01-13 03:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:38:20] Production.INFO: ==22363== Releasing lock... [2025-01-13 03:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:38:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:39:04 [end_date_ymd] => 2025-01-13 03:39:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:39:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:39:18] Production.INFO: count ==188 [2025-01-13 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:39:04 - End Time 2025-01-13 03:39:04 [2025-01-13 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236242', 'tblTempUsageDetail_20' ) start [2025-01-13 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236242', 'tblTempUsageDetail_20' ) end [2025-01-13 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236242', 'tblTempVendorCDR_20' ) start [2025-01-13 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236242', 'tblTempVendorCDR_20' ) end [2025-01-13 03:39:18] Production.INFO: ProcessCDR(1,14236242,1,1,2) [2025-01-13 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236242', 'tblTempUsageDetail_20' ) start [2025-01-13 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236242', 'tblTempUsageDetail_20' ) end [2025-01-13 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:39:21] Production.INFO: ==22439== Releasing lock... [2025-01-13 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:40:05 [end_date_ymd] => 2025-01-13 03:40:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:40:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:40:18] Production.INFO: count ==184 [2025-01-13 03:40:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:40:05 - End Time 2025-01-13 03:40:05 [2025-01-13 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236247', 'tblTempUsageDetail_20' ) start [2025-01-13 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236247', 'tblTempUsageDetail_20' ) end [2025-01-13 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236247', 'tblTempVendorCDR_20' ) start [2025-01-13 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236247', 'tblTempVendorCDR_20' ) end [2025-01-13 03:40:18] Production.INFO: ProcessCDR(1,14236247,1,1,2) [2025-01-13 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236247', 'tblTempUsageDetail_20' ) start [2025-01-13 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236247', 'tblTempUsageDetail_20' ) end [2025-01-13 03:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:40:21] Production.INFO: ==22519== Releasing lock... [2025-01-13 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:41:04 [end_date_ymd] => 2025-01-13 03:41:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:41:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:41:17] Production.INFO: count ==178 [2025-01-13 03:41:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:41:04 - End Time 2025-01-13 03:41:04 [2025-01-13 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236253', 'tblTempUsageDetail_20' ) start [2025-01-13 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236253', 'tblTempUsageDetail_20' ) end [2025-01-13 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236253', 'tblTempVendorCDR_20' ) start [2025-01-13 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236253', 'tblTempVendorCDR_20' ) end [2025-01-13 03:41:17] Production.INFO: ProcessCDR(1,14236253,1,1,2) [2025-01-13 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236253', 'tblTempUsageDetail_20' ) start [2025-01-13 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236253', 'tblTempUsageDetail_20' ) end [2025-01-13 03:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:41:20] Production.INFO: ==22598== Releasing lock... [2025-01-13 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:41:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:42:05 [end_date_ymd] => 2025-01-13 03:42:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:42:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:42:17] Production.INFO: count ==178 [2025-01-13 03:42:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:42:05 - End Time 2025-01-13 03:42:05 [2025-01-13 03:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236258', 'tblTempUsageDetail_20' ) start [2025-01-13 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236258', 'tblTempUsageDetail_20' ) end [2025-01-13 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236258', 'tblTempVendorCDR_20' ) start [2025-01-13 03:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236258', 'tblTempVendorCDR_20' ) end [2025-01-13 03:42:17] Production.INFO: ProcessCDR(1,14236258,1,1,2) [2025-01-13 03:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236258', 'tblTempUsageDetail_20' ) start [2025-01-13 03:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236258', 'tblTempUsageDetail_20' ) end [2025-01-13 03:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:42:20] Production.INFO: ==22676== Releasing lock... [2025-01-13 03:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:42:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:43:05 [end_date_ymd] => 2025-01-13 03:43:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:43:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:43:18] Production.INFO: count ==178 [2025-01-13 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:43:05 - End Time 2025-01-13 03:43:05 [2025-01-13 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236263', 'tblTempUsageDetail_20' ) start [2025-01-13 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236263', 'tblTempUsageDetail_20' ) end [2025-01-13 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236263', 'tblTempVendorCDR_20' ) start [2025-01-13 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236263', 'tblTempVendorCDR_20' ) end [2025-01-13 03:43:18] Production.INFO: ProcessCDR(1,14236263,1,1,2) [2025-01-13 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236263', 'tblTempUsageDetail_20' ) start [2025-01-13 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236263', 'tblTempUsageDetail_20' ) end [2025-01-13 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:43:21] Production.INFO: ==22753== Releasing lock... [2025-01-13 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:44:05 [end_date_ymd] => 2025-01-13 03:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:44:18] Production.INFO: count ==178 [2025-01-13 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:44:05 - End Time 2025-01-13 03:44:05 [2025-01-13 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236268', 'tblTempUsageDetail_20' ) start [2025-01-13 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236268', 'tblTempUsageDetail_20' ) end [2025-01-13 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236268', 'tblTempVendorCDR_20' ) start [2025-01-13 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236268', 'tblTempVendorCDR_20' ) end [2025-01-13 03:44:18] Production.INFO: ProcessCDR(1,14236268,1,1,2) [2025-01-13 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236268', 'tblTempUsageDetail_20' ) start [2025-01-13 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236268', 'tblTempUsageDetail_20' ) end [2025-01-13 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:44:21] Production.INFO: ==22838== Releasing lock... [2025-01-13 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:45:05 [end_date_ymd] => 2025-01-13 03:45:05 [RateCDR] => 1 ) [2025-01-13 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:45:05' and `end` < '2025-01-13 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:45:18] Production.INFO: count ==178 [2025-01-13 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:45:05 - End Time 2025-01-13 03:45:05 [2025-01-13 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236273', 'tblTempUsageDetail_20' ) start [2025-01-13 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236273', 'tblTempUsageDetail_20' ) end [2025-01-13 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236273', 'tblTempVendorCDR_20' ) start [2025-01-13 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236273', 'tblTempVendorCDR_20' ) end [2025-01-13 03:45:18] Production.INFO: ProcessCDR(1,14236273,1,1,2) [2025-01-13 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236273', 'tblTempUsageDetail_20' ) start [2025-01-13 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236273', 'tblTempUsageDetail_20' ) end [2025-01-13 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:45:21] Production.INFO: ==22922== Releasing lock... [2025-01-13 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:46:05 [end_date_ymd] => 2025-01-13 03:46:05 [RateCDR] => 1 ) [2025-01-13 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:46:05' and `end` < '2025-01-13 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:46:18] Production.INFO: count ==178 [2025-01-13 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:46:05 - End Time 2025-01-13 03:46:05 [2025-01-13 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236278', 'tblTempUsageDetail_20' ) start [2025-01-13 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236278', 'tblTempUsageDetail_20' ) end [2025-01-13 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236278', 'tblTempVendorCDR_20' ) start [2025-01-13 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236278', 'tblTempVendorCDR_20' ) end [2025-01-13 03:46:18] Production.INFO: ProcessCDR(1,14236278,1,1,2) [2025-01-13 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236278', 'tblTempUsageDetail_20' ) start [2025-01-13 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236278', 'tblTempUsageDetail_20' ) end [2025-01-13 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:46:21] Production.INFO: ==23006== Releasing lock... [2025-01-13 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:47:05 [end_date_ymd] => 2025-01-13 03:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:47:18] Production.INFO: count ==178 [2025-01-13 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:47:05 - End Time 2025-01-13 03:47:05 [2025-01-13 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236283', 'tblTempUsageDetail_20' ) start [2025-01-13 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236283', 'tblTempUsageDetail_20' ) end [2025-01-13 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236283', 'tblTempVendorCDR_20' ) start [2025-01-13 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236283', 'tblTempVendorCDR_20' ) end [2025-01-13 03:47:18] Production.INFO: ProcessCDR(1,14236283,1,1,2) [2025-01-13 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236283', 'tblTempUsageDetail_20' ) start [2025-01-13 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236283', 'tblTempUsageDetail_20' ) end [2025-01-13 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:47:21] Production.INFO: ==23130== Releasing lock... [2025-01-13 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:48:05 [end_date_ymd] => 2025-01-13 03:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:48:18] Production.INFO: count ==178 [2025-01-13 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:48:05 - End Time 2025-01-13 03:48:05 [2025-01-13 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236288', 'tblTempUsageDetail_20' ) start [2025-01-13 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236288', 'tblTempUsageDetail_20' ) end [2025-01-13 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236288', 'tblTempVendorCDR_20' ) start [2025-01-13 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236288', 'tblTempVendorCDR_20' ) end [2025-01-13 03:48:18] Production.INFO: ProcessCDR(1,14236288,1,1,2) [2025-01-13 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236288', 'tblTempUsageDetail_20' ) start [2025-01-13 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236288', 'tblTempUsageDetail_20' ) end [2025-01-13 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:48:21] Production.INFO: ==23219== Releasing lock... [2025-01-13 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:49:05 [end_date_ymd] => 2025-01-13 03:49:05 [RateCDR] => 1 ) [2025-01-13 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:49:05' and `end` < '2025-01-13 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:49:19] Production.INFO: count ==178 [2025-01-13 03:49:20] Production.ERROR: pbx CDR StartTime 2025-01-13 00:49:05 - End Time 2025-01-13 03:49:05 [2025-01-13 03:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236293', 'tblTempUsageDetail_20' ) start [2025-01-13 03:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236293', 'tblTempUsageDetail_20' ) end [2025-01-13 03:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236293', 'tblTempVendorCDR_20' ) start [2025-01-13 03:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236293', 'tblTempVendorCDR_20' ) end [2025-01-13 03:49:20] Production.INFO: ProcessCDR(1,14236293,1,1,2) [2025-01-13 03:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236293', 'tblTempUsageDetail_20' ) start [2025-01-13 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236293', 'tblTempUsageDetail_20' ) end [2025-01-13 03:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:49:23] Production.INFO: ==23294== Releasing lock... [2025-01-13 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:49:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:50:06 [end_date_ymd] => 2025-01-13 03:50:06 [RateCDR] => 1 ) [2025-01-13 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:50:06' and `end` < '2025-01-13 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:50:19] Production.INFO: count ==182 [2025-01-13 03:50:19] Production.ERROR: pbx CDR StartTime 2025-01-13 00:50:06 - End Time 2025-01-13 03:50:06 [2025-01-13 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236299', 'tblTempUsageDetail_20' ) start [2025-01-13 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236299', 'tblTempUsageDetail_20' ) end [2025-01-13 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236299', 'tblTempVendorCDR_20' ) start [2025-01-13 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236299', 'tblTempVendorCDR_20' ) end [2025-01-13 03:50:19] Production.INFO: ProcessCDR(1,14236299,1,1,2) [2025-01-13 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236299', 'tblTempUsageDetail_20' ) start [2025-01-13 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236299', 'tblTempUsageDetail_20' ) end [2025-01-13 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:50:22] Production.INFO: ==23406== Releasing lock... [2025-01-13 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:51:04 [end_date_ymd] => 2025-01-13 03:51:04 [RateCDR] => 1 ) [2025-01-13 03: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` >= '2025-01-13 00:51:04' and `end` < '2025-01-13 03:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:51:18] Production.INFO: count ==182 [2025-01-13 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:51:04 - End Time 2025-01-13 03:51:04 [2025-01-13 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236304', 'tblTempUsageDetail_20' ) start [2025-01-13 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236304', 'tblTempUsageDetail_20' ) end [2025-01-13 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236304', 'tblTempVendorCDR_20' ) start [2025-01-13 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236304', 'tblTempVendorCDR_20' ) end [2025-01-13 03:51:18] Production.INFO: ProcessCDR(1,14236304,1,1,2) [2025-01-13 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236304', 'tblTempUsageDetail_20' ) start [2025-01-13 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236304', 'tblTempUsageDetail_20' ) end [2025-01-13 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:51:22] Production.INFO: ==23477== Releasing lock... [2025-01-13 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:52:05 [end_date_ymd] => 2025-01-13 03:52:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:52:18] Production.INFO: count ==182 [2025-01-13 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:52:05 - End Time 2025-01-13 03:52:05 [2025-01-13 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236309', 'tblTempUsageDetail_20' ) start [2025-01-13 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236309', 'tblTempUsageDetail_20' ) end [2025-01-13 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236309', 'tblTempVendorCDR_20' ) start [2025-01-13 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236309', 'tblTempVendorCDR_20' ) end [2025-01-13 03:52:18] Production.INFO: ProcessCDR(1,14236309,1,1,2) [2025-01-13 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236309', 'tblTempUsageDetail_20' ) start [2025-01-13 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236309', 'tblTempUsageDetail_20' ) end [2025-01-13 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:52:22] Production.INFO: ==23554== Releasing lock... [2025-01-13 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:53:05 [end_date_ymd] => 2025-01-13 03:53:05 [RateCDR] => 1 ) [2025-01-13 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:53:05' and `end` < '2025-01-13 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:53:18] Production.INFO: count ==182 [2025-01-13 03:53:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:53:05 - End Time 2025-01-13 03:53:05 [2025-01-13 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236314', 'tblTempUsageDetail_20' ) start [2025-01-13 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236314', 'tblTempUsageDetail_20' ) end [2025-01-13 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236314', 'tblTempVendorCDR_20' ) start [2025-01-13 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236314', 'tblTempVendorCDR_20' ) end [2025-01-13 03:53:18] Production.INFO: ProcessCDR(1,14236314,1,1,2) [2025-01-13 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236314', 'tblTempUsageDetail_20' ) start [2025-01-13 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236314', 'tblTempUsageDetail_20' ) end [2025-01-13 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:53:21] Production.INFO: ==23624== Releasing lock... [2025-01-13 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:54:05 [end_date_ymd] => 2025-01-13 03:54:05 [RateCDR] => 1 ) [2025-01-13 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:54:05' and `end` < '2025-01-13 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:54:17] Production.INFO: count ==182 [2025-01-13 03:54:17] Production.ERROR: pbx CDR StartTime 2025-01-13 00:54:05 - End Time 2025-01-13 03:54:05 [2025-01-13 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236319', 'tblTempUsageDetail_20' ) start [2025-01-13 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236319', 'tblTempUsageDetail_20' ) end [2025-01-13 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236319', 'tblTempVendorCDR_20' ) start [2025-01-13 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236319', 'tblTempVendorCDR_20' ) end [2025-01-13 03:54:17] Production.INFO: ProcessCDR(1,14236319,1,1,2) [2025-01-13 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236319', 'tblTempUsageDetail_20' ) start [2025-01-13 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236319', 'tblTempUsageDetail_20' ) end [2025-01-13 03:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:54:20] Production.INFO: ==23696== Releasing lock... [2025-01-13 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:54:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:55:05 [end_date_ymd] => 2025-01-13 03:55:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:55:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:55:18] Production.INFO: count ==182 [2025-01-13 03:55:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:55:05 - End Time 2025-01-13 03:55:05 [2025-01-13 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236324', 'tblTempUsageDetail_20' ) start [2025-01-13 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236324', 'tblTempUsageDetail_20' ) end [2025-01-13 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236324', 'tblTempVendorCDR_20' ) start [2025-01-13 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236324', 'tblTempVendorCDR_20' ) end [2025-01-13 03:55:18] Production.INFO: ProcessCDR(1,14236324,1,1,2) [2025-01-13 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236324', 'tblTempUsageDetail_20' ) start [2025-01-13 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236324', 'tblTempUsageDetail_20' ) end [2025-01-13 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:55:21] Production.INFO: ==23765== Releasing lock... [2025-01-13 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:56:05 [end_date_ymd] => 2025-01-13 03:56:05 [RateCDR] => 1 ) [2025-01-13 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:56:05' and `end` < '2025-01-13 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:56:18] Production.INFO: count ==178 [2025-01-13 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:56:05 - End Time 2025-01-13 03:56:05 [2025-01-13 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236329', 'tblTempUsageDetail_20' ) start [2025-01-13 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236329', 'tblTempUsageDetail_20' ) end [2025-01-13 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236329', 'tblTempVendorCDR_20' ) start [2025-01-13 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236329', 'tblTempVendorCDR_20' ) end [2025-01-13 03:56:18] Production.INFO: ProcessCDR(1,14236329,1,1,2) [2025-01-13 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236329', 'tblTempUsageDetail_20' ) start [2025-01-13 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236329', 'tblTempUsageDetail_20' ) end [2025-01-13 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:56:21] Production.INFO: ==23837== Releasing lock... [2025-01-13 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:57:05 [end_date_ymd] => 2025-01-13 03:57:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 00:57:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 03:57:18] Production.INFO: count ==177 [2025-01-13 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:57:05 - End Time 2025-01-13 03:57:05 [2025-01-13 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236334', 'tblTempUsageDetail_20' ) start [2025-01-13 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236334', 'tblTempUsageDetail_20' ) end [2025-01-13 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236334', 'tblTempVendorCDR_20' ) start [2025-01-13 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236334', 'tblTempVendorCDR_20' ) end [2025-01-13 03:57:18] Production.INFO: ProcessCDR(1,14236334,1,1,2) [2025-01-13 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236334', 'tblTempUsageDetail_20' ) start [2025-01-13 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236334', 'tblTempUsageDetail_20' ) end [2025-01-13 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:57:21] Production.INFO: ==23907== Releasing lock... [2025-01-13 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:58:05 [end_date_ymd] => 2025-01-13 03:58:05 [RateCDR] => 1 ) [2025-01-13 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:58:05' and `end` < '2025-01-13 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:58:18] Production.INFO: count ==177 [2025-01-13 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:58:05 - End Time 2025-01-13 03:58:05 [2025-01-13 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236339', 'tblTempUsageDetail_20' ) start [2025-01-13 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236339', 'tblTempUsageDetail_20' ) end [2025-01-13 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236339', 'tblTempVendorCDR_20' ) start [2025-01-13 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236339', 'tblTempVendorCDR_20' ) end [2025-01-13 03:58:18] Production.INFO: ProcessCDR(1,14236339,1,1,2) [2025-01-13 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236339', 'tblTempUsageDetail_20' ) start [2025-01-13 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236339', 'tblTempUsageDetail_20' ) end [2025-01-13 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:58:21] Production.INFO: ==23981== Releasing lock... [2025-01-13 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 00:59:04 [end_date_ymd] => 2025-01-13 03:59:04 [RateCDR] => 1 ) [2025-01-13 03:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 00:59:04' and `end` < '2025-01-13 03:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 03:59:18] Production.INFO: count ==176 [2025-01-13 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-13 00:59:04 - End Time 2025-01-13 03:59:04 [2025-01-13 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236344', 'tblTempUsageDetail_20' ) start [2025-01-13 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236344', 'tblTempUsageDetail_20' ) end [2025-01-13 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236344', 'tblTempVendorCDR_20' ) start [2025-01-13 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236344', 'tblTempVendorCDR_20' ) end [2025-01-13 03:59:18] Production.INFO: ProcessCDR(1,14236344,1,1,2) [2025-01-13 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236344', 'tblTempUsageDetail_20' ) start [2025-01-13 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236344', 'tblTempUsageDetail_20' ) end [2025-01-13 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 03:59:21] Production.INFO: ==24056== Releasing lock... [2025-01-13 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 03:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:00:06 [end_date_ymd] => 2025-01-13 04:00:06 [RateCDR] => 1 ) [2025-01-13 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:00:06' and `end` < '2025-01-13 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:00:20] Production.INFO: count ==169 [2025-01-13 04:00:20] Production.ERROR: pbx CDR StartTime 2025-01-13 01:00:06 - End Time 2025-01-13 04:00:06 [2025-01-13 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236350', 'tblTempUsageDetail_20' ) start [2025-01-13 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236350', 'tblTempUsageDetail_20' ) end [2025-01-13 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236350', 'tblTempVendorCDR_20' ) start [2025-01-13 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236350', 'tblTempVendorCDR_20' ) end [2025-01-13 04:00:20] Production.INFO: ProcessCDR(1,14236350,1,1,2) [2025-01-13 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236350', 'tblTempUsageDetail_20' ) start [2025-01-13 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236350', 'tblTempUsageDetail_20' ) end [2025-01-13 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:00:23] Production.INFO: ==24130== Releasing lock... [2025-01-13 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:00:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 04:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:01:04 [end_date_ymd] => 2025-01-13 04:01:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:01:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:01:18] Production.INFO: count ==166 [2025-01-13 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:01:04 - End Time 2025-01-13 04:01:04 [2025-01-13 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236356', 'tblTempUsageDetail_20' ) start [2025-01-13 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236356', 'tblTempUsageDetail_20' ) end [2025-01-13 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236356', 'tblTempVendorCDR_20' ) start [2025-01-13 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236356', 'tblTempVendorCDR_20' ) end [2025-01-13 04:01:18] Production.INFO: ProcessCDR(1,14236356,1,1,2) [2025-01-13 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236356', 'tblTempUsageDetail_20' ) start [2025-01-13 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236356', 'tblTempUsageDetail_20' ) end [2025-01-13 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:01:21] Production.INFO: ==24213== Releasing lock... [2025-01-13 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:02:05 [end_date_ymd] => 2025-01-13 04:02:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:02:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:02:18] Production.INFO: count ==166 [2025-01-13 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:02:05 - End Time 2025-01-13 04:02:05 [2025-01-13 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236361', 'tblTempUsageDetail_20' ) start [2025-01-13 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236361', 'tblTempUsageDetail_20' ) end [2025-01-13 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236361', 'tblTempVendorCDR_20' ) start [2025-01-13 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236361', 'tblTempVendorCDR_20' ) end [2025-01-13 04:02:18] Production.INFO: ProcessCDR(1,14236361,1,1,2) [2025-01-13 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236361', 'tblTempUsageDetail_20' ) start [2025-01-13 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236361', 'tblTempUsageDetail_20' ) end [2025-01-13 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:02:21] Production.INFO: ==24285== Releasing lock... [2025-01-13 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:03:05 [end_date_ymd] => 2025-01-13 04:03:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:03:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:03:18] Production.INFO: count ==166 [2025-01-13 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:03:05 - End Time 2025-01-13 04:03:05 [2025-01-13 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236366', 'tblTempUsageDetail_20' ) start [2025-01-13 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236366', 'tblTempUsageDetail_20' ) end [2025-01-13 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236366', 'tblTempVendorCDR_20' ) start [2025-01-13 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236366', 'tblTempVendorCDR_20' ) end [2025-01-13 04:03:18] Production.INFO: ProcessCDR(1,14236366,1,1,2) [2025-01-13 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236366', 'tblTempUsageDetail_20' ) start [2025-01-13 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236366', 'tblTempUsageDetail_20' ) end [2025-01-13 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:03:21] Production.INFO: ==24355== Releasing lock... [2025-01-13 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:04:06 [end_date_ymd] => 2025-01-13 04:04:06 [RateCDR] => 1 ) [2025-01-13 04: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` >= '2025-01-13 01:04:06' and `end` < '2025-01-13 04: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 ,'') [2025-01-13 04:04:18] Production.INFO: count ==166 [2025-01-13 04:04:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:04:06 - End Time 2025-01-13 04:04:06 [2025-01-13 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236371', 'tblTempUsageDetail_20' ) start [2025-01-13 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236371', 'tblTempUsageDetail_20' ) end [2025-01-13 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236371', 'tblTempVendorCDR_20' ) start [2025-01-13 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236371', 'tblTempVendorCDR_20' ) end [2025-01-13 04:04:18] Production.INFO: ProcessCDR(1,14236371,1,1,2) [2025-01-13 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236371', 'tblTempUsageDetail_20' ) start [2025-01-13 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236371', 'tblTempUsageDetail_20' ) end [2025-01-13 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:04:22] Production.INFO: ==24425== Releasing lock... [2025-01-13 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:05:05 [end_date_ymd] => 2025-01-13 04:05:05 [RateCDR] => 1 ) [2025-01-13 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:05:05' and `end` < '2025-01-13 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:05:18] Production.INFO: count ==166 [2025-01-13 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:05:05 - End Time 2025-01-13 04:05:05 [2025-01-13 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236376', 'tblTempUsageDetail_20' ) start [2025-01-13 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236376', 'tblTempUsageDetail_20' ) end [2025-01-13 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236376', 'tblTempVendorCDR_20' ) start [2025-01-13 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236376', 'tblTempVendorCDR_20' ) end [2025-01-13 04:05:18] Production.INFO: ProcessCDR(1,14236376,1,1,2) [2025-01-13 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236376', 'tblTempUsageDetail_20' ) start [2025-01-13 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236376', 'tblTempUsageDetail_20' ) end [2025-01-13 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:05:21] Production.INFO: ==24494== Releasing lock... [2025-01-13 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:06:05 [end_date_ymd] => 2025-01-13 04:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:06:18] Production.INFO: count ==166 [2025-01-13 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:06:05 - End Time 2025-01-13 04:06:05 [2025-01-13 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236381', 'tblTempUsageDetail_20' ) start [2025-01-13 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236381', 'tblTempUsageDetail_20' ) end [2025-01-13 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236381', 'tblTempVendorCDR_20' ) start [2025-01-13 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236381', 'tblTempVendorCDR_20' ) end [2025-01-13 04:06:18] Production.INFO: ProcessCDR(1,14236381,1,1,2) [2025-01-13 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236381', 'tblTempUsageDetail_20' ) start [2025-01-13 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236381', 'tblTempUsageDetail_20' ) end [2025-01-13 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:06:21] Production.INFO: ==24604== Releasing lock... [2025-01-13 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:07:05 [end_date_ymd] => 2025-01-13 04:07:05 [RateCDR] => 1 ) [2025-01-13 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:07:05' and `end` < '2025-01-13 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:07:19] Production.INFO: count ==166 [2025-01-13 04:07:19] Production.ERROR: pbx CDR StartTime 2025-01-13 01:07:05 - End Time 2025-01-13 04:07:05 [2025-01-13 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236386', 'tblTempUsageDetail_20' ) start [2025-01-13 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236386', 'tblTempUsageDetail_20' ) end [2025-01-13 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236386', 'tblTempVendorCDR_20' ) start [2025-01-13 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236386', 'tblTempVendorCDR_20' ) end [2025-01-13 04:07:19] Production.INFO: ProcessCDR(1,14236386,1,1,2) [2025-01-13 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236386', 'tblTempUsageDetail_20' ) start [2025-01-13 04:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236386', 'tblTempUsageDetail_20' ) end [2025-01-13 04:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:07:23] Production.INFO: ==24676== Releasing lock... [2025-01-13 04:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:07:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:08:05 [end_date_ymd] => 2025-01-13 04:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:08:18] Production.INFO: count ==166 [2025-01-13 04:08:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:08:05 - End Time 2025-01-13 04:08:05 [2025-01-13 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236391', 'tblTempUsageDetail_20' ) start [2025-01-13 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236391', 'tblTempUsageDetail_20' ) end [2025-01-13 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236391', 'tblTempVendorCDR_20' ) start [2025-01-13 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236391', 'tblTempVendorCDR_20' ) end [2025-01-13 04:08:18] Production.INFO: ProcessCDR(1,14236391,1,1,2) [2025-01-13 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236391', 'tblTempUsageDetail_20' ) start [2025-01-13 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236391', 'tblTempUsageDetail_20' ) end [2025-01-13 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:08:21] Production.INFO: ==24749== Releasing lock... [2025-01-13 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:08:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:09:05 [end_date_ymd] => 2025-01-13 04:09:05 [RateCDR] => 1 ) [2025-01-13 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:09:05' and `end` < '2025-01-13 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:09:18] Production.INFO: count ==163 [2025-01-13 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:09:05 - End Time 2025-01-13 04:09:05 [2025-01-13 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236396', 'tblTempUsageDetail_20' ) start [2025-01-13 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236396', 'tblTempUsageDetail_20' ) end [2025-01-13 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236396', 'tblTempVendorCDR_20' ) start [2025-01-13 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236396', 'tblTempVendorCDR_20' ) end [2025-01-13 04:09:19] Production.INFO: ProcessCDR(1,14236396,1,1,2) [2025-01-13 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236396', 'tblTempUsageDetail_20' ) start [2025-01-13 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236396', 'tblTempUsageDetail_20' ) end [2025-01-13 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:09:22] Production.INFO: ==24819== Releasing lock... [2025-01-13 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:09:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:10:05 [end_date_ymd] => 2025-01-13 04:10:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:10:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:10:18] Production.INFO: count ==159 [2025-01-13 04:10:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:10:05 - End Time 2025-01-13 04:10:05 [2025-01-13 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236402', 'tblTempUsageDetail_20' ) start [2025-01-13 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236402', 'tblTempUsageDetail_20' ) end [2025-01-13 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236402', 'tblTempVendorCDR_20' ) start [2025-01-13 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236402', 'tblTempVendorCDR_20' ) end [2025-01-13 04:10:18] Production.INFO: ProcessCDR(1,14236402,1,1,2) [2025-01-13 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236402', 'tblTempUsageDetail_20' ) start [2025-01-13 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236402', 'tblTempUsageDetail_20' ) end [2025-01-13 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:10:21] Production.INFO: ==24895== Releasing lock... [2025-01-13 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:11:05 [end_date_ymd] => 2025-01-13 04:11:05 [RateCDR] => 1 ) [2025-01-13 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:11:05' and `end` < '2025-01-13 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:11:18] Production.INFO: count ==144 [2025-01-13 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:11:05 - End Time 2025-01-13 04:11:05 [2025-01-13 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236407', 'tblTempUsageDetail_20' ) start [2025-01-13 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236407', 'tblTempUsageDetail_20' ) end [2025-01-13 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236407', 'tblTempVendorCDR_20' ) start [2025-01-13 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236407', 'tblTempVendorCDR_20' ) end [2025-01-13 04:11:18] Production.INFO: ProcessCDR(1,14236407,1,1,2) [2025-01-13 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236407', 'tblTempUsageDetail_20' ) start [2025-01-13 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236407', 'tblTempUsageDetail_20' ) end [2025-01-13 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:11:22] Production.INFO: ==24967== Releasing lock... [2025-01-13 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:12:04 [end_date_ymd] => 2025-01-13 04:12:04 [RateCDR] => 1 ) [2025-01-13 04: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` >= '2025-01-13 01:12:04' and `end` < '2025-01-13 04: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 ,'') [2025-01-13 04:12:18] Production.INFO: count ==144 [2025-01-13 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:12:04 - End Time 2025-01-13 04:12:04 [2025-01-13 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236412', 'tblTempUsageDetail_20' ) start [2025-01-13 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236412', 'tblTempUsageDetail_20' ) end [2025-01-13 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236412', 'tblTempVendorCDR_20' ) start [2025-01-13 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236412', 'tblTempVendorCDR_20' ) end [2025-01-13 04:12:18] Production.INFO: ProcessCDR(1,14236412,1,1,2) [2025-01-13 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236412', 'tblTempUsageDetail_20' ) start [2025-01-13 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236412', 'tblTempUsageDetail_20' ) end [2025-01-13 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:12:21] Production.INFO: ==25044== Releasing lock... [2025-01-13 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:13:04 [end_date_ymd] => 2025-01-13 04:13:04 [RateCDR] => 1 ) [2025-01-13 04:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:13:04' and `end` < '2025-01-13 04:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:13:18] Production.INFO: count ==144 [2025-01-13 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:13:04 - End Time 2025-01-13 04:13:04 [2025-01-13 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236417', 'tblTempUsageDetail_20' ) start [2025-01-13 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236417', 'tblTempUsageDetail_20' ) end [2025-01-13 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236417', 'tblTempVendorCDR_20' ) start [2025-01-13 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236417', 'tblTempVendorCDR_20' ) end [2025-01-13 04:13:18] Production.INFO: ProcessCDR(1,14236417,1,1,2) [2025-01-13 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236417', 'tblTempUsageDetail_20' ) start [2025-01-13 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236417', 'tblTempUsageDetail_20' ) end [2025-01-13 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:13:22] Production.INFO: ==25113== Releasing lock... [2025-01-13 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:13:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:14:05 [end_date_ymd] => 2025-01-13 04:14:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:14:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:14:17] Production.INFO: count ==144 [2025-01-13 04:14:17] Production.ERROR: pbx CDR StartTime 2025-01-13 01:14:05 - End Time 2025-01-13 04:14:05 [2025-01-13 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236422', 'tblTempUsageDetail_20' ) start [2025-01-13 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236422', 'tblTempUsageDetail_20' ) end [2025-01-13 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236422', 'tblTempVendorCDR_20' ) start [2025-01-13 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236422', 'tblTempVendorCDR_20' ) end [2025-01-13 04:14:17] Production.INFO: ProcessCDR(1,14236422,1,1,2) [2025-01-13 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236422', 'tblTempUsageDetail_20' ) start [2025-01-13 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236422', 'tblTempUsageDetail_20' ) end [2025-01-13 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:14:20] Production.INFO: ==25187== Releasing lock... [2025-01-13 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:14:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:15:05 [end_date_ymd] => 2025-01-13 04:15:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:15:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:15:18] Production.INFO: count ==143 [2025-01-13 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:15:05 - End Time 2025-01-13 04:15:05 [2025-01-13 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236427', 'tblTempUsageDetail_20' ) start [2025-01-13 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236427', 'tblTempUsageDetail_20' ) end [2025-01-13 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236427', 'tblTempVendorCDR_20' ) start [2025-01-13 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236427', 'tblTempVendorCDR_20' ) end [2025-01-13 04:15:18] Production.INFO: ProcessCDR(1,14236427,1,1,2) [2025-01-13 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236427', 'tblTempUsageDetail_20' ) start [2025-01-13 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236427', 'tblTempUsageDetail_20' ) end [2025-01-13 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:15:21] Production.INFO: ==25258== Releasing lock... [2025-01-13 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:16:04 [end_date_ymd] => 2025-01-13 04:16:04 [RateCDR] => 1 ) [2025-01-13 04:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:16:04' and `end` < '2025-01-13 04:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:16:17] Production.INFO: count ==143 [2025-01-13 04:16:17] Production.ERROR: pbx CDR StartTime 2025-01-13 01:16:04 - End Time 2025-01-13 04:16:04 [2025-01-13 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236432', 'tblTempUsageDetail_20' ) start [2025-01-13 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236432', 'tblTempUsageDetail_20' ) end [2025-01-13 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236432', 'tblTempVendorCDR_20' ) start [2025-01-13 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236432', 'tblTempVendorCDR_20' ) end [2025-01-13 04:16:17] Production.INFO: ProcessCDR(1,14236432,1,1,2) [2025-01-13 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236432', 'tblTempUsageDetail_20' ) start [2025-01-13 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236432', 'tblTempUsageDetail_20' ) end [2025-01-13 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:16:20] Production.INFO: ==25327== Releasing lock... [2025-01-13 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:16:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:17:05 [end_date_ymd] => 2025-01-13 04:17:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:17:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:17:18] Production.INFO: count ==143 [2025-01-13 04:17:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:17:05 - End Time 2025-01-13 04:17:05 [2025-01-13 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236437', 'tblTempUsageDetail_20' ) start [2025-01-13 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236437', 'tblTempUsageDetail_20' ) end [2025-01-13 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236437', 'tblTempVendorCDR_20' ) start [2025-01-13 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236437', 'tblTempVendorCDR_20' ) end [2025-01-13 04:17:18] Production.INFO: ProcessCDR(1,14236437,1,1,2) [2025-01-13 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236437', 'tblTempUsageDetail_20' ) start [2025-01-13 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236437', 'tblTempUsageDetail_20' ) end [2025-01-13 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:17:22] Production.INFO: ==25401== Releasing lock... [2025-01-13 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:18:04 [end_date_ymd] => 2025-01-13 04:18:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:18:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:18:18] Production.INFO: count ==143 [2025-01-13 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:18:04 - End Time 2025-01-13 04:18:04 [2025-01-13 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236442', 'tblTempUsageDetail_20' ) start [2025-01-13 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236442', 'tblTempUsageDetail_20' ) end [2025-01-13 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236442', 'tblTempVendorCDR_20' ) start [2025-01-13 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236442', 'tblTempVendorCDR_20' ) end [2025-01-13 04:18:18] Production.INFO: ProcessCDR(1,14236442,1,1,2) [2025-01-13 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236442', 'tblTempUsageDetail_20' ) start [2025-01-13 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236442', 'tblTempUsageDetail_20' ) end [2025-01-13 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:18:21] Production.INFO: ==25481== Releasing lock... [2025-01-13 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:19:05 [end_date_ymd] => 2025-01-13 04:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:19:18] Production.INFO: count ==143 [2025-01-13 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:19:05 - End Time 2025-01-13 04:19:05 [2025-01-13 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236447', 'tblTempUsageDetail_20' ) start [2025-01-13 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236447', 'tblTempUsageDetail_20' ) end [2025-01-13 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236447', 'tblTempVendorCDR_20' ) start [2025-01-13 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236447', 'tblTempVendorCDR_20' ) end [2025-01-13 04:19:18] Production.INFO: ProcessCDR(1,14236447,1,1,2) [2025-01-13 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236447', 'tblTempUsageDetail_20' ) start [2025-01-13 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236447', 'tblTempUsageDetail_20' ) end [2025-01-13 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:19:21] Production.INFO: ==25552== Releasing lock... [2025-01-13 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:20:06 [end_date_ymd] => 2025-01-13 04:20:06 [RateCDR] => 1 ) [2025-01-13 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:20:06' and `end` < '2025-01-13 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:20:19] Production.INFO: count ==145 [2025-01-13 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-13 01:20:06 - End Time 2025-01-13 04:20:06 [2025-01-13 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236453', 'tblTempUsageDetail_20' ) start [2025-01-13 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236453', 'tblTempUsageDetail_20' ) end [2025-01-13 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236453', 'tblTempVendorCDR_20' ) start [2025-01-13 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236453', 'tblTempVendorCDR_20' ) end [2025-01-13 04:20:19] Production.INFO: ProcessCDR(1,14236453,1,1,2) [2025-01-13 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236453', 'tblTempUsageDetail_20' ) start [2025-01-13 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236453', 'tblTempUsageDetail_20' ) end [2025-01-13 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:20:23] Production.INFO: ==25624== Releasing lock... [2025-01-13 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:20:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:21:05 [end_date_ymd] => 2025-01-13 04:21:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:21:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:21:18] Production.INFO: count ==139 [2025-01-13 04:21:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:21:05 - End Time 2025-01-13 04:21:05 [2025-01-13 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236458', 'tblTempUsageDetail_20' ) start [2025-01-13 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236458', 'tblTempUsageDetail_20' ) end [2025-01-13 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236458', 'tblTempVendorCDR_20' ) start [2025-01-13 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236458', 'tblTempVendorCDR_20' ) end [2025-01-13 04:21:18] Production.INFO: ProcessCDR(1,14236458,1,1,2) [2025-01-13 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236458', 'tblTempUsageDetail_20' ) start [2025-01-13 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236458', 'tblTempUsageDetail_20' ) end [2025-01-13 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:21:21] Production.INFO: ==25738== Releasing lock... [2025-01-13 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:22:05 [end_date_ymd] => 2025-01-13 04:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:22:19] Production.INFO: count ==139 [2025-01-13 04:22:19] Production.ERROR: pbx CDR StartTime 2025-01-13 01:22:05 - End Time 2025-01-13 04:22:05 [2025-01-13 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236463', 'tblTempUsageDetail_20' ) start [2025-01-13 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236463', 'tblTempUsageDetail_20' ) end [2025-01-13 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236463', 'tblTempVendorCDR_20' ) start [2025-01-13 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236463', 'tblTempVendorCDR_20' ) end [2025-01-13 04:22:19] Production.INFO: ProcessCDR(1,14236463,1,1,2) [2025-01-13 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236463', 'tblTempUsageDetail_20' ) start [2025-01-13 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236463', 'tblTempUsageDetail_20' ) end [2025-01-13 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:22:22] Production.INFO: ==25808== Releasing lock... [2025-01-13 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:22:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:23:05 [end_date_ymd] => 2025-01-13 04:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:23:19] Production.INFO: count ==139 [2025-01-13 04:23:19] Production.ERROR: pbx CDR StartTime 2025-01-13 01:23:05 - End Time 2025-01-13 04:23:05 [2025-01-13 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236468', 'tblTempUsageDetail_20' ) start [2025-01-13 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236468', 'tblTempUsageDetail_20' ) end [2025-01-13 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236468', 'tblTempVendorCDR_20' ) start [2025-01-13 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236468', 'tblTempVendorCDR_20' ) end [2025-01-13 04:23:19] Production.INFO: ProcessCDR(1,14236468,1,1,2) [2025-01-13 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236468', 'tblTempUsageDetail_20' ) start [2025-01-13 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236468', 'tblTempUsageDetail_20' ) end [2025-01-13 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:23:22] Production.INFO: ==25880== Releasing lock... [2025-01-13 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:24:05 [end_date_ymd] => 2025-01-13 04:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:24:18] Production.INFO: count ==139 [2025-01-13 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:24:05 - End Time 2025-01-13 04:24:05 [2025-01-13 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236473', 'tblTempUsageDetail_20' ) start [2025-01-13 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236473', 'tblTempUsageDetail_20' ) end [2025-01-13 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236473', 'tblTempVendorCDR_20' ) start [2025-01-13 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236473', 'tblTempVendorCDR_20' ) end [2025-01-13 04:24:18] Production.INFO: ProcessCDR(1,14236473,1,1,2) [2025-01-13 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236473', 'tblTempUsageDetail_20' ) start [2025-01-13 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236473', 'tblTempUsageDetail_20' ) end [2025-01-13 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:24:21] Production.INFO: ==25949== Releasing lock... [2025-01-13 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:25:05 [end_date_ymd] => 2025-01-13 04:25:05 [RateCDR] => 1 ) [2025-01-13 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:25:05' and `end` < '2025-01-13 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:25:17] Production.INFO: count ==139 [2025-01-13 04:25:17] Production.ERROR: pbx CDR StartTime 2025-01-13 01:25:05 - End Time 2025-01-13 04:25:05 [2025-01-13 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236478', 'tblTempUsageDetail_20' ) start [2025-01-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236478', 'tblTempUsageDetail_20' ) end [2025-01-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236478', 'tblTempVendorCDR_20' ) start [2025-01-13 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236478', 'tblTempVendorCDR_20' ) end [2025-01-13 04:25:17] Production.INFO: ProcessCDR(1,14236478,1,1,2) [2025-01-13 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236478', 'tblTempUsageDetail_20' ) start [2025-01-13 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236478', 'tblTempUsageDetail_20' ) end [2025-01-13 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:25:20] Production.INFO: ==26023== Releasing lock... [2025-01-13 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:25:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:26:06 [end_date_ymd] => 2025-01-13 04:26:06 [RateCDR] => 1 ) [2025-01-13 04: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` >= '2025-01-13 01:26:06' and `end` < '2025-01-13 04: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 ,'') [2025-01-13 04:26:18] Production.INFO: count ==139 [2025-01-13 04:26:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:26:06 - End Time 2025-01-13 04:26:06 [2025-01-13 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236483', 'tblTempUsageDetail_20' ) start [2025-01-13 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236483', 'tblTempUsageDetail_20' ) end [2025-01-13 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236483', 'tblTempVendorCDR_20' ) start [2025-01-13 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236483', 'tblTempVendorCDR_20' ) end [2025-01-13 04:26:18] Production.INFO: ProcessCDR(1,14236483,1,1,2) [2025-01-13 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236483', 'tblTempUsageDetail_20' ) start [2025-01-13 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236483', 'tblTempUsageDetail_20' ) end [2025-01-13 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:26:21] Production.INFO: ==26096== Releasing lock... [2025-01-13 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:27:05 [end_date_ymd] => 2025-01-13 04:27:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:27:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:27:18] Production.INFO: count ==139 [2025-01-13 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:27:05 - End Time 2025-01-13 04:27:05 [2025-01-13 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236488', 'tblTempUsageDetail_20' ) start [2025-01-13 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236488', 'tblTempUsageDetail_20' ) end [2025-01-13 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236488', 'tblTempVendorCDR_20' ) start [2025-01-13 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236488', 'tblTempVendorCDR_20' ) end [2025-01-13 04:27:18] Production.INFO: ProcessCDR(1,14236488,1,1,2) [2025-01-13 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236488', 'tblTempUsageDetail_20' ) start [2025-01-13 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236488', 'tblTempUsageDetail_20' ) end [2025-01-13 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:27:21] Production.INFO: ==26170== Releasing lock... [2025-01-13 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:28:05 [end_date_ymd] => 2025-01-13 04:28:05 [RateCDR] => 1 ) [2025-01-13 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:28:05' and `end` < '2025-01-13 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:28:18] Production.INFO: count ==139 [2025-01-13 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:28:05 - End Time 2025-01-13 04:28:05 [2025-01-13 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236493', 'tblTempUsageDetail_20' ) start [2025-01-13 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236493', 'tblTempUsageDetail_20' ) end [2025-01-13 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236493', 'tblTempVendorCDR_20' ) start [2025-01-13 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236493', 'tblTempVendorCDR_20' ) end [2025-01-13 04:28:18] Production.INFO: ProcessCDR(1,14236493,1,1,2) [2025-01-13 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236493', 'tblTempUsageDetail_20' ) start [2025-01-13 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236493', 'tblTempUsageDetail_20' ) end [2025-01-13 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:28:21] Production.INFO: ==26239== Releasing lock... [2025-01-13 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:29:05 [end_date_ymd] => 2025-01-13 04:29:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:29:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:29:18] Production.INFO: count ==139 [2025-01-13 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:29:05 - End Time 2025-01-13 04:29:05 [2025-01-13 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236498', 'tblTempUsageDetail_20' ) start [2025-01-13 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236498', 'tblTempUsageDetail_20' ) end [2025-01-13 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236498', 'tblTempVendorCDR_20' ) start [2025-01-13 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236498', 'tblTempVendorCDR_20' ) end [2025-01-13 04:29:18] Production.INFO: ProcessCDR(1,14236498,1,1,2) [2025-01-13 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236498', 'tblTempUsageDetail_20' ) start [2025-01-13 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236498', 'tblTempUsageDetail_20' ) end [2025-01-13 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:29:21] Production.INFO: ==26315== Releasing lock... [2025-01-13 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:30:06 [end_date_ymd] => 2025-01-13 04:30:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:30:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:30:19] Production.INFO: count ==132 [2025-01-13 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-13 01:30:06 - End Time 2025-01-13 04:30:06 [2025-01-13 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236505', 'tblTempUsageDetail_20' ) start [2025-01-13 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236505', 'tblTempUsageDetail_20' ) end [2025-01-13 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236505', 'tblTempVendorCDR_20' ) start [2025-01-13 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236505', 'tblTempVendorCDR_20' ) end [2025-01-13 04:30:19] Production.INFO: ProcessCDR(1,14236505,1,1,2) [2025-01-13 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236505', 'tblTempUsageDetail_20' ) start [2025-01-13 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236505', 'tblTempUsageDetail_20' ) end [2025-01-13 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:30:23] Production.INFO: ==26389== Releasing lock... [2025-01-13 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:30:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:31:05 [end_date_ymd] => 2025-01-13 04:31:05 [RateCDR] => 1 ) [2025-01-13 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:31:05' and `end` < '2025-01-13 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:31:19] Production.INFO: count ==120 [2025-01-13 04:31:19] Production.ERROR: pbx CDR StartTime 2025-01-13 01:31:05 - End Time 2025-01-13 04:31:05 [2025-01-13 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236510', 'tblTempUsageDetail_20' ) start [2025-01-13 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236510', 'tblTempUsageDetail_20' ) end [2025-01-13 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236510', 'tblTempVendorCDR_20' ) start [2025-01-13 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236510', 'tblTempVendorCDR_20' ) end [2025-01-13 04:31:19] Production.INFO: ProcessCDR(1,14236510,1,1,2) [2025-01-13 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236510', 'tblTempUsageDetail_20' ) start [2025-01-13 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236510', 'tblTempUsageDetail_20' ) end [2025-01-13 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:31:22] Production.INFO: ==26656== Releasing lock... [2025-01-13 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:32:05 [end_date_ymd] => 2025-01-13 04:32:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:32:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:32:18] Production.INFO: count ==120 [2025-01-13 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:32:05 - End Time 2025-01-13 04:32:05 [2025-01-13 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236515', 'tblTempUsageDetail_20' ) start [2025-01-13 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236515', 'tblTempUsageDetail_20' ) end [2025-01-13 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236515', 'tblTempVendorCDR_20' ) start [2025-01-13 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236515', 'tblTempVendorCDR_20' ) end [2025-01-13 04:32:18] Production.INFO: ProcessCDR(1,14236515,1,1,2) [2025-01-13 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236515', 'tblTempUsageDetail_20' ) start [2025-01-13 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236515', 'tblTempUsageDetail_20' ) end [2025-01-13 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:32:21] Production.INFO: ==26727== Releasing lock... [2025-01-13 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:33:05 [end_date_ymd] => 2025-01-13 04:33:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:33:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:33:18] Production.INFO: count ==119 [2025-01-13 04:33:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:33:05 - End Time 2025-01-13 04:33:05 [2025-01-13 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236516', 'tblTempUsageDetail_20' ) start [2025-01-13 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236516', 'tblTempUsageDetail_20' ) end [2025-01-13 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236516', 'tblTempVendorCDR_20' ) start [2025-01-13 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236516', 'tblTempVendorCDR_20' ) end [2025-01-13 04:33:18] Production.INFO: ProcessCDR(1,14236516,1,1,2) [2025-01-13 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236516', 'tblTempUsageDetail_20' ) start [2025-01-13 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236516', 'tblTempUsageDetail_20' ) end [2025-01-13 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:33:21] Production.INFO: ==26796== Releasing lock... [2025-01-13 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:34:04 [end_date_ymd] => 2025-01-13 04:34:04 [RateCDR] => 1 ) [2025-01-13 04: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` >= '2025-01-13 01:34:04' and `end` < '2025-01-13 04: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 ,'') [2025-01-13 04:34:17] Production.INFO: count ==119 [2025-01-13 04:34:17] Production.ERROR: pbx CDR StartTime 2025-01-13 01:34:04 - End Time 2025-01-13 04:34:04 [2025-01-13 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236525', 'tblTempUsageDetail_20' ) start [2025-01-13 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236525', 'tblTempUsageDetail_20' ) end [2025-01-13 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236525', 'tblTempVendorCDR_20' ) start [2025-01-13 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236525', 'tblTempVendorCDR_20' ) end [2025-01-13 04:34:17] Production.INFO: ProcessCDR(1,14236525,1,1,2) [2025-01-13 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236525', 'tblTempUsageDetail_20' ) start [2025-01-13 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236525', 'tblTempUsageDetail_20' ) end [2025-01-13 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:34:20] Production.INFO: ==26868== Releasing lock... [2025-01-13 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:34:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:35:05 [end_date_ymd] => 2025-01-13 04:35:05 [RateCDR] => 1 ) [2025-01-13 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:35:05' and `end` < '2025-01-13 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:35:17] Production.INFO: count ==119 [2025-01-13 04:35:17] Production.ERROR: pbx CDR StartTime 2025-01-13 01:35:05 - End Time 2025-01-13 04:35:05 [2025-01-13 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236530', 'tblTempUsageDetail_20' ) start [2025-01-13 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236530', 'tblTempUsageDetail_20' ) end [2025-01-13 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236530', 'tblTempVendorCDR_20' ) start [2025-01-13 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236530', 'tblTempVendorCDR_20' ) end [2025-01-13 04:35:17] Production.INFO: ProcessCDR(1,14236530,1,1,2) [2025-01-13 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236530', 'tblTempUsageDetail_20' ) start [2025-01-13 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236530', 'tblTempUsageDetail_20' ) end [2025-01-13 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:35:21] Production.INFO: ==26938== Releasing lock... [2025-01-13 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:36:05 [end_date_ymd] => 2025-01-13 04:36:05 [RateCDR] => 1 ) [2025-01-13 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:36:05' and `end` < '2025-01-13 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:36:18] Production.INFO: count ==119 [2025-01-13 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:36:05 - End Time 2025-01-13 04:36:05 [2025-01-13 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236535', 'tblTempUsageDetail_20' ) start [2025-01-13 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236535', 'tblTempUsageDetail_20' ) end [2025-01-13 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236535', 'tblTempVendorCDR_20' ) start [2025-01-13 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236535', 'tblTempVendorCDR_20' ) end [2025-01-13 04:36:18] Production.INFO: ProcessCDR(1,14236535,1,1,2) [2025-01-13 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236535', 'tblTempUsageDetail_20' ) start [2025-01-13 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236535', 'tblTempUsageDetail_20' ) end [2025-01-13 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:36:21] Production.INFO: ==27009== Releasing lock... [2025-01-13 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:37:05 [end_date_ymd] => 2025-01-13 04:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:37:19] Production.INFO: count ==119 [2025-01-13 04:37:19] Production.ERROR: pbx CDR StartTime 2025-01-13 01:37:05 - End Time 2025-01-13 04:37:05 [2025-01-13 04:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236540', 'tblTempUsageDetail_20' ) start [2025-01-13 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236540', 'tblTempUsageDetail_20' ) end [2025-01-13 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236540', 'tblTempVendorCDR_20' ) start [2025-01-13 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236540', 'tblTempVendorCDR_20' ) end [2025-01-13 04:37:19] Production.INFO: ProcessCDR(1,14236540,1,1,2) [2025-01-13 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236540', 'tblTempUsageDetail_20' ) start [2025-01-13 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236540', 'tblTempUsageDetail_20' ) end [2025-01-13 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:37:22] Production.INFO: ==27119== Releasing lock... [2025-01-13 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:37:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:38:05 [end_date_ymd] => 2025-01-13 04:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:38:18] Production.INFO: count ==119 [2025-01-13 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:38:05 - End Time 2025-01-13 04:38:05 [2025-01-13 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236545', 'tblTempUsageDetail_20' ) start [2025-01-13 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236545', 'tblTempUsageDetail_20' ) end [2025-01-13 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236545', 'tblTempVendorCDR_20' ) start [2025-01-13 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236545', 'tblTempVendorCDR_20' ) end [2025-01-13 04:38:18] Production.INFO: ProcessCDR(1,14236545,1,1,2) [2025-01-13 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236545', 'tblTempUsageDetail_20' ) start [2025-01-13 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236545', 'tblTempUsageDetail_20' ) end [2025-01-13 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:38:21] Production.INFO: ==27193== Releasing lock... [2025-01-13 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:39:05 [end_date_ymd] => 2025-01-13 04:39:05 [RateCDR] => 1 ) [2025-01-13 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:39:05' and `end` < '2025-01-13 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:39:18] Production.INFO: count ==119 [2025-01-13 04:39:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:39:05 - End Time 2025-01-13 04:39:05 [2025-01-13 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236550', 'tblTempUsageDetail_20' ) start [2025-01-13 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236550', 'tblTempUsageDetail_20' ) end [2025-01-13 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236550', 'tblTempVendorCDR_20' ) start [2025-01-13 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236550', 'tblTempVendorCDR_20' ) end [2025-01-13 04:39:18] Production.INFO: ProcessCDR(1,14236550,1,1,2) [2025-01-13 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236550', 'tblTempUsageDetail_20' ) start [2025-01-13 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236550', 'tblTempUsageDetail_20' ) end [2025-01-13 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:39:21] Production.INFO: ==27268== Releasing lock... [2025-01-13 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:40:06 [end_date_ymd] => 2025-01-13 04:40:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:40:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:40:18] Production.INFO: count ==118 [2025-01-13 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:40:06 - End Time 2025-01-13 04:40:06 [2025-01-13 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236555', 'tblTempUsageDetail_20' ) start [2025-01-13 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236555', 'tblTempUsageDetail_20' ) end [2025-01-13 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236555', 'tblTempVendorCDR_20' ) start [2025-01-13 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236555', 'tblTempVendorCDR_20' ) end [2025-01-13 04:40:18] Production.INFO: ProcessCDR(1,14236555,1,1,2) [2025-01-13 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236555', 'tblTempUsageDetail_20' ) start [2025-01-13 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236555', 'tblTempUsageDetail_20' ) end [2025-01-13 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:40:21] Production.INFO: ==27342== Releasing lock... [2025-01-13 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:41:04 [end_date_ymd] => 2025-01-13 04:41:04 [RateCDR] => 1 ) [2025-01-13 04: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` >= '2025-01-13 01:41:04' and `end` < '2025-01-13 04: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 ,'') [2025-01-13 04:41:18] Production.INFO: count ==118 [2025-01-13 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:41:04 - End Time 2025-01-13 04:41:04 [2025-01-13 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236560', 'tblTempUsageDetail_20' ) start [2025-01-13 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236560', 'tblTempUsageDetail_20' ) end [2025-01-13 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236560', 'tblTempVendorCDR_20' ) start [2025-01-13 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236560', 'tblTempVendorCDR_20' ) end [2025-01-13 04:41:18] Production.INFO: ProcessCDR(1,14236560,1,1,2) [2025-01-13 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236560', 'tblTempUsageDetail_20' ) start [2025-01-13 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236560', 'tblTempUsageDetail_20' ) end [2025-01-13 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:41:21] Production.INFO: ==27417== Releasing lock... [2025-01-13 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:42:05 [end_date_ymd] => 2025-01-13 04:42:05 [RateCDR] => 1 ) [2025-01-13 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:42:05' and `end` < '2025-01-13 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:42:17] Production.INFO: count ==118 [2025-01-13 04:42:17] Production.ERROR: pbx CDR StartTime 2025-01-13 01:42:05 - End Time 2025-01-13 04:42:05 [2025-01-13 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236566', 'tblTempUsageDetail_20' ) start [2025-01-13 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236566', 'tblTempUsageDetail_20' ) end [2025-01-13 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236566', 'tblTempVendorCDR_20' ) start [2025-01-13 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236566', 'tblTempVendorCDR_20' ) end [2025-01-13 04:42:17] Production.INFO: ProcessCDR(1,14236566,1,1,2) [2025-01-13 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236566', 'tblTempUsageDetail_20' ) start [2025-01-13 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236566', 'tblTempUsageDetail_20' ) end [2025-01-13 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:42:21] Production.INFO: ==27492== Releasing lock... [2025-01-13 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:43:05 [end_date_ymd] => 2025-01-13 04:43:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:43:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:43:17] Production.INFO: count ==118 [2025-01-13 04:43:17] Production.ERROR: pbx CDR StartTime 2025-01-13 01:43:05 - End Time 2025-01-13 04:43:05 [2025-01-13 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236571', 'tblTempUsageDetail_20' ) start [2025-01-13 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236571', 'tblTempUsageDetail_20' ) end [2025-01-13 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236571', 'tblTempVendorCDR_20' ) start [2025-01-13 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236571', 'tblTempVendorCDR_20' ) end [2025-01-13 04:43:18] Production.INFO: ProcessCDR(1,14236571,1,1,2) [2025-01-13 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236571', 'tblTempUsageDetail_20' ) start [2025-01-13 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236571', 'tblTempUsageDetail_20' ) end [2025-01-13 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:43:21] Production.INFO: ==27567== Releasing lock... [2025-01-13 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:44:05 [end_date_ymd] => 2025-01-13 04:44:05 [RateCDR] => 1 ) [2025-01-13 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:44:05' and `end` < '2025-01-13 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:44:18] Production.INFO: count ==118 [2025-01-13 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:44:05 - End Time 2025-01-13 04:44:05 [2025-01-13 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236576', 'tblTempUsageDetail_20' ) start [2025-01-13 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236576', 'tblTempUsageDetail_20' ) end [2025-01-13 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236576', 'tblTempVendorCDR_20' ) start [2025-01-13 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236576', 'tblTempVendorCDR_20' ) end [2025-01-13 04:44:18] Production.INFO: ProcessCDR(1,14236576,1,1,2) [2025-01-13 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236576', 'tblTempUsageDetail_20' ) start [2025-01-13 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236576', 'tblTempUsageDetail_20' ) end [2025-01-13 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:44:21] Production.INFO: ==27647== Releasing lock... [2025-01-13 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:45:05 [end_date_ymd] => 2025-01-13 04:45:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:45:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:45:17] Production.INFO: count ==118 [2025-01-13 04:45:17] Production.ERROR: pbx CDR StartTime 2025-01-13 01:45:05 - End Time 2025-01-13 04:45:05 [2025-01-13 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236581', 'tblTempUsageDetail_20' ) start [2025-01-13 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236581', 'tblTempUsageDetail_20' ) end [2025-01-13 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236581', 'tblTempVendorCDR_20' ) start [2025-01-13 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236581', 'tblTempVendorCDR_20' ) end [2025-01-13 04:45:17] Production.INFO: ProcessCDR(1,14236581,1,1,2) [2025-01-13 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236581', 'tblTempUsageDetail_20' ) start [2025-01-13 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236581', 'tblTempUsageDetail_20' ) end [2025-01-13 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:45:20] Production.INFO: ==27723== Releasing lock... [2025-01-13 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:46:05 [end_date_ymd] => 2025-01-13 04:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:46:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:46:26] Production.INFO: count ==118 [2025-01-13 04:46:26] Production.ERROR: pbx CDR StartTime 2025-01-13 01:46:05 - End Time 2025-01-13 04:46:05 [2025-01-13 04:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236586', 'tblTempUsageDetail_20' ) start [2025-01-13 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236586', 'tblTempUsageDetail_20' ) end [2025-01-13 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236586', 'tblTempVendorCDR_20' ) start [2025-01-13 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236586', 'tblTempVendorCDR_20' ) end [2025-01-13 04:46:26] Production.INFO: ProcessCDR(1,14236586,1,1,2) [2025-01-13 04:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236586', 'tblTempUsageDetail_20' ) start [2025-01-13 04:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236586', 'tblTempUsageDetail_20' ) end [2025-01-13 04:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:46:29] Production.INFO: ==27803== Releasing lock... [2025-01-13 04:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:46:29] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:47:04 [end_date_ymd] => 2025-01-13 04:47:04 [RateCDR] => 1 ) [2025-01-13 04:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:47:04' and `end` < '2025-01-13 04:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:47:18] Production.INFO: count ==118 [2025-01-13 04:47:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:47:04 - End Time 2025-01-13 04:47:04 [2025-01-13 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236591', 'tblTempUsageDetail_20' ) start [2025-01-13 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236591', 'tblTempUsageDetail_20' ) end [2025-01-13 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236591', 'tblTempVendorCDR_20' ) start [2025-01-13 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236591', 'tblTempVendorCDR_20' ) end [2025-01-13 04:47:18] Production.INFO: ProcessCDR(1,14236591,1,1,2) [2025-01-13 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236591', 'tblTempUsageDetail_20' ) start [2025-01-13 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236591', 'tblTempUsageDetail_20' ) end [2025-01-13 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:47:21] Production.INFO: ==27876== Releasing lock... [2025-01-13 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:48:05 [end_date_ymd] => 2025-01-13 04:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:48:18] Production.INFO: count ==118 [2025-01-13 04:48:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:48:05 - End Time 2025-01-13 04:48:05 [2025-01-13 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236596', 'tblTempUsageDetail_20' ) start [2025-01-13 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236596', 'tblTempUsageDetail_20' ) end [2025-01-13 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236596', 'tblTempVendorCDR_20' ) start [2025-01-13 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236596', 'tblTempVendorCDR_20' ) end [2025-01-13 04:48:18] Production.INFO: ProcessCDR(1,14236596,1,1,2) [2025-01-13 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236596', 'tblTempUsageDetail_20' ) start [2025-01-13 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236596', 'tblTempUsageDetail_20' ) end [2025-01-13 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:48:22] Production.INFO: ==27947== Releasing lock... [2025-01-13 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:49:05 [end_date_ymd] => 2025-01-13 04:49:05 [RateCDR] => 1 ) [2025-01-13 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:49:05' and `end` < '2025-01-13 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:49:21] Production.INFO: count ==118 [2025-01-13 04:49:21] Production.ERROR: pbx CDR StartTime 2025-01-13 01:49:05 - End Time 2025-01-13 04:49:05 [2025-01-13 04:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236601', 'tblTempUsageDetail_20' ) start [2025-01-13 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236601', 'tblTempUsageDetail_20' ) end [2025-01-13 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236601', 'tblTempVendorCDR_20' ) start [2025-01-13 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236601', 'tblTempVendorCDR_20' ) end [2025-01-13 04:49:21] Production.INFO: ProcessCDR(1,14236601,1,1,2) [2025-01-13 04:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236601', 'tblTempUsageDetail_20' ) start [2025-01-13 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236601', 'tblTempUsageDetail_20' ) end [2025-01-13 04:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:49:24] Production.INFO: ==28044== Releasing lock... [2025-01-13 04:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:49:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:50:05 [end_date_ymd] => 2025-01-13 04:50:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:50:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:50:21] Production.INFO: count ==114 [2025-01-13 04:50:21] Production.ERROR: pbx CDR StartTime 2025-01-13 01:50:05 - End Time 2025-01-13 04:50:05 [2025-01-13 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236606', 'tblTempUsageDetail_20' ) start [2025-01-13 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236606', 'tblTempUsageDetail_20' ) end [2025-01-13 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236606', 'tblTempVendorCDR_20' ) start [2025-01-13 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236606', 'tblTempVendorCDR_20' ) end [2025-01-13 04:50:21] Production.INFO: ProcessCDR(1,14236606,1,1,2) [2025-01-13 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236606', 'tblTempUsageDetail_20' ) start [2025-01-13 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236606', 'tblTempUsageDetail_20' ) end [2025-01-13 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:50:24] Production.INFO: ==28143== Releasing lock... [2025-01-13 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:50:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:51:05 [end_date_ymd] => 2025-01-13 04:51:05 [RateCDR] => 1 ) [2025-01-13 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:51:05' and `end` < '2025-01-13 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:51:20] Production.INFO: count ==112 [2025-01-13 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-13 01:51:05 - End Time 2025-01-13 04:51:05 [2025-01-13 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236612', 'tblTempUsageDetail_20' ) start [2025-01-13 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236612', 'tblTempUsageDetail_20' ) end [2025-01-13 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236612', 'tblTempVendorCDR_20' ) start [2025-01-13 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236612', 'tblTempVendorCDR_20' ) end [2025-01-13 04:51:20] Production.INFO: ProcessCDR(1,14236612,1,1,2) [2025-01-13 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236612', 'tblTempUsageDetail_20' ) start [2025-01-13 04:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236612', 'tblTempUsageDetail_20' ) end [2025-01-13 04:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:51:24] Production.INFO: ==28243== Releasing lock... [2025-01-13 04:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:51:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:52:04 [end_date_ymd] => 2025-01-13 04:52:04 [RateCDR] => 1 ) [2025-01-13 04:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:52:04' and `end` < '2025-01-13 04:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:52:19] Production.INFO: count ==112 [2025-01-13 04:52:19] Production.ERROR: pbx CDR StartTime 2025-01-13 01:52:04 - End Time 2025-01-13 04:52:04 [2025-01-13 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236617', 'tblTempUsageDetail_20' ) start [2025-01-13 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236617', 'tblTempUsageDetail_20' ) end [2025-01-13 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236617', 'tblTempVendorCDR_20' ) start [2025-01-13 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236617', 'tblTempVendorCDR_20' ) end [2025-01-13 04:52:19] Production.INFO: ProcessCDR(1,14236617,1,1,2) [2025-01-13 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236617', 'tblTempUsageDetail_20' ) start [2025-01-13 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236617', 'tblTempUsageDetail_20' ) end [2025-01-13 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:52:22] Production.INFO: ==28384== Releasing lock... [2025-01-13 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:53:05 [end_date_ymd] => 2025-01-13 04:53:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:53:05' and `end` < '2025-01-13 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:53:21] Production.INFO: count ==112 [2025-01-13 04:53:21] Production.ERROR: pbx CDR StartTime 2025-01-13 01:53:05 - End Time 2025-01-13 04:53:05 [2025-01-13 04:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236622', 'tblTempUsageDetail_20' ) start [2025-01-13 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236622', 'tblTempUsageDetail_20' ) end [2025-01-13 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236622', 'tblTempVendorCDR_20' ) start [2025-01-13 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236622', 'tblTempVendorCDR_20' ) end [2025-01-13 04:53:21] Production.INFO: ProcessCDR(1,14236622,1,1,2) [2025-01-13 04:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236622', 'tblTempUsageDetail_20' ) start [2025-01-13 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236622', 'tblTempUsageDetail_20' ) end [2025-01-13 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:53:24] Production.INFO: ==28485== Releasing lock... [2025-01-13 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:53:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:54:05 [end_date_ymd] => 2025-01-13 04:54:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:54:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:54:18] Production.INFO: count ==112 [2025-01-13 04:54:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:54:05 - End Time 2025-01-13 04:54:05 [2025-01-13 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236627', 'tblTempUsageDetail_20' ) start [2025-01-13 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236627', 'tblTempUsageDetail_20' ) end [2025-01-13 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236627', 'tblTempVendorCDR_20' ) start [2025-01-13 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236627', 'tblTempVendorCDR_20' ) end [2025-01-13 04:54:18] Production.INFO: ProcessCDR(1,14236627,1,1,2) [2025-01-13 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236627', 'tblTempUsageDetail_20' ) start [2025-01-13 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236627', 'tblTempUsageDetail_20' ) end [2025-01-13 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:54:21] Production.INFO: ==28586== Releasing lock... [2025-01-13 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:55:05 [end_date_ymd] => 2025-01-13 04:55:05 [RateCDR] => 1 ) [2025-01-13 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:55:05' and `end` < '2025-01-13 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:55:19] Production.INFO: count ==112 [2025-01-13 04:55:19] Production.ERROR: pbx CDR StartTime 2025-01-13 01:55:05 - End Time 2025-01-13 04:55:05 [2025-01-13 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236632', 'tblTempUsageDetail_20' ) start [2025-01-13 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236632', 'tblTempUsageDetail_20' ) end [2025-01-13 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236632', 'tblTempVendorCDR_20' ) start [2025-01-13 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236632', 'tblTempVendorCDR_20' ) end [2025-01-13 04:55:19] Production.INFO: ProcessCDR(1,14236632,1,1,2) [2025-01-13 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236632', 'tblTempUsageDetail_20' ) start [2025-01-13 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236632', 'tblTempUsageDetail_20' ) end [2025-01-13 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:55:22] Production.INFO: ==28682== Releasing lock... [2025-01-13 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:56:04 [end_date_ymd] => 2025-01-13 04:56:04 [RateCDR] => 1 ) [2025-01-13 04: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` >= '2025-01-13 01:56:04' and `end` < '2025-01-13 04: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 ,'') [2025-01-13 04:56:20] Production.INFO: count ==112 [2025-01-13 04:56:20] Production.ERROR: pbx CDR StartTime 2025-01-13 01:56:04 - End Time 2025-01-13 04:56:04 [2025-01-13 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236637', 'tblTempUsageDetail_20' ) start [2025-01-13 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236637', 'tblTempUsageDetail_20' ) end [2025-01-13 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236637', 'tblTempVendorCDR_20' ) start [2025-01-13 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236637', 'tblTempVendorCDR_20' ) end [2025-01-13 04:56:20] Production.INFO: ProcessCDR(1,14236637,1,1,2) [2025-01-13 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236637', 'tblTempUsageDetail_20' ) start [2025-01-13 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236637', 'tblTempUsageDetail_20' ) end [2025-01-13 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:56:23] Production.INFO: ==28779== Releasing lock... [2025-01-13 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:56:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:57:05 [end_date_ymd] => 2025-01-13 04:57:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:57:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:57:21] Production.INFO: count ==112 [2025-01-13 04:57:21] Production.ERROR: pbx CDR StartTime 2025-01-13 01:57:05 - End Time 2025-01-13 04:57:05 [2025-01-13 04:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236642', 'tblTempUsageDetail_20' ) start [2025-01-13 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236642', 'tblTempUsageDetail_20' ) end [2025-01-13 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236642', 'tblTempVendorCDR_20' ) start [2025-01-13 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236642', 'tblTempVendorCDR_20' ) end [2025-01-13 04:57:21] Production.INFO: ProcessCDR(1,14236642,1,1,2) [2025-01-13 04:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236642', 'tblTempUsageDetail_20' ) start [2025-01-13 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236642', 'tblTempUsageDetail_20' ) end [2025-01-13 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:57:24] Production.INFO: ==28875== Releasing lock... [2025-01-13 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:57:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:58:05 [end_date_ymd] => 2025-01-13 04:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 01:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 04:58:18] Production.INFO: count ==112 [2025-01-13 04:58:18] Production.ERROR: pbx CDR StartTime 2025-01-13 01:58:05 - End Time 2025-01-13 04:58:05 [2025-01-13 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236647', 'tblTempUsageDetail_20' ) start [2025-01-13 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236647', 'tblTempUsageDetail_20' ) end [2025-01-13 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236647', 'tblTempVendorCDR_20' ) start [2025-01-13 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236647', 'tblTempVendorCDR_20' ) end [2025-01-13 04:58:18] Production.INFO: ProcessCDR(1,14236647,1,1,2) [2025-01-13 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236647', 'tblTempUsageDetail_20' ) start [2025-01-13 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236647', 'tblTempUsageDetail_20' ) end [2025-01-13 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:58:22] Production.INFO: ==28972== Releasing lock... [2025-01-13 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:58:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 01:59:05 [end_date_ymd] => 2025-01-13 04:59:05 [RateCDR] => 1 ) [2025-01-13 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 01:59:05' and `end` < '2025-01-13 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 04:59:20] Production.INFO: count ==112 [2025-01-13 04:59:20] Production.ERROR: pbx CDR StartTime 2025-01-13 01:59:05 - End Time 2025-01-13 04:59:05 [2025-01-13 04:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236652', 'tblTempUsageDetail_20' ) start [2025-01-13 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236652', 'tblTempUsageDetail_20' ) end [2025-01-13 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236652', 'tblTempVendorCDR_20' ) start [2025-01-13 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236652', 'tblTempVendorCDR_20' ) end [2025-01-13 04:59:20] Production.INFO: ProcessCDR(1,14236652,1,1,2) [2025-01-13 04:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 04:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236652', 'tblTempUsageDetail_20' ) start [2025-01-13 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236652', 'tblTempUsageDetail_20' ) end [2025-01-13 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 04:59:23] Production.INFO: ==29076== Releasing lock... [2025-01-13 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 04:59:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:00:06 [end_date_ymd] => 2025-01-13 05:00:06 [RateCDR] => 1 ) [2025-01-13 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:00:06' and `end` < '2025-01-13 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:00:21] Production.INFO: count ==106 [2025-01-13 05:00:21] Production.ERROR: pbx CDR StartTime 2025-01-13 02:00:06 - End Time 2025-01-13 05:00:06 [2025-01-13 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236658', 'tblTempUsageDetail_20' ) start [2025-01-13 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236658', 'tblTempUsageDetail_20' ) end [2025-01-13 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236658', 'tblTempVendorCDR_20' ) start [2025-01-13 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236658', 'tblTempVendorCDR_20' ) end [2025-01-13 05:00:21] Production.INFO: ProcessCDR(1,14236658,1,1,2) [2025-01-13 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236658', 'tblTempUsageDetail_20' ) start [2025-01-13 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236658', 'tblTempUsageDetail_20' ) end [2025-01-13 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:00:24] Production.INFO: ==29178== Releasing lock... [2025-01-13 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:00:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:01:05 [end_date_ymd] => 2025-01-13 05:01:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:01:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:01:19] Production.INFO: count ==106 [2025-01-13 05:01:19] Production.ERROR: pbx CDR StartTime 2025-01-13 02:01:05 - End Time 2025-01-13 05:01:05 [2025-01-13 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236663', 'tblTempUsageDetail_20' ) start [2025-01-13 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236663', 'tblTempUsageDetail_20' ) end [2025-01-13 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236663', 'tblTempVendorCDR_20' ) start [2025-01-13 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236663', 'tblTempVendorCDR_20' ) end [2025-01-13 05:01:19] Production.INFO: ProcessCDR(1,14236663,1,1,2) [2025-01-13 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236663', 'tblTempUsageDetail_20' ) start [2025-01-13 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236663', 'tblTempUsageDetail_20' ) end [2025-01-13 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:01:23] Production.INFO: ==29287== Releasing lock... [2025-01-13 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:01:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:02:04 [end_date_ymd] => 2025-01-13 05:02:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:02:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:02:18] Production.INFO: count ==106 [2025-01-13 05:02:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:02:04 - End Time 2025-01-13 05:02:04 [2025-01-13 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236668', 'tblTempUsageDetail_20' ) start [2025-01-13 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236668', 'tblTempUsageDetail_20' ) end [2025-01-13 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236668', 'tblTempVendorCDR_20' ) start [2025-01-13 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236668', 'tblTempVendorCDR_20' ) end [2025-01-13 05:02:18] Production.INFO: ProcessCDR(1,14236668,1,1,2) [2025-01-13 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236668', 'tblTempUsageDetail_20' ) start [2025-01-13 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236668', 'tblTempUsageDetail_20' ) end [2025-01-13 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:02:21] Production.INFO: ==29383== Releasing lock... [2025-01-13 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:03:05 [end_date_ymd] => 2025-01-13 05:03:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:03:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:03:20] Production.INFO: count ==106 [2025-01-13 05:03:20] Production.ERROR: pbx CDR StartTime 2025-01-13 02:03:05 - End Time 2025-01-13 05:03:05 [2025-01-13 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236673', 'tblTempUsageDetail_20' ) start [2025-01-13 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236673', 'tblTempUsageDetail_20' ) end [2025-01-13 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236673', 'tblTempVendorCDR_20' ) start [2025-01-13 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236673', 'tblTempVendorCDR_20' ) end [2025-01-13 05:03:20] Production.INFO: ProcessCDR(1,14236673,1,1,2) [2025-01-13 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236673', 'tblTempUsageDetail_20' ) start [2025-01-13 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236673', 'tblTempUsageDetail_20' ) end [2025-01-13 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:03:23] Production.INFO: ==29481== Releasing lock... [2025-01-13 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:03:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:04:06 [end_date_ymd] => 2025-01-13 05:04:06 [RateCDR] => 1 ) [2025-01-13 05: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` >= '2025-01-13 02:04:06' and `end` < '2025-01-13 05: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 ,'') [2025-01-13 05:04:19] Production.INFO: count ==106 [2025-01-13 05:04:19] Production.ERROR: pbx CDR StartTime 2025-01-13 02:04:06 - End Time 2025-01-13 05:04:06 [2025-01-13 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236678', 'tblTempUsageDetail_20' ) start [2025-01-13 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236678', 'tblTempUsageDetail_20' ) end [2025-01-13 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236678', 'tblTempVendorCDR_20' ) start [2025-01-13 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236678', 'tblTempVendorCDR_20' ) end [2025-01-13 05:04:19] Production.INFO: ProcessCDR(1,14236678,1,1,2) [2025-01-13 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236678', 'tblTempUsageDetail_20' ) start [2025-01-13 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236678', 'tblTempUsageDetail_20' ) end [2025-01-13 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:04:22] Production.INFO: ==29579== Releasing lock... [2025-01-13 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:05:05 [end_date_ymd] => 2025-01-13 05:05:05 [RateCDR] => 1 ) [2025-01-13 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:05:05' and `end` < '2025-01-13 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:05:18] Production.INFO: count ==106 [2025-01-13 05:05:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:05:05 - End Time 2025-01-13 05:05:05 [2025-01-13 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236683', 'tblTempUsageDetail_20' ) start [2025-01-13 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236683', 'tblTempUsageDetail_20' ) end [2025-01-13 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236683', 'tblTempVendorCDR_20' ) start [2025-01-13 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236683', 'tblTempVendorCDR_20' ) end [2025-01-13 05:05:18] Production.INFO: ProcessCDR(1,14236683,1,1,2) [2025-01-13 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236683', 'tblTempUsageDetail_20' ) start [2025-01-13 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236683', 'tblTempUsageDetail_20' ) end [2025-01-13 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:05:21] Production.INFO: ==29685== Releasing lock... [2025-01-13 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:06:04 [end_date_ymd] => 2025-01-13 05:06:04 [RateCDR] => 1 ) [2025-01-13 05:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:06:04' and `end` < '2025-01-13 05:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:06:18] Production.INFO: count ==106 [2025-01-13 05:06:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:06:04 - End Time 2025-01-13 05:06:04 [2025-01-13 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236688', 'tblTempUsageDetail_20' ) start [2025-01-13 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236688', 'tblTempUsageDetail_20' ) end [2025-01-13 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236688', 'tblTempVendorCDR_20' ) start [2025-01-13 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236688', 'tblTempVendorCDR_20' ) end [2025-01-13 05:06:18] Production.INFO: ProcessCDR(1,14236688,1,1,2) [2025-01-13 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236688', 'tblTempUsageDetail_20' ) start [2025-01-13 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236688', 'tblTempUsageDetail_20' ) end [2025-01-13 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:06:22] Production.INFO: ==29782== Releasing lock... [2025-01-13 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:07:05 [end_date_ymd] => 2025-01-13 05:07:05 [RateCDR] => 1 ) [2025-01-13 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:07:05' and `end` < '2025-01-13 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:07:18] Production.INFO: count ==106 [2025-01-13 05:07:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:07:05 - End Time 2025-01-13 05:07:05 [2025-01-13 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236693', 'tblTempUsageDetail_20' ) start [2025-01-13 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236693', 'tblTempUsageDetail_20' ) end [2025-01-13 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236693', 'tblTempVendorCDR_20' ) start [2025-01-13 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236693', 'tblTempVendorCDR_20' ) end [2025-01-13 05:07:18] Production.INFO: ProcessCDR(1,14236693,1,1,2) [2025-01-13 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236693', 'tblTempUsageDetail_20' ) start [2025-01-13 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236693', 'tblTempUsageDetail_20' ) end [2025-01-13 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:07:21] Production.INFO: ==29858== Releasing lock... [2025-01-13 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:08:05 [end_date_ymd] => 2025-01-13 05:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:08:18] Production.INFO: count ==106 [2025-01-13 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:08:05 - End Time 2025-01-13 05:08:05 [2025-01-13 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236698', 'tblTempUsageDetail_20' ) start [2025-01-13 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236698', 'tblTempUsageDetail_20' ) end [2025-01-13 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236698', 'tblTempVendorCDR_20' ) start [2025-01-13 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236698', 'tblTempVendorCDR_20' ) end [2025-01-13 05:08:18] Production.INFO: ProcessCDR(1,14236698,1,1,2) [2025-01-13 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236698', 'tblTempUsageDetail_20' ) start [2025-01-13 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236698', 'tblTempUsageDetail_20' ) end [2025-01-13 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:08:21] Production.INFO: ==29967== Releasing lock... [2025-01-13 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:09:04 [end_date_ymd] => 2025-01-13 05:09:04 [RateCDR] => 1 ) [2025-01-13 05: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` >= '2025-01-13 02:09:04' and `end` < '2025-01-13 05: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 ,'') [2025-01-13 05:09:17] Production.INFO: count ==106 [2025-01-13 05:09:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:09:04 - End Time 2025-01-13 05:09:04 [2025-01-13 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236703', 'tblTempUsageDetail_20' ) start [2025-01-13 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236703', 'tblTempUsageDetail_20' ) end [2025-01-13 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236703', 'tblTempVendorCDR_20' ) start [2025-01-13 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236703', 'tblTempVendorCDR_20' ) end [2025-01-13 05:09:17] Production.INFO: ProcessCDR(1,14236703,1,1,2) [2025-01-13 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236703', 'tblTempUsageDetail_20' ) start [2025-01-13 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236703', 'tblTempUsageDetail_20' ) end [2025-01-13 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:09:20] Production.INFO: ==30039== Releasing lock... [2025-01-13 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:09:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:10:05 [end_date_ymd] => 2025-01-13 05:10:05 [RateCDR] => 1 ) [2025-01-13 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:10:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:10:18] Production.INFO: count ==102 [2025-01-13 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:10:05 - End Time 2025-01-13 05:10:05 [2025-01-13 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236709', 'tblTempUsageDetail_20' ) start [2025-01-13 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236709', 'tblTempUsageDetail_20' ) end [2025-01-13 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236709', 'tblTempVendorCDR_20' ) start [2025-01-13 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236709', 'tblTempVendorCDR_20' ) end [2025-01-13 05:10:18] Production.INFO: ProcessCDR(1,14236709,1,1,2) [2025-01-13 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236709', 'tblTempUsageDetail_20' ) start [2025-01-13 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236709', 'tblTempUsageDetail_20' ) end [2025-01-13 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:10:21] Production.INFO: ==30114== Releasing lock... [2025-01-13 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:10:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:11:05 [end_date_ymd] => 2025-01-13 05:11:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:11:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:11:17] Production.INFO: count ==102 [2025-01-13 05:11:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:11:05 - End Time 2025-01-13 05:11:05 [2025-01-13 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236714', 'tblTempUsageDetail_20' ) start [2025-01-13 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236714', 'tblTempUsageDetail_20' ) end [2025-01-13 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236714', 'tblTempVendorCDR_20' ) start [2025-01-13 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236714', 'tblTempVendorCDR_20' ) end [2025-01-13 05:11:17] Production.INFO: ProcessCDR(1,14236714,1,1,2) [2025-01-13 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236714', 'tblTempUsageDetail_20' ) start [2025-01-13 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236714', 'tblTempUsageDetail_20' ) end [2025-01-13 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:11:20] Production.INFO: ==30186== Releasing lock... [2025-01-13 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:11:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:12:05 [end_date_ymd] => 2025-01-13 05:12:05 [RateCDR] => 1 ) [2025-01-13 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:12:05' and `end` < '2025-01-13 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:12:18] Production.INFO: count ==102 [2025-01-13 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:12:05 - End Time 2025-01-13 05:12:05 [2025-01-13 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236719', 'tblTempUsageDetail_20' ) start [2025-01-13 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236719', 'tblTempUsageDetail_20' ) end [2025-01-13 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236719', 'tblTempVendorCDR_20' ) start [2025-01-13 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236719', 'tblTempVendorCDR_20' ) end [2025-01-13 05:12:18] Production.INFO: ProcessCDR(1,14236719,1,1,2) [2025-01-13 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236719', 'tblTempUsageDetail_20' ) start [2025-01-13 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236719', 'tblTempUsageDetail_20' ) end [2025-01-13 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:12:21] Production.INFO: ==30257== Releasing lock... [2025-01-13 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:13:05 [end_date_ymd] => 2025-01-13 05:13:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:13:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:13:17] Production.INFO: count ==102 [2025-01-13 05:13:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:13:05 - End Time 2025-01-13 05:13:05 [2025-01-13 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236724', 'tblTempUsageDetail_20' ) start [2025-01-13 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236724', 'tblTempUsageDetail_20' ) end [2025-01-13 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236724', 'tblTempVendorCDR_20' ) start [2025-01-13 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236724', 'tblTempVendorCDR_20' ) end [2025-01-13 05:13:17] Production.INFO: ProcessCDR(1,14236724,1,1,2) [2025-01-13 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236724', 'tblTempUsageDetail_20' ) start [2025-01-13 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236724', 'tblTempUsageDetail_20' ) end [2025-01-13 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:13:20] Production.INFO: ==30327== Releasing lock... [2025-01-13 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:13:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:14:05 [end_date_ymd] => 2025-01-13 05:14:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:14:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:14:17] Production.INFO: count ==102 [2025-01-13 05:14:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:14:05 - End Time 2025-01-13 05:14:05 [2025-01-13 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236729', 'tblTempUsageDetail_20' ) start [2025-01-13 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236729', 'tblTempUsageDetail_20' ) end [2025-01-13 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236729', 'tblTempVendorCDR_20' ) start [2025-01-13 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236729', 'tblTempVendorCDR_20' ) end [2025-01-13 05:14:17] Production.INFO: ProcessCDR(1,14236729,1,1,2) [2025-01-13 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236729', 'tblTempUsageDetail_20' ) start [2025-01-13 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236729', 'tblTempUsageDetail_20' ) end [2025-01-13 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:14:21] Production.INFO: ==30398== Releasing lock... [2025-01-13 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:14:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:15:04 [end_date_ymd] => 2025-01-13 05:15:04 [RateCDR] => 1 ) [2025-01-13 05: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` >= '2025-01-13 02:15:04' and `end` < '2025-01-13 05: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 ,'') [2025-01-13 05:15:18] Production.INFO: count ==102 [2025-01-13 05:15:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:15:04 - End Time 2025-01-13 05:15:04 [2025-01-13 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236734', 'tblTempUsageDetail_20' ) start [2025-01-13 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236734', 'tblTempUsageDetail_20' ) end [2025-01-13 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236734', 'tblTempVendorCDR_20' ) start [2025-01-13 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236734', 'tblTempVendorCDR_20' ) end [2025-01-13 05:15:18] Production.INFO: ProcessCDR(1,14236734,1,1,2) [2025-01-13 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236734', 'tblTempUsageDetail_20' ) start [2025-01-13 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236734', 'tblTempUsageDetail_20' ) end [2025-01-13 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:15:21] Production.INFO: ==30470== Releasing lock... [2025-01-13 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:16:05 [end_date_ymd] => 2025-01-13 05:16:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:16:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:16:17] Production.INFO: count ==102 [2025-01-13 05:16:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:16:05 - End Time 2025-01-13 05:16:05 [2025-01-13 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236739', 'tblTempUsageDetail_20' ) start [2025-01-13 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236739', 'tblTempUsageDetail_20' ) end [2025-01-13 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236739', 'tblTempVendorCDR_20' ) start [2025-01-13 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236739', 'tblTempVendorCDR_20' ) end [2025-01-13 05:16:17] Production.INFO: ProcessCDR(1,14236739,1,1,2) [2025-01-13 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236739', 'tblTempUsageDetail_20' ) start [2025-01-13 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236739', 'tblTempUsageDetail_20' ) end [2025-01-13 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:16:21] Production.INFO: ==30542== Releasing lock... [2025-01-13 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:17:04 [end_date_ymd] => 2025-01-13 05:17:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:17:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:17:17] Production.INFO: count ==102 [2025-01-13 05:17:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:17:04 - End Time 2025-01-13 05:17:04 [2025-01-13 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236744', 'tblTempUsageDetail_20' ) start [2025-01-13 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236744', 'tblTempUsageDetail_20' ) end [2025-01-13 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236744', 'tblTempVendorCDR_20' ) start [2025-01-13 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236744', 'tblTempVendorCDR_20' ) end [2025-01-13 05:17:17] Production.INFO: ProcessCDR(1,14236744,1,1,2) [2025-01-13 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236744', 'tblTempUsageDetail_20' ) start [2025-01-13 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236744', 'tblTempUsageDetail_20' ) end [2025-01-13 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:17:20] Production.INFO: ==30616== Releasing lock... [2025-01-13 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:17:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:18:05 [end_date_ymd] => 2025-01-13 05:18:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:18:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:18:17] Production.INFO: count ==102 [2025-01-13 05:18:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:18:05 - End Time 2025-01-13 05:18:05 [2025-01-13 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236749', 'tblTempUsageDetail_20' ) start [2025-01-13 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236749', 'tblTempUsageDetail_20' ) end [2025-01-13 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236749', 'tblTempVendorCDR_20' ) start [2025-01-13 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236749', 'tblTempVendorCDR_20' ) end [2025-01-13 05:18:17] Production.INFO: ProcessCDR(1,14236749,1,1,2) [2025-01-13 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236749', 'tblTempUsageDetail_20' ) start [2025-01-13 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236749', 'tblTempUsageDetail_20' ) end [2025-01-13 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:18:20] Production.INFO: ==30689== Releasing lock... [2025-01-13 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:18:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:19:04 [end_date_ymd] => 2025-01-13 05:19:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:19:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:19:16] Production.INFO: count ==102 [2025-01-13 05:19:16] Production.ERROR: pbx CDR StartTime 2025-01-13 02:19:04 - End Time 2025-01-13 05:19:04 [2025-01-13 05:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236754', 'tblTempUsageDetail_20' ) start [2025-01-13 05:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236754', 'tblTempUsageDetail_20' ) end [2025-01-13 05:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236754', 'tblTempVendorCDR_20' ) start [2025-01-13 05:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236754', 'tblTempVendorCDR_20' ) end [2025-01-13 05:19:16] Production.INFO: ProcessCDR(1,14236754,1,1,2) [2025-01-13 05:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236754', 'tblTempUsageDetail_20' ) start [2025-01-13 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236754', 'tblTempUsageDetail_20' ) end [2025-01-13 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:19:20] Production.INFO: ==30763== Releasing lock... [2025-01-13 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:19:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:20:05 [end_date_ymd] => 2025-01-13 05:20:05 [RateCDR] => 1 ) [2025-01-13 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:20:05' and `end` < '2025-01-13 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:20:18] Production.INFO: count ==104 [2025-01-13 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:20:05 - End Time 2025-01-13 05:20:05 [2025-01-13 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236760', 'tblTempUsageDetail_20' ) start [2025-01-13 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236760', 'tblTempUsageDetail_20' ) end [2025-01-13 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236760', 'tblTempVendorCDR_20' ) start [2025-01-13 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236760', 'tblTempVendorCDR_20' ) end [2025-01-13 05:20:18] Production.INFO: ProcessCDR(1,14236760,1,1,2) [2025-01-13 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236760', 'tblTempUsageDetail_20' ) start [2025-01-13 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236760', 'tblTempUsageDetail_20' ) end [2025-01-13 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:20:21] Production.INFO: ==30836== Releasing lock... [2025-01-13 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:21:05 [end_date_ymd] => 2025-01-13 05:21:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:21:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:21:18] Production.INFO: count ==108 [2025-01-13 05:21:19] Production.ERROR: pbx CDR StartTime 2025-01-13 02:21:05 - End Time 2025-01-13 05:21:05 [2025-01-13 05:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236765', 'tblTempUsageDetail_20' ) start [2025-01-13 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236765', 'tblTempUsageDetail_20' ) end [2025-01-13 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236765', 'tblTempVendorCDR_20' ) start [2025-01-13 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236765', 'tblTempVendorCDR_20' ) end [2025-01-13 05:21:19] Production.INFO: ProcessCDR(1,14236765,1,1,2) [2025-01-13 05:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236765', 'tblTempUsageDetail_20' ) start [2025-01-13 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236765', 'tblTempUsageDetail_20' ) end [2025-01-13 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:21:22] Production.INFO: ==30909== Releasing lock... [2025-01-13 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:22:05 [end_date_ymd] => 2025-01-13 05:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:22:18] Production.INFO: count ==109 [2025-01-13 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:22:05 - End Time 2025-01-13 05:22:05 [2025-01-13 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236770', 'tblTempUsageDetail_20' ) start [2025-01-13 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236770', 'tblTempUsageDetail_20' ) end [2025-01-13 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236770', 'tblTempVendorCDR_20' ) start [2025-01-13 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236770', 'tblTempVendorCDR_20' ) end [2025-01-13 05:22:18] Production.INFO: ProcessCDR(1,14236770,1,1,2) [2025-01-13 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236770', 'tblTempUsageDetail_20' ) start [2025-01-13 05:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236770', 'tblTempUsageDetail_20' ) end [2025-01-13 05:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:22:23] Production.INFO: ==30978== Releasing lock... [2025-01-13 05:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:22:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:23:05 [end_date_ymd] => 2025-01-13 05:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:23:18] Production.INFO: count ==109 [2025-01-13 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:23:05 - End Time 2025-01-13 05:23:05 [2025-01-13 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236775', 'tblTempUsageDetail_20' ) start [2025-01-13 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236775', 'tblTempUsageDetail_20' ) end [2025-01-13 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236775', 'tblTempVendorCDR_20' ) start [2025-01-13 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236775', 'tblTempVendorCDR_20' ) end [2025-01-13 05:23:18] Production.INFO: ProcessCDR(1,14236775,1,1,2) [2025-01-13 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236775', 'tblTempUsageDetail_20' ) start [2025-01-13 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236775', 'tblTempUsageDetail_20' ) end [2025-01-13 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:23:21] Production.INFO: ==31050== Releasing lock... [2025-01-13 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:24:04 [end_date_ymd] => 2025-01-13 05:24:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:24:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:24:18] Production.INFO: count ==109 [2025-01-13 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:24:04 - End Time 2025-01-13 05:24:04 [2025-01-13 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236780', 'tblTempUsageDetail_20' ) start [2025-01-13 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236780', 'tblTempUsageDetail_20' ) end [2025-01-13 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236780', 'tblTempVendorCDR_20' ) start [2025-01-13 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236780', 'tblTempVendorCDR_20' ) end [2025-01-13 05:24:18] Production.INFO: ProcessCDR(1,14236780,1,1,2) [2025-01-13 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236780', 'tblTempUsageDetail_20' ) start [2025-01-13 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236780', 'tblTempUsageDetail_20' ) end [2025-01-13 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:24:21] Production.INFO: ==31160== Releasing lock... [2025-01-13 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:25:05 [end_date_ymd] => 2025-01-13 05:25:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:25:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:25:18] Production.INFO: count ==109 [2025-01-13 05:25:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:25:05 - End Time 2025-01-13 05:25:05 [2025-01-13 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236785', 'tblTempUsageDetail_20' ) start [2025-01-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236785', 'tblTempUsageDetail_20' ) end [2025-01-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236785', 'tblTempVendorCDR_20' ) start [2025-01-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236785', 'tblTempVendorCDR_20' ) end [2025-01-13 05:25:18] Production.INFO: ProcessCDR(1,14236785,1,1,2) [2025-01-13 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236785', 'tblTempUsageDetail_20' ) start [2025-01-13 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236785', 'tblTempUsageDetail_20' ) end [2025-01-13 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:25:21] Production.INFO: ==31232== Releasing lock... [2025-01-13 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:26:05 [end_date_ymd] => 2025-01-13 05:26:05 [RateCDR] => 1 ) [2025-01-13 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:26:05' and `end` < '2025-01-13 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:26:17] Production.INFO: count ==108 [2025-01-13 05:26:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:26:05 - End Time 2025-01-13 05:26:05 [2025-01-13 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236790', 'tblTempUsageDetail_20' ) start [2025-01-13 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236790', 'tblTempUsageDetail_20' ) end [2025-01-13 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236790', 'tblTempVendorCDR_20' ) start [2025-01-13 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236790', 'tblTempVendorCDR_20' ) end [2025-01-13 05:26:17] Production.INFO: ProcessCDR(1,14236790,1,1,2) [2025-01-13 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236790', 'tblTempUsageDetail_20' ) start [2025-01-13 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236790', 'tblTempUsageDetail_20' ) end [2025-01-13 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:26:21] Production.INFO: ==31307== Releasing lock... [2025-01-13 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:27:05 [end_date_ymd] => 2025-01-13 05:27:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:27:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:27:18] Production.INFO: count ==108 [2025-01-13 05:27:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:27:05 - End Time 2025-01-13 05:27:05 [2025-01-13 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236795', 'tblTempUsageDetail_20' ) start [2025-01-13 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236795', 'tblTempUsageDetail_20' ) end [2025-01-13 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236795', 'tblTempVendorCDR_20' ) start [2025-01-13 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236795', 'tblTempVendorCDR_20' ) end [2025-01-13 05:27:19] Production.INFO: ProcessCDR(1,14236795,1,1,2) [2025-01-13 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236795', 'tblTempUsageDetail_20' ) start [2025-01-13 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236795', 'tblTempUsageDetail_20' ) end [2025-01-13 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:27:22] Production.INFO: ==31381== Releasing lock... [2025-01-13 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:28:04 [end_date_ymd] => 2025-01-13 05:28:04 [RateCDR] => 1 ) [2025-01-13 05:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:28:04' and `end` < '2025-01-13 05:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:28:17] Production.INFO: count ==108 [2025-01-13 05:28:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:28:04 - End Time 2025-01-13 05:28:04 [2025-01-13 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236800', 'tblTempUsageDetail_20' ) start [2025-01-13 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236800', 'tblTempUsageDetail_20' ) end [2025-01-13 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236800', 'tblTempVendorCDR_20' ) start [2025-01-13 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236800', 'tblTempVendorCDR_20' ) end [2025-01-13 05:28:17] Production.INFO: ProcessCDR(1,14236800,1,1,2) [2025-01-13 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236800', 'tblTempUsageDetail_20' ) start [2025-01-13 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236800', 'tblTempUsageDetail_20' ) end [2025-01-13 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:28:20] Production.INFO: ==31459== Releasing lock... [2025-01-13 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:28:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:29:05 [end_date_ymd] => 2025-01-13 05:29:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:29:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:29:17] Production.INFO: count ==108 [2025-01-13 05:29:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:29:05 - End Time 2025-01-13 05:29:05 [2025-01-13 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236805', 'tblTempUsageDetail_20' ) start [2025-01-13 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236805', 'tblTempUsageDetail_20' ) end [2025-01-13 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236805', 'tblTempVendorCDR_20' ) start [2025-01-13 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236805', 'tblTempVendorCDR_20' ) end [2025-01-13 05:29:17] Production.INFO: ProcessCDR(1,14236805,1,1,2) [2025-01-13 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236805', 'tblTempUsageDetail_20' ) start [2025-01-13 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236805', 'tblTempUsageDetail_20' ) end [2025-01-13 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:29:21] Production.INFO: ==31551== Releasing lock... [2025-01-13 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:30:06 [end_date_ymd] => 2025-01-13 05:30:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:30:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:30:19] Production.INFO: count ==102 [2025-01-13 05:30:19] Production.ERROR: pbx CDR StartTime 2025-01-13 02:30:06 - End Time 2025-01-13 05:30:06 [2025-01-13 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236811', 'tblTempUsageDetail_20' ) start [2025-01-13 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236811', 'tblTempUsageDetail_20' ) end [2025-01-13 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236811', 'tblTempVendorCDR_20' ) start [2025-01-13 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236811', 'tblTempVendorCDR_20' ) end [2025-01-13 05:30:19] Production.INFO: ProcessCDR(1,14236811,1,1,2) [2025-01-13 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236811', 'tblTempUsageDetail_20' ) start [2025-01-13 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236811', 'tblTempUsageDetail_20' ) end [2025-01-13 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:30:23] Production.INFO: ==31647== Releasing lock... [2025-01-13 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:30:23] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:31:05 [end_date_ymd] => 2025-01-13 05:31:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:31:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:31:18] Production.INFO: count ==97 [2025-01-13 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:31:05 - End Time 2025-01-13 05:31:05 [2025-01-13 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236816', 'tblTempUsageDetail_20' ) start [2025-01-13 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236816', 'tblTempUsageDetail_20' ) end [2025-01-13 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236816', 'tblTempVendorCDR_20' ) start [2025-01-13 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236816', 'tblTempVendorCDR_20' ) end [2025-01-13 05:31:18] Production.INFO: ProcessCDR(1,14236816,1,1,2) [2025-01-13 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236816', 'tblTempUsageDetail_20' ) start [2025-01-13 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236816', 'tblTempUsageDetail_20' ) end [2025-01-13 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:31:21] Production.INFO: ==31742== Releasing lock... [2025-01-13 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:32:04 [end_date_ymd] => 2025-01-13 05:32:04 [RateCDR] => 1 ) [2025-01-13 05: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` >= '2025-01-13 02:32:04' and `end` < '2025-01-13 05: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 ,'') [2025-01-13 05:32:17] Production.INFO: count ==97 [2025-01-13 05:32:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:32:04 - End Time 2025-01-13 05:32:04 [2025-01-13 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236821', 'tblTempUsageDetail_20' ) start [2025-01-13 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236821', 'tblTempUsageDetail_20' ) end [2025-01-13 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236821', 'tblTempVendorCDR_20' ) start [2025-01-13 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236821', 'tblTempVendorCDR_20' ) end [2025-01-13 05:32:17] Production.INFO: ProcessCDR(1,14236821,1,1,2) [2025-01-13 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236821', 'tblTempUsageDetail_20' ) start [2025-01-13 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236821', 'tblTempUsageDetail_20' ) end [2025-01-13 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:32:21] Production.INFO: ==31840== Releasing lock... [2025-01-13 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:33:05 [end_date_ymd] => 2025-01-13 05:33:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:33:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:33:17] Production.INFO: count ==97 [2025-01-13 05:33:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:33:05 - End Time 2025-01-13 05:33:05 [2025-01-13 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236826', 'tblTempUsageDetail_20' ) start [2025-01-13 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236826', 'tblTempUsageDetail_20' ) end [2025-01-13 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236826', 'tblTempVendorCDR_20' ) start [2025-01-13 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236826', 'tblTempVendorCDR_20' ) end [2025-01-13 05:33:17] Production.INFO: ProcessCDR(1,14236826,1,1,2) [2025-01-13 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236826', 'tblTempUsageDetail_20' ) start [2025-01-13 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236826', 'tblTempUsageDetail_20' ) end [2025-01-13 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:33:20] Production.INFO: ==31933== Releasing lock... [2025-01-13 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:33:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:34:04 [end_date_ymd] => 2025-01-13 05:34:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:34:04' and `end` < '2025-01-13 05: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 ,'') [2025-01-13 05:34:17] Production.INFO: count ==97 [2025-01-13 05:34:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:34:04 - End Time 2025-01-13 05:34:04 [2025-01-13 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236831', 'tblTempUsageDetail_20' ) start [2025-01-13 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236831', 'tblTempUsageDetail_20' ) end [2025-01-13 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236831', 'tblTempVendorCDR_20' ) start [2025-01-13 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236831', 'tblTempVendorCDR_20' ) end [2025-01-13 05:34:17] Production.INFO: ProcessCDR(1,14236831,1,1,2) [2025-01-13 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236831', 'tblTempUsageDetail_20' ) start [2025-01-13 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236831', 'tblTempUsageDetail_20' ) end [2025-01-13 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:34:20] Production.INFO: ==32032== Releasing lock... [2025-01-13 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:34:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:35:05 [end_date_ymd] => 2025-01-13 05:35:05 [RateCDR] => 1 ) [2025-01-13 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:35:05' and `end` < '2025-01-13 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:35:17] Production.INFO: count ==97 [2025-01-13 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:35:05 - End Time 2025-01-13 05:35:05 [2025-01-13 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236836', 'tblTempUsageDetail_20' ) start [2025-01-13 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236836', 'tblTempUsageDetail_20' ) end [2025-01-13 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236836', 'tblTempVendorCDR_20' ) start [2025-01-13 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236836', 'tblTempVendorCDR_20' ) end [2025-01-13 05:35:17] Production.INFO: ProcessCDR(1,14236836,1,1,2) [2025-01-13 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236836', 'tblTempUsageDetail_20' ) start [2025-01-13 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236836', 'tblTempUsageDetail_20' ) end [2025-01-13 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:35:21] Production.INFO: ==32126== Releasing lock... [2025-01-13 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:36:04 [end_date_ymd] => 2025-01-13 05:36:04 [RateCDR] => 1 ) [2025-01-13 05:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:36:04' and `end` < '2025-01-13 05:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:36:17] Production.INFO: count ==97 [2025-01-13 05:36:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:36:04 - End Time 2025-01-13 05:36:04 [2025-01-13 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236841', 'tblTempUsageDetail_20' ) start [2025-01-13 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236841', 'tblTempUsageDetail_20' ) end [2025-01-13 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236841', 'tblTempVendorCDR_20' ) start [2025-01-13 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236841', 'tblTempVendorCDR_20' ) end [2025-01-13 05:36:17] Production.INFO: ProcessCDR(1,14236841,1,1,2) [2025-01-13 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236841', 'tblTempUsageDetail_20' ) start [2025-01-13 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236841', 'tblTempUsageDetail_20' ) end [2025-01-13 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:36:20] Production.INFO: ==32217== Releasing lock... [2025-01-13 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:36:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:37:05 [end_date_ymd] => 2025-01-13 05:37:05 [RateCDR] => 1 ) [2025-01-13 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:37:05' and `end` < '2025-01-13 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:37:18] Production.INFO: count ==97 [2025-01-13 05:37:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:37:05 - End Time 2025-01-13 05:37:05 [2025-01-13 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236846', 'tblTempUsageDetail_20' ) start [2025-01-13 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236846', 'tblTempUsageDetail_20' ) end [2025-01-13 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236846', 'tblTempVendorCDR_20' ) start [2025-01-13 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236846', 'tblTempVendorCDR_20' ) end [2025-01-13 05:37:18] Production.INFO: ProcessCDR(1,14236846,1,1,2) [2025-01-13 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236846', 'tblTempUsageDetail_20' ) start [2025-01-13 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236846', 'tblTempUsageDetail_20' ) end [2025-01-13 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:37:21] Production.INFO: ==32306== Releasing lock... [2025-01-13 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:38:04 [end_date_ymd] => 2025-01-13 05:38:04 [RateCDR] => 1 ) [2025-01-13 05:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:38:04' and `end` < '2025-01-13 05:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:38:17] Production.INFO: count ==97 [2025-01-13 05:38:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:38:04 - End Time 2025-01-13 05:38:04 [2025-01-13 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236851', 'tblTempUsageDetail_20' ) start [2025-01-13 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236851', 'tblTempUsageDetail_20' ) end [2025-01-13 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236851', 'tblTempVendorCDR_20' ) start [2025-01-13 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236851', 'tblTempVendorCDR_20' ) end [2025-01-13 05:38:17] Production.INFO: ProcessCDR(1,14236851,1,1,2) [2025-01-13 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236851', 'tblTempUsageDetail_20' ) start [2025-01-13 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236851', 'tblTempUsageDetail_20' ) end [2025-01-13 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:38:20] Production.INFO: ==32394== Releasing lock... [2025-01-13 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:38:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:39:05 [end_date_ymd] => 2025-01-13 05:39:05 [RateCDR] => 1 ) [2025-01-13 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:39:05' and `end` < '2025-01-13 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:39:18] Production.INFO: count ==97 [2025-01-13 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:39:05 - End Time 2025-01-13 05:39:05 [2025-01-13 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236856', 'tblTempUsageDetail_20' ) start [2025-01-13 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236856', 'tblTempUsageDetail_20' ) end [2025-01-13 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236856', 'tblTempVendorCDR_20' ) start [2025-01-13 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236856', 'tblTempVendorCDR_20' ) end [2025-01-13 05:39:18] Production.INFO: ProcessCDR(1,14236856,1,1,2) [2025-01-13 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236856', 'tblTempUsageDetail_20' ) start [2025-01-13 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236856', 'tblTempUsageDetail_20' ) end [2025-01-13 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:39:21] Production.INFO: ==32523== Releasing lock... [2025-01-13 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:40:06 [end_date_ymd] => 2025-01-13 05:40:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:40:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:40:19] Production.INFO: count ==93 [2025-01-13 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-13 02:40:06 - End Time 2025-01-13 05:40:06 [2025-01-13 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236861', 'tblTempUsageDetail_20' ) start [2025-01-13 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236861', 'tblTempUsageDetail_20' ) end [2025-01-13 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236861', 'tblTempVendorCDR_20' ) start [2025-01-13 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236861', 'tblTempVendorCDR_20' ) end [2025-01-13 05:40:19] Production.INFO: ProcessCDR(1,14236861,1,1,2) [2025-01-13 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236861', 'tblTempUsageDetail_20' ) start [2025-01-13 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236861', 'tblTempUsageDetail_20' ) end [2025-01-13 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:40:23] Production.INFO: ==32620== Releasing lock... [2025-01-13 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:40:23] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:41:05 [end_date_ymd] => 2025-01-13 05:41:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:41:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:41:18] Production.INFO: count ==92 [2025-01-13 05:41:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:41:05 - End Time 2025-01-13 05:41:05 [2025-01-13 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236867', 'tblTempUsageDetail_20' ) start [2025-01-13 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236867', 'tblTempUsageDetail_20' ) end [2025-01-13 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236867', 'tblTempVendorCDR_20' ) start [2025-01-13 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236867', 'tblTempVendorCDR_20' ) end [2025-01-13 05:41:18] Production.INFO: ProcessCDR(1,14236867,1,1,2) [2025-01-13 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236867', 'tblTempUsageDetail_20' ) start [2025-01-13 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236867', 'tblTempUsageDetail_20' ) end [2025-01-13 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:41:21] Production.INFO: ==32707== Releasing lock... [2025-01-13 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:42:05 [end_date_ymd] => 2025-01-13 05:42:05 [RateCDR] => 1 ) [2025-01-13 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:42:05' and `end` < '2025-01-13 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:42:18] Production.INFO: count ==89 [2025-01-13 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:42:05 - End Time 2025-01-13 05:42:05 [2025-01-13 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236872', 'tblTempUsageDetail_20' ) start [2025-01-13 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236872', 'tblTempUsageDetail_20' ) end [2025-01-13 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236872', 'tblTempVendorCDR_20' ) start [2025-01-13 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236872', 'tblTempVendorCDR_20' ) end [2025-01-13 05:42:19] Production.INFO: ProcessCDR(1,14236872,1,1,2) [2025-01-13 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236872', 'tblTempUsageDetail_20' ) start [2025-01-13 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236872', 'tblTempUsageDetail_20' ) end [2025-01-13 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:42:22] Production.INFO: ==337== Releasing lock... [2025-01-13 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:42:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:43:05 [end_date_ymd] => 2025-01-13 05:43:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:43:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:43:17] Production.INFO: count ==88 [2025-01-13 05:43:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:43:05 - End Time 2025-01-13 05:43:05 [2025-01-13 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236877', 'tblTempUsageDetail_20' ) start [2025-01-13 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236877', 'tblTempUsageDetail_20' ) end [2025-01-13 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236877', 'tblTempVendorCDR_20' ) start [2025-01-13 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236877', 'tblTempVendorCDR_20' ) end [2025-01-13 05:43:17] Production.INFO: ProcessCDR(1,14236877,1,1,2) [2025-01-13 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236877', 'tblTempUsageDetail_20' ) start [2025-01-13 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236877', 'tblTempUsageDetail_20' ) end [2025-01-13 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:43:20] Production.INFO: ==439== Releasing lock... [2025-01-13 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:43:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:44:05 [end_date_ymd] => 2025-01-13 05:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:44:17] Production.INFO: count ==88 [2025-01-13 05:44:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:44:05 - End Time 2025-01-13 05:44:05 [2025-01-13 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236882', 'tblTempUsageDetail_20' ) start [2025-01-13 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236882', 'tblTempUsageDetail_20' ) end [2025-01-13 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236882', 'tblTempVendorCDR_20' ) start [2025-01-13 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236882', 'tblTempVendorCDR_20' ) end [2025-01-13 05:44:17] Production.INFO: ProcessCDR(1,14236882,1,1,2) [2025-01-13 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236882', 'tblTempUsageDetail_20' ) start [2025-01-13 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236882', 'tblTempUsageDetail_20' ) end [2025-01-13 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:44:21] Production.INFO: ==524== Releasing lock... [2025-01-13 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:45:05 [end_date_ymd] => 2025-01-13 05:45:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:45:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:45:18] Production.INFO: count ==89 [2025-01-13 05:45:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:45:05 - End Time 2025-01-13 05:45:05 [2025-01-13 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236887', 'tblTempUsageDetail_20' ) start [2025-01-13 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236887', 'tblTempUsageDetail_20' ) end [2025-01-13 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236887', 'tblTempVendorCDR_20' ) start [2025-01-13 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236887', 'tblTempVendorCDR_20' ) end [2025-01-13 05:45:18] Production.INFO: ProcessCDR(1,14236887,1,1,2) [2025-01-13 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236887', 'tblTempUsageDetail_20' ) start [2025-01-13 05:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236887', 'tblTempUsageDetail_20' ) end [2025-01-13 05:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:45:23] Production.INFO: ==619== Releasing lock... [2025-01-13 05:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:45:23] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:46:06 [end_date_ymd] => 2025-01-13 05:46:06 [RateCDR] => 1 ) [2025-01-13 05: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` >= '2025-01-13 02:46:06' and `end` < '2025-01-13 05: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 ,'') [2025-01-13 05:46:19] Production.INFO: count ==90 [2025-01-13 05:46:19] Production.ERROR: pbx CDR StartTime 2025-01-13 02:46:06 - End Time 2025-01-13 05:46:06 [2025-01-13 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236892', 'tblTempUsageDetail_20' ) start [2025-01-13 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236892', 'tblTempUsageDetail_20' ) end [2025-01-13 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236892', 'tblTempVendorCDR_20' ) start [2025-01-13 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236892', 'tblTempVendorCDR_20' ) end [2025-01-13 05:46:19] Production.INFO: ProcessCDR(1,14236892,1,1,2) [2025-01-13 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236892', 'tblTempUsageDetail_20' ) start [2025-01-13 05:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236892', 'tblTempUsageDetail_20' ) end [2025-01-13 05:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:46:24] Production.INFO: ==723== Releasing lock... [2025-01-13 05:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:46:24] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:47:04 [end_date_ymd] => 2025-01-13 05:47:04 [RateCDR] => 1 ) [2025-01-13 05:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:47:04' and `end` < '2025-01-13 05:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:47:17] Production.INFO: count ==90 [2025-01-13 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:47:04 - End Time 2025-01-13 05:47:04 [2025-01-13 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236894', 'tblTempUsageDetail_20' ) start [2025-01-13 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236894', 'tblTempUsageDetail_20' ) end [2025-01-13 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236894', 'tblTempVendorCDR_20' ) start [2025-01-13 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236894', 'tblTempVendorCDR_20' ) end [2025-01-13 05:47:17] Production.INFO: ProcessCDR(1,14236894,1,1,2) [2025-01-13 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236894', 'tblTempUsageDetail_20' ) start [2025-01-13 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236894', 'tblTempUsageDetail_20' ) end [2025-01-13 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:47:21] Production.INFO: ==804== Releasing lock... [2025-01-13 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:47:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:48:05 [end_date_ymd] => 2025-01-13 05:48:05 [RateCDR] => 1 ) [2025-01-13 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:48:05' and `end` < '2025-01-13 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:48:19] Production.INFO: count ==90 [2025-01-13 05:48:19] Production.ERROR: pbx CDR StartTime 2025-01-13 02:48:05 - End Time 2025-01-13 05:48:05 [2025-01-13 05:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236902', 'tblTempUsageDetail_20' ) start [2025-01-13 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236902', 'tblTempUsageDetail_20' ) end [2025-01-13 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236902', 'tblTempVendorCDR_20' ) start [2025-01-13 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236902', 'tblTempVendorCDR_20' ) end [2025-01-13 05:48:19] Production.INFO: ProcessCDR(1,14236902,1,1,2) [2025-01-13 05:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236902', 'tblTempUsageDetail_20' ) start [2025-01-13 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236902', 'tblTempUsageDetail_20' ) end [2025-01-13 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:48:22] Production.INFO: ==881== Releasing lock... [2025-01-13 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:48:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:49:04 [end_date_ymd] => 2025-01-13 05:49:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:49:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:49:17] Production.INFO: count ==90 [2025-01-13 05:49:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:49:04 - End Time 2025-01-13 05:49:04 [2025-01-13 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236907', 'tblTempUsageDetail_20' ) start [2025-01-13 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236907', 'tblTempUsageDetail_20' ) end [2025-01-13 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236907', 'tblTempVendorCDR_20' ) start [2025-01-13 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236907', 'tblTempVendorCDR_20' ) end [2025-01-13 05:49:17] Production.INFO: ProcessCDR(1,14236907,1,1,2) [2025-01-13 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236907', 'tblTempUsageDetail_20' ) start [2025-01-13 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236907', 'tblTempUsageDetail_20' ) end [2025-01-13 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:49:20] Production.INFO: ==951== Releasing lock... [2025-01-13 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:49:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:50:05 [end_date_ymd] => 2025-01-13 05:50:05 [RateCDR] => 1 ) [2025-01-13 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:50:05' and `end` < '2025-01-13 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:50:18] Production.INFO: count ==86 [2025-01-13 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:50:05 - End Time 2025-01-13 05:50:05 [2025-01-13 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236913', 'tblTempUsageDetail_20' ) start [2025-01-13 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236913', 'tblTempUsageDetail_20' ) end [2025-01-13 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236913', 'tblTempVendorCDR_20' ) start [2025-01-13 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236913', 'tblTempVendorCDR_20' ) end [2025-01-13 05:50:18] Production.INFO: ProcessCDR(1,14236913,1,1,2) [2025-01-13 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236913', 'tblTempUsageDetail_20' ) start [2025-01-13 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236913', 'tblTempUsageDetail_20' ) end [2025-01-13 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:50:21] Production.INFO: ==1027== Releasing lock... [2025-01-13 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:51:04 [end_date_ymd] => 2025-01-13 05:51:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:51:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:51:17] Production.INFO: count ==78 [2025-01-13 05:51:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:51:04 - End Time 2025-01-13 05:51:04 [2025-01-13 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236918', 'tblTempUsageDetail_20' ) start [2025-01-13 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236918', 'tblTempUsageDetail_20' ) end [2025-01-13 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236918', 'tblTempVendorCDR_20' ) start [2025-01-13 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236918', 'tblTempVendorCDR_20' ) end [2025-01-13 05:51:17] Production.INFO: ProcessCDR(1,14236918,1,1,2) [2025-01-13 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236918', 'tblTempUsageDetail_20' ) start [2025-01-13 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236918', 'tblTempUsageDetail_20' ) end [2025-01-13 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:51:20] Production.INFO: ==1103== Releasing lock... [2025-01-13 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:51:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:52:05 [end_date_ymd] => 2025-01-13 05:52:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:52:17] Production.INFO: count ==78 [2025-01-13 05:52:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:52:05 - End Time 2025-01-13 05:52:05 [2025-01-13 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236923', 'tblTempUsageDetail_20' ) start [2025-01-13 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236923', 'tblTempUsageDetail_20' ) end [2025-01-13 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236923', 'tblTempVendorCDR_20' ) start [2025-01-13 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236923', 'tblTempVendorCDR_20' ) end [2025-01-13 05:52:17] Production.INFO: ProcessCDR(1,14236923,1,1,2) [2025-01-13 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236923', 'tblTempUsageDetail_20' ) start [2025-01-13 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236923', 'tblTempUsageDetail_20' ) end [2025-01-13 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:52:20] Production.INFO: ==1190== Releasing lock... [2025-01-13 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:52:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:53:05 [end_date_ymd] => 2025-01-13 05:53:05 [RateCDR] => 1 ) [2025-01-13 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:53:05' and `end` < '2025-01-13 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:53:19] Production.INFO: count ==78 [2025-01-13 05:53:19] Production.ERROR: pbx CDR StartTime 2025-01-13 02:53:05 - End Time 2025-01-13 05:53:05 [2025-01-13 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236928', 'tblTempUsageDetail_20' ) start [2025-01-13 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236928', 'tblTempUsageDetail_20' ) end [2025-01-13 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236928', 'tblTempVendorCDR_20' ) start [2025-01-13 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236928', 'tblTempVendorCDR_20' ) end [2025-01-13 05:53:19] Production.INFO: ProcessCDR(1,14236928,1,1,2) [2025-01-13 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236928', 'tblTempUsageDetail_20' ) start [2025-01-13 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236928', 'tblTempUsageDetail_20' ) end [2025-01-13 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:53:22] Production.INFO: ==1284== Releasing lock... [2025-01-13 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:53:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:54:05 [end_date_ymd] => 2025-01-13 05:54:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:54:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:54:17] Production.INFO: count ==78 [2025-01-13 05:54:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:54:05 - End Time 2025-01-13 05:54:05 [2025-01-13 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236933', 'tblTempUsageDetail_20' ) start [2025-01-13 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236933', 'tblTempUsageDetail_20' ) end [2025-01-13 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236933', 'tblTempVendorCDR_20' ) start [2025-01-13 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236933', 'tblTempVendorCDR_20' ) end [2025-01-13 05:54:17] Production.INFO: ProcessCDR(1,14236933,1,1,2) [2025-01-13 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236933', 'tblTempUsageDetail_20' ) start [2025-01-13 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236933', 'tblTempUsageDetail_20' ) end [2025-01-13 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:54:21] Production.INFO: ==1356== Releasing lock... [2025-01-13 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:55:06 [end_date_ymd] => 2025-01-13 05:55:06 [RateCDR] => 1 ) [2025-01-13 05:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:55:06' and `end` < '2025-01-13 05:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:55:19] Production.INFO: count ==78 [2025-01-13 05:55:19] Production.ERROR: pbx CDR StartTime 2025-01-13 02:55:06 - End Time 2025-01-13 05:55:06 [2025-01-13 05:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236938', 'tblTempUsageDetail_20' ) start [2025-01-13 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236938', 'tblTempUsageDetail_20' ) end [2025-01-13 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236938', 'tblTempVendorCDR_20' ) start [2025-01-13 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236938', 'tblTempVendorCDR_20' ) end [2025-01-13 05:55:19] Production.INFO: ProcessCDR(1,14236938,1,1,2) [2025-01-13 05:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236938', 'tblTempUsageDetail_20' ) start [2025-01-13 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236938', 'tblTempUsageDetail_20' ) end [2025-01-13 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:55:22] Production.INFO: ==1469== Releasing lock... [2025-01-13 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:55:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:56:05 [end_date_ymd] => 2025-01-13 05:56:05 [RateCDR] => 1 ) [2025-01-13 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:56:05' and `end` < '2025-01-13 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:56:18] Production.INFO: count ==78 [2025-01-13 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:56:05 - End Time 2025-01-13 05:56:05 [2025-01-13 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236943', 'tblTempUsageDetail_20' ) start [2025-01-13 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236943', 'tblTempUsageDetail_20' ) end [2025-01-13 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236943', 'tblTempVendorCDR_20' ) start [2025-01-13 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236943', 'tblTempVendorCDR_20' ) end [2025-01-13 05:56:18] Production.INFO: ProcessCDR(1,14236943,1,1,2) [2025-01-13 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236943', 'tblTempUsageDetail_20' ) start [2025-01-13 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236943', 'tblTempUsageDetail_20' ) end [2025-01-13 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:56:21] Production.INFO: ==1577== Releasing lock... [2025-01-13 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:57:05 [end_date_ymd] => 2025-01-13 05:57:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 02:57:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 05:57:18] Production.INFO: count ==78 [2025-01-13 05:57:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:57:05 - End Time 2025-01-13 05:57:05 [2025-01-13 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236948', 'tblTempUsageDetail_20' ) start [2025-01-13 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236948', 'tblTempUsageDetail_20' ) end [2025-01-13 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236948', 'tblTempVendorCDR_20' ) start [2025-01-13 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236948', 'tblTempVendorCDR_20' ) end [2025-01-13 05:57:18] Production.INFO: ProcessCDR(1,14236948,1,1,2) [2025-01-13 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236948', 'tblTempUsageDetail_20' ) start [2025-01-13 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236948', 'tblTempUsageDetail_20' ) end [2025-01-13 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:57:21] Production.INFO: ==1649== Releasing lock... [2025-01-13 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:58:04 [end_date_ymd] => 2025-01-13 05:58:04 [RateCDR] => 1 ) [2025-01-13 05:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:58:04' and `end` < '2025-01-13 05:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:58:17] Production.INFO: count ==78 [2025-01-13 05:58:17] Production.ERROR: pbx CDR StartTime 2025-01-13 02:58:04 - End Time 2025-01-13 05:58:04 [2025-01-13 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236953', 'tblTempUsageDetail_20' ) start [2025-01-13 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236953', 'tblTempUsageDetail_20' ) end [2025-01-13 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236953', 'tblTempVendorCDR_20' ) start [2025-01-13 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236953', 'tblTempVendorCDR_20' ) end [2025-01-13 05:58:17] Production.INFO: ProcessCDR(1,14236953,1,1,2) [2025-01-13 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236953', 'tblTempUsageDetail_20' ) start [2025-01-13 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236953', 'tblTempUsageDetail_20' ) end [2025-01-13 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:58:21] Production.INFO: ==1725== Releasing lock... [2025-01-13 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 02:59:05 [end_date_ymd] => 2025-01-13 05:59:05 [RateCDR] => 1 ) [2025-01-13 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 02:59:05' and `end` < '2025-01-13 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 05:59:18] Production.INFO: count ==78 [2025-01-13 05:59:18] Production.ERROR: pbx CDR StartTime 2025-01-13 02:59:05 - End Time 2025-01-13 05:59:05 [2025-01-13 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236958', 'tblTempUsageDetail_20' ) start [2025-01-13 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236958', 'tblTempUsageDetail_20' ) end [2025-01-13 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236958', 'tblTempVendorCDR_20' ) start [2025-01-13 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236958', 'tblTempVendorCDR_20' ) end [2025-01-13 05:59:18] Production.INFO: ProcessCDR(1,14236958,1,1,2) [2025-01-13 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236958', 'tblTempUsageDetail_20' ) start [2025-01-13 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236958', 'tblTempUsageDetail_20' ) end [2025-01-13 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 05:59:21] Production.INFO: ==1798== Releasing lock... [2025-01-13 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 05:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:00:05 [end_date_ymd] => 2025-01-13 06:00:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:00:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:00:18] Production.INFO: count ==76 [2025-01-13 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:00:05 - End Time 2025-01-13 06:00:05 [2025-01-13 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236964', 'tblTempUsageDetail_20' ) start [2025-01-13 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236964', 'tblTempUsageDetail_20' ) end [2025-01-13 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236964', 'tblTempVendorCDR_20' ) start [2025-01-13 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236964', 'tblTempVendorCDR_20' ) end [2025-01-13 06:00:18] Production.INFO: ProcessCDR(1,14236964,1,1,2) [2025-01-13 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236964', 'tblTempUsageDetail_20' ) start [2025-01-13 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236964', 'tblTempUsageDetail_20' ) end [2025-01-13 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:00:21] Production.INFO: ==1874== Releasing lock... [2025-01-13 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:01:05 [end_date_ymd] => 2025-01-13 06:01:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:01:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:01:17] Production.INFO: count ==76 [2025-01-13 06:01:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:01:05 - End Time 2025-01-13 06:01:05 [2025-01-13 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236969', 'tblTempUsageDetail_20' ) start [2025-01-13 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236969', 'tblTempUsageDetail_20' ) end [2025-01-13 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236969', 'tblTempVendorCDR_20' ) start [2025-01-13 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236969', 'tblTempVendorCDR_20' ) end [2025-01-13 06:01:17] Production.INFO: ProcessCDR(1,14236969,1,1,2) [2025-01-13 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236969', 'tblTempUsageDetail_20' ) start [2025-01-13 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236969', 'tblTempUsageDetail_20' ) end [2025-01-13 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:01:21] Production.INFO: ==1959== Releasing lock... [2025-01-13 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:01:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:02:04 [end_date_ymd] => 2025-01-13 06:02:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:02:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:02:17] Production.INFO: count ==76 [2025-01-13 06:02:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:02:04 - End Time 2025-01-13 06:02:04 [2025-01-13 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236974', 'tblTempUsageDetail_20' ) start [2025-01-13 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236974', 'tblTempUsageDetail_20' ) end [2025-01-13 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236974', 'tblTempVendorCDR_20' ) start [2025-01-13 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236974', 'tblTempVendorCDR_20' ) end [2025-01-13 06:02:17] Production.INFO: ProcessCDR(1,14236974,1,1,2) [2025-01-13 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236974', 'tblTempUsageDetail_20' ) start [2025-01-13 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236974', 'tblTempUsageDetail_20' ) end [2025-01-13 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:02:21] Production.INFO: ==2031== Releasing lock... [2025-01-13 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:02:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:03:05 [end_date_ymd] => 2025-01-13 06:03:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:03:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:03:17] Production.INFO: count ==76 [2025-01-13 06:03:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:03:05 - End Time 2025-01-13 06:03:05 [2025-01-13 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236979', 'tblTempUsageDetail_20' ) start [2025-01-13 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236979', 'tblTempUsageDetail_20' ) end [2025-01-13 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236979', 'tblTempVendorCDR_20' ) start [2025-01-13 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236979', 'tblTempVendorCDR_20' ) end [2025-01-13 06:03:17] Production.INFO: ProcessCDR(1,14236979,1,1,2) [2025-01-13 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236979', 'tblTempUsageDetail_20' ) start [2025-01-13 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236979', 'tblTempUsageDetail_20' ) end [2025-01-13 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:03:20] Production.INFO: ==2102== Releasing lock... [2025-01-13 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:03:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:04:05 [end_date_ymd] => 2025-01-13 06:04:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:04:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:04:18] Production.INFO: count ==76 [2025-01-13 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:04:05 - End Time 2025-01-13 06:04:05 [2025-01-13 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236984', 'tblTempUsageDetail_20' ) start [2025-01-13 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236984', 'tblTempUsageDetail_20' ) end [2025-01-13 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236984', 'tblTempVendorCDR_20' ) start [2025-01-13 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236984', 'tblTempVendorCDR_20' ) end [2025-01-13 06:04:18] Production.INFO: ProcessCDR(1,14236984,1,1,2) [2025-01-13 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236984', 'tblTempUsageDetail_20' ) start [2025-01-13 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236984', 'tblTempUsageDetail_20' ) end [2025-01-13 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:04:21] Production.INFO: ==2175== Releasing lock... [2025-01-13 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:04:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:05:05 [end_date_ymd] => 2025-01-13 06:05:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:05:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:05:18] Production.INFO: count ==76 [2025-01-13 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:05:05 - End Time 2025-01-13 06:05:05 [2025-01-13 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236989', 'tblTempUsageDetail_20' ) start [2025-01-13 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236989', 'tblTempUsageDetail_20' ) end [2025-01-13 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236989', 'tblTempVendorCDR_20' ) start [2025-01-13 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236989', 'tblTempVendorCDR_20' ) end [2025-01-13 06:05:18] Production.INFO: ProcessCDR(1,14236989,1,1,2) [2025-01-13 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236989', 'tblTempUsageDetail_20' ) start [2025-01-13 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236989', 'tblTempUsageDetail_20' ) end [2025-01-13 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:05:21] Production.INFO: ==2246== Releasing lock... [2025-01-13 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:06:05 [end_date_ymd] => 2025-01-13 06:06:05 [RateCDR] => 1 ) [2025-01-13 06:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:06:05' and `end` < '2025-01-13 06:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:06:18] Production.INFO: count ==76 [2025-01-13 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:06:05 - End Time 2025-01-13 06:06:05 [2025-01-13 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236994', 'tblTempUsageDetail_20' ) start [2025-01-13 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236994', 'tblTempUsageDetail_20' ) end [2025-01-13 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236994', 'tblTempVendorCDR_20' ) start [2025-01-13 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236994', 'tblTempVendorCDR_20' ) end [2025-01-13 06:06:18] Production.INFO: ProcessCDR(1,14236994,1,1,2) [2025-01-13 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236994', 'tblTempUsageDetail_20' ) start [2025-01-13 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236994', 'tblTempUsageDetail_20' ) end [2025-01-13 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:06:21] Production.INFO: ==2317== Releasing lock... [2025-01-13 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:06:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:07:04 [end_date_ymd] => 2025-01-13 06:07:04 [RateCDR] => 1 ) [2025-01-13 06:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:07:04' and `end` < '2025-01-13 06:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:07:17] Production.INFO: count ==76 [2025-01-13 06:07:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:07:04 - End Time 2025-01-13 06:07:04 [2025-01-13 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236999', 'tblTempUsageDetail_20' ) start [2025-01-13 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14236999', 'tblTempUsageDetail_20' ) end [2025-01-13 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236999', 'tblTempVendorCDR_20' ) start [2025-01-13 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14236999', 'tblTempVendorCDR_20' ) end [2025-01-13 06:07:17] Production.INFO: ProcessCDR(1,14236999,1,1,2) [2025-01-13 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14236999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14236999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14236999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14236999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236999', 'tblTempUsageDetail_20' ) start [2025-01-13 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14236999', 'tblTempUsageDetail_20' ) end [2025-01-13 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:07:20] Production.INFO: ==2388== Releasing lock... [2025-01-13 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:07:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:08:05 [end_date_ymd] => 2025-01-13 06:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:08:18] Production.INFO: count ==76 [2025-01-13 06:08:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:08:05 - End Time 2025-01-13 06:08:05 [2025-01-13 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237004', 'tblTempUsageDetail_20' ) start [2025-01-13 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237004', 'tblTempUsageDetail_20' ) end [2025-01-13 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237004', 'tblTempVendorCDR_20' ) start [2025-01-13 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237004', 'tblTempVendorCDR_20' ) end [2025-01-13 06:08:18] Production.INFO: ProcessCDR(1,14237004,1,1,2) [2025-01-13 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237004', 'tblTempUsageDetail_20' ) start [2025-01-13 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237004', 'tblTempUsageDetail_20' ) end [2025-01-13 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:08:21] Production.INFO: ==2459== Releasing lock... [2025-01-13 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:08:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:09:04 [end_date_ymd] => 2025-01-13 06:09:04 [RateCDR] => 1 ) [2025-01-13 06:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:09:04' and `end` < '2025-01-13 06:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:09:17] Production.INFO: count ==76 [2025-01-13 06:09:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:09:04 - End Time 2025-01-13 06:09:04 [2025-01-13 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237009', 'tblTempUsageDetail_20' ) start [2025-01-13 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237009', 'tblTempUsageDetail_20' ) end [2025-01-13 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237009', 'tblTempVendorCDR_20' ) start [2025-01-13 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237009', 'tblTempVendorCDR_20' ) end [2025-01-13 06:09:17] Production.INFO: ProcessCDR(1,14237009,1,1,2) [2025-01-13 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237009', 'tblTempUsageDetail_20' ) start [2025-01-13 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237009', 'tblTempUsageDetail_20' ) end [2025-01-13 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:09:20] Production.INFO: ==2529== Releasing lock... [2025-01-13 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:09:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:10:06 [end_date_ymd] => 2025-01-13 06:10:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:10:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:10:20] Production.INFO: count ==76 [2025-01-13 06:10:20] Production.ERROR: pbx CDR StartTime 2025-01-13 03:10:06 - End Time 2025-01-13 06:10:06 [2025-01-13 06:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237015', 'tblTempUsageDetail_20' ) start [2025-01-13 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237015', 'tblTempUsageDetail_20' ) end [2025-01-13 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237015', 'tblTempVendorCDR_20' ) start [2025-01-13 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237015', 'tblTempVendorCDR_20' ) end [2025-01-13 06:10:20] Production.INFO: ProcessCDR(1,14237015,1,1,2) [2025-01-13 06:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237015', 'tblTempUsageDetail_20' ) start [2025-01-13 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237015', 'tblTempUsageDetail_20' ) end [2025-01-13 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:10:23] Production.INFO: ==2641== Releasing lock... [2025-01-13 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:10:23] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:11:05 [end_date_ymd] => 2025-01-13 06:11:05 [RateCDR] => 1 ) [2025-01-13 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:11:05' and `end` < '2025-01-13 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:11:19] Production.INFO: count ==76 [2025-01-13 06:11:19] Production.ERROR: pbx CDR StartTime 2025-01-13 03:11:05 - End Time 2025-01-13 06:11:05 [2025-01-13 06:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237020', 'tblTempUsageDetail_20' ) start [2025-01-13 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237020', 'tblTempUsageDetail_20' ) end [2025-01-13 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237020', 'tblTempVendorCDR_20' ) start [2025-01-13 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237020', 'tblTempVendorCDR_20' ) end [2025-01-13 06:11:19] Production.INFO: ProcessCDR(1,14237020,1,1,2) [2025-01-13 06:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237020', 'tblTempUsageDetail_20' ) start [2025-01-13 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237020', 'tblTempUsageDetail_20' ) end [2025-01-13 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:11:22] Production.INFO: ==2720== Releasing lock... [2025-01-13 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:11:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:12:05 [end_date_ymd] => 2025-01-13 06:12:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:12:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:12:17] Production.INFO: count ==76 [2025-01-13 06:12:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:12:05 - End Time 2025-01-13 06:12:05 [2025-01-13 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237025', 'tblTempUsageDetail_20' ) start [2025-01-13 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237025', 'tblTempUsageDetail_20' ) end [2025-01-13 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237025', 'tblTempVendorCDR_20' ) start [2025-01-13 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237025', 'tblTempVendorCDR_20' ) end [2025-01-13 06:12:17] Production.INFO: ProcessCDR(1,14237025,1,1,2) [2025-01-13 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237025', 'tblTempUsageDetail_20' ) start [2025-01-13 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237025', 'tblTempUsageDetail_20' ) end [2025-01-13 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:12:20] Production.INFO: ==2797== Releasing lock... [2025-01-13 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:12:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:13:04 [end_date_ymd] => 2025-01-13 06:13:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:13:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:13:17] Production.INFO: count ==76 [2025-01-13 06:13:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:13:04 - End Time 2025-01-13 06:13:04 [2025-01-13 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237030', 'tblTempUsageDetail_20' ) start [2025-01-13 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237030', 'tblTempUsageDetail_20' ) end [2025-01-13 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237030', 'tblTempVendorCDR_20' ) start [2025-01-13 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237030', 'tblTempVendorCDR_20' ) end [2025-01-13 06:13:17] Production.INFO: ProcessCDR(1,14237030,1,1,2) [2025-01-13 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237030', 'tblTempUsageDetail_20' ) start [2025-01-13 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237030', 'tblTempUsageDetail_20' ) end [2025-01-13 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:13:20] Production.INFO: ==2875== Releasing lock... [2025-01-13 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:13:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:14:05 [end_date_ymd] => 2025-01-13 06:14:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:14:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:14:17] Production.INFO: count ==76 [2025-01-13 06:14:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:14:05 - End Time 2025-01-13 06:14:05 [2025-01-13 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237035', 'tblTempUsageDetail_20' ) start [2025-01-13 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237035', 'tblTempUsageDetail_20' ) end [2025-01-13 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237035', 'tblTempVendorCDR_20' ) start [2025-01-13 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237035', 'tblTempVendorCDR_20' ) end [2025-01-13 06:14:17] Production.INFO: ProcessCDR(1,14237035,1,1,2) [2025-01-13 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237035', 'tblTempUsageDetail_20' ) start [2025-01-13 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237035', 'tblTempUsageDetail_20' ) end [2025-01-13 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:14:21] Production.INFO: ==2986== Releasing lock... [2025-01-13 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:14:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:15:05 [end_date_ymd] => 2025-01-13 06:15:05 [RateCDR] => 1 ) [2025-01-13 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:15:05' and `end` < '2025-01-13 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:15:18] Production.INFO: count ==76 [2025-01-13 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:15:05 - End Time 2025-01-13 06:15:05 [2025-01-13 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237040', 'tblTempUsageDetail_20' ) start [2025-01-13 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237040', 'tblTempUsageDetail_20' ) end [2025-01-13 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237040', 'tblTempVendorCDR_20' ) start [2025-01-13 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237040', 'tblTempVendorCDR_20' ) end [2025-01-13 06:15:18] Production.INFO: ProcessCDR(1,14237040,1,1,2) [2025-01-13 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237040', 'tblTempUsageDetail_20' ) start [2025-01-13 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237040', 'tblTempUsageDetail_20' ) end [2025-01-13 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:15:21] Production.INFO: ==3095== Releasing lock... [2025-01-13 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:16:05 [end_date_ymd] => 2025-01-13 06:16:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:16:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:16:19] Production.INFO: count ==76 [2025-01-13 06:16:19] Production.ERROR: pbx CDR StartTime 2025-01-13 03:16:05 - End Time 2025-01-13 06:16:05 [2025-01-13 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237045', 'tblTempUsageDetail_20' ) start [2025-01-13 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237045', 'tblTempUsageDetail_20' ) end [2025-01-13 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237045', 'tblTempVendorCDR_20' ) start [2025-01-13 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237045', 'tblTempVendorCDR_20' ) end [2025-01-13 06:16:19] Production.INFO: ProcessCDR(1,14237045,1,1,2) [2025-01-13 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237045', 'tblTempUsageDetail_20' ) start [2025-01-13 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237045', 'tblTempUsageDetail_20' ) end [2025-01-13 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:16:22] Production.INFO: ==3207== Releasing lock... [2025-01-13 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:16:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:17:06 [end_date_ymd] => 2025-01-13 06:17:06 [RateCDR] => 1 ) [2025-01-13 06:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:17:06' and `end` < '2025-01-13 06:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:17:18] Production.INFO: count ==76 [2025-01-13 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:17:06 - End Time 2025-01-13 06:17:06 [2025-01-13 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237050', 'tblTempUsageDetail_20' ) start [2025-01-13 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237050', 'tblTempUsageDetail_20' ) end [2025-01-13 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237050', 'tblTempVendorCDR_20' ) start [2025-01-13 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237050', 'tblTempVendorCDR_20' ) end [2025-01-13 06:17:18] Production.INFO: ProcessCDR(1,14237050,1,1,2) [2025-01-13 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237050', 'tblTempUsageDetail_20' ) start [2025-01-13 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237050', 'tblTempUsageDetail_20' ) end [2025-01-13 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:17:21] Production.INFO: ==3313== Releasing lock... [2025-01-13 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:17:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:18:04 [end_date_ymd] => 2025-01-13 06:18:04 [RateCDR] => 1 ) [2025-01-13 06:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:18:04' and `end` < '2025-01-13 06:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:18:17] Production.INFO: count ==76 [2025-01-13 06:18:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:18:04 - End Time 2025-01-13 06:18:04 [2025-01-13 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237055', 'tblTempUsageDetail_20' ) start [2025-01-13 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237055', 'tblTempUsageDetail_20' ) end [2025-01-13 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237055', 'tblTempVendorCDR_20' ) start [2025-01-13 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237055', 'tblTempVendorCDR_20' ) end [2025-01-13 06:18:17] Production.INFO: ProcessCDR(1,14237055,1,1,2) [2025-01-13 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237055', 'tblTempUsageDetail_20' ) start [2025-01-13 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237055', 'tblTempUsageDetail_20' ) end [2025-01-13 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:18:20] Production.INFO: ==3416== Releasing lock... [2025-01-13 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:18:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:19:05 [end_date_ymd] => 2025-01-13 06:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:19:18] Production.INFO: count ==76 [2025-01-13 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:19:05 - End Time 2025-01-13 06:19:05 [2025-01-13 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237060', 'tblTempUsageDetail_20' ) start [2025-01-13 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237060', 'tblTempUsageDetail_20' ) end [2025-01-13 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237060', 'tblTempVendorCDR_20' ) start [2025-01-13 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237060', 'tblTempVendorCDR_20' ) end [2025-01-13 06:19:18] Production.INFO: ProcessCDR(1,14237060,1,1,2) [2025-01-13 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237060', 'tblTempUsageDetail_20' ) start [2025-01-13 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237060', 'tblTempUsageDetail_20' ) end [2025-01-13 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:19:21] Production.INFO: ==3521== Releasing lock... [2025-01-13 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:20:05 [end_date_ymd] => 2025-01-13 06:20:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:20:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:20:18] Production.INFO: count ==76 [2025-01-13 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:20:05 - End Time 2025-01-13 06:20:05 [2025-01-13 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237065', 'tblTempUsageDetail_20' ) start [2025-01-13 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237065', 'tblTempUsageDetail_20' ) end [2025-01-13 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237065', 'tblTempVendorCDR_20' ) start [2025-01-13 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237065', 'tblTempVendorCDR_20' ) end [2025-01-13 06:20:18] Production.INFO: ProcessCDR(1,14237065,1,1,2) [2025-01-13 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237065', 'tblTempUsageDetail_20' ) start [2025-01-13 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237065', 'tblTempUsageDetail_20' ) end [2025-01-13 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:20:21] Production.INFO: ==3620== Releasing lock... [2025-01-13 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:21:05 [end_date_ymd] => 2025-01-13 06:21:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:21:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:21:18] Production.INFO: count ==76 [2025-01-13 06:21:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:21:05 - End Time 2025-01-13 06:21:05 [2025-01-13 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237071', 'tblTempUsageDetail_20' ) start [2025-01-13 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237071', 'tblTempUsageDetail_20' ) end [2025-01-13 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237071', 'tblTempVendorCDR_20' ) start [2025-01-13 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237071', 'tblTempVendorCDR_20' ) end [2025-01-13 06:21:18] Production.INFO: ProcessCDR(1,14237071,1,1,2) [2025-01-13 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237071', 'tblTempUsageDetail_20' ) start [2025-01-13 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237071', 'tblTempUsageDetail_20' ) end [2025-01-13 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:21:21] Production.INFO: ==3724== Releasing lock... [2025-01-13 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:21:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:22:04 [end_date_ymd] => 2025-01-13 06:22:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:22:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:22:17] Production.INFO: count ==76 [2025-01-13 06:22:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:22:04 - End Time 2025-01-13 06:22:04 [2025-01-13 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237075', 'tblTempUsageDetail_20' ) start [2025-01-13 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237075', 'tblTempUsageDetail_20' ) end [2025-01-13 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237075', 'tblTempVendorCDR_20' ) start [2025-01-13 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237075', 'tblTempVendorCDR_20' ) end [2025-01-13 06:22:17] Production.INFO: ProcessCDR(1,14237075,1,1,2) [2025-01-13 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237075', 'tblTempUsageDetail_20' ) start [2025-01-13 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237075', 'tblTempUsageDetail_20' ) end [2025-01-13 06:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:22:20] Production.INFO: ==3822== Releasing lock... [2025-01-13 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:22:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:23:05 [end_date_ymd] => 2025-01-13 06:23:05 [RateCDR] => 1 ) [2025-01-13 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:23:05' and `end` < '2025-01-13 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:23:17] Production.INFO: count ==76 [2025-01-13 06:23:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:23:05 - End Time 2025-01-13 06:23:05 [2025-01-13 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237081', 'tblTempUsageDetail_20' ) start [2025-01-13 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237081', 'tblTempUsageDetail_20' ) end [2025-01-13 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237081', 'tblTempVendorCDR_20' ) start [2025-01-13 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237081', 'tblTempVendorCDR_20' ) end [2025-01-13 06:23:17] Production.INFO: ProcessCDR(1,14237081,1,1,2) [2025-01-13 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237081', 'tblTempUsageDetail_20' ) start [2025-01-13 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237081', 'tblTempUsageDetail_20' ) end [2025-01-13 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:23:21] Production.INFO: ==3898== Releasing lock... [2025-01-13 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:24:06 [end_date_ymd] => 2025-01-13 06:24:06 [RateCDR] => 1 ) [2025-01-13 06:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:24:06' and `end` < '2025-01-13 06:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:24:18] Production.INFO: count ==76 [2025-01-13 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:24:06 - End Time 2025-01-13 06:24:06 [2025-01-13 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237086', 'tblTempUsageDetail_20' ) start [2025-01-13 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237086', 'tblTempUsageDetail_20' ) end [2025-01-13 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237086', 'tblTempVendorCDR_20' ) start [2025-01-13 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237086', 'tblTempVendorCDR_20' ) end [2025-01-13 06:24:18] Production.INFO: ProcessCDR(1,14237086,1,1,2) [2025-01-13 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237086', 'tblTempUsageDetail_20' ) start [2025-01-13 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237086', 'tblTempUsageDetail_20' ) end [2025-01-13 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:24:21] Production.INFO: ==3969== Releasing lock... [2025-01-13 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:25:05 [end_date_ymd] => 2025-01-13 06:25:05 [RateCDR] => 1 ) [2025-01-13 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:25:05' and `end` < '2025-01-13 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:25:18] Production.INFO: count ==76 [2025-01-13 06:25:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:25:05 - End Time 2025-01-13 06:25:05 [2025-01-13 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237091', 'tblTempUsageDetail_20' ) start [2025-01-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237091', 'tblTempUsageDetail_20' ) end [2025-01-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237091', 'tblTempVendorCDR_20' ) start [2025-01-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237091', 'tblTempVendorCDR_20' ) end [2025-01-13 06:25:18] Production.INFO: ProcessCDR(1,14237091,1,1,2) [2025-01-13 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237091', 'tblTempUsageDetail_20' ) start [2025-01-13 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237091', 'tblTempUsageDetail_20' ) end [2025-01-13 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:25:21] Production.INFO: ==4041== Releasing lock... [2025-01-13 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:26:05 [end_date_ymd] => 2025-01-13 06:26:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:26:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:26:18] Production.INFO: count ==76 [2025-01-13 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:26:05 - End Time 2025-01-13 06:26:05 [2025-01-13 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237096', 'tblTempUsageDetail_20' ) start [2025-01-13 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237096', 'tblTempUsageDetail_20' ) end [2025-01-13 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237096', 'tblTempVendorCDR_20' ) start [2025-01-13 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237096', 'tblTempVendorCDR_20' ) end [2025-01-13 06:26:18] Production.INFO: ProcessCDR(1,14237096,1,1,2) [2025-01-13 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237096', 'tblTempUsageDetail_20' ) start [2025-01-13 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237096', 'tblTempUsageDetail_20' ) end [2025-01-13 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:26:22] Production.INFO: ==4151== Releasing lock... [2025-01-13 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:26:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:27:04 [end_date_ymd] => 2025-01-13 06:27:04 [RateCDR] => 1 ) [2025-01-13 06:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:27:04' and `end` < '2025-01-13 06:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:27:16] Production.INFO: count ==76 [2025-01-13 06:27:16] Production.ERROR: pbx CDR StartTime 2025-01-13 03:27:04 - End Time 2025-01-13 06:27:04 [2025-01-13 06:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237101', 'tblTempUsageDetail_20' ) start [2025-01-13 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237101', 'tblTempUsageDetail_20' ) end [2025-01-13 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237101', 'tblTempVendorCDR_20' ) start [2025-01-13 06:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237101', 'tblTempVendorCDR_20' ) end [2025-01-13 06:27:16] Production.INFO: ProcessCDR(1,14237101,1,1,2) [2025-01-13 06:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:27:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:27:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237101', 'tblTempUsageDetail_20' ) start [2025-01-13 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237101', 'tblTempUsageDetail_20' ) end [2025-01-13 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:27:20] Production.INFO: ==4220== Releasing lock... [2025-01-13 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:27:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:28:05 [end_date_ymd] => 2025-01-13 06:28:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:28:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:28:17] Production.INFO: count ==76 [2025-01-13 06:28:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:28:05 - End Time 2025-01-13 06:28:05 [2025-01-13 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237106', 'tblTempUsageDetail_20' ) start [2025-01-13 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237106', 'tblTempUsageDetail_20' ) end [2025-01-13 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237106', 'tblTempVendorCDR_20' ) start [2025-01-13 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237106', 'tblTempVendorCDR_20' ) end [2025-01-13 06:28:17] Production.INFO: ProcessCDR(1,14237106,1,1,2) [2025-01-13 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237106', 'tblTempUsageDetail_20' ) start [2025-01-13 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237106', 'tblTempUsageDetail_20' ) end [2025-01-13 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:28:20] Production.INFO: ==4293== Releasing lock... [2025-01-13 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:28:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:29:05 [end_date_ymd] => 2025-01-13 06:29:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:29:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:29:17] Production.INFO: count ==76 [2025-01-13 06:29:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:29:05 - End Time 2025-01-13 06:29:05 [2025-01-13 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237111', 'tblTempUsageDetail_20' ) start [2025-01-13 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237111', 'tblTempUsageDetail_20' ) end [2025-01-13 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237111', 'tblTempVendorCDR_20' ) start [2025-01-13 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237111', 'tblTempVendorCDR_20' ) end [2025-01-13 06:29:17] Production.INFO: ProcessCDR(1,14237111,1,1,2) [2025-01-13 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237111', 'tblTempUsageDetail_20' ) start [2025-01-13 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237111', 'tblTempUsageDetail_20' ) end [2025-01-13 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:29:20] Production.INFO: ==4364== Releasing lock... [2025-01-13 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:29:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:30:05 [end_date_ymd] => 2025-01-13 06:30:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:30:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:30:18] Production.INFO: count ==76 [2025-01-13 06:30:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:30:05 - End Time 2025-01-13 06:30:05 [2025-01-13 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237117', 'tblTempUsageDetail_20' ) start [2025-01-13 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237117', 'tblTempUsageDetail_20' ) end [2025-01-13 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237117', 'tblTempVendorCDR_20' ) start [2025-01-13 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237117', 'tblTempVendorCDR_20' ) end [2025-01-13 06:30:18] Production.INFO: ProcessCDR(1,14237117,1,1,2) [2025-01-13 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237117', 'tblTempUsageDetail_20' ) start [2025-01-13 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237117', 'tblTempUsageDetail_20' ) end [2025-01-13 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:30:21] Production.INFO: ==4439== Releasing lock... [2025-01-13 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:31:04 [end_date_ymd] => 2025-01-13 06:31:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:31:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:31:17] Production.INFO: count ==76 [2025-01-13 06:31:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:31:04 - End Time 2025-01-13 06:31:04 [2025-01-13 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237122', 'tblTempUsageDetail_20' ) start [2025-01-13 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237122', 'tblTempUsageDetail_20' ) end [2025-01-13 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237122', 'tblTempVendorCDR_20' ) start [2025-01-13 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237122', 'tblTempVendorCDR_20' ) end [2025-01-13 06:31:17] Production.INFO: ProcessCDR(1,14237122,1,1,2) [2025-01-13 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237122', 'tblTempUsageDetail_20' ) start [2025-01-13 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237122', 'tblTempUsageDetail_20' ) end [2025-01-13 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:31:20] Production.INFO: ==4511== Releasing lock... [2025-01-13 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:31:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:32:05 [end_date_ymd] => 2025-01-13 06:32:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:32:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:32:19] Production.INFO: count ==76 [2025-01-13 06:32:19] Production.ERROR: pbx CDR StartTime 2025-01-13 03:32:05 - End Time 2025-01-13 06:32:05 [2025-01-13 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237127', 'tblTempUsageDetail_20' ) start [2025-01-13 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237127', 'tblTempUsageDetail_20' ) end [2025-01-13 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237127', 'tblTempVendorCDR_20' ) start [2025-01-13 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237127', 'tblTempVendorCDR_20' ) end [2025-01-13 06:32:19] Production.INFO: ProcessCDR(1,14237127,1,1,2) [2025-01-13 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237127', 'tblTempUsageDetail_20' ) start [2025-01-13 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237127', 'tblTempUsageDetail_20' ) end [2025-01-13 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:32:22] Production.INFO: ==4588== Releasing lock... [2025-01-13 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:32:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:33:05 [end_date_ymd] => 2025-01-13 06:33:05 [RateCDR] => 1 ) [2025-01-13 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:33:05' and `end` < '2025-01-13 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:33:17] Production.INFO: count ==76 [2025-01-13 06:33:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:33:05 - End Time 2025-01-13 06:33:05 [2025-01-13 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237132', 'tblTempUsageDetail_20' ) start [2025-01-13 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237132', 'tblTempUsageDetail_20' ) end [2025-01-13 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237132', 'tblTempVendorCDR_20' ) start [2025-01-13 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237132', 'tblTempVendorCDR_20' ) end [2025-01-13 06:33:17] Production.INFO: ProcessCDR(1,14237132,1,1,2) [2025-01-13 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237132', 'tblTempUsageDetail_20' ) start [2025-01-13 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237132', 'tblTempUsageDetail_20' ) end [2025-01-13 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:33:21] Production.INFO: ==4661== Releasing lock... [2025-01-13 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:34:05 [end_date_ymd] => 2025-01-13 06:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:34:19] Production.INFO: count ==76 [2025-01-13 06:34:19] Production.ERROR: pbx CDR StartTime 2025-01-13 03:34:05 - End Time 2025-01-13 06:34:05 [2025-01-13 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237137', 'tblTempUsageDetail_20' ) start [2025-01-13 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237137', 'tblTempUsageDetail_20' ) end [2025-01-13 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237137', 'tblTempVendorCDR_20' ) start [2025-01-13 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237137', 'tblTempVendorCDR_20' ) end [2025-01-13 06:34:19] Production.INFO: ProcessCDR(1,14237137,1,1,2) [2025-01-13 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237137', 'tblTempUsageDetail_20' ) start [2025-01-13 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237137', 'tblTempUsageDetail_20' ) end [2025-01-13 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:34:22] Production.INFO: ==4732== Releasing lock... [2025-01-13 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:34:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:35:05 [end_date_ymd] => 2025-01-13 06:35:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:35:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:35:17] Production.INFO: count ==76 [2025-01-13 06:35:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:35:05 - End Time 2025-01-13 06:35:05 [2025-01-13 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237142', 'tblTempUsageDetail_20' ) start [2025-01-13 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237142', 'tblTempUsageDetail_20' ) end [2025-01-13 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237142', 'tblTempVendorCDR_20' ) start [2025-01-13 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237142', 'tblTempVendorCDR_20' ) end [2025-01-13 06:35:17] Production.INFO: ProcessCDR(1,14237142,1,1,2) [2025-01-13 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237142', 'tblTempUsageDetail_20' ) start [2025-01-13 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237142', 'tblTempUsageDetail_20' ) end [2025-01-13 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:35:20] Production.INFO: ==4804== Releasing lock... [2025-01-13 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:35:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:36:05 [end_date_ymd] => 2025-01-13 06:36:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:36:05' and `end` < '2025-01-13 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:36:18] Production.INFO: count ==76 [2025-01-13 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:36:05 - End Time 2025-01-13 06:36:05 [2025-01-13 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237147', 'tblTempUsageDetail_20' ) start [2025-01-13 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237147', 'tblTempUsageDetail_20' ) end [2025-01-13 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237147', 'tblTempVendorCDR_20' ) start [2025-01-13 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237147', 'tblTempVendorCDR_20' ) end [2025-01-13 06:36:18] Production.INFO: ProcessCDR(1,14237147,1,1,2) [2025-01-13 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237147', 'tblTempUsageDetail_20' ) start [2025-01-13 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237147', 'tblTempUsageDetail_20' ) end [2025-01-13 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:36:21] Production.INFO: ==4874== Releasing lock... [2025-01-13 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:37:04 [end_date_ymd] => 2025-01-13 06:37:04 [RateCDR] => 1 ) [2025-01-13 06: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` >= '2025-01-13 03:37:04' and `end` < '2025-01-13 06: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 ,'') [2025-01-13 06:37:18] Production.INFO: count ==76 [2025-01-13 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:37:04 - End Time 2025-01-13 06:37:04 [2025-01-13 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237152', 'tblTempUsageDetail_20' ) start [2025-01-13 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237152', 'tblTempUsageDetail_20' ) end [2025-01-13 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237152', 'tblTempVendorCDR_20' ) start [2025-01-13 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237152', 'tblTempVendorCDR_20' ) end [2025-01-13 06:37:18] Production.INFO: ProcessCDR(1,14237152,1,1,2) [2025-01-13 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237152', 'tblTempUsageDetail_20' ) start [2025-01-13 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237152', 'tblTempUsageDetail_20' ) end [2025-01-13 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:37:21] Production.INFO: ==4943== Releasing lock... [2025-01-13 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:38:05 [end_date_ymd] => 2025-01-13 06:38:05 [RateCDR] => 1 ) [2025-01-13 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:38:05' and `end` < '2025-01-13 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:38:18] Production.INFO: count ==76 [2025-01-13 06:38:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:38:05 - End Time 2025-01-13 06:38:05 [2025-01-13 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237157', 'tblTempUsageDetail_20' ) start [2025-01-13 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237157', 'tblTempUsageDetail_20' ) end [2025-01-13 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237157', 'tblTempVendorCDR_20' ) start [2025-01-13 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237157', 'tblTempVendorCDR_20' ) end [2025-01-13 06:38:18] Production.INFO: ProcessCDR(1,14237157,1,1,2) [2025-01-13 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237157', 'tblTempUsageDetail_20' ) start [2025-01-13 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237157', 'tblTempUsageDetail_20' ) end [2025-01-13 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:38:21] Production.INFO: ==5016== Releasing lock... [2025-01-13 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:39:05 [end_date_ymd] => 2025-01-13 06:39:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:39:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:39:18] Production.INFO: count ==76 [2025-01-13 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:39:05 - End Time 2025-01-13 06:39:05 [2025-01-13 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237162', 'tblTempUsageDetail_20' ) start [2025-01-13 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237162', 'tblTempUsageDetail_20' ) end [2025-01-13 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237162', 'tblTempVendorCDR_20' ) start [2025-01-13 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237162', 'tblTempVendorCDR_20' ) end [2025-01-13 06:39:18] Production.INFO: ProcessCDR(1,14237162,1,1,2) [2025-01-13 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237162', 'tblTempUsageDetail_20' ) start [2025-01-13 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237162', 'tblTempUsageDetail_20' ) end [2025-01-13 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:39:21] Production.INFO: ==5092== Releasing lock... [2025-01-13 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:40:05 [end_date_ymd] => 2025-01-13 06:40:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:40:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:40:18] Production.INFO: count ==78 [2025-01-13 06:40:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:40:05 - End Time 2025-01-13 06:40:05 [2025-01-13 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237167', 'tblTempUsageDetail_20' ) start [2025-01-13 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237167', 'tblTempUsageDetail_20' ) end [2025-01-13 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237167', 'tblTempVendorCDR_20' ) start [2025-01-13 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237167', 'tblTempVendorCDR_20' ) end [2025-01-13 06:40:18] Production.INFO: ProcessCDR(1,14237167,1,1,2) [2025-01-13 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237167', 'tblTempUsageDetail_20' ) start [2025-01-13 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237167', 'tblTempUsageDetail_20' ) end [2025-01-13 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:40:21] Production.INFO: ==5167== Releasing lock... [2025-01-13 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:40:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:41:05 [end_date_ymd] => 2025-01-13 06:41:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:41:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:41:17] Production.INFO: count ==78 [2025-01-13 06:41:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:41:05 - End Time 2025-01-13 06:41:05 [2025-01-13 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237173', 'tblTempUsageDetail_20' ) start [2025-01-13 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237173', 'tblTempUsageDetail_20' ) end [2025-01-13 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237173', 'tblTempVendorCDR_20' ) start [2025-01-13 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237173', 'tblTempVendorCDR_20' ) end [2025-01-13 06:41:17] Production.INFO: ProcessCDR(1,14237173,1,1,2) [2025-01-13 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237173', 'tblTempUsageDetail_20' ) start [2025-01-13 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237173', 'tblTempUsageDetail_20' ) end [2025-01-13 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:41:20] Production.INFO: ==5243== Releasing lock... [2025-01-13 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:41:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:42:04 [end_date_ymd] => 2025-01-13 06:42:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:42:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:42:17] Production.INFO: count ==78 [2025-01-13 06:42:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:42:04 - End Time 2025-01-13 06:42:04 [2025-01-13 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237178', 'tblTempUsageDetail_20' ) start [2025-01-13 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237178', 'tblTempUsageDetail_20' ) end [2025-01-13 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237178', 'tblTempVendorCDR_20' ) start [2025-01-13 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237178', 'tblTempVendorCDR_20' ) end [2025-01-13 06:42:17] Production.INFO: ProcessCDR(1,14237178,1,1,2) [2025-01-13 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237178', 'tblTempUsageDetail_20' ) start [2025-01-13 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237178', 'tblTempUsageDetail_20' ) end [2025-01-13 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:42:20] Production.INFO: ==5357== Releasing lock... [2025-01-13 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:42:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:43:04 [end_date_ymd] => 2025-01-13 06:43:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:43:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:43:17] Production.INFO: count ==78 [2025-01-13 06:43:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:43:04 - End Time 2025-01-13 06:43:04 [2025-01-13 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237183', 'tblTempUsageDetail_20' ) start [2025-01-13 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237183', 'tblTempUsageDetail_20' ) end [2025-01-13 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237183', 'tblTempVendorCDR_20' ) start [2025-01-13 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237183', 'tblTempVendorCDR_20' ) end [2025-01-13 06:43:17] Production.INFO: ProcessCDR(1,14237183,1,1,2) [2025-01-13 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237183', 'tblTempUsageDetail_20' ) start [2025-01-13 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237183', 'tblTempUsageDetail_20' ) end [2025-01-13 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:43:20] Production.INFO: ==5428== Releasing lock... [2025-01-13 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:43:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:44:04 [end_date_ymd] => 2025-01-13 06:44:04 [RateCDR] => 1 ) [2025-01-13 06: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` >= '2025-01-13 03:44:04' and `end` < '2025-01-13 06: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 ,'') [2025-01-13 06:44:17] Production.INFO: count ==78 [2025-01-13 06:44:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:44:04 - End Time 2025-01-13 06:44:04 [2025-01-13 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237188', 'tblTempUsageDetail_20' ) start [2025-01-13 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237188', 'tblTempUsageDetail_20' ) end [2025-01-13 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237188', 'tblTempVendorCDR_20' ) start [2025-01-13 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237188', 'tblTempVendorCDR_20' ) end [2025-01-13 06:44:17] Production.INFO: ProcessCDR(1,14237188,1,1,2) [2025-01-13 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237188', 'tblTempUsageDetail_20' ) start [2025-01-13 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237188', 'tblTempUsageDetail_20' ) end [2025-01-13 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:44:21] Production.INFO: ==5511== Releasing lock... [2025-01-13 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:45:05 [end_date_ymd] => 2025-01-13 06:45:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:45:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:45:18] Production.INFO: count ==78 [2025-01-13 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:45:05 - End Time 2025-01-13 06:45:05 [2025-01-13 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237193', 'tblTempUsageDetail_20' ) start [2025-01-13 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237193', 'tblTempUsageDetail_20' ) end [2025-01-13 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237193', 'tblTempVendorCDR_20' ) start [2025-01-13 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237193', 'tblTempVendorCDR_20' ) end [2025-01-13 06:45:18] Production.INFO: ProcessCDR(1,14237193,1,1,2) [2025-01-13 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237193', 'tblTempUsageDetail_20' ) start [2025-01-13 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237193', 'tblTempUsageDetail_20' ) end [2025-01-13 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:45:21] Production.INFO: ==5622== Releasing lock... [2025-01-13 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:46:04 [end_date_ymd] => 2025-01-13 06:46:04 [RateCDR] => 1 ) [2025-01-13 06:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:46:04' and `end` < '2025-01-13 06:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:46:18] Production.INFO: count ==78 [2025-01-13 06:46:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:46:04 - End Time 2025-01-13 06:46:04 [2025-01-13 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237198', 'tblTempUsageDetail_20' ) start [2025-01-13 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237198', 'tblTempUsageDetail_20' ) end [2025-01-13 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237198', 'tblTempVendorCDR_20' ) start [2025-01-13 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237198', 'tblTempVendorCDR_20' ) end [2025-01-13 06:46:18] Production.INFO: ProcessCDR(1,14237198,1,1,2) [2025-01-13 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237198', 'tblTempUsageDetail_20' ) start [2025-01-13 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237198', 'tblTempUsageDetail_20' ) end [2025-01-13 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:46:21] Production.INFO: ==5730== Releasing lock... [2025-01-13 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:47:05 [end_date_ymd] => 2025-01-13 06:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:47:17] Production.INFO: count ==78 [2025-01-13 06:47:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:47:05 - End Time 2025-01-13 06:47:05 [2025-01-13 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237203', 'tblTempUsageDetail_20' ) start [2025-01-13 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237203', 'tblTempUsageDetail_20' ) end [2025-01-13 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237203', 'tblTempVendorCDR_20' ) start [2025-01-13 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237203', 'tblTempVendorCDR_20' ) end [2025-01-13 06:47:17] Production.INFO: ProcessCDR(1,14237203,1,1,2) [2025-01-13 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237203', 'tblTempUsageDetail_20' ) start [2025-01-13 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237203', 'tblTempUsageDetail_20' ) end [2025-01-13 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:47:20] Production.INFO: ==5840== Releasing lock... [2025-01-13 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:47:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:48:05 [end_date_ymd] => 2025-01-13 06:48:05 [RateCDR] => 1 ) [2025-01-13 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:48:05' and `end` < '2025-01-13 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:48:18] Production.INFO: count ==78 [2025-01-13 06:48:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:48:05 - End Time 2025-01-13 06:48:05 [2025-01-13 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237208', 'tblTempUsageDetail_20' ) start [2025-01-13 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237208', 'tblTempUsageDetail_20' ) end [2025-01-13 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237208', 'tblTempVendorCDR_20' ) start [2025-01-13 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237208', 'tblTempVendorCDR_20' ) end [2025-01-13 06:48:18] Production.INFO: ProcessCDR(1,14237208,1,1,2) [2025-01-13 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237208', 'tblTempUsageDetail_20' ) start [2025-01-13 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237208', 'tblTempUsageDetail_20' ) end [2025-01-13 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:48:21] Production.INFO: ==5951== Releasing lock... [2025-01-13 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:49:05 [end_date_ymd] => 2025-01-13 06:49:05 [RateCDR] => 1 ) [2025-01-13 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:49:05' and `end` < '2025-01-13 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:49:17] Production.INFO: count ==78 [2025-01-13 06:49:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:49:05 - End Time 2025-01-13 06:49:05 [2025-01-13 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237212', 'tblTempUsageDetail_20' ) start [2025-01-13 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237212', 'tblTempUsageDetail_20' ) end [2025-01-13 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237212', 'tblTempVendorCDR_20' ) start [2025-01-13 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237212', 'tblTempVendorCDR_20' ) end [2025-01-13 06:49:17] Production.INFO: ProcessCDR(1,14237212,1,1,2) [2025-01-13 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237212', 'tblTempUsageDetail_20' ) start [2025-01-13 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237212', 'tblTempUsageDetail_20' ) end [2025-01-13 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:49:20] Production.INFO: ==6061== Releasing lock... [2025-01-13 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:49:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:50:06 [end_date_ymd] => 2025-01-13 06:50:06 [RateCDR] => 1 ) [2025-01-13 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:50:06' and `end` < '2025-01-13 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:50:18] Production.INFO: count ==74 [2025-01-13 06:50:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:50:06 - End Time 2025-01-13 06:50:06 [2025-01-13 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237219', 'tblTempUsageDetail_20' ) start [2025-01-13 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237219', 'tblTempUsageDetail_20' ) end [2025-01-13 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237219', 'tblTempVendorCDR_20' ) start [2025-01-13 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237219', 'tblTempVendorCDR_20' ) end [2025-01-13 06:50:18] Production.INFO: ProcessCDR(1,14237219,1,1,2) [2025-01-13 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237219', 'tblTempUsageDetail_20' ) start [2025-01-13 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237219', 'tblTempUsageDetail_20' ) end [2025-01-13 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:50:21] Production.INFO: ==6171== Releasing lock... [2025-01-13 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:51:04 [end_date_ymd] => 2025-01-13 06:51:04 [RateCDR] => 1 ) [2025-01-13 06:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:51:04' and `end` < '2025-01-13 06:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:51:18] Production.INFO: count ==74 [2025-01-13 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:51:04 - End Time 2025-01-13 06:51:04 [2025-01-13 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237224', 'tblTempUsageDetail_20' ) start [2025-01-13 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237224', 'tblTempUsageDetail_20' ) end [2025-01-13 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237224', 'tblTempVendorCDR_20' ) start [2025-01-13 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237224', 'tblTempVendorCDR_20' ) end [2025-01-13 06:51:18] Production.INFO: ProcessCDR(1,14237224,1,1,2) [2025-01-13 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237224', 'tblTempUsageDetail_20' ) start [2025-01-13 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237224', 'tblTempUsageDetail_20' ) end [2025-01-13 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:51:21] Production.INFO: ==6282== Releasing lock... [2025-01-13 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:51:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:52:05 [end_date_ymd] => 2025-01-13 06:52:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:52:18] Production.INFO: count ==74 [2025-01-13 06:52:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:52:05 - End Time 2025-01-13 06:52:05 [2025-01-13 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237229', 'tblTempUsageDetail_20' ) start [2025-01-13 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237229', 'tblTempUsageDetail_20' ) end [2025-01-13 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237229', 'tblTempVendorCDR_20' ) start [2025-01-13 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237229', 'tblTempVendorCDR_20' ) end [2025-01-13 06:52:18] Production.INFO: ProcessCDR(1,14237229,1,1,2) [2025-01-13 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237229', 'tblTempUsageDetail_20' ) start [2025-01-13 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237229', 'tblTempUsageDetail_20' ) end [2025-01-13 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:52:21] Production.INFO: ==6399== Releasing lock... [2025-01-13 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:53:05 [end_date_ymd] => 2025-01-13 06:53:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:53:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:53:18] Production.INFO: count ==74 [2025-01-13 06:53:19] Production.ERROR: pbx CDR StartTime 2025-01-13 03:53:05 - End Time 2025-01-13 06:53:05 [2025-01-13 06:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237234', 'tblTempUsageDetail_20' ) start [2025-01-13 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237234', 'tblTempUsageDetail_20' ) end [2025-01-13 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237234', 'tblTempVendorCDR_20' ) start [2025-01-13 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237234', 'tblTempVendorCDR_20' ) end [2025-01-13 06:53:19] Production.INFO: ProcessCDR(1,14237234,1,1,2) [2025-01-13 06:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237234', 'tblTempUsageDetail_20' ) start [2025-01-13 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237234', 'tblTempUsageDetail_20' ) end [2025-01-13 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:53:22] Production.INFO: ==6514== Releasing lock... [2025-01-13 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:53:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:54:05 [end_date_ymd] => 2025-01-13 06:54:05 [RateCDR] => 1 ) [2025-01-13 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:54:05' and `end` < '2025-01-13 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:54:17] Production.INFO: count ==74 [2025-01-13 06:54:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:54:05 - End Time 2025-01-13 06:54:05 [2025-01-13 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237239', 'tblTempUsageDetail_20' ) start [2025-01-13 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237239', 'tblTempUsageDetail_20' ) end [2025-01-13 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237239', 'tblTempVendorCDR_20' ) start [2025-01-13 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237239', 'tblTempVendorCDR_20' ) end [2025-01-13 06:54:17] Production.INFO: ProcessCDR(1,14237239,1,1,2) [2025-01-13 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237239', 'tblTempUsageDetail_20' ) start [2025-01-13 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237239', 'tblTempUsageDetail_20' ) end [2025-01-13 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:54:20] Production.INFO: ==6622== Releasing lock... [2025-01-13 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:54:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:55:04 [end_date_ymd] => 2025-01-13 06:55:04 [RateCDR] => 1 ) [2025-01-13 06:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:55:04' and `end` < '2025-01-13 06:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:55:17] Production.INFO: count ==74 [2025-01-13 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:55:04 - End Time 2025-01-13 06:55:04 [2025-01-13 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237244', 'tblTempUsageDetail_20' ) start [2025-01-13 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237244', 'tblTempUsageDetail_20' ) end [2025-01-13 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237244', 'tblTempVendorCDR_20' ) start [2025-01-13 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237244', 'tblTempVendorCDR_20' ) end [2025-01-13 06:55:17] Production.INFO: ProcessCDR(1,14237244,1,1,2) [2025-01-13 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237244', 'tblTempUsageDetail_20' ) start [2025-01-13 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237244', 'tblTempUsageDetail_20' ) end [2025-01-13 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:55:20] Production.INFO: ==6731== Releasing lock... [2025-01-13 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:55:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:56:05 [end_date_ymd] => 2025-01-13 06:56:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:56:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:56:18] Production.INFO: count ==74 [2025-01-13 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:56:05 - End Time 2025-01-13 06:56:05 [2025-01-13 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237249', 'tblTempUsageDetail_20' ) start [2025-01-13 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237249', 'tblTempUsageDetail_20' ) end [2025-01-13 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237249', 'tblTempVendorCDR_20' ) start [2025-01-13 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237249', 'tblTempVendorCDR_20' ) end [2025-01-13 06:56:18] Production.INFO: ProcessCDR(1,14237249,1,1,2) [2025-01-13 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237249', 'tblTempUsageDetail_20' ) start [2025-01-13 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237249', 'tblTempUsageDetail_20' ) end [2025-01-13 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:56:21] Production.INFO: ==6841== Releasing lock... [2025-01-13 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:57:04 [end_date_ymd] => 2025-01-13 06:57:04 [RateCDR] => 1 ) [2025-01-13 06: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` >= '2025-01-13 03:57:04' and `end` < '2025-01-13 06: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 ,'') [2025-01-13 06:57:17] Production.INFO: count ==74 [2025-01-13 06:57:17] Production.ERROR: pbx CDR StartTime 2025-01-13 03:57:04 - End Time 2025-01-13 06:57:04 [2025-01-13 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237254', 'tblTempUsageDetail_20' ) start [2025-01-13 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237254', 'tblTempUsageDetail_20' ) end [2025-01-13 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237254', 'tblTempVendorCDR_20' ) start [2025-01-13 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237254', 'tblTempVendorCDR_20' ) end [2025-01-13 06:57:17] Production.INFO: ProcessCDR(1,14237254,1,1,2) [2025-01-13 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237254', 'tblTempUsageDetail_20' ) start [2025-01-13 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237254', 'tblTempUsageDetail_20' ) end [2025-01-13 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:57:20] Production.INFO: ==6984== Releasing lock... [2025-01-13 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:57:20] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:58:05 [end_date_ymd] => 2025-01-13 06:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 03:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 06:58:18] Production.INFO: count ==74 [2025-01-13 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:58:05 - End Time 2025-01-13 06:58:05 [2025-01-13 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237259', 'tblTempUsageDetail_20' ) start [2025-01-13 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237259', 'tblTempUsageDetail_20' ) end [2025-01-13 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237259', 'tblTempVendorCDR_20' ) start [2025-01-13 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237259', 'tblTempVendorCDR_20' ) end [2025-01-13 06:58:18] Production.INFO: ProcessCDR(1,14237259,1,1,2) [2025-01-13 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237259', 'tblTempUsageDetail_20' ) start [2025-01-13 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237259', 'tblTempUsageDetail_20' ) end [2025-01-13 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:58:21] Production.INFO: ==7054== Releasing lock... [2025-01-13 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 03:59:05 [end_date_ymd] => 2025-01-13 06:59:05 [RateCDR] => 1 ) [2025-01-13 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 03:59:05' and `end` < '2025-01-13 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 06:59:18] Production.INFO: count ==74 [2025-01-13 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-13 03:59:05 - End Time 2025-01-13 06:59:05 [2025-01-13 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237264', 'tblTempUsageDetail_20' ) start [2025-01-13 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237264', 'tblTempUsageDetail_20' ) end [2025-01-13 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237264', 'tblTempVendorCDR_20' ) start [2025-01-13 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237264', 'tblTempVendorCDR_20' ) end [2025-01-13 06:59:18] Production.INFO: ProcessCDR(1,14237264,1,1,2) [2025-01-13 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237264', 'tblTempUsageDetail_20' ) start [2025-01-13 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237264', 'tblTempUsageDetail_20' ) end [2025-01-13 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 06:59:21] Production.INFO: ==7124== Releasing lock... [2025-01-13 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:00:06 [end_date_ymd] => 2025-01-13 07:00:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:00:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:00:18] Production.INFO: count ==74 [2025-01-13 07:00:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:00:06 - End Time 2025-01-13 07:00:06 [2025-01-13 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237270', 'tblTempUsageDetail_20' ) start [2025-01-13 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237270', 'tblTempUsageDetail_20' ) end [2025-01-13 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237270', 'tblTempVendorCDR_20' ) start [2025-01-13 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237270', 'tblTempVendorCDR_20' ) end [2025-01-13 07:00:18] Production.INFO: ProcessCDR(1,14237270,1,1,2) [2025-01-13 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237270', 'tblTempUsageDetail_20' ) start [2025-01-13 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237270', 'tblTempUsageDetail_20' ) end [2025-01-13 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:00:21] Production.INFO: ==7202== Releasing lock... [2025-01-13 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:01:04 [end_date_ymd] => 2025-01-13 07:01:04 [RateCDR] => 1 ) [2025-01-13 07: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` >= '2025-01-13 04:01:04' and `end` < '2025-01-13 07: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 ,'') [2025-01-13 07:01:28] Production.INFO: count ==74 [2025-01-13 07:01:28] Production.ERROR: pbx CDR StartTime 2025-01-13 04:01:04 - End Time 2025-01-13 07:01:04 [2025-01-13 07:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237275', 'tblTempUsageDetail_20' ) start [2025-01-13 07:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237275', 'tblTempUsageDetail_20' ) end [2025-01-13 07:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237275', 'tblTempVendorCDR_20' ) start [2025-01-13 07:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237275', 'tblTempVendorCDR_20' ) end [2025-01-13 07:01:28] Production.INFO: ProcessCDR(1,14237275,1,1,2) [2025-01-13 07:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237275', 'tblTempUsageDetail_20' ) start [2025-01-13 07:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237275', 'tblTempUsageDetail_20' ) end [2025-01-13 07:01:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:01:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:01:31] Production.INFO: ==7285== Releasing lock... [2025-01-13 07:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:01:31] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:02:05 [end_date_ymd] => 2025-01-13 07:02:05 [RateCDR] => 1 ) [2025-01-13 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:02:05' and `end` < '2025-01-13 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:02:20] Production.INFO: count ==74 [2025-01-13 07:02:20] Production.ERROR: pbx CDR StartTime 2025-01-13 04:02:05 - End Time 2025-01-13 07:02:05 [2025-01-13 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237279', 'tblTempUsageDetail_20' ) start [2025-01-13 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237279', 'tblTempUsageDetail_20' ) end [2025-01-13 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237279', 'tblTempVendorCDR_20' ) start [2025-01-13 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237279', 'tblTempVendorCDR_20' ) end [2025-01-13 07:02:20] Production.INFO: ProcessCDR(1,14237279,1,1,2) [2025-01-13 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237279', 'tblTempUsageDetail_20' ) start [2025-01-13 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237279', 'tblTempUsageDetail_20' ) end [2025-01-13 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:02:23] Production.INFO: ==7434== Releasing lock... [2025-01-13 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:02:23] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:03:04 [end_date_ymd] => 2025-01-13 07:03:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:03:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:03:19] Production.INFO: count ==74 [2025-01-13 07:03:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:03:04 - End Time 2025-01-13 07:03:04 [2025-01-13 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237285', 'tblTempUsageDetail_20' ) start [2025-01-13 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237285', 'tblTempUsageDetail_20' ) end [2025-01-13 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237285', 'tblTempVendorCDR_20' ) start [2025-01-13 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237285', 'tblTempVendorCDR_20' ) end [2025-01-13 07:03:19] Production.INFO: ProcessCDR(1,14237285,1,1,2) [2025-01-13 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237285', 'tblTempUsageDetail_20' ) start [2025-01-13 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237285', 'tblTempUsageDetail_20' ) end [2025-01-13 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:03:22] Production.INFO: ==7506== Releasing lock... [2025-01-13 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:03:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:04:05 [end_date_ymd] => 2025-01-13 07:04:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:04:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:04:18] Production.INFO: count ==74 [2025-01-13 07:04:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:04:05 - End Time 2025-01-13 07:04:05 [2025-01-13 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237290', 'tblTempUsageDetail_20' ) start [2025-01-13 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237290', 'tblTempUsageDetail_20' ) end [2025-01-13 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237290', 'tblTempVendorCDR_20' ) start [2025-01-13 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237290', 'tblTempVendorCDR_20' ) end [2025-01-13 07:04:18] Production.INFO: ProcessCDR(1,14237290,1,1,2) [2025-01-13 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237290', 'tblTempUsageDetail_20' ) start [2025-01-13 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237290', 'tblTempUsageDetail_20' ) end [2025-01-13 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:04:22] Production.INFO: ==7576== Releasing lock... [2025-01-13 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:04:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:05:05 [end_date_ymd] => 2025-01-13 07:05:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:05:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:05:20] Production.INFO: count ==74 [2025-01-13 07:05:20] Production.ERROR: pbx CDR StartTime 2025-01-13 04:05:05 - End Time 2025-01-13 07:05:05 [2025-01-13 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237295', 'tblTempUsageDetail_20' ) start [2025-01-13 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237295', 'tblTempUsageDetail_20' ) end [2025-01-13 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237295', 'tblTempVendorCDR_20' ) start [2025-01-13 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237295', 'tblTempVendorCDR_20' ) end [2025-01-13 07:05:20] Production.INFO: ProcessCDR(1,14237295,1,1,2) [2025-01-13 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237295', 'tblTempUsageDetail_20' ) start [2025-01-13 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237295', 'tblTempUsageDetail_20' ) end [2025-01-13 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:05:23] Production.INFO: ==7730== Releasing lock... [2025-01-13 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:05:23] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:06:05 [end_date_ymd] => 2025-01-13 07:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:06:22] Production.INFO: count ==76 [2025-01-13 07:06:22] Production.ERROR: pbx CDR StartTime 2025-01-13 04:06:05 - End Time 2025-01-13 07:06:05 [2025-01-13 07:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237300', 'tblTempUsageDetail_20' ) start [2025-01-13 07:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237300', 'tblTempUsageDetail_20' ) end [2025-01-13 07:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237300', 'tblTempVendorCDR_20' ) start [2025-01-13 07:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237300', 'tblTempVendorCDR_20' ) end [2025-01-13 07:06:22] Production.INFO: ProcessCDR(1,14237300,1,1,2) [2025-01-13 07:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237300', 'tblTempUsageDetail_20' ) start [2025-01-13 07:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237300', 'tblTempUsageDetail_20' ) end [2025-01-13 07:06:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:06:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:06:27] Production.INFO: ==7807== Releasing lock... [2025-01-13 07:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:06:27] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:07:05 [end_date_ymd] => 2025-01-13 07:07:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:07:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:07:19] Production.INFO: count ==76 [2025-01-13 07:07:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:07:05 - End Time 2025-01-13 07:07:05 [2025-01-13 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237305', 'tblTempUsageDetail_20' ) start [2025-01-13 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237305', 'tblTempUsageDetail_20' ) end [2025-01-13 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237305', 'tblTempVendorCDR_20' ) start [2025-01-13 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237305', 'tblTempVendorCDR_20' ) end [2025-01-13 07:07:19] Production.INFO: ProcessCDR(1,14237305,1,1,2) [2025-01-13 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237305', 'tblTempUsageDetail_20' ) start [2025-01-13 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237305', 'tblTempUsageDetail_20' ) end [2025-01-13 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:07:22] Production.INFO: ==7877== Releasing lock... [2025-01-13 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:07:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:08:05 [end_date_ymd] => 2025-01-13 07:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:08:20] Production.INFO: count ==77 [2025-01-13 07:08:20] Production.ERROR: pbx CDR StartTime 2025-01-13 04:08:05 - End Time 2025-01-13 07:08:05 [2025-01-13 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237310', 'tblTempUsageDetail_20' ) start [2025-01-13 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237310', 'tblTempUsageDetail_20' ) end [2025-01-13 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237310', 'tblTempVendorCDR_20' ) start [2025-01-13 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237310', 'tblTempVendorCDR_20' ) end [2025-01-13 07:08:20] Production.INFO: ProcessCDR(1,14237310,1,1,2) [2025-01-13 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237310', 'tblTempUsageDetail_20' ) start [2025-01-13 07:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237310', 'tblTempUsageDetail_20' ) end [2025-01-13 07:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:08:25] Production.INFO: ==7948== Releasing lock... [2025-01-13 07:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:08:25] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:09:05 [end_date_ymd] => 2025-01-13 07:09:05 [RateCDR] => 1 ) [2025-01-13 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:09:05' and `end` < '2025-01-13 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:09:19] Production.INFO: count ==82 [2025-01-13 07:09:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:09:05 - End Time 2025-01-13 07:09:05 [2025-01-13 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237315', 'tblTempUsageDetail_20' ) start [2025-01-13 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237315', 'tblTempUsageDetail_20' ) end [2025-01-13 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237315', 'tblTempVendorCDR_20' ) start [2025-01-13 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237315', 'tblTempVendorCDR_20' ) end [2025-01-13 07:09:19] Production.INFO: ProcessCDR(1,14237315,1,1,2) [2025-01-13 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237315', 'tblTempUsageDetail_20' ) start [2025-01-13 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237315', 'tblTempUsageDetail_20' ) end [2025-01-13 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:09:22] Production.INFO: ==8096== Releasing lock... [2025-01-13 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:09:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:10:05 [end_date_ymd] => 2025-01-13 07:10:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:10:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:10:19] Production.INFO: count ==82 [2025-01-13 07:10:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:10:05 - End Time 2025-01-13 07:10:05 [2025-01-13 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237321', 'tblTempUsageDetail_20' ) start [2025-01-13 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237321', 'tblTempUsageDetail_20' ) end [2025-01-13 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237321', 'tblTempVendorCDR_20' ) start [2025-01-13 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237321', 'tblTempVendorCDR_20' ) end [2025-01-13 07:10:19] Production.INFO: ProcessCDR(1,14237321,1,1,2) [2025-01-13 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237321', 'tblTempUsageDetail_20' ) start [2025-01-13 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237321', 'tblTempUsageDetail_20' ) end [2025-01-13 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:10:22] Production.INFO: ==8169== Releasing lock... [2025-01-13 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:10:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:11:05 [end_date_ymd] => 2025-01-13 07:11:05 [RateCDR] => 1 ) [2025-01-13 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:11:05' and `end` < '2025-01-13 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:11:20] Production.INFO: count ==82 [2025-01-13 07:11:20] Production.ERROR: pbx CDR StartTime 2025-01-13 04:11:05 - End Time 2025-01-13 07:11:05 [2025-01-13 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237326', 'tblTempUsageDetail_20' ) start [2025-01-13 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237326', 'tblTempUsageDetail_20' ) end [2025-01-13 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237326', 'tblTempVendorCDR_20' ) start [2025-01-13 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237326', 'tblTempVendorCDR_20' ) end [2025-01-13 07:11:20] Production.INFO: ProcessCDR(1,14237326,1,1,2) [2025-01-13 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237326', 'tblTempUsageDetail_20' ) start [2025-01-13 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237326', 'tblTempUsageDetail_20' ) end [2025-01-13 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:11:23] Production.INFO: ==8243== Releasing lock... [2025-01-13 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:11:23] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:12:05 [end_date_ymd] => 2025-01-13 07:12:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:12:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:12:18] Production.INFO: count ==82 [2025-01-13 07:12:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:12:05 - End Time 2025-01-13 07:12:05 [2025-01-13 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237331', 'tblTempUsageDetail_20' ) start [2025-01-13 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237331', 'tblTempUsageDetail_20' ) end [2025-01-13 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237331', 'tblTempVendorCDR_20' ) start [2025-01-13 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237331', 'tblTempVendorCDR_20' ) end [2025-01-13 07:12:18] Production.INFO: ProcessCDR(1,14237331,1,1,2) [2025-01-13 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237331', 'tblTempUsageDetail_20' ) start [2025-01-13 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237331', 'tblTempUsageDetail_20' ) end [2025-01-13 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:12:21] Production.INFO: ==8396== Releasing lock... [2025-01-13 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:13:05 [end_date_ymd] => 2025-01-13 07:13:05 [RateCDR] => 1 ) [2025-01-13 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:13:05' and `end` < '2025-01-13 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:13:18] Production.INFO: count ==82 [2025-01-13 07:13:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:13:05 - End Time 2025-01-13 07:13:05 [2025-01-13 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237336', 'tblTempUsageDetail_20' ) start [2025-01-13 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237336', 'tblTempUsageDetail_20' ) end [2025-01-13 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237336', 'tblTempVendorCDR_20' ) start [2025-01-13 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237336', 'tblTempVendorCDR_20' ) end [2025-01-13 07:13:18] Production.INFO: ProcessCDR(1,14237336,1,1,2) [2025-01-13 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237336', 'tblTempUsageDetail_20' ) start [2025-01-13 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237336', 'tblTempUsageDetail_20' ) end [2025-01-13 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:13:22] Production.INFO: ==8506== Releasing lock... [2025-01-13 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:13:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:14:05 [end_date_ymd] => 2025-01-13 07:14:05 [RateCDR] => 1 ) [2025-01-13 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:14:05' and `end` < '2025-01-13 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:14:19] Production.INFO: count ==82 [2025-01-13 07:14:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:14:05 - End Time 2025-01-13 07:14:05 [2025-01-13 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237341', 'tblTempUsageDetail_20' ) start [2025-01-13 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237341', 'tblTempUsageDetail_20' ) end [2025-01-13 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237341', 'tblTempVendorCDR_20' ) start [2025-01-13 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237341', 'tblTempVendorCDR_20' ) end [2025-01-13 07:14:19] Production.INFO: ProcessCDR(1,14237341,1,1,2) [2025-01-13 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237341', 'tblTempUsageDetail_20' ) start [2025-01-13 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237341', 'tblTempUsageDetail_20' ) end [2025-01-13 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:14:22] Production.INFO: ==8577== Releasing lock... [2025-01-13 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:14:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:15:05 [end_date_ymd] => 2025-01-13 07:15:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:15:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:15:19] Production.INFO: count ==82 [2025-01-13 07:15:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:15:05 - End Time 2025-01-13 07:15:05 [2025-01-13 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237346', 'tblTempUsageDetail_20' ) start [2025-01-13 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237346', 'tblTempUsageDetail_20' ) end [2025-01-13 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237346', 'tblTempVendorCDR_20' ) start [2025-01-13 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237346', 'tblTempVendorCDR_20' ) end [2025-01-13 07:15:19] Production.INFO: ProcessCDR(1,14237346,1,1,2) [2025-01-13 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237346', 'tblTempUsageDetail_20' ) start [2025-01-13 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237346', 'tblTempUsageDetail_20' ) end [2025-01-13 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:15:22] Production.INFO: ==8685== Releasing lock... [2025-01-13 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:15:22] Production.INFO: 28 MB #Memory Used# [2025-01-13 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:16:05 [end_date_ymd] => 2025-01-13 07:16:05 [RateCDR] => 1 ) [2025-01-13 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:16:05' and `end` < '2025-01-13 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:16:19] Production.INFO: count ==83 [2025-01-13 07:16:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:16:05 - End Time 2025-01-13 07:16:05 [2025-01-13 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237351', 'tblTempUsageDetail_20' ) start [2025-01-13 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237351', 'tblTempUsageDetail_20' ) end [2025-01-13 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237351', 'tblTempVendorCDR_20' ) start [2025-01-13 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237351', 'tblTempVendorCDR_20' ) end [2025-01-13 07:16:19] Production.INFO: ProcessCDR(1,14237351,1,1,2) [2025-01-13 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237351', 'tblTempUsageDetail_20' ) start [2025-01-13 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237351', 'tblTempUsageDetail_20' ) end [2025-01-13 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:16:23] Production.INFO: ==8797== Releasing lock... [2025-01-13 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:16:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:17:04 [end_date_ymd] => 2025-01-13 07:17:04 [RateCDR] => 1 ) [2025-01-13 07:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:17:04' and `end` < '2025-01-13 07:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:17:20] Production.INFO: count ==84 [2025-01-13 07:17:20] Production.ERROR: pbx CDR StartTime 2025-01-13 04:17:04 - End Time 2025-01-13 07:17:04 [2025-01-13 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237356', 'tblTempUsageDetail_20' ) start [2025-01-13 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237356', 'tblTempUsageDetail_20' ) end [2025-01-13 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237356', 'tblTempVendorCDR_20' ) start [2025-01-13 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237356', 'tblTempVendorCDR_20' ) end [2025-01-13 07:17:20] Production.INFO: ProcessCDR(1,14237356,1,1,2) [2025-01-13 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237356', 'tblTempUsageDetail_20' ) start [2025-01-13 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237356', 'tblTempUsageDetail_20' ) end [2025-01-13 07:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:17:24] Production.INFO: ==8874== Releasing lock... [2025-01-13 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:17:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:18:05 [end_date_ymd] => 2025-01-13 07:18:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:18:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:18:19] Production.INFO: count ==84 [2025-01-13 07:18:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:18:05 - End Time 2025-01-13 07:18:05 [2025-01-13 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237361', 'tblTempUsageDetail_20' ) start [2025-01-13 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237361', 'tblTempUsageDetail_20' ) end [2025-01-13 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237361', 'tblTempVendorCDR_20' ) start [2025-01-13 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237361', 'tblTempVendorCDR_20' ) end [2025-01-13 07:18:19] Production.INFO: ProcessCDR(1,14237361,1,1,2) [2025-01-13 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237361', 'tblTempUsageDetail_20' ) start [2025-01-13 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237361', 'tblTempUsageDetail_20' ) end [2025-01-13 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:18:22] Production.INFO: ==8953== Releasing lock... [2025-01-13 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:18:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:19:04 [end_date_ymd] => 2025-01-13 07:19:04 [RateCDR] => 1 ) [2025-01-13 07:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:19:04' and `end` < '2025-01-13 07:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:19:17] Production.INFO: count ==84 [2025-01-13 07:19:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:19:04 - End Time 2025-01-13 07:19:04 [2025-01-13 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237366', 'tblTempUsageDetail_20' ) start [2025-01-13 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237366', 'tblTempUsageDetail_20' ) end [2025-01-13 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237366', 'tblTempVendorCDR_20' ) start [2025-01-13 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237366', 'tblTempVendorCDR_20' ) end [2025-01-13 07:19:17] Production.INFO: ProcessCDR(1,14237366,1,1,2) [2025-01-13 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237366', 'tblTempUsageDetail_20' ) start [2025-01-13 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237366', 'tblTempUsageDetail_20' ) end [2025-01-13 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:19:20] Production.INFO: ==9034== Releasing lock... [2025-01-13 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:20:05 [end_date_ymd] => 2025-01-13 07:20:05 [RateCDR] => 1 ) [2025-01-13 07:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:20:05' and `end` < '2025-01-13 07:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:20:19] Production.INFO: count ==83 [2025-01-13 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:20:05 - End Time 2025-01-13 07:20:05 [2025-01-13 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237372', 'tblTempUsageDetail_20' ) start [2025-01-13 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237372', 'tblTempUsageDetail_20' ) end [2025-01-13 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237372', 'tblTempVendorCDR_20' ) start [2025-01-13 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237372', 'tblTempVendorCDR_20' ) end [2025-01-13 07:20:19] Production.INFO: ProcessCDR(1,14237372,1,1,2) [2025-01-13 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237372', 'tblTempUsageDetail_20' ) start [2025-01-13 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237372', 'tblTempUsageDetail_20' ) end [2025-01-13 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:20:22] Production.INFO: ==9112== Releasing lock... [2025-01-13 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:21:04 [end_date_ymd] => 2025-01-13 07:21:04 [RateCDR] => 1 ) [2025-01-13 07:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:21:04' and `end` < '2025-01-13 07:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:21:21] Production.INFO: count ==81 [2025-01-13 07:21:21] Production.ERROR: pbx CDR StartTime 2025-01-13 04:21:04 - End Time 2025-01-13 07:21:04 [2025-01-13 07:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237377', 'tblTempUsageDetail_20' ) start [2025-01-13 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237377', 'tblTempUsageDetail_20' ) end [2025-01-13 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237377', 'tblTempVendorCDR_20' ) start [2025-01-13 07:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237377', 'tblTempVendorCDR_20' ) end [2025-01-13 07:21:21] Production.INFO: ProcessCDR(1,14237377,1,1,2) [2025-01-13 07:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237377', 'tblTempUsageDetail_20' ) start [2025-01-13 07:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237377', 'tblTempUsageDetail_20' ) end [2025-01-13 07:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:21:25] Production.INFO: ==9189== Releasing lock... [2025-01-13 07:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:21:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:22:05 [end_date_ymd] => 2025-01-13 07:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:22:18] Production.INFO: count ==81 [2025-01-13 07:22:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:22:05 - End Time 2025-01-13 07:22:05 [2025-01-13 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237382', 'tblTempUsageDetail_20' ) start [2025-01-13 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237382', 'tblTempUsageDetail_20' ) end [2025-01-13 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237382', 'tblTempVendorCDR_20' ) start [2025-01-13 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237382', 'tblTempVendorCDR_20' ) end [2025-01-13 07:22:18] Production.INFO: ProcessCDR(1,14237382,1,1,2) [2025-01-13 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237382', 'tblTempUsageDetail_20' ) start [2025-01-13 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237382', 'tblTempUsageDetail_20' ) end [2025-01-13 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:22:21] Production.INFO: ==9282== Releasing lock... [2025-01-13 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:23:05 [end_date_ymd] => 2025-01-13 07:23:05 [RateCDR] => 1 ) [2025-01-13 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:23:05' and `end` < '2025-01-13 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:23:18] Production.INFO: count ==81 [2025-01-13 07:23:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:23:05 - End Time 2025-01-13 07:23:05 [2025-01-13 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237387', 'tblTempUsageDetail_20' ) start [2025-01-13 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237387', 'tblTempUsageDetail_20' ) end [2025-01-13 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237387', 'tblTempVendorCDR_20' ) start [2025-01-13 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237387', 'tblTempVendorCDR_20' ) end [2025-01-13 07:23:18] Production.INFO: ProcessCDR(1,14237387,1,1,2) [2025-01-13 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237387', 'tblTempUsageDetail_20' ) start [2025-01-13 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237387', 'tblTempUsageDetail_20' ) end [2025-01-13 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:23:21] Production.INFO: ==9362== Releasing lock... [2025-01-13 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:24:05 [end_date_ymd] => 2025-01-13 07:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:24:17] Production.INFO: count ==81 [2025-01-13 07:24:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:24:05 - End Time 2025-01-13 07:24:05 [2025-01-13 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237392', 'tblTempUsageDetail_20' ) start [2025-01-13 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237392', 'tblTempUsageDetail_20' ) end [2025-01-13 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237392', 'tblTempVendorCDR_20' ) start [2025-01-13 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237392', 'tblTempVendorCDR_20' ) end [2025-01-13 07:24:17] Production.INFO: ProcessCDR(1,14237392,1,1,2) [2025-01-13 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237392', 'tblTempUsageDetail_20' ) start [2025-01-13 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237392', 'tblTempUsageDetail_20' ) end [2025-01-13 07:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:24:21] Production.INFO: ==9438== Releasing lock... [2025-01-13 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:25:05 [end_date_ymd] => 2025-01-13 07:25:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:25:05' and `end` < '2025-01-13 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:25:18] Production.INFO: count ==81 [2025-01-13 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:25:05 - End Time 2025-01-13 07:25:05 [2025-01-13 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237397', 'tblTempUsageDetail_20' ) start [2025-01-13 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237397', 'tblTempUsageDetail_20' ) end [2025-01-13 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237397', 'tblTempVendorCDR_20' ) start [2025-01-13 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237397', 'tblTempVendorCDR_20' ) end [2025-01-13 07:25:18] Production.INFO: ProcessCDR(1,14237397,1,1,2) [2025-01-13 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237397', 'tblTempUsageDetail_20' ) start [2025-01-13 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237397', 'tblTempUsageDetail_20' ) end [2025-01-13 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:25:21] Production.INFO: ==9512== Releasing lock... [2025-01-13 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:26:05 [end_date_ymd] => 2025-01-13 07:26:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:26:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:26:18] Production.INFO: count ==81 [2025-01-13 07:26:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:26:05 - End Time 2025-01-13 07:26:05 [2025-01-13 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237402', 'tblTempUsageDetail_20' ) start [2025-01-13 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237402', 'tblTempUsageDetail_20' ) end [2025-01-13 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237402', 'tblTempVendorCDR_20' ) start [2025-01-13 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237402', 'tblTempVendorCDR_20' ) end [2025-01-13 07:26:18] Production.INFO: ProcessCDR(1,14237402,1,1,2) [2025-01-13 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237402', 'tblTempUsageDetail_20' ) start [2025-01-13 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237402', 'tblTempUsageDetail_20' ) end [2025-01-13 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:26:21] Production.INFO: ==9587== Releasing lock... [2025-01-13 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:27:04 [end_date_ymd] => 2025-01-13 07:27:04 [RateCDR] => 1 ) [2025-01-13 07:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:27:04' and `end` < '2025-01-13 07:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:27:19] Production.INFO: count ==81 [2025-01-13 07:27:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:27:04 - End Time 2025-01-13 07:27:04 [2025-01-13 07:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237407', 'tblTempUsageDetail_20' ) start [2025-01-13 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237407', 'tblTempUsageDetail_20' ) end [2025-01-13 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237407', 'tblTempVendorCDR_20' ) start [2025-01-13 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237407', 'tblTempVendorCDR_20' ) end [2025-01-13 07:27:19] Production.INFO: ProcessCDR(1,14237407,1,1,2) [2025-01-13 07:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237407', 'tblTempUsageDetail_20' ) start [2025-01-13 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237407', 'tblTempUsageDetail_20' ) end [2025-01-13 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:27:22] Production.INFO: ==9663== Releasing lock... [2025-01-13 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:28:04 [end_date_ymd] => 2025-01-13 07:28:04 [RateCDR] => 1 ) [2025-01-13 07: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` >= '2025-01-13 04:28:04' and `end` < '2025-01-13 07: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 ,'') [2025-01-13 07:28:19] Production.INFO: count ==81 [2025-01-13 07:28:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:28:04 - End Time 2025-01-13 07:28:04 [2025-01-13 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237412', 'tblTempUsageDetail_20' ) start [2025-01-13 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237412', 'tblTempUsageDetail_20' ) end [2025-01-13 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237412', 'tblTempVendorCDR_20' ) start [2025-01-13 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237412', 'tblTempVendorCDR_20' ) end [2025-01-13 07:28:19] Production.INFO: ProcessCDR(1,14237412,1,1,2) [2025-01-13 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237412', 'tblTempUsageDetail_20' ) start [2025-01-13 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237412', 'tblTempUsageDetail_20' ) end [2025-01-13 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:28:22] Production.INFO: ==9740== Releasing lock... [2025-01-13 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:28:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:29:05 [end_date_ymd] => 2025-01-13 07:29:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:29:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:29:18] Production.INFO: count ==81 [2025-01-13 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:29:05 - End Time 2025-01-13 07:29:05 [2025-01-13 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237417', 'tblTempUsageDetail_20' ) start [2025-01-13 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237417', 'tblTempUsageDetail_20' ) end [2025-01-13 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237417', 'tblTempVendorCDR_20' ) start [2025-01-13 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237417', 'tblTempVendorCDR_20' ) end [2025-01-13 07:29:18] Production.INFO: ProcessCDR(1,14237417,1,1,2) [2025-01-13 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237417', 'tblTempUsageDetail_20' ) start [2025-01-13 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237417', 'tblTempUsageDetail_20' ) end [2025-01-13 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:29:21] Production.INFO: ==9856== Releasing lock... [2025-01-13 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:30:06 [end_date_ymd] => 2025-01-13 07:30:06 [RateCDR] => 1 ) [2025-01-13 07: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` >= '2025-01-13 04:30:06' and `end` < '2025-01-13 07: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 ,'') [2025-01-13 07:30:18] Production.INFO: count ==77 [2025-01-13 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:30:06 - End Time 2025-01-13 07:30:06 [2025-01-13 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237423', 'tblTempUsageDetail_20' ) start [2025-01-13 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237423', 'tblTempUsageDetail_20' ) end [2025-01-13 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237423', 'tblTempVendorCDR_20' ) start [2025-01-13 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237423', 'tblTempVendorCDR_20' ) end [2025-01-13 07:30:18] Production.INFO: ProcessCDR(1,14237423,1,1,2) [2025-01-13 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237423', 'tblTempUsageDetail_20' ) start [2025-01-13 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237423', 'tblTempUsageDetail_20' ) end [2025-01-13 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:30:21] Production.INFO: ==9939== Releasing lock... [2025-01-13 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:31:05 [end_date_ymd] => 2025-01-13 07:31:05 [RateCDR] => 1 ) [2025-01-13 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:31:05' and `end` < '2025-01-13 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:31:19] Production.INFO: count ==77 [2025-01-13 07:31:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:31:05 - End Time 2025-01-13 07:31:05 [2025-01-13 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237428', 'tblTempUsageDetail_20' ) start [2025-01-13 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237428', 'tblTempUsageDetail_20' ) end [2025-01-13 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237428', 'tblTempVendorCDR_20' ) start [2025-01-13 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237428', 'tblTempVendorCDR_20' ) end [2025-01-13 07:31:19] Production.INFO: ProcessCDR(1,14237428,1,1,2) [2025-01-13 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237428', 'tblTempUsageDetail_20' ) start [2025-01-13 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237428', 'tblTempUsageDetail_20' ) end [2025-01-13 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:31:22] Production.INFO: ==10017== Releasing lock... [2025-01-13 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:32:05 [end_date_ymd] => 2025-01-13 07:32:05 [RateCDR] => 1 ) [2025-01-13 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:32:05' and `end` < '2025-01-13 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:32:18] Production.INFO: count ==77 [2025-01-13 07:32:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:32:05 - End Time 2025-01-13 07:32:05 [2025-01-13 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237433', 'tblTempUsageDetail_20' ) start [2025-01-13 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237433', 'tblTempUsageDetail_20' ) end [2025-01-13 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237433', 'tblTempVendorCDR_20' ) start [2025-01-13 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237433', 'tblTempVendorCDR_20' ) end [2025-01-13 07:32:18] Production.INFO: ProcessCDR(1,14237433,1,1,2) [2025-01-13 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237433', 'tblTempUsageDetail_20' ) start [2025-01-13 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237433', 'tblTempUsageDetail_20' ) end [2025-01-13 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:32:21] Production.INFO: ==10093== Releasing lock... [2025-01-13 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:33:06 [end_date_ymd] => 2025-01-13 07:33:06 [RateCDR] => 1 ) [2025-01-13 07:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:33:06' and `end` < '2025-01-13 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:33:18] Production.INFO: count ==77 [2025-01-13 07:33:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:33:06 - End Time 2025-01-13 07:33:06 [2025-01-13 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237438', 'tblTempUsageDetail_20' ) start [2025-01-13 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237438', 'tblTempUsageDetail_20' ) end [2025-01-13 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237438', 'tblTempVendorCDR_20' ) start [2025-01-13 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237438', 'tblTempVendorCDR_20' ) end [2025-01-13 07:33:18] Production.INFO: ProcessCDR(1,14237438,1,1,2) [2025-01-13 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237438', 'tblTempUsageDetail_20' ) start [2025-01-13 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237438', 'tblTempUsageDetail_20' ) end [2025-01-13 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:33:21] Production.INFO: ==10167== Releasing lock... [2025-01-13 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:34:05 [end_date_ymd] => 2025-01-13 07:34:05 [RateCDR] => 1 ) [2025-01-13 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:34:05' and `end` < '2025-01-13 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:34:19] Production.INFO: count ==77 [2025-01-13 07:34:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:34:05 - End Time 2025-01-13 07:34:05 [2025-01-13 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237443', 'tblTempUsageDetail_20' ) start [2025-01-13 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237443', 'tblTempUsageDetail_20' ) end [2025-01-13 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237443', 'tblTempVendorCDR_20' ) start [2025-01-13 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237443', 'tblTempVendorCDR_20' ) end [2025-01-13 07:34:19] Production.INFO: ProcessCDR(1,14237443,1,1,2) [2025-01-13 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237443', 'tblTempUsageDetail_20' ) start [2025-01-13 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237443', 'tblTempUsageDetail_20' ) end [2025-01-13 07:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:34:23] Production.INFO: ==10256== Releasing lock... [2025-01-13 07:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:34:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:35:05 [end_date_ymd] => 2025-01-13 07:35:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:35:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:35:18] Production.INFO: count ==77 [2025-01-13 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:35:05 - End Time 2025-01-13 07:35:05 [2025-01-13 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237448', 'tblTempUsageDetail_20' ) start [2025-01-13 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237448', 'tblTempUsageDetail_20' ) end [2025-01-13 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237448', 'tblTempVendorCDR_20' ) start [2025-01-13 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237448', 'tblTempVendorCDR_20' ) end [2025-01-13 07:35:18] Production.INFO: ProcessCDR(1,14237448,1,1,2) [2025-01-13 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237448', 'tblTempUsageDetail_20' ) start [2025-01-13 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237448', 'tblTempUsageDetail_20' ) end [2025-01-13 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:35:21] Production.INFO: ==10328== Releasing lock... [2025-01-13 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:36:05 [end_date_ymd] => 2025-01-13 07:36:05 [RateCDR] => 1 ) [2025-01-13 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:36:05' and `end` < '2025-01-13 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:36:17] Production.INFO: count ==78 [2025-01-13 07:36:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:36:05 - End Time 2025-01-13 07:36:05 [2025-01-13 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237453', 'tblTempUsageDetail_20' ) start [2025-01-13 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237453', 'tblTempUsageDetail_20' ) end [2025-01-13 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237453', 'tblTempVendorCDR_20' ) start [2025-01-13 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237453', 'tblTempVendorCDR_20' ) end [2025-01-13 07:36:17] Production.INFO: ProcessCDR(1,14237453,1,1,2) [2025-01-13 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237453', 'tblTempUsageDetail_20' ) start [2025-01-13 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237453', 'tblTempUsageDetail_20' ) end [2025-01-13 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:36:21] Production.INFO: ==10399== Releasing lock... [2025-01-13 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:37:04 [end_date_ymd] => 2025-01-13 07:37:04 [RateCDR] => 1 ) [2025-01-13 07:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:37:04' and `end` < '2025-01-13 07:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:37:18] Production.INFO: count ==83 [2025-01-13 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:37:04 - End Time 2025-01-13 07:37:04 [2025-01-13 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237458', 'tblTempUsageDetail_20' ) start [2025-01-13 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237458', 'tblTempUsageDetail_20' ) end [2025-01-13 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237458', 'tblTempVendorCDR_20' ) start [2025-01-13 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237458', 'tblTempVendorCDR_20' ) end [2025-01-13 07:37:18] Production.INFO: ProcessCDR(1,14237458,1,1,2) [2025-01-13 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237458', 'tblTempUsageDetail_20' ) start [2025-01-13 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237458', 'tblTempUsageDetail_20' ) end [2025-01-13 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:37:22] Production.INFO: ==10469== Releasing lock... [2025-01-13 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:37:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:38:05 [end_date_ymd] => 2025-01-13 07:38:05 [RateCDR] => 1 ) [2025-01-13 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:38:05' and `end` < '2025-01-13 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:38:18] Production.INFO: count ==83 [2025-01-13 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:38:05 - End Time 2025-01-13 07:38:05 [2025-01-13 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237463', 'tblTempUsageDetail_20' ) start [2025-01-13 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237463', 'tblTempUsageDetail_20' ) end [2025-01-13 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237463', 'tblTempVendorCDR_20' ) start [2025-01-13 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237463', 'tblTempVendorCDR_20' ) end [2025-01-13 07:38:18] Production.INFO: ProcessCDR(1,14237463,1,1,2) [2025-01-13 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237463', 'tblTempUsageDetail_20' ) start [2025-01-13 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237463', 'tblTempUsageDetail_20' ) end [2025-01-13 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:38:21] Production.INFO: ==10540== Releasing lock... [2025-01-13 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:39:05 [end_date_ymd] => 2025-01-13 07:39:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:39:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:39:17] Production.INFO: count ==83 [2025-01-13 07:39:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:39:05 - End Time 2025-01-13 07:39:05 [2025-01-13 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237468', 'tblTempUsageDetail_20' ) start [2025-01-13 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237468', 'tblTempUsageDetail_20' ) end [2025-01-13 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237468', 'tblTempVendorCDR_20' ) start [2025-01-13 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237468', 'tblTempVendorCDR_20' ) end [2025-01-13 07:39:17] Production.INFO: ProcessCDR(1,14237468,1,1,2) [2025-01-13 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237468', 'tblTempUsageDetail_20' ) start [2025-01-13 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237468', 'tblTempUsageDetail_20' ) end [2025-01-13 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:39:21] Production.INFO: ==10611== Releasing lock... [2025-01-13 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:39:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:40:06 [end_date_ymd] => 2025-01-13 07:40:06 [RateCDR] => 1 ) [2025-01-13 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:40:06' and `end` < '2025-01-13 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:40:18] Production.INFO: count ==80 [2025-01-13 07:40:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:40:06 - End Time 2025-01-13 07:40:06 [2025-01-13 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237474', 'tblTempUsageDetail_20' ) start [2025-01-13 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237474', 'tblTempUsageDetail_20' ) end [2025-01-13 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237474', 'tblTempVendorCDR_20' ) start [2025-01-13 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237474', 'tblTempVendorCDR_20' ) end [2025-01-13 07:40:19] Production.INFO: ProcessCDR(1,14237474,1,1,2) [2025-01-13 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237474', 'tblTempUsageDetail_20' ) start [2025-01-13 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237474', 'tblTempUsageDetail_20' ) end [2025-01-13 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:40:22] Production.INFO: ==10683== Releasing lock... [2025-01-13 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:41:04 [end_date_ymd] => 2025-01-13 07:41:04 [RateCDR] => 1 ) [2025-01-13 07:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:41:04' and `end` < '2025-01-13 07:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:41:18] Production.INFO: count ==80 [2025-01-13 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:41:04 - End Time 2025-01-13 07:41:04 [2025-01-13 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237479', 'tblTempUsageDetail_20' ) start [2025-01-13 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237479', 'tblTempUsageDetail_20' ) end [2025-01-13 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237479', 'tblTempVendorCDR_20' ) start [2025-01-13 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237479', 'tblTempVendorCDR_20' ) end [2025-01-13 07:41:18] Production.INFO: ProcessCDR(1,14237479,1,1,2) [2025-01-13 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237479', 'tblTempUsageDetail_20' ) start [2025-01-13 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237479', 'tblTempUsageDetail_20' ) end [2025-01-13 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:41:21] Production.INFO: ==10759== Releasing lock... [2025-01-13 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:42:05 [end_date_ymd] => 2025-01-13 07:42:05 [RateCDR] => 1 ) [2025-01-13 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:42:05' and `end` < '2025-01-13 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:42:17] Production.INFO: count ==80 [2025-01-13 07:42:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:42:05 - End Time 2025-01-13 07:42:05 [2025-01-13 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237484', 'tblTempUsageDetail_20' ) start [2025-01-13 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237484', 'tblTempUsageDetail_20' ) end [2025-01-13 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237484', 'tblTempVendorCDR_20' ) start [2025-01-13 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237484', 'tblTempVendorCDR_20' ) end [2025-01-13 07:42:17] Production.INFO: ProcessCDR(1,14237484,1,1,2) [2025-01-13 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237484', 'tblTempUsageDetail_20' ) start [2025-01-13 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237484', 'tblTempUsageDetail_20' ) end [2025-01-13 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:42:21] Production.INFO: ==10832== Releasing lock... [2025-01-13 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:43:05 [end_date_ymd] => 2025-01-13 07:43:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:43:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:43:19] Production.INFO: count ==80 [2025-01-13 07:43:19] Production.ERROR: pbx CDR StartTime 2025-01-13 04:43:05 - End Time 2025-01-13 07:43:05 [2025-01-13 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237489', 'tblTempUsageDetail_20' ) start [2025-01-13 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237489', 'tblTempUsageDetail_20' ) end [2025-01-13 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237489', 'tblTempVendorCDR_20' ) start [2025-01-13 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237489', 'tblTempVendorCDR_20' ) end [2025-01-13 07:43:19] Production.INFO: ProcessCDR(1,14237489,1,1,2) [2025-01-13 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237489', 'tblTempUsageDetail_20' ) start [2025-01-13 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237489', 'tblTempUsageDetail_20' ) end [2025-01-13 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:43:22] Production.INFO: ==10903== Releasing lock... [2025-01-13 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:44:05 [end_date_ymd] => 2025-01-13 07:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:44:17] Production.INFO: count ==80 [2025-01-13 07:44:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:44:05 - End Time 2025-01-13 07:44:05 [2025-01-13 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237494', 'tblTempUsageDetail_20' ) start [2025-01-13 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237494', 'tblTempUsageDetail_20' ) end [2025-01-13 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237494', 'tblTempVendorCDR_20' ) start [2025-01-13 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237494', 'tblTempVendorCDR_20' ) end [2025-01-13 07:44:17] Production.INFO: ProcessCDR(1,14237494,1,1,2) [2025-01-13 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237494', 'tblTempUsageDetail_20' ) start [2025-01-13 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237494', 'tblTempUsageDetail_20' ) end [2025-01-13 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:44:20] Production.INFO: ==11013== Releasing lock... [2025-01-13 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:45:05 [end_date_ymd] => 2025-01-13 07:45:05 [RateCDR] => 1 ) [2025-01-13 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:45:05' and `end` < '2025-01-13 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:45:17] Production.INFO: count ==80 [2025-01-13 07:45:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:45:05 - End Time 2025-01-13 07:45:05 [2025-01-13 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237499', 'tblTempUsageDetail_20' ) start [2025-01-13 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237499', 'tblTempUsageDetail_20' ) end [2025-01-13 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237499', 'tblTempVendorCDR_20' ) start [2025-01-13 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237499', 'tblTempVendorCDR_20' ) end [2025-01-13 07:45:17] Production.INFO: ProcessCDR(1,14237499,1,1,2) [2025-01-13 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237499', 'tblTempUsageDetail_20' ) start [2025-01-13 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237499', 'tblTempUsageDetail_20' ) end [2025-01-13 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:45:20] Production.INFO: ==11083== Releasing lock... [2025-01-13 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:46:05 [end_date_ymd] => 2025-01-13 07:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:46:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:46:18] Production.INFO: count ==80 [2025-01-13 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:46:05 - End Time 2025-01-13 07:46:05 [2025-01-13 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237504', 'tblTempUsageDetail_20' ) start [2025-01-13 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237504', 'tblTempUsageDetail_20' ) end [2025-01-13 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237504', 'tblTempVendorCDR_20' ) start [2025-01-13 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237504', 'tblTempVendorCDR_20' ) end [2025-01-13 07:46:18] Production.INFO: ProcessCDR(1,14237504,1,1,2) [2025-01-13 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237504', 'tblTempUsageDetail_20' ) start [2025-01-13 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237504', 'tblTempUsageDetail_20' ) end [2025-01-13 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:46:21] Production.INFO: ==11159== Releasing lock... [2025-01-13 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:47:05 [end_date_ymd] => 2025-01-13 07:47:05 [RateCDR] => 1 ) [2025-01-13 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:47:05' and `end` < '2025-01-13 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:47:18] Production.INFO: count ==80 [2025-01-13 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:47:05 - End Time 2025-01-13 07:47:05 [2025-01-13 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237509', 'tblTempUsageDetail_20' ) start [2025-01-13 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237509', 'tblTempUsageDetail_20' ) end [2025-01-13 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237509', 'tblTempVendorCDR_20' ) start [2025-01-13 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237509', 'tblTempVendorCDR_20' ) end [2025-01-13 07:47:18] Production.INFO: ProcessCDR(1,14237509,1,1,2) [2025-01-13 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237509', 'tblTempUsageDetail_20' ) start [2025-01-13 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237509', 'tblTempUsageDetail_20' ) end [2025-01-13 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:47:21] Production.INFO: ==11229== Releasing lock... [2025-01-13 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:47:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:48:05 [end_date_ymd] => 2025-01-13 07:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:48:18] Production.INFO: count ==80 [2025-01-13 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:48:05 - End Time 2025-01-13 07:48:05 [2025-01-13 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237514', 'tblTempUsageDetail_20' ) start [2025-01-13 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237514', 'tblTempUsageDetail_20' ) end [2025-01-13 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237514', 'tblTempVendorCDR_20' ) start [2025-01-13 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237514', 'tblTempVendorCDR_20' ) end [2025-01-13 07:48:18] Production.INFO: ProcessCDR(1,14237514,1,1,2) [2025-01-13 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237514', 'tblTempUsageDetail_20' ) start [2025-01-13 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237514', 'tblTempUsageDetail_20' ) end [2025-01-13 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:48:21] Production.INFO: ==11300== Releasing lock... [2025-01-13 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:49:04 [end_date_ymd] => 2025-01-13 07:49:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:49:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:49:17] Production.INFO: count ==81 [2025-01-13 07:49:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:49:04 - End Time 2025-01-13 07:49:04 [2025-01-13 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237519', 'tblTempUsageDetail_20' ) start [2025-01-13 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237519', 'tblTempUsageDetail_20' ) end [2025-01-13 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237519', 'tblTempVendorCDR_20' ) start [2025-01-13 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237519', 'tblTempVendorCDR_20' ) end [2025-01-13 07:49:17] Production.INFO: ProcessCDR(1,14237519,1,1,2) [2025-01-13 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237519', 'tblTempUsageDetail_20' ) start [2025-01-13 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237519', 'tblTempUsageDetail_20' ) end [2025-01-13 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:49:20] Production.INFO: ==11371== Releasing lock... [2025-01-13 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:49:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:50:05 [end_date_ymd] => 2025-01-13 07:50:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:50:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:50:18] Production.INFO: count ==88 [2025-01-13 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:50:05 - End Time 2025-01-13 07:50:05 [2025-01-13 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237524', 'tblTempUsageDetail_20' ) start [2025-01-13 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237524', 'tblTempUsageDetail_20' ) end [2025-01-13 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237524', 'tblTempVendorCDR_20' ) start [2025-01-13 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237524', 'tblTempVendorCDR_20' ) end [2025-01-13 07:50:18] Production.INFO: ProcessCDR(1,14237524,1,1,2) [2025-01-13 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237524', 'tblTempUsageDetail_20' ) start [2025-01-13 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237524', 'tblTempUsageDetail_20' ) end [2025-01-13 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:50:21] Production.INFO: ==11446== Releasing lock... [2025-01-13 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:51:04 [end_date_ymd] => 2025-01-13 07:51:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:51:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:51:17] Production.INFO: count ==88 [2025-01-13 07:51:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:51:04 - End Time 2025-01-13 07:51:04 [2025-01-13 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237530', 'tblTempUsageDetail_20' ) start [2025-01-13 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237530', 'tblTempUsageDetail_20' ) end [2025-01-13 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237530', 'tblTempVendorCDR_20' ) start [2025-01-13 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237530', 'tblTempVendorCDR_20' ) end [2025-01-13 07:51:17] Production.INFO: ProcessCDR(1,14237530,1,1,2) [2025-01-13 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237530', 'tblTempUsageDetail_20' ) start [2025-01-13 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237530', 'tblTempUsageDetail_20' ) end [2025-01-13 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:51:20] Production.INFO: ==11519== Releasing lock... [2025-01-13 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:51:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:52:05 [end_date_ymd] => 2025-01-13 07:52:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:52:18] Production.INFO: count ==88 [2025-01-13 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-13 04:52:05 - End Time 2025-01-13 07:52:05 [2025-01-13 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237535', 'tblTempUsageDetail_20' ) start [2025-01-13 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237535', 'tblTempUsageDetail_20' ) end [2025-01-13 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237535', 'tblTempVendorCDR_20' ) start [2025-01-13 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237535', 'tblTempVendorCDR_20' ) end [2025-01-13 07:52:18] Production.INFO: ProcessCDR(1,14237535,1,1,2) [2025-01-13 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237535', 'tblTempUsageDetail_20' ) start [2025-01-13 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237535', 'tblTempUsageDetail_20' ) end [2025-01-13 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:52:21] Production.INFO: ==11589== Releasing lock... [2025-01-13 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:53:05 [end_date_ymd] => 2025-01-13 07:53:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:53:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:53:17] Production.INFO: count ==88 [2025-01-13 07:53:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:53:05 - End Time 2025-01-13 07:53:05 [2025-01-13 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237540', 'tblTempUsageDetail_20' ) start [2025-01-13 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237540', 'tblTempUsageDetail_20' ) end [2025-01-13 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237540', 'tblTempVendorCDR_20' ) start [2025-01-13 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237540', 'tblTempVendorCDR_20' ) end [2025-01-13 07:53:17] Production.INFO: ProcessCDR(1,14237540,1,1,2) [2025-01-13 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237540', 'tblTempUsageDetail_20' ) start [2025-01-13 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237540', 'tblTempUsageDetail_20' ) end [2025-01-13 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:53:20] Production.INFO: ==11664== Releasing lock... [2025-01-13 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:53:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:54:05 [end_date_ymd] => 2025-01-13 07:54:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:54:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:54:17] Production.INFO: count ==88 [2025-01-13 07:54:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:54:05 - End Time 2025-01-13 07:54:05 [2025-01-13 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237545', 'tblTempUsageDetail_20' ) start [2025-01-13 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237545', 'tblTempUsageDetail_20' ) end [2025-01-13 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237545', 'tblTempVendorCDR_20' ) start [2025-01-13 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237545', 'tblTempVendorCDR_20' ) end [2025-01-13 07:54:17] Production.INFO: ProcessCDR(1,14237545,1,1,2) [2025-01-13 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237545', 'tblTempUsageDetail_20' ) start [2025-01-13 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237545', 'tblTempUsageDetail_20' ) end [2025-01-13 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:54:21] Production.INFO: ==11735== Releasing lock... [2025-01-13 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:55:05 [end_date_ymd] => 2025-01-13 07:55:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 04:55:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 07:55:17] Production.INFO: count ==88 [2025-01-13 07:55:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:55:05 - End Time 2025-01-13 07:55:05 [2025-01-13 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237550', 'tblTempUsageDetail_20' ) start [2025-01-13 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237550', 'tblTempUsageDetail_20' ) end [2025-01-13 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237550', 'tblTempVendorCDR_20' ) start [2025-01-13 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237550', 'tblTempVendorCDR_20' ) end [2025-01-13 07:55:17] Production.INFO: ProcessCDR(1,14237550,1,1,2) [2025-01-13 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237550', 'tblTempUsageDetail_20' ) start [2025-01-13 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237550', 'tblTempUsageDetail_20' ) end [2025-01-13 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:55:20] Production.INFO: ==11807== Releasing lock... [2025-01-13 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:55:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:56:05 [end_date_ymd] => 2025-01-13 07:56:05 [RateCDR] => 1 ) [2025-01-13 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:56:05' and `end` < '2025-01-13 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:56:17] Production.INFO: count ==88 [2025-01-13 07:56:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:56:05 - End Time 2025-01-13 07:56:05 [2025-01-13 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237555', 'tblTempUsageDetail_20' ) start [2025-01-13 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237555', 'tblTempUsageDetail_20' ) end [2025-01-13 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237555', 'tblTempVendorCDR_20' ) start [2025-01-13 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237555', 'tblTempVendorCDR_20' ) end [2025-01-13 07:56:17] Production.INFO: ProcessCDR(1,14237555,1,1,2) [2025-01-13 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237555', 'tblTempUsageDetail_20' ) start [2025-01-13 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237555', 'tblTempUsageDetail_20' ) end [2025-01-13 07:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:56:20] Production.INFO: ==11879== Releasing lock... [2025-01-13 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:56:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:57:04 [end_date_ymd] => 2025-01-13 07:57:04 [RateCDR] => 1 ) [2025-01-13 07: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` >= '2025-01-13 04:57:04' and `end` < '2025-01-13 07: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 ,'') [2025-01-13 07:57:17] Production.INFO: count ==89 [2025-01-13 07:57:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:57:04 - End Time 2025-01-13 07:57:04 [2025-01-13 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237560', 'tblTempUsageDetail_20' ) start [2025-01-13 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237560', 'tblTempUsageDetail_20' ) end [2025-01-13 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237560', 'tblTempVendorCDR_20' ) start [2025-01-13 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237560', 'tblTempVendorCDR_20' ) end [2025-01-13 07:57:17] Production.INFO: ProcessCDR(1,14237560,1,1,2) [2025-01-13 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237560', 'tblTempUsageDetail_20' ) start [2025-01-13 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237560', 'tblTempUsageDetail_20' ) end [2025-01-13 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:57:20] Production.INFO: ==11950== Releasing lock... [2025-01-13 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:57:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:58:05 [end_date_ymd] => 2025-01-13 07:58:05 [RateCDR] => 1 ) [2025-01-13 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:58:05' and `end` < '2025-01-13 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:58:20] Production.INFO: count ==96 [2025-01-13 07:58:20] Production.ERROR: pbx CDR StartTime 2025-01-13 04:58:05 - End Time 2025-01-13 07:58:05 [2025-01-13 07:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237565', 'tblTempUsageDetail_20' ) start [2025-01-13 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237565', 'tblTempUsageDetail_20' ) end [2025-01-13 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237565', 'tblTempVendorCDR_20' ) start [2025-01-13 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237565', 'tblTempVendorCDR_20' ) end [2025-01-13 07:58:20] Production.INFO: ProcessCDR(1,14237565,1,1,2) [2025-01-13 07:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237565', 'tblTempUsageDetail_20' ) start [2025-01-13 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237565', 'tblTempUsageDetail_20' ) end [2025-01-13 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:58:23] Production.INFO: ==12023== Releasing lock... [2025-01-13 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:58:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-13 07:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 04:59:04 [end_date_ymd] => 2025-01-13 07:59:04 [RateCDR] => 1 ) [2025-01-13 07:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 04:59:04' and `end` < '2025-01-13 07:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 07:59:17] Production.INFO: count ==104 [2025-01-13 07:59:17] Production.ERROR: pbx CDR StartTime 2025-01-13 04:59:04 - End Time 2025-01-13 07:59:04 [2025-01-13 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237570', 'tblTempUsageDetail_20' ) start [2025-01-13 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237570', 'tblTempUsageDetail_20' ) end [2025-01-13 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237570', 'tblTempVendorCDR_20' ) start [2025-01-13 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237570', 'tblTempVendorCDR_20' ) end [2025-01-13 07:59:17] Production.INFO: ProcessCDR(1,14237570,1,1,2) [2025-01-13 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237570', 'tblTempUsageDetail_20' ) start [2025-01-13 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237570', 'tblTempUsageDetail_20' ) end [2025-01-13 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 07:59:20] Production.INFO: ==12096== Releasing lock... [2025-01-13 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 07:59:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:00:06 [end_date_ymd] => 2025-01-13 08:00:06 [RateCDR] => 1 ) [2025-01-13 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:00:06' and `end` < '2025-01-13 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:00:18] Production.INFO: count ==118 [2025-01-13 08:00:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:00:06 - End Time 2025-01-13 08:00:06 [2025-01-13 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237576', 'tblTempUsageDetail_20' ) start [2025-01-13 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237576', 'tblTempUsageDetail_20' ) end [2025-01-13 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237576', 'tblTempVendorCDR_20' ) start [2025-01-13 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237576', 'tblTempVendorCDR_20' ) end [2025-01-13 08:00:18] Production.INFO: ProcessCDR(1,14237576,1,1,2) [2025-01-13 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237576', 'tblTempUsageDetail_20' ) start [2025-01-13 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237576', 'tblTempUsageDetail_20' ) end [2025-01-13 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:00:21] Production.INFO: ==12210== Releasing lock... [2025-01-13 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-13 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:01:05 [end_date_ymd] => 2025-01-13 08:01:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:01:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:01:17] Production.INFO: count ==127 [2025-01-13 08:01:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:01:05 - End Time 2025-01-13 08:01:05 [2025-01-13 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237581', 'tblTempUsageDetail_20' ) start [2025-01-13 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237581', 'tblTempUsageDetail_20' ) end [2025-01-13 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237581', 'tblTempVendorCDR_20' ) start [2025-01-13 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237581', 'tblTempVendorCDR_20' ) end [2025-01-13 08:01:17] Production.INFO: ProcessCDR(1,14237581,1,1,2) [2025-01-13 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237581', 'tblTempUsageDetail_20' ) start [2025-01-13 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237581', 'tblTempUsageDetail_20' ) end [2025-01-13 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:01:22] Production.INFO: ==12298== Releasing lock... [2025-01-13 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:01:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-13 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:02:05 [end_date_ymd] => 2025-01-13 08:02:05 [RateCDR] => 1 ) [2025-01-13 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:02:05' and `end` < '2025-01-13 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:02:17] Production.INFO: count ==141 [2025-01-13 08:02:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:02:05 - End Time 2025-01-13 08:02:05 [2025-01-13 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237586', 'tblTempUsageDetail_20' ) start [2025-01-13 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237586', 'tblTempUsageDetail_20' ) end [2025-01-13 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237586', 'tblTempVendorCDR_20' ) start [2025-01-13 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237586', 'tblTempVendorCDR_20' ) end [2025-01-13 08:02:17] Production.INFO: ProcessCDR(1,14237586,1,1,2) [2025-01-13 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237586', 'tblTempUsageDetail_20' ) start [2025-01-13 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237586', 'tblTempUsageDetail_20' ) end [2025-01-13 08:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:02:21] Production.INFO: ==12367== Releasing lock... [2025-01-13 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:02:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:03:05 [end_date_ymd] => 2025-01-13 08:03:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:03:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:03:17] Production.INFO: count ==141 [2025-01-13 08:03:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:03:05 - End Time 2025-01-13 08:03:05 [2025-01-13 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237591', 'tblTempUsageDetail_20' ) start [2025-01-13 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237591', 'tblTempUsageDetail_20' ) end [2025-01-13 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237591', 'tblTempVendorCDR_20' ) start [2025-01-13 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237591', 'tblTempVendorCDR_20' ) end [2025-01-13 08:03:17] Production.INFO: ProcessCDR(1,14237591,1,1,2) [2025-01-13 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237591', 'tblTempUsageDetail_20' ) start [2025-01-13 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237591', 'tblTempUsageDetail_20' ) end [2025-01-13 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:03:21] Production.INFO: ==12439== Releasing lock... [2025-01-13 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:03:21] Production.INFO: 29 MB #Memory Used# [2025-01-13 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:04:05 [end_date_ymd] => 2025-01-13 08:04:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:04:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:04:19] Production.INFO: count ==144 [2025-01-13 08:04:19] Production.ERROR: pbx CDR StartTime 2025-01-13 05:04:05 - End Time 2025-01-13 08:04:05 [2025-01-13 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237596', 'tblTempUsageDetail_20' ) start [2025-01-13 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237596', 'tblTempUsageDetail_20' ) end [2025-01-13 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237596', 'tblTempVendorCDR_20' ) start [2025-01-13 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237596', 'tblTempVendorCDR_20' ) end [2025-01-13 08:04:19] Production.INFO: ProcessCDR(1,14237596,1,1,2) [2025-01-13 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237596', 'tblTempUsageDetail_20' ) start [2025-01-13 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237596', 'tblTempUsageDetail_20' ) end [2025-01-13 08:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:04:24] Production.INFO: ==12509== Releasing lock... [2025-01-13 08:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:04:24] Production.INFO: 29 MB #Memory Used# [2025-01-13 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:05:05 [end_date_ymd] => 2025-01-13 08:05:05 [RateCDR] => 1 ) [2025-01-13 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:05:05' and `end` < '2025-01-13 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:05:19] Production.INFO: count ==147 [2025-01-13 08:05:19] Production.ERROR: pbx CDR StartTime 2025-01-13 05:05:05 - End Time 2025-01-13 08:05:05 [2025-01-13 08:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237601', 'tblTempUsageDetail_20' ) start [2025-01-13 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237601', 'tblTempUsageDetail_20' ) end [2025-01-13 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237601', 'tblTempVendorCDR_20' ) start [2025-01-13 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237601', 'tblTempVendorCDR_20' ) end [2025-01-13 08:05:19] Production.INFO: ProcessCDR(1,14237601,1,1,2) [2025-01-13 08:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237601', 'tblTempUsageDetail_20' ) start [2025-01-13 08:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237601', 'tblTempUsageDetail_20' ) end [2025-01-13 08:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:05:24] Production.INFO: ==12582== Releasing lock... [2025-01-13 08:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:05:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:06:05 [end_date_ymd] => 2025-01-13 08:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:06:18] Production.INFO: count ==148 [2025-01-13 08:06:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:06:05 - End Time 2025-01-13 08:06:05 [2025-01-13 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237606', 'tblTempUsageDetail_20' ) start [2025-01-13 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237606', 'tblTempUsageDetail_20' ) end [2025-01-13 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237606', 'tblTempVendorCDR_20' ) start [2025-01-13 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237606', 'tblTempVendorCDR_20' ) end [2025-01-13 08:06:18] Production.INFO: ProcessCDR(1,14237606,1,1,2) [2025-01-13 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237606', 'tblTempUsageDetail_20' ) start [2025-01-13 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237606', 'tblTempUsageDetail_20' ) end [2025-01-13 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:06:21] Production.INFO: ==12651== Releasing lock... [2025-01-13 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:07:05 [end_date_ymd] => 2025-01-13 08:07:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:07:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:07:18] Production.INFO: count ==155 [2025-01-13 08:07:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:07:05 - End Time 2025-01-13 08:07:05 [2025-01-13 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237611', 'tblTempUsageDetail_20' ) start [2025-01-13 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237611', 'tblTempUsageDetail_20' ) end [2025-01-13 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237611', 'tblTempVendorCDR_20' ) start [2025-01-13 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237611', 'tblTempVendorCDR_20' ) end [2025-01-13 08:07:18] Production.INFO: ProcessCDR(1,14237611,1,1,2) [2025-01-13 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237611', 'tblTempUsageDetail_20' ) start [2025-01-13 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237611', 'tblTempUsageDetail_20' ) end [2025-01-13 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:07:21] Production.INFO: ==12724== Releasing lock... [2025-01-13 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:08:05 [end_date_ymd] => 2025-01-13 08:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:08:17] Production.INFO: count ==156 [2025-01-13 08:08:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:08:05 - End Time 2025-01-13 08:08:05 [2025-01-13 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237616', 'tblTempUsageDetail_20' ) start [2025-01-13 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237616', 'tblTempUsageDetail_20' ) end [2025-01-13 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237616', 'tblTempVendorCDR_20' ) start [2025-01-13 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237616', 'tblTempVendorCDR_20' ) end [2025-01-13 08:08:17] Production.INFO: ProcessCDR(1,14237616,1,1,2) [2025-01-13 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237616', 'tblTempUsageDetail_20' ) start [2025-01-13 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237616', 'tblTempUsageDetail_20' ) end [2025-01-13 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:08:21] Production.INFO: ==12797== Releasing lock... [2025-01-13 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:09:05 [end_date_ymd] => 2025-01-13 08:09:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:09:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:09:17] Production.INFO: count ==158 [2025-01-13 08:09:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:09:05 - End Time 2025-01-13 08:09:05 [2025-01-13 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237621', 'tblTempUsageDetail_20' ) start [2025-01-13 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237621', 'tblTempUsageDetail_20' ) end [2025-01-13 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237621', 'tblTempVendorCDR_20' ) start [2025-01-13 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237621', 'tblTempVendorCDR_20' ) end [2025-01-13 08:09:17] Production.INFO: ProcessCDR(1,14237621,1,1,2) [2025-01-13 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237621', 'tblTempUsageDetail_20' ) start [2025-01-13 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237621', 'tblTempUsageDetail_20' ) end [2025-01-13 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:09:22] Production.INFO: ==12866== Releasing lock... [2025-01-13 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-13 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:10:05 [end_date_ymd] => 2025-01-13 08:10:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:10:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:10:18] Production.INFO: count ==185 [2025-01-13 08:10:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:10:05 - End Time 2025-01-13 08:10:05 [2025-01-13 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237627', 'tblTempUsageDetail_20' ) start [2025-01-13 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237627', 'tblTempUsageDetail_20' ) end [2025-01-13 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237627', 'tblTempVendorCDR_20' ) start [2025-01-13 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237627', 'tblTempVendorCDR_20' ) end [2025-01-13 08:10:18] Production.INFO: ProcessCDR(1,14237627,1,1,2) [2025-01-13 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237627', 'tblTempUsageDetail_20' ) start [2025-01-13 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237627', 'tblTempUsageDetail_20' ) end [2025-01-13 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:10:21] Production.INFO: ==12939== Releasing lock... [2025-01-13 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:10:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-13 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:11:05 [end_date_ymd] => 2025-01-13 08:11:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:11:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:11:17] Production.INFO: count ==234 [2025-01-13 08:11:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:11:05 - End Time 2025-01-13 08:11:05 [2025-01-13 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237632', 'tblTempUsageDetail_20' ) start [2025-01-13 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237632', 'tblTempUsageDetail_20' ) end [2025-01-13 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237632', 'tblTempVendorCDR_20' ) start [2025-01-13 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237632', 'tblTempVendorCDR_20' ) end [2025-01-13 08:11:17] Production.INFO: ProcessCDR(1,14237632,1,1,2) [2025-01-13 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237632', 'tblTempUsageDetail_20' ) start [2025-01-13 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237632', 'tblTempUsageDetail_20' ) end [2025-01-13 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:11:21] Production.INFO: ==13014== Releasing lock... [2025-01-13 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-13 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:12:05 [end_date_ymd] => 2025-01-13 08:12:05 [RateCDR] => 1 ) [2025-01-13 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:12:05' and `end` < '2025-01-13 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:12:18] Production.INFO: count ==253 [2025-01-13 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:12:05 - End Time 2025-01-13 08:12:05 [2025-01-13 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237637', 'tblTempUsageDetail_20' ) start [2025-01-13 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237637', 'tblTempUsageDetail_20' ) end [2025-01-13 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237637', 'tblTempVendorCDR_20' ) start [2025-01-13 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237637', 'tblTempVendorCDR_20' ) end [2025-01-13 08:12:18] Production.INFO: ProcessCDR(1,14237637,1,1,2) [2025-01-13 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237637', 'tblTempUsageDetail_20' ) start [2025-01-13 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237637', 'tblTempUsageDetail_20' ) end [2025-01-13 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:12:21] Production.INFO: ==13083== Releasing lock... [2025-01-13 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-13 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:13:05 [end_date_ymd] => 2025-01-13 08:13:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:13:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:13:17] Production.INFO: count ==260 [2025-01-13 08:13:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:13:05 - End Time 2025-01-13 08:13:05 [2025-01-13 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237642', 'tblTempUsageDetail_20' ) start [2025-01-13 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237642', 'tblTempUsageDetail_20' ) end [2025-01-13 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237642', 'tblTempVendorCDR_20' ) start [2025-01-13 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237642', 'tblTempVendorCDR_20' ) end [2025-01-13 08:13:17] Production.INFO: ProcessCDR(1,14237642,1,1,2) [2025-01-13 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237642', 'tblTempUsageDetail_20' ) start [2025-01-13 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237642', 'tblTempUsageDetail_20' ) end [2025-01-13 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:13:21] Production.INFO: ==13163== Releasing lock... [2025-01-13 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-13 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:14:06 [end_date_ymd] => 2025-01-13 08:14:06 [RateCDR] => 1 ) [2025-01-13 08: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` >= '2025-01-13 05:14:06' and `end` < '2025-01-13 08: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 ,'') [2025-01-13 08:14:18] Production.INFO: count ==298 [2025-01-13 08:14:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:14:06 - End Time 2025-01-13 08:14:06 [2025-01-13 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237647', 'tblTempUsageDetail_20' ) start [2025-01-13 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237647', 'tblTempUsageDetail_20' ) end [2025-01-13 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237647', 'tblTempVendorCDR_20' ) start [2025-01-13 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237647', 'tblTempVendorCDR_20' ) end [2025-01-13 08:14:18] Production.INFO: ProcessCDR(1,14237647,1,1,2) [2025-01-13 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237647', 'tblTempUsageDetail_20' ) start [2025-01-13 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237647', 'tblTempUsageDetail_20' ) end [2025-01-13 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:14:21] Production.INFO: ==13235== Releasing lock... [2025-01-13 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:14:21] Production.INFO: 31 MB #Memory Used# [2025-01-13 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:15:05 [end_date_ymd] => 2025-01-13 08:15:05 [RateCDR] => 1 ) [2025-01-13 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:15:05' and `end` < '2025-01-13 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:15:17] Production.INFO: count ==304 [2025-01-13 08:15:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:15:05 - End Time 2025-01-13 08:15:05 [2025-01-13 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237652', 'tblTempUsageDetail_20' ) start [2025-01-13 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237652', 'tblTempUsageDetail_20' ) end [2025-01-13 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237652', 'tblTempVendorCDR_20' ) start [2025-01-13 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237652', 'tblTempVendorCDR_20' ) end [2025-01-13 08:15:17] Production.INFO: ProcessCDR(1,14237652,1,1,2) [2025-01-13 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237652', 'tblTempUsageDetail_20' ) start [2025-01-13 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237652', 'tblTempUsageDetail_20' ) end [2025-01-13 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:15:21] Production.INFO: ==13344== Releasing lock... [2025-01-13 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-13 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:16:05 [end_date_ymd] => 2025-01-13 08:16:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:16:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:16:17] Production.INFO: count ==317 [2025-01-13 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:16:05 - End Time 2025-01-13 08:16:05 [2025-01-13 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237657', 'tblTempUsageDetail_20' ) start [2025-01-13 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237657', 'tblTempUsageDetail_20' ) end [2025-01-13 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237657', 'tblTempVendorCDR_20' ) start [2025-01-13 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237657', 'tblTempVendorCDR_20' ) end [2025-01-13 08:16:18] Production.INFO: ProcessCDR(1,14237657,1,1,2) [2025-01-13 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237657', 'tblTempUsageDetail_20' ) start [2025-01-13 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237657', 'tblTempUsageDetail_20' ) end [2025-01-13 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:16:22] Production.INFO: ==13418== Releasing lock... [2025-01-13 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-13 08:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:17:04 [end_date_ymd] => 2025-01-13 08:17:04 [RateCDR] => 1 ) [2025-01-13 08:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:17:04' and `end` < '2025-01-13 08:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:17:16] Production.INFO: count ==321 [2025-01-13 08:17:16] Production.ERROR: pbx CDR StartTime 2025-01-13 05:17:04 - End Time 2025-01-13 08:17:04 [2025-01-13 08:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237662', 'tblTempUsageDetail_20' ) start [2025-01-13 08:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237662', 'tblTempUsageDetail_20' ) end [2025-01-13 08:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237662', 'tblTempVendorCDR_20' ) start [2025-01-13 08:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237662', 'tblTempVendorCDR_20' ) end [2025-01-13 08:17:16] Production.INFO: ProcessCDR(1,14237662,1,1,2) [2025-01-13 08:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237662', 'tblTempUsageDetail_20' ) start [2025-01-13 08:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237662', 'tblTempUsageDetail_20' ) end [2025-01-13 08:17:19] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:17:19] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:17:19] Production.INFO: ==13491== Releasing lock... [2025-01-13 08:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:17:19] Production.INFO: 31.5 MB #Memory Used# [2025-01-13 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:18:05 [end_date_ymd] => 2025-01-13 08:18:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:18:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:18:18] Production.INFO: count ==328 [2025-01-13 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:18:05 - End Time 2025-01-13 08:18:05 [2025-01-13 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237667', 'tblTempUsageDetail_20' ) start [2025-01-13 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237667', 'tblTempUsageDetail_20' ) end [2025-01-13 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237667', 'tblTempVendorCDR_20' ) start [2025-01-13 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237667', 'tblTempVendorCDR_20' ) end [2025-01-13 08:18:18] Production.INFO: ProcessCDR(1,14237667,1,1,2) [2025-01-13 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237667', 'tblTempUsageDetail_20' ) start [2025-01-13 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237667', 'tblTempUsageDetail_20' ) end [2025-01-13 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:18:23] Production.INFO: ==13572== Releasing lock... [2025-01-13 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:18:23] Production.INFO: 31 MB #Memory Used# [2025-01-13 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:19:05 [end_date_ymd] => 2025-01-13 08:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:19:19] Production.INFO: count ==330 [2025-01-13 08:19:19] Production.ERROR: pbx CDR StartTime 2025-01-13 05:19:05 - End Time 2025-01-13 08:19:05 [2025-01-13 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237672', 'tblTempUsageDetail_20' ) start [2025-01-13 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237672', 'tblTempUsageDetail_20' ) end [2025-01-13 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237672', 'tblTempVendorCDR_20' ) start [2025-01-13 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237672', 'tblTempVendorCDR_20' ) end [2025-01-13 08:19:19] Production.INFO: ProcessCDR(1,14237672,1,1,2) [2025-01-13 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237672', 'tblTempUsageDetail_20' ) start [2025-01-13 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237672', 'tblTempUsageDetail_20' ) end [2025-01-13 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:19:23] Production.INFO: ==13646== Releasing lock... [2025-01-13 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:19:23] Production.INFO: 31 MB #Memory Used# [2025-01-13 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:20:06 [end_date_ymd] => 2025-01-13 08:20:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:20:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:20:18] Production.INFO: count ==347 [2025-01-13 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:20:06 - End Time 2025-01-13 08:20:06 [2025-01-13 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237678', 'tblTempUsageDetail_20' ) start [2025-01-13 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237678', 'tblTempUsageDetail_20' ) end [2025-01-13 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237678', 'tblTempVendorCDR_20' ) start [2025-01-13 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237678', 'tblTempVendorCDR_20' ) end [2025-01-13 08:20:18] Production.INFO: ProcessCDR(1,14237678,1,1,2) [2025-01-13 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237678', 'tblTempUsageDetail_20' ) start [2025-01-13 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237678', 'tblTempUsageDetail_20' ) end [2025-01-13 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:20:23] Production.INFO: ==13717== Releasing lock... [2025-01-13 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:20:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-13 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:21:05 [end_date_ymd] => 2025-01-13 08:21:05 [RateCDR] => 1 ) [2025-01-13 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:21:05' and `end` < '2025-01-13 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:21:18] Production.INFO: count ==375 [2025-01-13 08:21:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:21:05 - End Time 2025-01-13 08:21:05 [2025-01-13 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237683', 'tblTempUsageDetail_20' ) start [2025-01-13 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237683', 'tblTempUsageDetail_20' ) end [2025-01-13 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237683', 'tblTempVendorCDR_20' ) start [2025-01-13 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237683', 'tblTempVendorCDR_20' ) end [2025-01-13 08:21:18] Production.INFO: ProcessCDR(1,14237683,1,1,2) [2025-01-13 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237683', 'tblTempUsageDetail_20' ) start [2025-01-13 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237683', 'tblTempUsageDetail_20' ) end [2025-01-13 08:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:21:23] Production.INFO: ==13790== Releasing lock... [2025-01-13 08:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:21:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-13 08:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:22:04 [end_date_ymd] => 2025-01-13 08:22:04 [RateCDR] => 1 ) [2025-01-13 08:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:22:04' and `end` < '2025-01-13 08:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:22:17] Production.INFO: count ==376 [2025-01-13 08:22:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:22:04 - End Time 2025-01-13 08:22:04 [2025-01-13 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237688', 'tblTempUsageDetail_20' ) start [2025-01-13 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237688', 'tblTempUsageDetail_20' ) end [2025-01-13 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237688', 'tblTempVendorCDR_20' ) start [2025-01-13 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237688', 'tblTempVendorCDR_20' ) end [2025-01-13 08:22:17] Production.INFO: ProcessCDR(1,14237688,1,1,2) [2025-01-13 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237688', 'tblTempUsageDetail_20' ) start [2025-01-13 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237688', 'tblTempUsageDetail_20' ) end [2025-01-13 08:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:22:20] Production.INFO: ==13861== Releasing lock... [2025-01-13 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:22:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-13 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:23:05 [end_date_ymd] => 2025-01-13 08:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:23:19] Production.INFO: count ==394 [2025-01-13 08:23:19] Production.ERROR: pbx CDR StartTime 2025-01-13 05:23:05 - End Time 2025-01-13 08:23:05 [2025-01-13 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237693', 'tblTempUsageDetail_20' ) start [2025-01-13 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237693', 'tblTempUsageDetail_20' ) end [2025-01-13 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237693', 'tblTempVendorCDR_20' ) start [2025-01-13 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237693', 'tblTempVendorCDR_20' ) end [2025-01-13 08:23:19] Production.INFO: ProcessCDR(1,14237693,1,1,2) [2025-01-13 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237693', 'tblTempUsageDetail_20' ) start [2025-01-13 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237693', 'tblTempUsageDetail_20' ) end [2025-01-13 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:23:23] Production.INFO: ==13934== Releasing lock... [2025-01-13 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:23:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-13 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:24:05 [end_date_ymd] => 2025-01-13 08:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:24:18] Production.INFO: count ==396 [2025-01-13 08:24:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:24:05 - End Time 2025-01-13 08:24:05 [2025-01-13 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237698', 'tblTempUsageDetail_20' ) start [2025-01-13 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237698', 'tblTempUsageDetail_20' ) end [2025-01-13 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237698', 'tblTempVendorCDR_20' ) start [2025-01-13 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237698', 'tblTempVendorCDR_20' ) end [2025-01-13 08:24:18] Production.INFO: ProcessCDR(1,14237698,1,1,2) [2025-01-13 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237698', 'tblTempUsageDetail_20' ) start [2025-01-13 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237698', 'tblTempUsageDetail_20' ) end [2025-01-13 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:24:21] Production.INFO: ==14004== Releasing lock... [2025-01-13 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-13 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:25:05 [end_date_ymd] => 2025-01-13 08:25:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:25:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:25:17] Production.INFO: count ==430 [2025-01-13 08:25:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:25:05 - End Time 2025-01-13 08:25:05 [2025-01-13 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237703', 'tblTempUsageDetail_20' ) start [2025-01-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237703', 'tblTempUsageDetail_20' ) end [2025-01-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237703', 'tblTempVendorCDR_20' ) start [2025-01-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237703', 'tblTempVendorCDR_20' ) end [2025-01-13 08:25:17] Production.INFO: ProcessCDR(1,14237703,1,1,2) [2025-01-13 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237703', 'tblTempUsageDetail_20' ) start [2025-01-13 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237703', 'tblTempUsageDetail_20' ) end [2025-01-13 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:25:21] Production.INFO: ==14077== Releasing lock... [2025-01-13 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-13 08:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:26:04 [end_date_ymd] => 2025-01-13 08:26:04 [RateCDR] => 1 ) [2025-01-13 08:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:26:04' and `end` < '2025-01-13 08:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:26:17] Production.INFO: count ==434 [2025-01-13 08:26:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:26:04 - End Time 2025-01-13 08:26:04 [2025-01-13 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237708', 'tblTempUsageDetail_20' ) start [2025-01-13 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237708', 'tblTempUsageDetail_20' ) end [2025-01-13 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237708', 'tblTempVendorCDR_20' ) start [2025-01-13 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237708', 'tblTempVendorCDR_20' ) end [2025-01-13 08:26:17] Production.INFO: ProcessCDR(1,14237708,1,1,2) [2025-01-13 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237708', 'tblTempUsageDetail_20' ) start [2025-01-13 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237708', 'tblTempUsageDetail_20' ) end [2025-01-13 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:26:20] Production.INFO: ==14149== Releasing lock... [2025-01-13 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:26:20] Production.INFO: 32 MB #Memory Used# [2025-01-13 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:27:04 [end_date_ymd] => 2025-01-13 08:27:04 [RateCDR] => 1 ) [2025-01-13 08:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:27:04' and `end` < '2025-01-13 08:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:27:17] Production.INFO: count ==443 [2025-01-13 08:27:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:27:04 - End Time 2025-01-13 08:27:04 [2025-01-13 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237713', 'tblTempUsageDetail_20' ) start [2025-01-13 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237713', 'tblTempUsageDetail_20' ) end [2025-01-13 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237713', 'tblTempVendorCDR_20' ) start [2025-01-13 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237713', 'tblTempVendorCDR_20' ) end [2025-01-13 08:27:17] Production.INFO: ProcessCDR(1,14237713,1,1,2) [2025-01-13 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237713', 'tblTempUsageDetail_20' ) start [2025-01-13 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237713', 'tblTempUsageDetail_20' ) end [2025-01-13 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:27:22] Production.INFO: ==14223== Releasing lock... [2025-01-13 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:27:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:28:05 [end_date_ymd] => 2025-01-13 08:28:05 [RateCDR] => 1 ) [2025-01-13 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:28:05' and `end` < '2025-01-13 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:28:19] Production.INFO: count ==460 [2025-01-13 08:28:19] Production.ERROR: pbx CDR StartTime 2025-01-13 05:28:05 - End Time 2025-01-13 08:28:05 [2025-01-13 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237718', 'tblTempUsageDetail_20' ) start [2025-01-13 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237718', 'tblTempUsageDetail_20' ) end [2025-01-13 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237718', 'tblTempVendorCDR_20' ) start [2025-01-13 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237718', 'tblTempVendorCDR_20' ) end [2025-01-13 08:28:19] Production.INFO: ProcessCDR(1,14237718,1,1,2) [2025-01-13 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237718', 'tblTempUsageDetail_20' ) start [2025-01-13 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237718', 'tblTempUsageDetail_20' ) end [2025-01-13 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:28:24] Production.INFO: ==14295== Releasing lock... [2025-01-13 08:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:28:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-13 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:29:05 [end_date_ymd] => 2025-01-13 08:29:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:29:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:29:17] Production.INFO: count ==472 [2025-01-13 08:29:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:29:05 - End Time 2025-01-13 08:29:05 [2025-01-13 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237723', 'tblTempUsageDetail_20' ) start [2025-01-13 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237723', 'tblTempUsageDetail_20' ) end [2025-01-13 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237723', 'tblTempVendorCDR_20' ) start [2025-01-13 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237723', 'tblTempVendorCDR_20' ) end [2025-01-13 08:29:17] Production.INFO: ProcessCDR(1,14237723,1,1,2) [2025-01-13 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237723', 'tblTempUsageDetail_20' ) start [2025-01-13 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237723', 'tblTempUsageDetail_20' ) end [2025-01-13 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:29:21] Production.INFO: ==14366== Releasing lock... [2025-01-13 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-13 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:30:06 [end_date_ymd] => 2025-01-13 08:30:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:30:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:30:18] Production.INFO: count ==481 [2025-01-13 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-13 05:30:06 - End Time 2025-01-13 08:30:06 [2025-01-13 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237729', 'tblTempUsageDetail_20' ) start [2025-01-13 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237729', 'tblTempUsageDetail_20' ) end [2025-01-13 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237729', 'tblTempVendorCDR_20' ) start [2025-01-13 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237729', 'tblTempVendorCDR_20' ) end [2025-01-13 08:30:19] Production.INFO: ProcessCDR(1,14237729,1,1,2) [2025-01-13 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237729', 'tblTempUsageDetail_20' ) start [2025-01-13 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237729', 'tblTempUsageDetail_20' ) end [2025-01-13 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:30:22] Production.INFO: ==14439== Releasing lock... [2025-01-13 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:31:04 [end_date_ymd] => 2025-01-13 08:31:04 [RateCDR] => 1 ) [2025-01-13 08:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:31:04' and `end` < '2025-01-13 08:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:31:18] Production.INFO: count ==499 [2025-01-13 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:31:04 - End Time 2025-01-13 08:31:04 [2025-01-13 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237734', 'tblTempUsageDetail_20' ) start [2025-01-13 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237734', 'tblTempUsageDetail_20' ) end [2025-01-13 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237734', 'tblTempVendorCDR_20' ) start [2025-01-13 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237734', 'tblTempVendorCDR_20' ) end [2025-01-13 08:31:18] Production.INFO: ProcessCDR(1,14237734,1,1,2) [2025-01-13 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237734', 'tblTempUsageDetail_20' ) start [2025-01-13 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237734', 'tblTempUsageDetail_20' ) end [2025-01-13 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:31:21] Production.INFO: ==14552== Releasing lock... [2025-01-13 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-13 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:32:05 [end_date_ymd] => 2025-01-13 08:32:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:32:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:32:19] Production.INFO: count ==505 [2025-01-13 08:32:19] Production.ERROR: pbx CDR StartTime 2025-01-13 05:32:05 - End Time 2025-01-13 08:32:05 [2025-01-13 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237739', 'tblTempUsageDetail_20' ) start [2025-01-13 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237739', 'tblTempUsageDetail_20' ) end [2025-01-13 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237739', 'tblTempVendorCDR_20' ) start [2025-01-13 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237739', 'tblTempVendorCDR_20' ) end [2025-01-13 08:32:19] Production.INFO: ProcessCDR(1,14237739,1,1,2) [2025-01-13 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237739', 'tblTempUsageDetail_20' ) start [2025-01-13 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237739', 'tblTempUsageDetail_20' ) end [2025-01-13 08:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:32:24] Production.INFO: ==14624== Releasing lock... [2025-01-13 08:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:32:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 08:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:33:04 [end_date_ymd] => 2025-01-13 08:33:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:33:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:33:17] Production.INFO: count ==511 [2025-01-13 08:33:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:33:04 - End Time 2025-01-13 08:33:04 [2025-01-13 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237744', 'tblTempUsageDetail_20' ) start [2025-01-13 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237744', 'tblTempUsageDetail_20' ) end [2025-01-13 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237744', 'tblTempVendorCDR_20' ) start [2025-01-13 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237744', 'tblTempVendorCDR_20' ) end [2025-01-13 08:33:17] Production.INFO: ProcessCDR(1,14237744,1,1,2) [2025-01-13 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237744', 'tblTempUsageDetail_20' ) start [2025-01-13 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237744', 'tblTempUsageDetail_20' ) end [2025-01-13 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:33:20] Production.INFO: ==14694== Releasing lock... [2025-01-13 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:34:05 [end_date_ymd] => 2025-01-13 08:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:34:18] Production.INFO: count ==511 [2025-01-13 08:34:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:34:05 - End Time 2025-01-13 08:34:05 [2025-01-13 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237749', 'tblTempUsageDetail_20' ) start [2025-01-13 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237749', 'tblTempUsageDetail_20' ) end [2025-01-13 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237749', 'tblTempVendorCDR_20' ) start [2025-01-13 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237749', 'tblTempVendorCDR_20' ) end [2025-01-13 08:34:18] Production.INFO: ProcessCDR(1,14237749,1,1,2) [2025-01-13 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237749', 'tblTempUsageDetail_20' ) start [2025-01-13 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237749', 'tblTempUsageDetail_20' ) end [2025-01-13 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:34:21] Production.INFO: ==14765== Releasing lock... [2025-01-13 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:35:04 [end_date_ymd] => 2025-01-13 08:35:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:35:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:35:17] Production.INFO: count ==524 [2025-01-13 08:35:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:35:04 - End Time 2025-01-13 08:35:04 [2025-01-13 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237754', 'tblTempUsageDetail_20' ) start [2025-01-13 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237754', 'tblTempUsageDetail_20' ) end [2025-01-13 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237754', 'tblTempVendorCDR_20' ) start [2025-01-13 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237754', 'tblTempVendorCDR_20' ) end [2025-01-13 08:35:17] Production.INFO: ProcessCDR(1,14237754,1,1,2) [2025-01-13 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237754', 'tblTempUsageDetail_20' ) start [2025-01-13 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237754', 'tblTempUsageDetail_20' ) end [2025-01-13 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:35:21] Production.INFO: ==14840== Releasing lock... [2025-01-13 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-13 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:36:05 [end_date_ymd] => 2025-01-13 08:36:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:36:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:36:18] Production.INFO: count ==532 [2025-01-13 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:36:05 - End Time 2025-01-13 08:36:05 [2025-01-13 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237759', 'tblTempUsageDetail_20' ) start [2025-01-13 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237759', 'tblTempUsageDetail_20' ) end [2025-01-13 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237759', 'tblTempVendorCDR_20' ) start [2025-01-13 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237759', 'tblTempVendorCDR_20' ) end [2025-01-13 08:36:18] Production.INFO: ProcessCDR(1,14237759,1,1,2) [2025-01-13 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237759', 'tblTempUsageDetail_20' ) start [2025-01-13 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237759', 'tblTempUsageDetail_20' ) end [2025-01-13 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:36:21] Production.INFO: ==14912== Releasing lock... [2025-01-13 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:36:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-13 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:37:05 [end_date_ymd] => 2025-01-13 08:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:37:18] Production.INFO: count ==545 [2025-01-13 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:37:05 - End Time 2025-01-13 08:37:05 [2025-01-13 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237764', 'tblTempUsageDetail_20' ) start [2025-01-13 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237764', 'tblTempUsageDetail_20' ) end [2025-01-13 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237764', 'tblTempVendorCDR_20' ) start [2025-01-13 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237764', 'tblTempVendorCDR_20' ) end [2025-01-13 08:37:18] Production.INFO: ProcessCDR(1,14237764,1,1,2) [2025-01-13 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237764', 'tblTempUsageDetail_20' ) start [2025-01-13 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237764', 'tblTempUsageDetail_20' ) end [2025-01-13 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:37:21] Production.INFO: ==14982== Releasing lock... [2025-01-13 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-13 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:38:05 [end_date_ymd] => 2025-01-13 08:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:38:18] Production.INFO: count ==545 [2025-01-13 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:38:05 - End Time 2025-01-13 08:38:05 [2025-01-13 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237769', 'tblTempUsageDetail_20' ) start [2025-01-13 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237769', 'tblTempUsageDetail_20' ) end [2025-01-13 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237769', 'tblTempVendorCDR_20' ) start [2025-01-13 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237769', 'tblTempVendorCDR_20' ) end [2025-01-13 08:38:18] Production.INFO: ProcessCDR(1,14237769,1,1,2) [2025-01-13 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237769', 'tblTempUsageDetail_20' ) start [2025-01-13 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237769', 'tblTempUsageDetail_20' ) end [2025-01-13 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:38:21] Production.INFO: ==15054== Releasing lock... [2025-01-13 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:38:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-13 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:39:05 [end_date_ymd] => 2025-01-13 08:39:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:39:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:39:17] Production.INFO: count ==554 [2025-01-13 08:39:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:39:05 - End Time 2025-01-13 08:39:05 [2025-01-13 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237774', 'tblTempUsageDetail_20' ) start [2025-01-13 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237774', 'tblTempUsageDetail_20' ) end [2025-01-13 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237774', 'tblTempVendorCDR_20' ) start [2025-01-13 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237774', 'tblTempVendorCDR_20' ) end [2025-01-13 08:39:17] Production.INFO: ProcessCDR(1,14237774,1,1,2) [2025-01-13 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237774', 'tblTempUsageDetail_20' ) start [2025-01-13 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237774', 'tblTempUsageDetail_20' ) end [2025-01-13 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:39:21] Production.INFO: ==15124== Releasing lock... [2025-01-13 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:39:21] Production.INFO: 33 MB #Memory Used# [2025-01-13 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:40:06 [end_date_ymd] => 2025-01-13 08:40:06 [RateCDR] => 1 ) [2025-01-13 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:40:06' and `end` < '2025-01-13 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:40:18] Production.INFO: count ==582 [2025-01-13 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:40:06 - End Time 2025-01-13 08:40:06 [2025-01-13 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237780', 'tblTempUsageDetail_20' ) start [2025-01-13 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237780', 'tblTempUsageDetail_20' ) end [2025-01-13 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237780', 'tblTempVendorCDR_20' ) start [2025-01-13 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237780', 'tblTempVendorCDR_20' ) end [2025-01-13 08:40:18] Production.INFO: ProcessCDR(1,14237780,1,1,2) [2025-01-13 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237780', 'tblTempUsageDetail_20' ) start [2025-01-13 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237780', 'tblTempUsageDetail_20' ) end [2025-01-13 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:40:21] Production.INFO: ==15200== Releasing lock... [2025-01-13 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:40:21] Production.INFO: 33 MB #Memory Used# [2025-01-13 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:41:05 [end_date_ymd] => 2025-01-13 08:41:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:41:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:41:17] Production.INFO: count ==622 [2025-01-13 08:41:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:41:05 - End Time 2025-01-13 08:41:05 [2025-01-13 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237785', 'tblTempUsageDetail_20' ) start [2025-01-13 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237785', 'tblTempUsageDetail_20' ) end [2025-01-13 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237785', 'tblTempVendorCDR_20' ) start [2025-01-13 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237785', 'tblTempVendorCDR_20' ) end [2025-01-13 08:41:18] Production.INFO: ProcessCDR(1,14237785,1,1,2) [2025-01-13 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237785', 'tblTempUsageDetail_20' ) start [2025-01-13 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237785', 'tblTempUsageDetail_20' ) end [2025-01-13 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:41:22] Production.INFO: ==15277== Releasing lock... [2025-01-13 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:41:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:42:05 [end_date_ymd] => 2025-01-13 08:42:05 [RateCDR] => 1 ) [2025-01-13 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:42:05' and `end` < '2025-01-13 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:42:18] Production.INFO: count ==640 [2025-01-13 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:42:05 - End Time 2025-01-13 08:42:05 [2025-01-13 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237790', 'tblTempUsageDetail_20' ) start [2025-01-13 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237790', 'tblTempUsageDetail_20' ) end [2025-01-13 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237790', 'tblTempVendorCDR_20' ) start [2025-01-13 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237790', 'tblTempVendorCDR_20' ) end [2025-01-13 08:42:18] Production.INFO: ProcessCDR(1,14237790,1,1,2) [2025-01-13 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237790', 'tblTempUsageDetail_20' ) start [2025-01-13 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237790', 'tblTempUsageDetail_20' ) end [2025-01-13 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:42:21] Production.INFO: ==15347== Releasing lock... [2025-01-13 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:42:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-13 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:43:05 [end_date_ymd] => 2025-01-13 08:43:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:43:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:43:17] Production.INFO: count ==642 [2025-01-13 08:43:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:43:05 - End Time 2025-01-13 08:43:05 [2025-01-13 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237795', 'tblTempUsageDetail_20' ) start [2025-01-13 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237795', 'tblTempUsageDetail_20' ) end [2025-01-13 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237795', 'tblTempVendorCDR_20' ) start [2025-01-13 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237795', 'tblTempVendorCDR_20' ) end [2025-01-13 08:43:17] Production.INFO: ProcessCDR(1,14237795,1,1,2) [2025-01-13 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237795', 'tblTempUsageDetail_20' ) start [2025-01-13 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237795', 'tblTempUsageDetail_20' ) end [2025-01-13 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:43:21] Production.INFO: ==15417== Releasing lock... [2025-01-13 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:43:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:44:06 [end_date_ymd] => 2025-01-13 08:44:06 [RateCDR] => 1 ) [2025-01-13 08:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:44:06' and `end` < '2025-01-13 08:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:44:19] Production.INFO: count ==643 [2025-01-13 08:44:19] Production.ERROR: pbx CDR StartTime 2025-01-13 05:44:06 - End Time 2025-01-13 08:44:06 [2025-01-13 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237800', 'tblTempUsageDetail_20' ) start [2025-01-13 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237800', 'tblTempUsageDetail_20' ) end [2025-01-13 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237800', 'tblTempVendorCDR_20' ) start [2025-01-13 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237800', 'tblTempVendorCDR_20' ) end [2025-01-13 08:44:19] Production.INFO: ProcessCDR(1,14237800,1,1,2) [2025-01-13 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237800', 'tblTempUsageDetail_20' ) start [2025-01-13 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237800', 'tblTempUsageDetail_20' ) end [2025-01-13 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:44:23] Production.INFO: ==15489== Releasing lock... [2025-01-13 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:44:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-13 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:45:06 [end_date_ymd] => 2025-01-13 08:45:06 [RateCDR] => 1 ) [2025-01-13 08:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:45:06' and `end` < '2025-01-13 08:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:45:18] Production.INFO: count ==644 [2025-01-13 08:45:19] Production.ERROR: pbx CDR StartTime 2025-01-13 05:45:06 - End Time 2025-01-13 08:45:06 [2025-01-13 08:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237805', 'tblTempUsageDetail_20' ) start [2025-01-13 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237805', 'tblTempUsageDetail_20' ) end [2025-01-13 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237805', 'tblTempVendorCDR_20' ) start [2025-01-13 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237805', 'tblTempVendorCDR_20' ) end [2025-01-13 08:45:19] Production.INFO: ProcessCDR(1,14237805,1,1,2) [2025-01-13 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237805', 'tblTempUsageDetail_20' ) start [2025-01-13 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237805', 'tblTempUsageDetail_20' ) end [2025-01-13 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:45:23] Production.INFO: ==15559== Releasing lock... [2025-01-13 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:45:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:46:05 [end_date_ymd] => 2025-01-13 08:46:05 [RateCDR] => 1 ) [2025-01-13 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:46:05' and `end` < '2025-01-13 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:46:18] Production.INFO: count ==648 [2025-01-13 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:46:05 - End Time 2025-01-13 08:46:05 [2025-01-13 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237810', 'tblTempUsageDetail_20' ) start [2025-01-13 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237810', 'tblTempUsageDetail_20' ) end [2025-01-13 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237810', 'tblTempVendorCDR_20' ) start [2025-01-13 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237810', 'tblTempVendorCDR_20' ) end [2025-01-13 08:46:18] Production.INFO: ProcessCDR(1,14237810,1,1,2) [2025-01-13 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237810', 'tblTempUsageDetail_20' ) start [2025-01-13 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237810', 'tblTempUsageDetail_20' ) end [2025-01-13 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:46:23] Production.INFO: ==15629== Releasing lock... [2025-01-13 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:46:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-13 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:47:05 [end_date_ymd] => 2025-01-13 08:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:47:17] Production.INFO: count ==668 [2025-01-13 08:47:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:47:05 - End Time 2025-01-13 08:47:05 [2025-01-13 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237815', 'tblTempUsageDetail_20' ) start [2025-01-13 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237815', 'tblTempUsageDetail_20' ) end [2025-01-13 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237815', 'tblTempVendorCDR_20' ) start [2025-01-13 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237815', 'tblTempVendorCDR_20' ) end [2025-01-13 08:47:17] Production.INFO: ProcessCDR(1,14237815,1,1,2) [2025-01-13 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237815', 'tblTempUsageDetail_20' ) start [2025-01-13 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237815', 'tblTempUsageDetail_20' ) end [2025-01-13 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:47:21] Production.INFO: ==15738== Releasing lock... [2025-01-13 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:47:21] Production.INFO: 34 MB #Memory Used# [2025-01-13 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:48:05 [end_date_ymd] => 2025-01-13 08:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:48:17] Production.INFO: count ==675 [2025-01-13 08:48:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:48:05 - End Time 2025-01-13 08:48:05 [2025-01-13 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237820', 'tblTempUsageDetail_20' ) start [2025-01-13 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237820', 'tblTempUsageDetail_20' ) end [2025-01-13 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237820', 'tblTempVendorCDR_20' ) start [2025-01-13 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237820', 'tblTempVendorCDR_20' ) end [2025-01-13 08:48:17] Production.INFO: ProcessCDR(1,14237820,1,1,2) [2025-01-13 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237820', 'tblTempUsageDetail_20' ) start [2025-01-13 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237820', 'tblTempUsageDetail_20' ) end [2025-01-13 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:48:22] Production.INFO: ==15814== Releasing lock... [2025-01-13 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:48:22] Production.INFO: 34 MB #Memory Used# [2025-01-13 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:49:05 [end_date_ymd] => 2025-01-13 08:49:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:49:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:49:18] Production.INFO: count ==687 [2025-01-13 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:49:05 - End Time 2025-01-13 08:49:05 [2025-01-13 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237825', 'tblTempUsageDetail_20' ) start [2025-01-13 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237825', 'tblTempUsageDetail_20' ) end [2025-01-13 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237825', 'tblTempVendorCDR_20' ) start [2025-01-13 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237825', 'tblTempVendorCDR_20' ) end [2025-01-13 08:49:18] Production.INFO: ProcessCDR(1,14237825,1,1,2) [2025-01-13 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237825', 'tblTempUsageDetail_20' ) start [2025-01-13 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237825', 'tblTempUsageDetail_20' ) end [2025-01-13 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:49:23] Production.INFO: ==15885== Releasing lock... [2025-01-13 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:49:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-13 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:50:06 [end_date_ymd] => 2025-01-13 08:50:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:50:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:50:19] Production.INFO: count ==701 [2025-01-13 08:50:19] Production.ERROR: pbx CDR StartTime 2025-01-13 05:50:06 - End Time 2025-01-13 08:50:06 [2025-01-13 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237830', 'tblTempUsageDetail_20' ) start [2025-01-13 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237830', 'tblTempUsageDetail_20' ) end [2025-01-13 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237830', 'tblTempVendorCDR_20' ) start [2025-01-13 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237830', 'tblTempVendorCDR_20' ) end [2025-01-13 08:50:19] Production.INFO: ProcessCDR(1,14237830,1,1,2) [2025-01-13 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237830', 'tblTempUsageDetail_20' ) start [2025-01-13 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237830', 'tblTempUsageDetail_20' ) end [2025-01-13 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:50:22] Production.INFO: ==15961== Releasing lock... [2025-01-13 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:50:22] Production.INFO: 34 MB #Memory Used# [2025-01-13 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:51:05 [end_date_ymd] => 2025-01-13 08:51:05 [RateCDR] => 1 ) [2025-01-13 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:51:05' and `end` < '2025-01-13 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:51:18] Production.INFO: count ==767 [2025-01-13 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:51:05 - End Time 2025-01-13 08:51:05 [2025-01-13 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237836', 'tblTempUsageDetail_20' ) start [2025-01-13 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237836', 'tblTempUsageDetail_20' ) end [2025-01-13 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237836', 'tblTempVendorCDR_20' ) start [2025-01-13 08:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237836', 'tblTempVendorCDR_20' ) end [2025-01-13 08:51:19] Production.INFO: ProcessCDR(1,14237836,1,1,2) [2025-01-13 08:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237836', 'tblTempUsageDetail_20' ) start [2025-01-13 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237836', 'tblTempUsageDetail_20' ) end [2025-01-13 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:51:22] Production.INFO: ==16034== Releasing lock... [2025-01-13 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:51:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-13 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:52:05 [end_date_ymd] => 2025-01-13 08:52:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:52:17] Production.INFO: count ==774 [2025-01-13 08:52:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:52:05 - End Time 2025-01-13 08:52:05 [2025-01-13 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237841', 'tblTempUsageDetail_20' ) start [2025-01-13 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237841', 'tblTempUsageDetail_20' ) end [2025-01-13 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237841', 'tblTempVendorCDR_20' ) start [2025-01-13 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237841', 'tblTempVendorCDR_20' ) end [2025-01-13 08:52:18] Production.INFO: ProcessCDR(1,14237841,1,1,2) [2025-01-13 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237841', 'tblTempUsageDetail_20' ) start [2025-01-13 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237841', 'tblTempUsageDetail_20' ) end [2025-01-13 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:52:22] Production.INFO: ==16105== Releasing lock... [2025-01-13 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:52:22] Production.INFO: 34 MB #Memory Used# [2025-01-13 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:53:05 [end_date_ymd] => 2025-01-13 08:53:05 [RateCDR] => 1 ) [2025-01-13 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:53:05' and `end` < '2025-01-13 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:53:17] Production.INFO: count ==785 [2025-01-13 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:53:05 - End Time 2025-01-13 08:53:05 [2025-01-13 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237846', 'tblTempUsageDetail_20' ) start [2025-01-13 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237846', 'tblTempUsageDetail_20' ) end [2025-01-13 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237846', 'tblTempVendorCDR_20' ) start [2025-01-13 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237846', 'tblTempVendorCDR_20' ) end [2025-01-13 08:53:18] Production.INFO: ProcessCDR(1,14237846,1,1,2) [2025-01-13 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237846', 'tblTempUsageDetail_20' ) start [2025-01-13 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237846', 'tblTempUsageDetail_20' ) end [2025-01-13 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:53:21] Production.INFO: ==16177== Releasing lock... [2025-01-13 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:53:21] Production.INFO: 34 MB #Memory Used# [2025-01-13 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:54:05 [end_date_ymd] => 2025-01-13 08:54:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:54:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:54:18] Production.INFO: count ==789 [2025-01-13 08:54:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:54:05 - End Time 2025-01-13 08:54:05 [2025-01-13 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237851', 'tblTempUsageDetail_20' ) start [2025-01-13 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237851', 'tblTempUsageDetail_20' ) end [2025-01-13 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237851', 'tblTempVendorCDR_20' ) start [2025-01-13 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237851', 'tblTempVendorCDR_20' ) end [2025-01-13 08:54:18] Production.INFO: ProcessCDR(1,14237851,1,1,2) [2025-01-13 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237851', 'tblTempUsageDetail_20' ) start [2025-01-13 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237851', 'tblTempUsageDetail_20' ) end [2025-01-13 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:54:23] Production.INFO: ==16251== Releasing lock... [2025-01-13 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:54:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-13 08:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:55:04 [end_date_ymd] => 2025-01-13 08:55:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:55:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:55:17] Production.INFO: count ==790 [2025-01-13 08:55:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:55:04 - End Time 2025-01-13 08:55:04 [2025-01-13 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237856', 'tblTempUsageDetail_20' ) start [2025-01-13 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237856', 'tblTempUsageDetail_20' ) end [2025-01-13 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237856', 'tblTempVendorCDR_20' ) start [2025-01-13 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237856', 'tblTempVendorCDR_20' ) end [2025-01-13 08:55:17] Production.INFO: ProcessCDR(1,14237856,1,1,2) [2025-01-13 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237856', 'tblTempUsageDetail_20' ) start [2025-01-13 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237856', 'tblTempUsageDetail_20' ) end [2025-01-13 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:55:22] Production.INFO: ==16321== Releasing lock... [2025-01-13 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:55:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:56:05 [end_date_ymd] => 2025-01-13 08:56:05 [RateCDR] => 1 ) [2025-01-13 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 05:56:05' and `end` < '2025-01-13 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 08:56:18] Production.INFO: count ==798 [2025-01-13 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:56:05 - End Time 2025-01-13 08:56:05 [2025-01-13 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237861', 'tblTempUsageDetail_20' ) start [2025-01-13 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237861', 'tblTempUsageDetail_20' ) end [2025-01-13 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237861', 'tblTempVendorCDR_20' ) start [2025-01-13 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237861', 'tblTempVendorCDR_20' ) end [2025-01-13 08:56:18] Production.INFO: ProcessCDR(1,14237861,1,1,2) [2025-01-13 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237861', 'tblTempUsageDetail_20' ) start [2025-01-13 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237861', 'tblTempUsageDetail_20' ) end [2025-01-13 08:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:56:22] Production.INFO: ==16396== Releasing lock... [2025-01-13 08:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:56:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-13 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:57:05 [end_date_ymd] => 2025-01-13 08:57:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:57:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:57:17] Production.INFO: count ==812 [2025-01-13 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-13 05:57:05 - End Time 2025-01-13 08:57:05 [2025-01-13 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237866', 'tblTempUsageDetail_20' ) start [2025-01-13 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237866', 'tblTempUsageDetail_20' ) end [2025-01-13 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237866', 'tblTempVendorCDR_20' ) start [2025-01-13 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237866', 'tblTempVendorCDR_20' ) end [2025-01-13 08:57:18] Production.INFO: ProcessCDR(1,14237866,1,1,2) [2025-01-13 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237866', 'tblTempUsageDetail_20' ) start [2025-01-13 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237866', 'tblTempUsageDetail_20' ) end [2025-01-13 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:57:23] Production.INFO: ==16465== Releasing lock... [2025-01-13 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:57:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-13 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:58:05 [end_date_ymd] => 2025-01-13 08:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:58:19] Production.INFO: count ==829 [2025-01-13 08:58:20] Production.ERROR: pbx CDR StartTime 2025-01-13 05:58:05 - End Time 2025-01-13 08:58:05 [2025-01-13 08:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237871', 'tblTempUsageDetail_20' ) start [2025-01-13 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237871', 'tblTempUsageDetail_20' ) end [2025-01-13 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237871', 'tblTempVendorCDR_20' ) start [2025-01-13 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237871', 'tblTempVendorCDR_20' ) end [2025-01-13 08:58:20] Production.INFO: ProcessCDR(1,14237871,1,1,2) [2025-01-13 08:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237871', 'tblTempUsageDetail_20' ) start [2025-01-13 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237871', 'tblTempUsageDetail_20' ) end [2025-01-13 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:58:24] Production.INFO: ==16538== Releasing lock... [2025-01-13 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:58:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 05:59:05 [end_date_ymd] => 2025-01-13 08:59:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 05:59:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 08:59:17] Production.INFO: count ==830 [2025-01-13 08:59:17] Production.ERROR: pbx CDR StartTime 2025-01-13 05:59:05 - End Time 2025-01-13 08:59:05 [2025-01-13 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237876', 'tblTempUsageDetail_20' ) start [2025-01-13 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237876', 'tblTempUsageDetail_20' ) end [2025-01-13 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237876', 'tblTempVendorCDR_20' ) start [2025-01-13 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237876', 'tblTempVendorCDR_20' ) end [2025-01-13 08:59:17] Production.INFO: ProcessCDR(1,14237876,1,1,2) [2025-01-13 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237876', 'tblTempUsageDetail_20' ) start [2025-01-13 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237876', 'tblTempUsageDetail_20' ) end [2025-01-13 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 08:59:21] Production.INFO: ==16610== Releasing lock... [2025-01-13 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 08:59:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:00:05 [end_date_ymd] => 2025-01-13 09:00:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:00:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:00:18] Production.INFO: count ==855 [2025-01-13 09:00:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:00:05 - End Time 2025-01-13 09:00:05 [2025-01-13 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237881', 'tblTempUsageDetail_20' ) start [2025-01-13 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237881', 'tblTempUsageDetail_20' ) end [2025-01-13 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237881', 'tblTempVendorCDR_20' ) start [2025-01-13 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237881', 'tblTempVendorCDR_20' ) end [2025-01-13 09:00:18] Production.INFO: ProcessCDR(1,14237881,1,1,2) [2025-01-13 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237881', 'tblTempUsageDetail_20' ) start [2025-01-13 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237881', 'tblTempUsageDetail_20' ) end [2025-01-13 09:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:00:21] Production.INFO: ==16681== Releasing lock... [2025-01-13 09:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:00:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-13 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:01:04 [end_date_ymd] => 2025-01-13 09:01:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:01:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:01:17] Production.INFO: count ==905 [2025-01-13 09:01:17] Production.ERROR: pbx CDR StartTime 2025-01-13 06:01:04 - End Time 2025-01-13 09:01:04 [2025-01-13 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237887', 'tblTempUsageDetail_20' ) start [2025-01-13 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237887', 'tblTempUsageDetail_20' ) end [2025-01-13 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237887', 'tblTempVendorCDR_20' ) start [2025-01-13 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237887', 'tblTempVendorCDR_20' ) end [2025-01-13 09:01:17] Production.INFO: ProcessCDR(1,14237887,1,1,2) [2025-01-13 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237887', 'tblTempUsageDetail_20' ) start [2025-01-13 09:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237887', 'tblTempUsageDetail_20' ) end [2025-01-13 09:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:01:22] Production.INFO: ==16769== Releasing lock... [2025-01-13 09:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:01:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-13 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:02:05 [end_date_ymd] => 2025-01-13 09:02:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:02:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:02:17] Production.INFO: count ==924 [2025-01-13 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:02:05 - End Time 2025-01-13 09:02:05 [2025-01-13 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237892', 'tblTempUsageDetail_20' ) start [2025-01-13 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237892', 'tblTempUsageDetail_20' ) end [2025-01-13 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237892', 'tblTempVendorCDR_20' ) start [2025-01-13 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237892', 'tblTempVendorCDR_20' ) end [2025-01-13 09:02:18] Production.INFO: ProcessCDR(1,14237892,1,1,2) [2025-01-13 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237892', 'tblTempUsageDetail_20' ) start [2025-01-13 09:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237892', 'tblTempUsageDetail_20' ) end [2025-01-13 09:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:02:21] Production.INFO: ==16883== Releasing lock... [2025-01-13 09:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:02:21] Production.INFO: 35 MB #Memory Used# [2025-01-13 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:03:05 [end_date_ymd] => 2025-01-13 09:03:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:03:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:03:17] Production.INFO: count ==945 [2025-01-13 09:03:17] Production.ERROR: pbx CDR StartTime 2025-01-13 06:03:05 - End Time 2025-01-13 09:03:05 [2025-01-13 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237897', 'tblTempUsageDetail_20' ) start [2025-01-13 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237897', 'tblTempUsageDetail_20' ) end [2025-01-13 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237897', 'tblTempVendorCDR_20' ) start [2025-01-13 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237897', 'tblTempVendorCDR_20' ) end [2025-01-13 09:03:17] Production.INFO: ProcessCDR(1,14237897,1,1,2) [2025-01-13 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237897', 'tblTempUsageDetail_20' ) start [2025-01-13 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237897', 'tblTempUsageDetail_20' ) end [2025-01-13 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:03:22] Production.INFO: ==16953== Releasing lock... [2025-01-13 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:03:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-13 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:04:05 [end_date_ymd] => 2025-01-13 09:04:05 [RateCDR] => 1 ) [2025-01-13 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:04:05' and `end` < '2025-01-13 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:04:18] Production.INFO: count ==958 [2025-01-13 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:04:05 - End Time 2025-01-13 09:04:05 [2025-01-13 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237902', 'tblTempUsageDetail_20' ) start [2025-01-13 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237902', 'tblTempUsageDetail_20' ) end [2025-01-13 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237902', 'tblTempVendorCDR_20' ) start [2025-01-13 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237902', 'tblTempVendorCDR_20' ) end [2025-01-13 09:04:18] Production.INFO: ProcessCDR(1,14237902,1,1,2) [2025-01-13 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237902', 'tblTempUsageDetail_20' ) start [2025-01-13 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237902', 'tblTempUsageDetail_20' ) end [2025-01-13 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:04:23] Production.INFO: ==17026== Releasing lock... [2025-01-13 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:04:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-13 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:05:04 [end_date_ymd] => 2025-01-13 09:05:04 [RateCDR] => 1 ) [2025-01-13 09:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:05:04' and `end` < '2025-01-13 09:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:05:17] Production.INFO: count ==1002 [2025-01-13 09:05:17] Production.ERROR: pbx CDR StartTime 2025-01-13 06:05:04 - End Time 2025-01-13 09:05:04 [2025-01-13 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237907', 'tblTempUsageDetail_20' ) start [2025-01-13 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237907', 'tblTempUsageDetail_20' ) end [2025-01-13 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237907', 'tblTempVendorCDR_20' ) start [2025-01-13 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237907', 'tblTempVendorCDR_20' ) end [2025-01-13 09:05:17] Production.INFO: ProcessCDR(1,14237907,1,1,2) [2025-01-13 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237907', 'tblTempUsageDetail_20' ) start [2025-01-13 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237907', 'tblTempUsageDetail_20' ) end [2025-01-13 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:05:21] Production.INFO: ==17096== Releasing lock... [2025-01-13 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:05:21] Production.INFO: 36 MB #Memory Used# [2025-01-13 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:06:05 [end_date_ymd] => 2025-01-13 09:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:06:17] Production.INFO: count ==1024 [2025-01-13 09:06:17] Production.ERROR: pbx CDR StartTime 2025-01-13 06:06:05 - End Time 2025-01-13 09:06:05 [2025-01-13 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237912', 'tblTempUsageDetail_20' ) start [2025-01-13 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237912', 'tblTempUsageDetail_20' ) end [2025-01-13 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237912', 'tblTempVendorCDR_20' ) start [2025-01-13 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237912', 'tblTempVendorCDR_20' ) end [2025-01-13 09:06:17] Production.INFO: ProcessCDR(1,14237912,1,1,2) [2025-01-13 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237912', 'tblTempUsageDetail_20' ) start [2025-01-13 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237912', 'tblTempUsageDetail_20' ) end [2025-01-13 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:06:22] Production.INFO: ==17169== Releasing lock... [2025-01-13 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:06:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-13 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:07:04 [end_date_ymd] => 2025-01-13 09:07:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:07:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:07:17] Production.INFO: count ==1051 [2025-01-13 09:07:17] Production.ERROR: pbx CDR StartTime 2025-01-13 06:07:04 - End Time 2025-01-13 09:07:04 [2025-01-13 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237917', 'tblTempUsageDetail_20' ) start [2025-01-13 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237917', 'tblTempUsageDetail_20' ) end [2025-01-13 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237917', 'tblTempVendorCDR_20' ) start [2025-01-13 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237917', 'tblTempVendorCDR_20' ) end [2025-01-13 09:07:17] Production.INFO: ProcessCDR(1,14237917,1,1,2) [2025-01-13 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237917', 'tblTempUsageDetail_20' ) start [2025-01-13 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237917', 'tblTempUsageDetail_20' ) end [2025-01-13 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:07:22] Production.INFO: ==17245== Releasing lock... [2025-01-13 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:07:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-13 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:08:05 [end_date_ymd] => 2025-01-13 09:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:08:17] Production.INFO: count ==1073 [2025-01-13 09:08:17] Production.ERROR: pbx CDR StartTime 2025-01-13 06:08:05 - End Time 2025-01-13 09:08:05 [2025-01-13 09:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237922', 'tblTempUsageDetail_20' ) start [2025-01-13 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237922', 'tblTempUsageDetail_20' ) end [2025-01-13 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237922', 'tblTempVendorCDR_20' ) start [2025-01-13 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237922', 'tblTempVendorCDR_20' ) end [2025-01-13 09:08:18] Production.INFO: ProcessCDR(1,14237922,1,1,2) [2025-01-13 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237922', 'tblTempUsageDetail_20' ) start [2025-01-13 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237922', 'tblTempUsageDetail_20' ) end [2025-01-13 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:08:22] Production.INFO: ==17317== Releasing lock... [2025-01-13 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:08:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-13 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:09:05 [end_date_ymd] => 2025-01-13 09:09:05 [RateCDR] => 1 ) [2025-01-13 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:09:05' and `end` < '2025-01-13 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:09:18] Production.INFO: count ==1080 [2025-01-13 09:09:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:09:05 - End Time 2025-01-13 09:09:05 [2025-01-13 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237927', 'tblTempUsageDetail_20' ) start [2025-01-13 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237927', 'tblTempUsageDetail_20' ) end [2025-01-13 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237927', 'tblTempVendorCDR_20' ) start [2025-01-13 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237927', 'tblTempVendorCDR_20' ) end [2025-01-13 09:09:18] Production.INFO: ProcessCDR(1,14237927,1,1,2) [2025-01-13 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237927', 'tblTempUsageDetail_20' ) start [2025-01-13 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237927', 'tblTempUsageDetail_20' ) end [2025-01-13 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:09:23] Production.INFO: ==17389== Releasing lock... [2025-01-13 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:09:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-13 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:10:06 [end_date_ymd] => 2025-01-13 09:10:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:10:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:10:19] Production.INFO: count ==1095 [2025-01-13 09:10:19] Production.ERROR: pbx CDR StartTime 2025-01-13 06:10:06 - End Time 2025-01-13 09:10:06 [2025-01-13 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237933', 'tblTempUsageDetail_20' ) start [2025-01-13 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237933', 'tblTempUsageDetail_20' ) end [2025-01-13 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237933', 'tblTempVendorCDR_20' ) start [2025-01-13 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237933', 'tblTempVendorCDR_20' ) end [2025-01-13 09:10:19] Production.INFO: ProcessCDR(1,14237933,1,1,2) [2025-01-13 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237933', 'tblTempUsageDetail_20' ) start [2025-01-13 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237933', 'tblTempUsageDetail_20' ) end [2025-01-13 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:10:24] Production.INFO: ==17460== Releasing lock... [2025-01-13 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:10:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-13 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:11:05 [end_date_ymd] => 2025-01-13 09:11:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:11:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:11:18] Production.INFO: count ==1160 [2025-01-13 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:11:05 - End Time 2025-01-13 09:11:05 [2025-01-13 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237938', 'tblTempUsageDetail_20' ) start [2025-01-13 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237938', 'tblTempUsageDetail_20' ) end [2025-01-13 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237938', 'tblTempVendorCDR_20' ) start [2025-01-13 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237938', 'tblTempVendorCDR_20' ) end [2025-01-13 09:11:18] Production.INFO: ProcessCDR(1,14237938,1,1,2) [2025-01-13 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237938', 'tblTempUsageDetail_20' ) start [2025-01-13 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237938', 'tblTempUsageDetail_20' ) end [2025-01-13 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:11:23] Production.INFO: ==17535== Releasing lock... [2025-01-13 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:11:23] Production.INFO: 37 MB #Memory Used# [2025-01-13 09:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:12:04 [end_date_ymd] => 2025-01-13 09:12:04 [RateCDR] => 1 ) [2025-01-13 09:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:12:04' and `end` < '2025-01-13 09:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:12:17] Production.INFO: count ==1179 [2025-01-13 09:12:17] Production.ERROR: pbx CDR StartTime 2025-01-13 06:12:04 - End Time 2025-01-13 09:12:04 [2025-01-13 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237943', 'tblTempUsageDetail_20' ) start [2025-01-13 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237943', 'tblTempUsageDetail_20' ) end [2025-01-13 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237943', 'tblTempVendorCDR_20' ) start [2025-01-13 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237943', 'tblTempVendorCDR_20' ) end [2025-01-13 09:12:17] Production.INFO: ProcessCDR(1,14237943,1,1,2) [2025-01-13 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237943', 'tblTempUsageDetail_20' ) start [2025-01-13 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237943', 'tblTempUsageDetail_20' ) end [2025-01-13 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:12:22] Production.INFO: ==17607== Releasing lock... [2025-01-13 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:12:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-13 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:13:05 [end_date_ymd] => 2025-01-13 09:13:05 [RateCDR] => 1 ) [2025-01-13 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:13:05' and `end` < '2025-01-13 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:13:18] Production.INFO: count ==1190 [2025-01-13 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:13:05 - End Time 2025-01-13 09:13:05 [2025-01-13 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237948', 'tblTempUsageDetail_20' ) start [2025-01-13 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237948', 'tblTempUsageDetail_20' ) end [2025-01-13 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237948', 'tblTempVendorCDR_20' ) start [2025-01-13 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237948', 'tblTempVendorCDR_20' ) end [2025-01-13 09:13:18] Production.INFO: ProcessCDR(1,14237948,1,1,2) [2025-01-13 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237948', 'tblTempUsageDetail_20' ) start [2025-01-13 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237948', 'tblTempUsageDetail_20' ) end [2025-01-13 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:13:23] Production.INFO: ==17682== Releasing lock... [2025-01-13 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:13:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-13 09:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:14:04 [end_date_ymd] => 2025-01-13 09:14:04 [RateCDR] => 1 ) [2025-01-13 09:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:14:04' and `end` < '2025-01-13 09:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:14:17] Production.INFO: count ==1217 [2025-01-13 09:14:17] Production.ERROR: pbx CDR StartTime 2025-01-13 06:14:04 - End Time 2025-01-13 09:14:04 [2025-01-13 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237953', 'tblTempUsageDetail_20' ) start [2025-01-13 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237953', 'tblTempUsageDetail_20' ) end [2025-01-13 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237953', 'tblTempVendorCDR_20' ) start [2025-01-13 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237953', 'tblTempVendorCDR_20' ) end [2025-01-13 09:14:17] Production.INFO: ProcessCDR(1,14237953,1,1,2) [2025-01-13 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237953', 'tblTempUsageDetail_20' ) start [2025-01-13 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237953', 'tblTempUsageDetail_20' ) end [2025-01-13 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:14:22] Production.INFO: ==17763== Releasing lock... [2025-01-13 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:14:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-13 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:15:05 [end_date_ymd] => 2025-01-13 09:15:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:15:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:15:20] Production.INFO: count ==1249 [2025-01-13 09:15:20] Production.ERROR: pbx CDR StartTime 2025-01-13 06:15:05 - End Time 2025-01-13 09:15:05 [2025-01-13 09:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237958', 'tblTempUsageDetail_20' ) start [2025-01-13 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237958', 'tblTempUsageDetail_20' ) end [2025-01-13 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237958', 'tblTempVendorCDR_20' ) start [2025-01-13 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237958', 'tblTempVendorCDR_20' ) end [2025-01-13 09:15:20] Production.INFO: ProcessCDR(1,14237958,1,1,2) [2025-01-13 09:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237958', 'tblTempUsageDetail_20' ) start [2025-01-13 09:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237958', 'tblTempUsageDetail_20' ) end [2025-01-13 09:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:15:25] Production.INFO: ==17838== Releasing lock... [2025-01-13 09:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:15:25] Production.INFO: 37.75 MB #Memory Used# [2025-01-13 09:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:16:04 [end_date_ymd] => 2025-01-13 09:16:04 [RateCDR] => 1 ) [2025-01-13 09:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:16:04' and `end` < '2025-01-13 09:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:16:19] Production.INFO: count ==1267 [2025-01-13 09:16:19] Production.ERROR: pbx CDR StartTime 2025-01-13 06:16:04 - End Time 2025-01-13 09:16:04 [2025-01-13 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237963', 'tblTempUsageDetail_20' ) start [2025-01-13 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237963', 'tblTempUsageDetail_20' ) end [2025-01-13 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237963', 'tblTempVendorCDR_20' ) start [2025-01-13 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237963', 'tblTempVendorCDR_20' ) end [2025-01-13 09:16:19] Production.INFO: ProcessCDR(1,14237963,1,1,2) [2025-01-13 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237963', 'tblTempUsageDetail_20' ) start [2025-01-13 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237963', 'tblTempUsageDetail_20' ) end [2025-01-13 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:16:24] Production.INFO: ==17911== Releasing lock... [2025-01-13 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:16:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-13 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:17:05 [end_date_ymd] => 2025-01-13 09:17:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:17:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:17:18] Production.INFO: count ==1292 [2025-01-13 09:17:19] Production.ERROR: pbx CDR StartTime 2025-01-13 06:17:05 - End Time 2025-01-13 09:17:05 [2025-01-13 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237968', 'tblTempUsageDetail_20' ) start [2025-01-13 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237968', 'tblTempUsageDetail_20' ) end [2025-01-13 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237968', 'tblTempVendorCDR_20' ) start [2025-01-13 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237968', 'tblTempVendorCDR_20' ) end [2025-01-13 09:17:19] Production.INFO: ProcessCDR(1,14237968,1,1,2) [2025-01-13 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237968', 'tblTempUsageDetail_20' ) start [2025-01-13 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237968', 'tblTempUsageDetail_20' ) end [2025-01-13 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:17:24] Production.INFO: ==17984== Releasing lock... [2025-01-13 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:17:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-13 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:18:05 [end_date_ymd] => 2025-01-13 09:18:05 [RateCDR] => 1 ) [2025-01-13 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:18:05' and `end` < '2025-01-13 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:18:17] Production.INFO: count ==1311 [2025-01-13 09:18:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:18:05 - End Time 2025-01-13 09:18:05 [2025-01-13 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237973', 'tblTempUsageDetail_20' ) start [2025-01-13 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237973', 'tblTempUsageDetail_20' ) end [2025-01-13 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237973', 'tblTempVendorCDR_20' ) start [2025-01-13 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237973', 'tblTempVendorCDR_20' ) end [2025-01-13 09:18:18] Production.INFO: ProcessCDR(1,14237973,1,1,2) [2025-01-13 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237973', 'tblTempUsageDetail_20' ) start [2025-01-13 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237973', 'tblTempUsageDetail_20' ) end [2025-01-13 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:18:22] Production.INFO: ==18093== Releasing lock... [2025-01-13 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:18:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-13 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:19:05 [end_date_ymd] => 2025-01-13 09:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:19:17] Production.INFO: count ==1377 [2025-01-13 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:19:05 - End Time 2025-01-13 09:19:05 [2025-01-13 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237978', 'tblTempUsageDetail_20' ) start [2025-01-13 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237978', 'tblTempUsageDetail_20' ) end [2025-01-13 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237978', 'tblTempVendorCDR_20' ) start [2025-01-13 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237978', 'tblTempVendorCDR_20' ) end [2025-01-13 09:19:18] Production.INFO: ProcessCDR(1,14237978,1,1,2) [2025-01-13 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237978', 'tblTempUsageDetail_20' ) start [2025-01-13 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237978', 'tblTempUsageDetail_20' ) end [2025-01-13 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:19:23] Production.INFO: ==18163== Releasing lock... [2025-01-13 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:19:23] Production.INFO: 39 MB #Memory Used# [2025-01-13 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:20:06 [end_date_ymd] => 2025-01-13 09:20:06 [RateCDR] => 1 ) [2025-01-13 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:20:06' and `end` < '2025-01-13 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:20:19] Production.INFO: count ==1399 [2025-01-13 09:20:20] Production.ERROR: pbx CDR StartTime 2025-01-13 06:20:06 - End Time 2025-01-13 09:20:06 [2025-01-13 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237984', 'tblTempUsageDetail_20' ) start [2025-01-13 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237984', 'tblTempUsageDetail_20' ) end [2025-01-13 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237984', 'tblTempVendorCDR_20' ) start [2025-01-13 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237984', 'tblTempVendorCDR_20' ) end [2025-01-13 09:20:20] Production.INFO: ProcessCDR(1,14237984,1,1,2) [2025-01-13 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237984', 'tblTempUsageDetail_20' ) start [2025-01-13 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237984', 'tblTempUsageDetail_20' ) end [2025-01-13 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:20:25] Production.INFO: ==18241== Releasing lock... [2025-01-13 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:20:25] Production.INFO: 38.5 MB #Memory Used# [2025-01-13 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:21:05 [end_date_ymd] => 2025-01-13 09:21:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:21:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:21:20] Production.INFO: count ==1494 [2025-01-13 09:21:21] Production.ERROR: pbx CDR StartTime 2025-01-13 06:21:05 - End Time 2025-01-13 09:21:05 [2025-01-13 09:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237989', 'tblTempUsageDetail_20' ) start [2025-01-13 09:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237989', 'tblTempUsageDetail_20' ) end [2025-01-13 09:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237989', 'tblTempVendorCDR_20' ) start [2025-01-13 09:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237989', 'tblTempVendorCDR_20' ) end [2025-01-13 09:21:21] Production.INFO: ProcessCDR(1,14237989,1,1,2) [2025-01-13 09:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237989', 'tblTempUsageDetail_20' ) start [2025-01-13 09:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237989', 'tblTempUsageDetail_20' ) end [2025-01-13 09:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:21:26] Production.INFO: ==18314== Releasing lock... [2025-01-13 09:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:21:26] Production.INFO: 39.25 MB #Memory Used# [2025-01-13 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:22:05 [end_date_ymd] => 2025-01-13 09:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:22:27] Production.INFO: count ==1519 [2025-01-13 09:22:27] Production.ERROR: pbx CDR StartTime 2025-01-13 06:22:05 - End Time 2025-01-13 09:22:05 [2025-01-13 09:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237994', 'tblTempUsageDetail_20' ) start [2025-01-13 09:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237994', 'tblTempUsageDetail_20' ) end [2025-01-13 09:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237994', 'tblTempVendorCDR_20' ) start [2025-01-13 09:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237994', 'tblTempVendorCDR_20' ) end [2025-01-13 09:22:27] Production.INFO: ProcessCDR(1,14237994,1,1,2) [2025-01-13 09:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237994', 'tblTempUsageDetail_20' ) start [2025-01-13 09:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237994', 'tblTempUsageDetail_20' ) end [2025-01-13 09:22:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:22:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:22:32] Production.INFO: ==18386== Releasing lock... [2025-01-13 09:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:22:32] Production.INFO: 39.5 MB #Memory Used# [2025-01-13 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:23:05 [end_date_ymd] => 2025-01-13 09:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:23:31] Production.INFO: count ==1573 [2025-01-13 09:23:31] Production.ERROR: pbx CDR StartTime 2025-01-13 06:23:05 - End Time 2025-01-13 09:23:05 [2025-01-13 09:23:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237999', 'tblTempUsageDetail_20' ) start [2025-01-13 09:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14237999', 'tblTempUsageDetail_20' ) end [2025-01-13 09:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237999', 'tblTempVendorCDR_20' ) start [2025-01-13 09:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14237999', 'tblTempVendorCDR_20' ) end [2025-01-13 09:23:31] Production.INFO: ProcessCDR(1,14237999,1,1,2) [2025-01-13 09:23:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14237999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:23:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14237999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:23:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14237999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:23:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14237999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237999', 'tblTempUsageDetail_20' ) start [2025-01-13 09:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14237999', 'tblTempUsageDetail_20' ) end [2025-01-13 09:23:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:23:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:23:36] Production.INFO: ==18456== Releasing lock... [2025-01-13 09:23:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:23:36] Production.INFO: 40 MB #Memory Used# [2025-01-13 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:24:05 [end_date_ymd] => 2025-01-13 09:24:05 [RateCDR] => 1 ) [2025-01-13 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:24:05' and `end` < '2025-01-13 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:24:27] Production.INFO: count ==1619 [2025-01-13 09:24:27] Production.ERROR: pbx CDR StartTime 2025-01-13 06:24:05 - End Time 2025-01-13 09:24:05 [2025-01-13 09:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238004', 'tblTempUsageDetail_20' ) start [2025-01-13 09:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238004', 'tblTempUsageDetail_20' ) end [2025-01-13 09:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238004', 'tblTempVendorCDR_20' ) start [2025-01-13 09:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238004', 'tblTempVendorCDR_20' ) end [2025-01-13 09:24:27] Production.INFO: ProcessCDR(1,14238004,1,1,2) [2025-01-13 09:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238004', 'tblTempUsageDetail_20' ) start [2025-01-13 09:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238004', 'tblTempUsageDetail_20' ) end [2025-01-13 09:24:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:24:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:24:32] Production.INFO: ==18527== Releasing lock... [2025-01-13 09:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:24:32] Production.INFO: 40.25 MB #Memory Used# [2025-01-13 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:25:05 [end_date_ymd] => 2025-01-13 09:25:05 [RateCDR] => 1 ) [2025-01-13 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:25:05' and `end` < '2025-01-13 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:25:19] Production.INFO: count ==1643 [2025-01-13 09:25:19] Production.ERROR: pbx CDR StartTime 2025-01-13 06:25:05 - End Time 2025-01-13 09:25:05 [2025-01-13 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238009', 'tblTempUsageDetail_20' ) start [2025-01-13 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238009', 'tblTempUsageDetail_20' ) end [2025-01-13 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238009', 'tblTempVendorCDR_20' ) start [2025-01-13 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238009', 'tblTempVendorCDR_20' ) end [2025-01-13 09:25:19] Production.INFO: ProcessCDR(1,14238009,1,1,2) [2025-01-13 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238009', 'tblTempUsageDetail_20' ) start [2025-01-13 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238009', 'tblTempUsageDetail_20' ) end [2025-01-13 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:25:24] Production.INFO: ==18598== Releasing lock... [2025-01-13 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:25:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-13 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:26:05 [end_date_ymd] => 2025-01-13 09:26:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:26:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:26:18] Production.INFO: count ==1664 [2025-01-13 09:26:19] Production.ERROR: pbx CDR StartTime 2025-01-13 06:26:05 - End Time 2025-01-13 09:26:05 [2025-01-13 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238014', 'tblTempUsageDetail_20' ) start [2025-01-13 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238014', 'tblTempUsageDetail_20' ) end [2025-01-13 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238014', 'tblTempVendorCDR_20' ) start [2025-01-13 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238014', 'tblTempVendorCDR_20' ) end [2025-01-13 09:26:19] Production.INFO: ProcessCDR(1,14238014,1,1,2) [2025-01-13 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238014', 'tblTempUsageDetail_20' ) start [2025-01-13 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238014', 'tblTempUsageDetail_20' ) end [2025-01-13 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:26:23] Production.INFO: ==18669== Releasing lock... [2025-01-13 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:26:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-13 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:27:04 [end_date_ymd] => 2025-01-13 09:27:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:27:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:27:21] Production.INFO: count ==1709 [2025-01-13 09:27:21] Production.ERROR: pbx CDR StartTime 2025-01-13 06:27:04 - End Time 2025-01-13 09:27:04 [2025-01-13 09:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238019', 'tblTempUsageDetail_20' ) start [2025-01-13 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238019', 'tblTempUsageDetail_20' ) end [2025-01-13 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238019', 'tblTempVendorCDR_20' ) start [2025-01-13 09:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238019', 'tblTempVendorCDR_20' ) end [2025-01-13 09:27:21] Production.INFO: ProcessCDR(1,14238019,1,1,2) [2025-01-13 09:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238019', 'tblTempUsageDetail_20' ) start [2025-01-13 09:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238019', 'tblTempUsageDetail_20' ) end [2025-01-13 09:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:27:26] Production.INFO: ==18746== Releasing lock... [2025-01-13 09:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:27:26] Production.INFO: 41 MB #Memory Used# [2025-01-13 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:28:05 [end_date_ymd] => 2025-01-13 09:28:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:28:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:28:21] Production.INFO: count ==1747 [2025-01-13 09:28:21] Production.ERROR: pbx CDR StartTime 2025-01-13 06:28:05 - End Time 2025-01-13 09:28:05 [2025-01-13 09:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238024', 'tblTempUsageDetail_20' ) start [2025-01-13 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238024', 'tblTempUsageDetail_20' ) end [2025-01-13 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238024', 'tblTempVendorCDR_20' ) start [2025-01-13 09:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238024', 'tblTempVendorCDR_20' ) end [2025-01-13 09:28:21] Production.INFO: ProcessCDR(1,14238024,1,1,2) [2025-01-13 09:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238024', 'tblTempUsageDetail_20' ) start [2025-01-13 09:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238024', 'tblTempUsageDetail_20' ) end [2025-01-13 09:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:28:26] Production.INFO: ==18820== Releasing lock... [2025-01-13 09:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:28:26] Production.INFO: 41.25 MB #Memory Used# [2025-01-13 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:29:04 [end_date_ymd] => 2025-01-13 09:29:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:29:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:29:19] Production.INFO: count ==1771 [2025-01-13 09:29:20] Production.ERROR: pbx CDR StartTime 2025-01-13 06:29:04 - End Time 2025-01-13 09:29:04 [2025-01-13 09:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238029', 'tblTempUsageDetail_20' ) start [2025-01-13 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238029', 'tblTempUsageDetail_20' ) end [2025-01-13 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238029', 'tblTempVendorCDR_20' ) start [2025-01-13 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238029', 'tblTempVendorCDR_20' ) end [2025-01-13 09:29:20] Production.INFO: ProcessCDR(1,14238029,1,1,2) [2025-01-13 09:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238029', 'tblTempUsageDetail_20' ) start [2025-01-13 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238029', 'tblTempUsageDetail_20' ) end [2025-01-13 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:29:24] Production.INFO: ==18889== Releasing lock... [2025-01-13 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:29:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-13 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:30:06 [end_date_ymd] => 2025-01-13 09:30:06 [RateCDR] => 1 ) [2025-01-13 09: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` >= '2025-01-13 06:30:06' and `end` < '2025-01-13 09: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 ,'') [2025-01-13 09:30:23] Production.INFO: count ==1775 [2025-01-13 09:30:23] Production.ERROR: pbx CDR StartTime 2025-01-13 06:30:06 - End Time 2025-01-13 09:30:06 [2025-01-13 09:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238034', 'tblTempUsageDetail_20' ) start [2025-01-13 09:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238034', 'tblTempUsageDetail_20' ) end [2025-01-13 09:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238034', 'tblTempVendorCDR_20' ) start [2025-01-13 09:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238034', 'tblTempVendorCDR_20' ) end [2025-01-13 09:30:24] Production.INFO: ProcessCDR(1,14238034,1,1,2) [2025-01-13 09:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238034', 'tblTempUsageDetail_20' ) start [2025-01-13 09:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238034', 'tblTempUsageDetail_20' ) end [2025-01-13 09:30:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:30:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:30:28] Production.INFO: ==18962== Releasing lock... [2025-01-13 09:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:30:28] Production.INFO: 41.5 MB #Memory Used# [2025-01-13 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:31:04 [end_date_ymd] => 2025-01-13 09:31:04 [RateCDR] => 1 ) [2025-01-13 09:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:31:04' and `end` < '2025-01-13 09:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:31:17] Production.INFO: count ==1891 [2025-01-13 09:31:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:31:04 - End Time 2025-01-13 09:31:04 [2025-01-13 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238040', 'tblTempUsageDetail_20' ) start [2025-01-13 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238040', 'tblTempUsageDetail_20' ) end [2025-01-13 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238040', 'tblTempVendorCDR_20' ) start [2025-01-13 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238040', 'tblTempVendorCDR_20' ) end [2025-01-13 09:31:18] Production.INFO: ProcessCDR(1,14238040,1,1,2) [2025-01-13 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238040', 'tblTempUsageDetail_20' ) start [2025-01-13 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238040', 'tblTempUsageDetail_20' ) end [2025-01-13 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:31:23] Production.INFO: ==19033== Releasing lock... [2025-01-13 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:31:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-13 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:32:05 [end_date_ymd] => 2025-01-13 09:32:05 [RateCDR] => 1 ) [2025-01-13 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:32:05' and `end` < '2025-01-13 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:32:19] Production.INFO: count ==1900 [2025-01-13 09:32:20] Production.ERROR: pbx CDR StartTime 2025-01-13 06:32:05 - End Time 2025-01-13 09:32:05 [2025-01-13 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238045', 'tblTempUsageDetail_20' ) start [2025-01-13 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238045', 'tblTempUsageDetail_20' ) end [2025-01-13 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238045', 'tblTempVendorCDR_20' ) start [2025-01-13 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238045', 'tblTempVendorCDR_20' ) end [2025-01-13 09:32:20] Production.INFO: ProcessCDR(1,14238045,1,1,2) [2025-01-13 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238045', 'tblTempUsageDetail_20' ) start [2025-01-13 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238045', 'tblTempUsageDetail_20' ) end [2025-01-13 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:32:25] Production.INFO: ==19103== Releasing lock... [2025-01-13 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:32:25] Production.INFO: 42.5 MB #Memory Used# [2025-01-13 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:33:05 [end_date_ymd] => 2025-01-13 09:33:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:33:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:33:28] Production.INFO: count ==1914 [2025-01-13 09:33:28] Production.ERROR: pbx CDR StartTime 2025-01-13 06:33:05 - End Time 2025-01-13 09:33:05 [2025-01-13 09:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238050', 'tblTempUsageDetail_20' ) start [2025-01-13 09:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238050', 'tblTempUsageDetail_20' ) end [2025-01-13 09:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238050', 'tblTempVendorCDR_20' ) start [2025-01-13 09:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238050', 'tblTempVendorCDR_20' ) end [2025-01-13 09:33:28] Production.INFO: ProcessCDR(1,14238050,1,1,2) [2025-01-13 09:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238050', 'tblTempUsageDetail_20' ) start [2025-01-13 09:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238050', 'tblTempUsageDetail_20' ) end [2025-01-13 09:33:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:33:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:33:33] Production.INFO: ==19213== Releasing lock... [2025-01-13 09:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:33:33] Production.INFO: 42.5 MB #Memory Used# [2025-01-13 09:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:34:04 [end_date_ymd] => 2025-01-13 09:34:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:34:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:34:21] Production.INFO: count ==1929 [2025-01-13 09:34:22] Production.ERROR: pbx CDR StartTime 2025-01-13 06:34:04 - End Time 2025-01-13 09:34:04 [2025-01-13 09:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238055', 'tblTempUsageDetail_20' ) start [2025-01-13 09:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238055', 'tblTempUsageDetail_20' ) end [2025-01-13 09:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238055', 'tblTempVendorCDR_20' ) start [2025-01-13 09:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238055', 'tblTempVendorCDR_20' ) end [2025-01-13 09:34:22] Production.INFO: ProcessCDR(1,14238055,1,1,2) [2025-01-13 09:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238055', 'tblTempUsageDetail_20' ) start [2025-01-13 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238055', 'tblTempUsageDetail_20' ) end [2025-01-13 09:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:34:25] Production.INFO: ==19286== Releasing lock... [2025-01-13 09:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:34:25] Production.INFO: 42.5 MB #Memory Used# [2025-01-13 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:35:05 [end_date_ymd] => 2025-01-13 09:35:05 [RateCDR] => 1 ) [2025-01-13 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:35:05' and `end` < '2025-01-13 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:35:18] Production.INFO: count ==1955 [2025-01-13 09:35:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:35:05 - End Time 2025-01-13 09:35:05 [2025-01-13 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238060', 'tblTempUsageDetail_20' ) start [2025-01-13 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238060', 'tblTempUsageDetail_20' ) end [2025-01-13 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238060', 'tblTempVendorCDR_20' ) start [2025-01-13 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238060', 'tblTempVendorCDR_20' ) end [2025-01-13 09:35:19] Production.INFO: ProcessCDR(1,14238060,1,1,2) [2025-01-13 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238060', 'tblTempUsageDetail_20' ) start [2025-01-13 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238060', 'tblTempUsageDetail_20' ) end [2025-01-13 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:35:23] Production.INFO: ==19355== Releasing lock... [2025-01-13 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:35:23] Production.INFO: 43 MB #Memory Used# [2025-01-13 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:36:04 [end_date_ymd] => 2025-01-13 09:36:04 [RateCDR] => 1 ) [2025-01-13 09:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:36:04' and `end` < '2025-01-13 09:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:36:19] Production.INFO: count ==1965 [2025-01-13 09:36:20] Production.ERROR: pbx CDR StartTime 2025-01-13 06:36:04 - End Time 2025-01-13 09:36:04 [2025-01-13 09:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238065', 'tblTempUsageDetail_20' ) start [2025-01-13 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238065', 'tblTempUsageDetail_20' ) end [2025-01-13 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238065', 'tblTempVendorCDR_20' ) start [2025-01-13 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238065', 'tblTempVendorCDR_20' ) end [2025-01-13 09:36:20] Production.INFO: ProcessCDR(1,14238065,1,1,2) [2025-01-13 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238065', 'tblTempUsageDetail_20' ) start [2025-01-13 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238065', 'tblTempUsageDetail_20' ) end [2025-01-13 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:36:25] Production.INFO: ==19425== Releasing lock... [2025-01-13 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:36:25] Production.INFO: 42.75 MB #Memory Used# [2025-01-13 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:37:05 [end_date_ymd] => 2025-01-13 09:37:05 [RateCDR] => 1 ) [2025-01-13 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:37:05' and `end` < '2025-01-13 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:37:21] Production.INFO: count ==1975 [2025-01-13 09:37:22] Production.ERROR: pbx CDR StartTime 2025-01-13 06:37:05 - End Time 2025-01-13 09:37:05 [2025-01-13 09:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238070', 'tblTempUsageDetail_20' ) start [2025-01-13 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238070', 'tblTempUsageDetail_20' ) end [2025-01-13 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238070', 'tblTempVendorCDR_20' ) start [2025-01-13 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238070', 'tblTempVendorCDR_20' ) end [2025-01-13 09:37:22] Production.INFO: ProcessCDR(1,14238070,1,1,2) [2025-01-13 09:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238070', 'tblTempUsageDetail_20' ) start [2025-01-13 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238070', 'tblTempUsageDetail_20' ) end [2025-01-13 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:37:25] Production.INFO: ==19496== Releasing lock... [2025-01-13 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:37:25] Production.INFO: 42.75 MB #Memory Used# [2025-01-13 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:38:05 [end_date_ymd] => 2025-01-13 09:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:38:19] Production.INFO: count ==2022 [2025-01-13 09:38:19] Production.ERROR: pbx CDR StartTime 2025-01-13 06:38:05 - End Time 2025-01-13 09:38:05 [2025-01-13 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238075', 'tblTempUsageDetail_20' ) start [2025-01-13 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238075', 'tblTempUsageDetail_20' ) end [2025-01-13 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238075', 'tblTempVendorCDR_20' ) start [2025-01-13 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238075', 'tblTempVendorCDR_20' ) end [2025-01-13 09:38:19] Production.INFO: ProcessCDR(1,14238075,1,1,2) [2025-01-13 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238075', 'tblTempUsageDetail_20' ) start [2025-01-13 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238075', 'tblTempUsageDetail_20' ) end [2025-01-13 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:38:24] Production.INFO: ==19568== Releasing lock... [2025-01-13 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:38:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-13 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:39:05 [end_date_ymd] => 2025-01-13 09:39:05 [RateCDR] => 1 ) [2025-01-13 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:39:05' and `end` < '2025-01-13 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:39:21] Production.INFO: count ==2039 [2025-01-13 09:39:21] Production.ERROR: pbx CDR StartTime 2025-01-13 06:39:05 - End Time 2025-01-13 09:39:05 [2025-01-13 09:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238080', 'tblTempUsageDetail_20' ) start [2025-01-13 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238080', 'tblTempUsageDetail_20' ) end [2025-01-13 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238080', 'tblTempVendorCDR_20' ) start [2025-01-13 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238080', 'tblTempVendorCDR_20' ) end [2025-01-13 09:39:22] Production.INFO: ProcessCDR(1,14238080,1,1,2) [2025-01-13 09:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238080', 'tblTempUsageDetail_20' ) start [2025-01-13 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238080', 'tblTempUsageDetail_20' ) end [2025-01-13 09:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:39:26] Production.INFO: ==19639== Releasing lock... [2025-01-13 09:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:39:26] Production.INFO: 43.25 MB #Memory Used# [2025-01-13 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:40:06 [end_date_ymd] => 2025-01-13 09:40:06 [RateCDR] => 1 ) [2025-01-13 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:40:06' and `end` < '2025-01-13 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:40:26] Production.INFO: count ==2053 [2025-01-13 09:40:27] Production.ERROR: pbx CDR StartTime 2025-01-13 06:40:06 - End Time 2025-01-13 09:40:06 [2025-01-13 09:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238086', 'tblTempUsageDetail_20' ) start [2025-01-13 09:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238086', 'tblTempUsageDetail_20' ) end [2025-01-13 09:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238086', 'tblTempVendorCDR_20' ) start [2025-01-13 09:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238086', 'tblTempVendorCDR_20' ) end [2025-01-13 09:40:27] Production.INFO: ProcessCDR(1,14238086,1,1,2) [2025-01-13 09:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238086', 'tblTempUsageDetail_20' ) start [2025-01-13 09:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238086', 'tblTempUsageDetail_20' ) end [2025-01-13 09:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:40:32] Production.INFO: ==19714== Releasing lock... [2025-01-13 09:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:40:32] Production.INFO: 43.75 MB #Memory Used# [2025-01-13 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:41:05 [end_date_ymd] => 2025-01-13 09:41:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:41:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:41:17] Production.INFO: count ==2136 [2025-01-13 09:41:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:41:05 - End Time 2025-01-13 09:41:05 [2025-01-13 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238091', 'tblTempUsageDetail_20' ) start [2025-01-13 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238091', 'tblTempUsageDetail_20' ) end [2025-01-13 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238091', 'tblTempVendorCDR_20' ) start [2025-01-13 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238091', 'tblTempVendorCDR_20' ) end [2025-01-13 09:41:18] Production.INFO: ProcessCDR(1,14238091,1,1,2) [2025-01-13 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238091', 'tblTempUsageDetail_20' ) start [2025-01-13 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238091', 'tblTempUsageDetail_20' ) end [2025-01-13 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:41:23] Production.INFO: ==19786== Releasing lock... [2025-01-13 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:41:23] Production.INFO: 44 MB #Memory Used# [2025-01-13 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:42:05 [end_date_ymd] => 2025-01-13 09:42:05 [RateCDR] => 1 ) [2025-01-13 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:42:05' and `end` < '2025-01-13 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:42:18] Production.INFO: count ==2142 [2025-01-13 09:42:19] Production.ERROR: pbx CDR StartTime 2025-01-13 06:42:05 - End Time 2025-01-13 09:42:05 [2025-01-13 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238096', 'tblTempUsageDetail_20' ) start [2025-01-13 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238096', 'tblTempUsageDetail_20' ) end [2025-01-13 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238096', 'tblTempVendorCDR_20' ) start [2025-01-13 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238096', 'tblTempVendorCDR_20' ) end [2025-01-13 09:42:19] Production.INFO: ProcessCDR(1,14238096,1,1,2) [2025-01-13 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238096', 'tblTempUsageDetail_20' ) start [2025-01-13 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238096', 'tblTempUsageDetail_20' ) end [2025-01-13 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:42:24] Production.INFO: ==19857== Releasing lock... [2025-01-13 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:42:24] Production.INFO: 44.25 MB #Memory Used# [2025-01-13 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:43:05 [end_date_ymd] => 2025-01-13 09:43:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:43:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:43:17] Production.INFO: count ==2149 [2025-01-13 09:43:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:43:05 - End Time 2025-01-13 09:43:05 [2025-01-13 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238101', 'tblTempUsageDetail_20' ) start [2025-01-13 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238101', 'tblTempUsageDetail_20' ) end [2025-01-13 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238101', 'tblTempVendorCDR_20' ) start [2025-01-13 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238101', 'tblTempVendorCDR_20' ) end [2025-01-13 09:43:18] Production.INFO: ProcessCDR(1,14238101,1,1,2) [2025-01-13 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238101', 'tblTempUsageDetail_20' ) start [2025-01-13 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238101', 'tblTempUsageDetail_20' ) end [2025-01-13 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:43:23] Production.INFO: ==19927== Releasing lock... [2025-01-13 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:43:23] Production.INFO: 44.25 MB #Memory Used# [2025-01-13 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:44:05 [end_date_ymd] => 2025-01-13 09:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:44:21] Production.INFO: count ==2156 [2025-01-13 09:44:22] Production.ERROR: pbx CDR StartTime 2025-01-13 06:44:05 - End Time 2025-01-13 09:44:05 [2025-01-13 09:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238106', 'tblTempUsageDetail_20' ) start [2025-01-13 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238106', 'tblTempUsageDetail_20' ) end [2025-01-13 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238106', 'tblTempVendorCDR_20' ) start [2025-01-13 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238106', 'tblTempVendorCDR_20' ) end [2025-01-13 09:44:22] Production.INFO: ProcessCDR(1,14238106,1,1,2) [2025-01-13 09:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238106', 'tblTempUsageDetail_20' ) start [2025-01-13 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238106', 'tblTempUsageDetail_20' ) end [2025-01-13 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:44:26] Production.INFO: ==19998== Releasing lock... [2025-01-13 09:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:44:26] Production.INFO: 44.5 MB #Memory Used# [2025-01-13 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:45:04 [end_date_ymd] => 2025-01-13 09:45:04 [RateCDR] => 1 ) [2025-01-13 09:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:45:04' and `end` < '2025-01-13 09:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:45:23] Production.INFO: count ==2173 [2025-01-13 09:45:24] Production.ERROR: pbx CDR StartTime 2025-01-13 06:45:04 - End Time 2025-01-13 09:45:04 [2025-01-13 09:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238111', 'tblTempUsageDetail_20' ) start [2025-01-13 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238111', 'tblTempUsageDetail_20' ) end [2025-01-13 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238111', 'tblTempVendorCDR_20' ) start [2025-01-13 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238111', 'tblTempVendorCDR_20' ) end [2025-01-13 09:45:24] Production.INFO: ProcessCDR(1,14238111,1,1,2) [2025-01-13 09:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238111', 'tblTempUsageDetail_20' ) start [2025-01-13 09:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238111', 'tblTempUsageDetail_20' ) end [2025-01-13 09:45:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:45:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:45:29] Production.INFO: ==20068== Releasing lock... [2025-01-13 09:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:45:29] Production.INFO: 44.25 MB #Memory Used# [2025-01-13 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:46:05 [end_date_ymd] => 2025-01-13 09:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:46:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:46:36] Production.INFO: count ==2207 [2025-01-13 09:46:37] Production.ERROR: pbx CDR StartTime 2025-01-13 06:46:05 - End Time 2025-01-13 09:46:05 [2025-01-13 09:46:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238116', 'tblTempUsageDetail_20' ) start [2025-01-13 09:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238116', 'tblTempUsageDetail_20' ) end [2025-01-13 09:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238116', 'tblTempVendorCDR_20' ) start [2025-01-13 09:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238116', 'tblTempVendorCDR_20' ) end [2025-01-13 09:46:37] Production.INFO: ProcessCDR(1,14238116,1,1,2) [2025-01-13 09:46:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:46:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:46:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:46:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:46:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238116', 'tblTempUsageDetail_20' ) start [2025-01-13 09:46:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238116', 'tblTempUsageDetail_20' ) end [2025-01-13 09:46:42] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:46:42] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:46:42] Production.INFO: ==20138== Releasing lock... [2025-01-13 09:46:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:46:42] Production.INFO: 44.75 MB #Memory Used# [2025-01-13 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:47:05 [end_date_ymd] => 2025-01-13 09:47:05 [RateCDR] => 1 ) [2025-01-13 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:47:05' and `end` < '2025-01-13 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:47:23] Production.INFO: count ==2219 [2025-01-13 09:47:24] Production.ERROR: pbx CDR StartTime 2025-01-13 06:47:05 - End Time 2025-01-13 09:47:05 [2025-01-13 09:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238121', 'tblTempUsageDetail_20' ) start [2025-01-13 09:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238121', 'tblTempUsageDetail_20' ) end [2025-01-13 09:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238121', 'tblTempVendorCDR_20' ) start [2025-01-13 09:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238121', 'tblTempVendorCDR_20' ) end [2025-01-13 09:47:24] Production.INFO: ProcessCDR(1,14238121,1,1,2) [2025-01-13 09:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238121', 'tblTempUsageDetail_20' ) start [2025-01-13 09:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238121', 'tblTempUsageDetail_20' ) end [2025-01-13 09:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:47:29] Production.INFO: ==20208== Releasing lock... [2025-01-13 09:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:47:29] Production.INFO: 45 MB #Memory Used# [2025-01-13 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:48:05 [end_date_ymd] => 2025-01-13 09:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:48:25] Production.INFO: count ==2238 [2025-01-13 09:48:25] Production.ERROR: pbx CDR StartTime 2025-01-13 06:48:05 - End Time 2025-01-13 09:48:05 [2025-01-13 09:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238126', 'tblTempUsageDetail_20' ) start [2025-01-13 09:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238126', 'tblTempUsageDetail_20' ) end [2025-01-13 09:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238126', 'tblTempVendorCDR_20' ) start [2025-01-13 09:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238126', 'tblTempVendorCDR_20' ) end [2025-01-13 09:48:26] Production.INFO: ProcessCDR(1,14238126,1,1,2) [2025-01-13 09:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238126', 'tblTempUsageDetail_20' ) start [2025-01-13 09:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238126', 'tblTempUsageDetail_20' ) end [2025-01-13 09:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:48:30] Production.INFO: ==20286== Releasing lock... [2025-01-13 09:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:48:30] Production.INFO: 44.75 MB #Memory Used# [2025-01-13 09:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:49:04 [end_date_ymd] => 2025-01-13 09:49:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:49:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:49:20] Production.INFO: count ==2249 [2025-01-13 09:49:21] Production.ERROR: pbx CDR StartTime 2025-01-13 06:49:04 - End Time 2025-01-13 09:49:04 [2025-01-13 09:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238131', 'tblTempUsageDetail_20' ) start [2025-01-13 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238131', 'tblTempUsageDetail_20' ) end [2025-01-13 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238131', 'tblTempVendorCDR_20' ) start [2025-01-13 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238131', 'tblTempVendorCDR_20' ) end [2025-01-13 09:49:21] Production.INFO: ProcessCDR(1,14238131,1,1,2) [2025-01-13 09:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238131', 'tblTempUsageDetail_20' ) start [2025-01-13 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238131', 'tblTempUsageDetail_20' ) end [2025-01-13 09:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:49:26] Production.INFO: ==20395== Releasing lock... [2025-01-13 09:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:49:26] Production.INFO: 45 MB #Memory Used# [2025-01-13 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:50:05 [end_date_ymd] => 2025-01-13 09:50:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:50:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:50:18] Production.INFO: count ==2262 [2025-01-13 09:50:19] Production.ERROR: pbx CDR StartTime 2025-01-13 06:50:05 - End Time 2025-01-13 09:50:05 [2025-01-13 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238136', 'tblTempUsageDetail_20' ) start [2025-01-13 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238136', 'tblTempUsageDetail_20' ) end [2025-01-13 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238136', 'tblTempVendorCDR_20' ) start [2025-01-13 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238136', 'tblTempVendorCDR_20' ) end [2025-01-13 09:50:19] Production.INFO: ProcessCDR(1,14238136,1,1,2) [2025-01-13 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238136', 'tblTempUsageDetail_20' ) start [2025-01-13 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238136', 'tblTempUsageDetail_20' ) end [2025-01-13 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:50:24] Production.INFO: ==20468== Releasing lock... [2025-01-13 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:50:24] Production.INFO: 45 MB #Memory Used# [2025-01-13 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:51:05 [end_date_ymd] => 2025-01-13 09:51:05 [RateCDR] => 1 ) [2025-01-13 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:51:05' and `end` < '2025-01-13 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:51:28] Production.INFO: count ==2376 [2025-01-13 09:51:29] Production.ERROR: pbx CDR StartTime 2025-01-13 06:51:05 - End Time 2025-01-13 09:51:05 [2025-01-13 09:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238142', 'tblTempUsageDetail_20' ) start [2025-01-13 09:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238142', 'tblTempUsageDetail_20' ) end [2025-01-13 09:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238142', 'tblTempVendorCDR_20' ) start [2025-01-13 09:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238142', 'tblTempVendorCDR_20' ) end [2025-01-13 09:51:29] Production.INFO: ProcessCDR(1,14238142,1,1,2) [2025-01-13 09:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:51:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238142', 'tblTempUsageDetail_20' ) start [2025-01-13 09:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238142', 'tblTempUsageDetail_20' ) end [2025-01-13 09:51:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:51:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:51:34] Production.INFO: ==20545== Releasing lock... [2025-01-13 09:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:51:34] Production.INFO: 46 MB #Memory Used# [2025-01-13 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:52:05 [end_date_ymd] => 2025-01-13 09:52:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:52:24] Production.INFO: count ==2400 [2025-01-13 09:52:25] Production.ERROR: pbx CDR StartTime 2025-01-13 06:52:05 - End Time 2025-01-13 09:52:05 [2025-01-13 09:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238147', 'tblTempUsageDetail_20' ) start [2025-01-13 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238147', 'tblTempUsageDetail_20' ) end [2025-01-13 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238147', 'tblTempVendorCDR_20' ) start [2025-01-13 09:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238147', 'tblTempVendorCDR_20' ) end [2025-01-13 09:52:25] Production.INFO: ProcessCDR(1,14238147,1,1,2) [2025-01-13 09:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238147', 'tblTempUsageDetail_20' ) start [2025-01-13 09:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238147', 'tblTempUsageDetail_20' ) end [2025-01-13 09:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:52:30] Production.INFO: ==20622== Releasing lock... [2025-01-13 09:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:52:30] Production.INFO: 46 MB #Memory Used# [2025-01-13 09:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:53:04 [end_date_ymd] => 2025-01-13 09:53:04 [RateCDR] => 1 ) [2025-01-13 09:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:53:04' and `end` < '2025-01-13 09:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:53:17] Production.INFO: count ==2442 [2025-01-13 09:53:18] Production.ERROR: pbx CDR StartTime 2025-01-13 06:53:04 - End Time 2025-01-13 09:53:04 [2025-01-13 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238152', 'tblTempUsageDetail_20' ) start [2025-01-13 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238152', 'tblTempUsageDetail_20' ) end [2025-01-13 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238152', 'tblTempVendorCDR_20' ) start [2025-01-13 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238152', 'tblTempVendorCDR_20' ) end [2025-01-13 09:53:18] Production.INFO: ProcessCDR(1,14238152,1,1,2) [2025-01-13 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238152', 'tblTempUsageDetail_20' ) start [2025-01-13 09:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238152', 'tblTempUsageDetail_20' ) end [2025-01-13 09:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:53:23] Production.INFO: ==20696== Releasing lock... [2025-01-13 09:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:53:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-13 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:54:05 [end_date_ymd] => 2025-01-13 09:54:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:54:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:54:18] Production.INFO: count ==2481 [2025-01-13 09:54:19] Production.ERROR: pbx CDR StartTime 2025-01-13 06:54:05 - End Time 2025-01-13 09:54:05 [2025-01-13 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238157', 'tblTempUsageDetail_20' ) start [2025-01-13 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238157', 'tblTempUsageDetail_20' ) end [2025-01-13 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238157', 'tblTempVendorCDR_20' ) start [2025-01-13 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238157', 'tblTempVendorCDR_20' ) end [2025-01-13 09:54:19] Production.INFO: ProcessCDR(1,14238157,1,1,2) [2025-01-13 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238157', 'tblTempUsageDetail_20' ) start [2025-01-13 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238157', 'tblTempUsageDetail_20' ) end [2025-01-13 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:54:24] Production.INFO: ==20774== Releasing lock... [2025-01-13 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:54:24] Production.INFO: 46.75 MB #Memory Used# [2025-01-13 09:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:55:04 [end_date_ymd] => 2025-01-13 09:55:04 [RateCDR] => 1 ) [2025-01-13 09:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:55:04' and `end` < '2025-01-13 09:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:55:32] Production.INFO: count ==2502 [2025-01-13 09:55:33] Production.ERROR: pbx CDR StartTime 2025-01-13 06:55:04 - End Time 2025-01-13 09:55:04 [2025-01-13 09:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238162', 'tblTempUsageDetail_20' ) start [2025-01-13 09:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238162', 'tblTempUsageDetail_20' ) end [2025-01-13 09:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238162', 'tblTempVendorCDR_20' ) start [2025-01-13 09:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238162', 'tblTempVendorCDR_20' ) end [2025-01-13 09:55:33] Production.INFO: ProcessCDR(1,14238162,1,1,2) [2025-01-13 09:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238162', 'tblTempUsageDetail_20' ) start [2025-01-13 09:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238162', 'tblTempUsageDetail_20' ) end [2025-01-13 09:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:55:38] Production.INFO: ==20855== Releasing lock... [2025-01-13 09:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:55:38] Production.INFO: 46.75 MB #Memory Used# [2025-01-13 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:56:05 [end_date_ymd] => 2025-01-13 09:56:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:56:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:56:21] Production.INFO: count ==2523 [2025-01-13 09:56:22] Production.ERROR: pbx CDR StartTime 2025-01-13 06:56:05 - End Time 2025-01-13 09:56:05 [2025-01-13 09:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238167', 'tblTempUsageDetail_20' ) start [2025-01-13 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238167', 'tblTempUsageDetail_20' ) end [2025-01-13 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238167', 'tblTempVendorCDR_20' ) start [2025-01-13 09:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238167', 'tblTempVendorCDR_20' ) end [2025-01-13 09:56:23] Production.INFO: ProcessCDR(1,14238167,1,1,2) [2025-01-13 09:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238167', 'tblTempUsageDetail_20' ) start [2025-01-13 09:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238167', 'tblTempUsageDetail_20' ) end [2025-01-13 09:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:56:27] Production.INFO: ==20941== Releasing lock... [2025-01-13 09:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:56:27] Production.INFO: 47 MB #Memory Used# [2025-01-13 09:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:57:04 [end_date_ymd] => 2025-01-13 09:57:04 [RateCDR] => 1 ) [2025-01-13 09:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:57:04' and `end` < '2025-01-13 09:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:57:30] Production.INFO: count ==2544 [2025-01-13 09:57:31] Production.ERROR: pbx CDR StartTime 2025-01-13 06:57:04 - End Time 2025-01-13 09:57:04 [2025-01-13 09:57:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238172', 'tblTempUsageDetail_20' ) start [2025-01-13 09:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238172', 'tblTempUsageDetail_20' ) end [2025-01-13 09:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238172', 'tblTempVendorCDR_20' ) start [2025-01-13 09:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238172', 'tblTempVendorCDR_20' ) end [2025-01-13 09:57:31] Production.INFO: ProcessCDR(1,14238172,1,1,2) [2025-01-13 09:57:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:57:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:57:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:57:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238172', 'tblTempUsageDetail_20' ) start [2025-01-13 09:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238172', 'tblTempUsageDetail_20' ) end [2025-01-13 09:57:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:57:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:57:36] Production.INFO: ==21022== Releasing lock... [2025-01-13 09:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:57:36] Production.INFO: 47.25 MB #Memory Used# [2025-01-13 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:58:05 [end_date_ymd] => 2025-01-13 09:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 06:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 09:58:21] Production.INFO: count ==2549 [2025-01-13 09:58:22] Production.ERROR: pbx CDR StartTime 2025-01-13 06:58:05 - End Time 2025-01-13 09:58:05 [2025-01-13 09:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238177', 'tblTempUsageDetail_20' ) start [2025-01-13 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238177', 'tblTempUsageDetail_20' ) end [2025-01-13 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238177', 'tblTempVendorCDR_20' ) start [2025-01-13 09:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238177', 'tblTempVendorCDR_20' ) end [2025-01-13 09:58:22] Production.INFO: ProcessCDR(1,14238177,1,1,2) [2025-01-13 09:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238177', 'tblTempUsageDetail_20' ) start [2025-01-13 09:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238177', 'tblTempUsageDetail_20' ) end [2025-01-13 09:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:58:27] Production.INFO: ==21104== Releasing lock... [2025-01-13 09:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:58:27] Production.INFO: 47.25 MB #Memory Used# [2025-01-13 09:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 06:59:04 [end_date_ymd] => 2025-01-13 09:59:04 [RateCDR] => 1 ) [2025-01-13 09:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 06:59:04' and `end` < '2025-01-13 09:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 09:59:20] Production.INFO: count ==2565 [2025-01-13 09:59:21] Production.ERROR: pbx CDR StartTime 2025-01-13 06:59:04 - End Time 2025-01-13 09:59:04 [2025-01-13 09:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238182', 'tblTempUsageDetail_20' ) start [2025-01-13 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238182', 'tblTempUsageDetail_20' ) end [2025-01-13 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238182', 'tblTempVendorCDR_20' ) start [2025-01-13 09:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238182', 'tblTempVendorCDR_20' ) end [2025-01-13 09:59:21] Production.INFO: ProcessCDR(1,14238182,1,1,2) [2025-01-13 09:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 09:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 09:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238182', 'tblTempUsageDetail_20' ) start [2025-01-13 09:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238182', 'tblTempUsageDetail_20' ) end [2025-01-13 09:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 09:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 09:59:26] Production.INFO: ==21188== Releasing lock... [2025-01-13 09:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 09:59:26] Production.INFO: 47.25 MB #Memory Used# [2025-01-13 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:00:06 [end_date_ymd] => 2025-01-13 10:00:06 [RateCDR] => 1 ) [2025-01-13 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:00:06' and `end` < '2025-01-13 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:00:27] Production.INFO: count ==2596 [2025-01-13 10:00:28] Production.ERROR: pbx CDR StartTime 2025-01-13 07:00:06 - End Time 2025-01-13 10:00:06 [2025-01-13 10:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238188', 'tblTempUsageDetail_20' ) start [2025-01-13 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238188', 'tblTempUsageDetail_20' ) end [2025-01-13 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238188', 'tblTempVendorCDR_20' ) start [2025-01-13 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238188', 'tblTempVendorCDR_20' ) end [2025-01-13 10:00:28] Production.INFO: ProcessCDR(1,14238188,1,1,2) [2025-01-13 10:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238188', 'tblTempUsageDetail_20' ) start [2025-01-13 10:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238188', 'tblTempUsageDetail_20' ) end [2025-01-13 10:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:00:32] Production.INFO: ==21277== Releasing lock... [2025-01-13 10:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:00:32] Production.INFO: 47.75 MB #Memory Used# [2025-01-13 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:01:05 [end_date_ymd] => 2025-01-13 10:01:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:01:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:01:19] Production.INFO: count ==2647 [2025-01-13 10:01:21] Production.ERROR: pbx CDR StartTime 2025-01-13 07:01:05 - End Time 2025-01-13 10:01:05 [2025-01-13 10:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238193', 'tblTempUsageDetail_20' ) start [2025-01-13 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238193', 'tblTempUsageDetail_20' ) end [2025-01-13 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238193', 'tblTempVendorCDR_20' ) start [2025-01-13 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238193', 'tblTempVendorCDR_20' ) end [2025-01-13 10:01:21] Production.INFO: ProcessCDR(1,14238193,1,1,2) [2025-01-13 10:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238193', 'tblTempUsageDetail_20' ) start [2025-01-13 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238193', 'tblTempUsageDetail_20' ) end [2025-01-13 10:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:01:25] Production.INFO: ==21384== Releasing lock... [2025-01-13 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:01:25] Production.INFO: 48 MB #Memory Used# [2025-01-13 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:02:05 [end_date_ymd] => 2025-01-13 10:02:05 [RateCDR] => 1 ) [2025-01-13 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:02:05' and `end` < '2025-01-13 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:02:24] Production.INFO: count ==2657 [2025-01-13 10:02:25] Production.ERROR: pbx CDR StartTime 2025-01-13 07:02:05 - End Time 2025-01-13 10:02:05 [2025-01-13 10:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238198', 'tblTempUsageDetail_20' ) start [2025-01-13 10:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238198', 'tblTempUsageDetail_20' ) end [2025-01-13 10:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238198', 'tblTempVendorCDR_20' ) start [2025-01-13 10:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238198', 'tblTempVendorCDR_20' ) end [2025-01-13 10:02:25] Production.INFO: ProcessCDR(1,14238198,1,1,2) [2025-01-13 10:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238198', 'tblTempUsageDetail_20' ) start [2025-01-13 10:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238198', 'tblTempUsageDetail_20' ) end [2025-01-13 10:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:02:30] Production.INFO: ==21470== Releasing lock... [2025-01-13 10:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:02:30] Production.INFO: 48 MB #Memory Used# [2025-01-13 10:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:03:04 [end_date_ymd] => 2025-01-13 10:03:04 [RateCDR] => 1 ) [2025-01-13 10:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:03:04' and `end` < '2025-01-13 10:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:03:25] Production.INFO: count ==2672 [2025-01-13 10:03:26] Production.ERROR: pbx CDR StartTime 2025-01-13 07:03:04 - End Time 2025-01-13 10:03:04 [2025-01-13 10:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238203', 'tblTempUsageDetail_20' ) start [2025-01-13 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238203', 'tblTempUsageDetail_20' ) end [2025-01-13 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238203', 'tblTempVendorCDR_20' ) start [2025-01-13 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238203', 'tblTempVendorCDR_20' ) end [2025-01-13 10:03:26] Production.INFO: ProcessCDR(1,14238203,1,1,2) [2025-01-13 10:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238203', 'tblTempUsageDetail_20' ) start [2025-01-13 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238203', 'tblTempUsageDetail_20' ) end [2025-01-13 10:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:03:31] Production.INFO: ==21551== Releasing lock... [2025-01-13 10:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:03:31] Production.INFO: 48 MB #Memory Used# [2025-01-13 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:04:05 [end_date_ymd] => 2025-01-13 10:04:05 [RateCDR] => 1 ) [2025-01-13 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:04:05' and `end` < '2025-01-13 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:04:19] Production.INFO: count ==2728 [2025-01-13 10:04:20] Production.ERROR: pbx CDR StartTime 2025-01-13 07:04:05 - End Time 2025-01-13 10:04:05 [2025-01-13 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238208', 'tblTempUsageDetail_20' ) start [2025-01-13 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238208', 'tblTempUsageDetail_20' ) end [2025-01-13 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238208', 'tblTempVendorCDR_20' ) start [2025-01-13 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238208', 'tblTempVendorCDR_20' ) end [2025-01-13 10:04:20] Production.INFO: ProcessCDR(1,14238208,1,1,2) [2025-01-13 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238208', 'tblTempUsageDetail_20' ) start [2025-01-13 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238208', 'tblTempUsageDetail_20' ) end [2025-01-13 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:04:25] Production.INFO: ==21634== Releasing lock... [2025-01-13 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:04:25] Production.INFO: 49 MB #Memory Used# [2025-01-13 10:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:05:04 [end_date_ymd] => 2025-01-13 10:05:04 [RateCDR] => 1 ) [2025-01-13 10:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:05:04' and `end` < '2025-01-13 10:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:05:25] Production.INFO: count ==2744 [2025-01-13 10:05:26] Production.ERROR: pbx CDR StartTime 2025-01-13 07:05:04 - End Time 2025-01-13 10:05:04 [2025-01-13 10:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238213', 'tblTempUsageDetail_20' ) start [2025-01-13 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238213', 'tblTempUsageDetail_20' ) end [2025-01-13 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238213', 'tblTempVendorCDR_20' ) start [2025-01-13 10:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238213', 'tblTempVendorCDR_20' ) end [2025-01-13 10:05:26] Production.INFO: ProcessCDR(1,14238213,1,1,2) [2025-01-13 10:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238213', 'tblTempUsageDetail_20' ) start [2025-01-13 10:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238213', 'tblTempUsageDetail_20' ) end [2025-01-13 10:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:05:31] Production.INFO: ==21759== Releasing lock... [2025-01-13 10:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:05:31] Production.INFO: 49.25 MB #Memory Used# [2025-01-13 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:06:05 [end_date_ymd] => 2025-01-13 10:06:05 [RateCDR] => 1 ) [2025-01-13 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:06:05' and `end` < '2025-01-13 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:06:26] Production.INFO: count ==2765 [2025-01-13 10:06:27] Production.ERROR: pbx CDR StartTime 2025-01-13 07:06:05 - End Time 2025-01-13 10:06:05 [2025-01-13 10:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238218', 'tblTempUsageDetail_20' ) start [2025-01-13 10:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238218', 'tblTempUsageDetail_20' ) end [2025-01-13 10:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238218', 'tblTempVendorCDR_20' ) start [2025-01-13 10:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238218', 'tblTempVendorCDR_20' ) end [2025-01-13 10:06:27] Production.INFO: ProcessCDR(1,14238218,1,1,2) [2025-01-13 10:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238218', 'tblTempUsageDetail_20' ) start [2025-01-13 10:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238218', 'tblTempUsageDetail_20' ) end [2025-01-13 10:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:06:32] Production.INFO: ==21842== Releasing lock... [2025-01-13 10:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:06:32] Production.INFO: 48.75 MB #Memory Used# [2025-01-13 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:07:05 [end_date_ymd] => 2025-01-13 10:07:05 [RateCDR] => 1 ) [2025-01-13 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:07:05' and `end` < '2025-01-13 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:07:29] Production.INFO: count ==2797 [2025-01-13 10:07:30] Production.ERROR: pbx CDR StartTime 2025-01-13 07:07:05 - End Time 2025-01-13 10:07:05 [2025-01-13 10:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238223', 'tblTempUsageDetail_20' ) start [2025-01-13 10:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238223', 'tblTempUsageDetail_20' ) end [2025-01-13 10:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238223', 'tblTempVendorCDR_20' ) start [2025-01-13 10:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238223', 'tblTempVendorCDR_20' ) end [2025-01-13 10:07:30] Production.INFO: ProcessCDR(1,14238223,1,1,2) [2025-01-13 10:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238223', 'tblTempUsageDetail_20' ) start [2025-01-13 10:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238223', 'tblTempUsageDetail_20' ) end [2025-01-13 10:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:07:34] Production.INFO: ==21922== Releasing lock... [2025-01-13 10:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:07:34] Production.INFO: 48.75 MB #Memory Used# [2025-01-13 10:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:08:04 [end_date_ymd] => 2025-01-13 10:08:04 [RateCDR] => 1 ) [2025-01-13 10:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:08:04' and `end` < '2025-01-13 10:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:08:27] Production.INFO: count ==2830 [2025-01-13 10:08:28] Production.ERROR: pbx CDR StartTime 2025-01-13 07:08:04 - End Time 2025-01-13 10:08:04 [2025-01-13 10:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238228', 'tblTempUsageDetail_20' ) start [2025-01-13 10:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238228', 'tblTempUsageDetail_20' ) end [2025-01-13 10:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238228', 'tblTempVendorCDR_20' ) start [2025-01-13 10:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238228', 'tblTempVendorCDR_20' ) end [2025-01-13 10:08:28] Production.INFO: ProcessCDR(1,14238228,1,1,2) [2025-01-13 10:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238228', 'tblTempUsageDetail_20' ) start [2025-01-13 10:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238228', 'tblTempUsageDetail_20' ) end [2025-01-13 10:08:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:08:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:08:33] Production.INFO: ==22008== Releasing lock... [2025-01-13 10:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:08:33] Production.INFO: 49 MB #Memory Used# [2025-01-13 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:09:05 [end_date_ymd] => 2025-01-13 10:09:05 [RateCDR] => 1 ) [2025-01-13 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:09:05' and `end` < '2025-01-13 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:09:25] Production.INFO: count ==2875 [2025-01-13 10:09:26] Production.ERROR: pbx CDR StartTime 2025-01-13 07:09:05 - End Time 2025-01-13 10:09:05 [2025-01-13 10:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238233', 'tblTempUsageDetail_20' ) start [2025-01-13 10:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238233', 'tblTempUsageDetail_20' ) end [2025-01-13 10:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238233', 'tblTempVendorCDR_20' ) start [2025-01-13 10:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238233', 'tblTempVendorCDR_20' ) end [2025-01-13 10:09:26] Production.INFO: ProcessCDR(1,14238233,1,1,2) [2025-01-13 10:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238233', 'tblTempUsageDetail_20' ) start [2025-01-13 10:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238233', 'tblTempUsageDetail_20' ) end [2025-01-13 10:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:09:30] Production.INFO: ==22090== Releasing lock... [2025-01-13 10:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:09:30] Production.INFO: 49.25 MB #Memory Used# [2025-01-13 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:10:05 [end_date_ymd] => 2025-01-13 10:10:05 [RateCDR] => 1 ) [2025-01-13 10:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:10:05' and `end` < '2025-01-13 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:10:18] Production.INFO: count ==2893 [2025-01-13 10:10:20] Production.ERROR: pbx CDR StartTime 2025-01-13 07:10:05 - End Time 2025-01-13 10:10:05 [2025-01-13 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238239', 'tblTempUsageDetail_20' ) start [2025-01-13 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238239', 'tblTempUsageDetail_20' ) end [2025-01-13 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238239', 'tblTempVendorCDR_20' ) start [2025-01-13 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238239', 'tblTempVendorCDR_20' ) end [2025-01-13 10:10:20] Production.INFO: ProcessCDR(1,14238239,1,1,2) [2025-01-13 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238239', 'tblTempUsageDetail_20' ) start [2025-01-13 10:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238239', 'tblTempUsageDetail_20' ) end [2025-01-13 10:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:10:24] Production.INFO: ==22168== Releasing lock... [2025-01-13 10:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:10:24] Production.INFO: 49.25 MB #Memory Used# [2025-01-13 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:11:05 [end_date_ymd] => 2025-01-13 10:11:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:11:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:11:19] Production.INFO: count ==2978 [2025-01-13 10:11:20] Production.ERROR: pbx CDR StartTime 2025-01-13 07:11:05 - End Time 2025-01-13 10:11:05 [2025-01-13 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238244', 'tblTempUsageDetail_20' ) start [2025-01-13 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238244', 'tblTempUsageDetail_20' ) end [2025-01-13 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238244', 'tblTempVendorCDR_20' ) start [2025-01-13 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238244', 'tblTempVendorCDR_20' ) end [2025-01-13 10:11:20] Production.INFO: ProcessCDR(1,14238244,1,1,2) [2025-01-13 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238244', 'tblTempUsageDetail_20' ) start [2025-01-13 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238244', 'tblTempUsageDetail_20' ) end [2025-01-13 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:11:25] Production.INFO: ==22245== Releasing lock... [2025-01-13 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:11:25] Production.INFO: 50.5 MB #Memory Used# [2025-01-13 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:12:05 [end_date_ymd] => 2025-01-13 10:12:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:12:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:12:18] Production.INFO: count ==2987 [2025-01-13 10:12:19] Production.ERROR: pbx CDR StartTime 2025-01-13 07:12:05 - End Time 2025-01-13 10:12:05 [2025-01-13 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238249', 'tblTempUsageDetail_20' ) start [2025-01-13 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238249', 'tblTempUsageDetail_20' ) end [2025-01-13 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238249', 'tblTempVendorCDR_20' ) start [2025-01-13 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238249', 'tblTempVendorCDR_20' ) end [2025-01-13 10:12:19] Production.INFO: ProcessCDR(1,14238249,1,1,2) [2025-01-13 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238249', 'tblTempUsageDetail_20' ) start [2025-01-13 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238249', 'tblTempUsageDetail_20' ) end [2025-01-13 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:12:24] Production.INFO: ==22317== Releasing lock... [2025-01-13 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:12:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-13 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:13:05 [end_date_ymd] => 2025-01-13 10:13:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:13:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:13:22] Production.INFO: count ==3003 [2025-01-13 10:13:23] Production.ERROR: pbx CDR StartTime 2025-01-13 07:13:05 - End Time 2025-01-13 10:13:05 [2025-01-13 10:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238254', 'tblTempUsageDetail_20' ) start [2025-01-13 10:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238254', 'tblTempUsageDetail_20' ) end [2025-01-13 10:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238254', 'tblTempVendorCDR_20' ) start [2025-01-13 10:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238254', 'tblTempVendorCDR_20' ) end [2025-01-13 10:13:23] Production.INFO: ProcessCDR(1,14238254,1,1,2) [2025-01-13 10:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238254', 'tblTempUsageDetail_20' ) start [2025-01-13 10:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238254', 'tblTempUsageDetail_20' ) end [2025-01-13 10:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:13:28] Production.INFO: ==22387== Releasing lock... [2025-01-13 10:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:13:28] Production.INFO: 50.25 MB #Memory Used# [2025-01-13 10:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:14:04 [end_date_ymd] => 2025-01-13 10:14:04 [RateCDR] => 1 ) [2025-01-13 10: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` >= '2025-01-13 07:14:04' and `end` < '2025-01-13 10: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 ,'') [2025-01-13 10:14:28] Production.INFO: count ==3023 [2025-01-13 10:14:29] Production.ERROR: pbx CDR StartTime 2025-01-13 07:14:04 - End Time 2025-01-13 10:14:04 [2025-01-13 10:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238259', 'tblTempUsageDetail_20' ) start [2025-01-13 10:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238259', 'tblTempUsageDetail_20' ) end [2025-01-13 10:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238259', 'tblTempVendorCDR_20' ) start [2025-01-13 10:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238259', 'tblTempVendorCDR_20' ) end [2025-01-13 10:14:30] Production.INFO: ProcessCDR(1,14238259,1,1,2) [2025-01-13 10:14:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:14:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:14:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:14:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238259', 'tblTempUsageDetail_20' ) start [2025-01-13 10:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238259', 'tblTempUsageDetail_20' ) end [2025-01-13 10:14:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:14:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:14:34] Production.INFO: ==22455== Releasing lock... [2025-01-13 10:14:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:14:34] Production.INFO: 51 MB #Memory Used# [2025-01-13 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:15:05 [end_date_ymd] => 2025-01-13 10:15:05 [RateCDR] => 1 ) [2025-01-13 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:15:05' and `end` < '2025-01-13 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:15:24] Production.INFO: count ==3054 [2025-01-13 10:15:26] Production.ERROR: pbx CDR StartTime 2025-01-13 07:15:05 - End Time 2025-01-13 10:15:05 [2025-01-13 10:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238264', 'tblTempUsageDetail_20' ) start [2025-01-13 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238264', 'tblTempUsageDetail_20' ) end [2025-01-13 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238264', 'tblTempVendorCDR_20' ) start [2025-01-13 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238264', 'tblTempVendorCDR_20' ) end [2025-01-13 10:15:26] Production.INFO: ProcessCDR(1,14238264,1,1,2) [2025-01-13 10:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238264', 'tblTempUsageDetail_20' ) start [2025-01-13 10:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238264', 'tblTempUsageDetail_20' ) end [2025-01-13 10:15:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:15:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:15:31] Production.INFO: ==22531== Releasing lock... [2025-01-13 10:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:15:31] Production.INFO: 51.25 MB #Memory Used# [2025-01-13 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:16:05 [end_date_ymd] => 2025-01-13 10:16:05 [RateCDR] => 1 ) [2025-01-13 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:16:05' and `end` < '2025-01-13 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:16:25] Production.INFO: count ==3057 [2025-01-13 10:16:27] Production.ERROR: pbx CDR StartTime 2025-01-13 07:16:05 - End Time 2025-01-13 10:16:05 [2025-01-13 10:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238269', 'tblTempUsageDetail_20' ) start [2025-01-13 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238269', 'tblTempUsageDetail_20' ) end [2025-01-13 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238269', 'tblTempVendorCDR_20' ) start [2025-01-13 10:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238269', 'tblTempVendorCDR_20' ) end [2025-01-13 10:16:27] Production.INFO: ProcessCDR(1,14238269,1,1,2) [2025-01-13 10:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238269', 'tblTempUsageDetail_20' ) start [2025-01-13 10:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238269', 'tblTempUsageDetail_20' ) end [2025-01-13 10:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:16:31] Production.INFO: ==22603== Releasing lock... [2025-01-13 10:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:16:31] Production.INFO: 51 MB #Memory Used# [2025-01-13 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:17:05 [end_date_ymd] => 2025-01-13 10:17:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:17:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:17:25] Production.INFO: count ==3079 [2025-01-13 10:17:27] Production.ERROR: pbx CDR StartTime 2025-01-13 07:17:05 - End Time 2025-01-13 10:17:05 [2025-01-13 10:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238274', 'tblTempUsageDetail_20' ) start [2025-01-13 10:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238274', 'tblTempUsageDetail_20' ) end [2025-01-13 10:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238274', 'tblTempVendorCDR_20' ) start [2025-01-13 10:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238274', 'tblTempVendorCDR_20' ) end [2025-01-13 10:17:27] Production.INFO: ProcessCDR(1,14238274,1,1,2) [2025-01-13 10:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238274', 'tblTempUsageDetail_20' ) start [2025-01-13 10:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238274', 'tblTempUsageDetail_20' ) end [2025-01-13 10:17:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:17:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:17:31] Production.INFO: ==22677== Releasing lock... [2025-01-13 10:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:17:31] Production.INFO: 51.25 MB #Memory Used# [2025-01-13 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:18:05 [end_date_ymd] => 2025-01-13 10:18:05 [RateCDR] => 1 ) [2025-01-13 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:18:05' and `end` < '2025-01-13 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:18:25] Production.INFO: count ==3105 [2025-01-13 10:18:26] Production.ERROR: pbx CDR StartTime 2025-01-13 07:18:05 - End Time 2025-01-13 10:18:05 [2025-01-13 10:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238279', 'tblTempUsageDetail_20' ) start [2025-01-13 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238279', 'tblTempUsageDetail_20' ) end [2025-01-13 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238279', 'tblTempVendorCDR_20' ) start [2025-01-13 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238279', 'tblTempVendorCDR_20' ) end [2025-01-13 10:18:26] Production.INFO: ProcessCDR(1,14238279,1,1,2) [2025-01-13 10:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238279', 'tblTempUsageDetail_20' ) start [2025-01-13 10:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238279', 'tblTempUsageDetail_20' ) end [2025-01-13 10:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:18:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:18:31] Production.INFO: ==22748== Releasing lock... [2025-01-13 10:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:18:31] Production.INFO: 51.25 MB #Memory Used# [2025-01-13 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:19:05 [end_date_ymd] => 2025-01-13 10:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:19:18] Production.INFO: count ==3139 [2025-01-13 10:19:20] Production.ERROR: pbx CDR StartTime 2025-01-13 07:19:05 - End Time 2025-01-13 10:19:05 [2025-01-13 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238284', 'tblTempUsageDetail_20' ) start [2025-01-13 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238284', 'tblTempUsageDetail_20' ) end [2025-01-13 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238284', 'tblTempVendorCDR_20' ) start [2025-01-13 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238284', 'tblTempVendorCDR_20' ) end [2025-01-13 10:19:20] Production.INFO: ProcessCDR(1,14238284,1,1,2) [2025-01-13 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238284', 'tblTempUsageDetail_20' ) start [2025-01-13 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238284', 'tblTempUsageDetail_20' ) end [2025-01-13 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:19:24] Production.INFO: ==22819== Releasing lock... [2025-01-13 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:19:24] Production.INFO: 51.5 MB #Memory Used# [2025-01-13 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:20:05 [end_date_ymd] => 2025-01-13 10:20:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:20:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:20:21] Production.INFO: count ==3194 [2025-01-13 10:20:22] Production.ERROR: pbx CDR StartTime 2025-01-13 07:20:05 - End Time 2025-01-13 10:20:05 [2025-01-13 10:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238290', 'tblTempUsageDetail_20' ) start [2025-01-13 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238290', 'tblTempUsageDetail_20' ) end [2025-01-13 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238290', 'tblTempVendorCDR_20' ) start [2025-01-13 10:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238290', 'tblTempVendorCDR_20' ) end [2025-01-13 10:20:22] Production.INFO: ProcessCDR(1,14238290,1,1,2) [2025-01-13 10:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238290', 'tblTempUsageDetail_20' ) start [2025-01-13 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238290', 'tblTempUsageDetail_20' ) end [2025-01-13 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:20:27] Production.INFO: ==22930== Releasing lock... [2025-01-13 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:20:27] Production.INFO: 52.5 MB #Memory Used# [2025-01-13 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:21:05 [end_date_ymd] => 2025-01-13 10:21:05 [RateCDR] => 1 ) [2025-01-13 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:21:05' and `end` < '2025-01-13 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:21:26] Production.INFO: count ==3303 [2025-01-13 10:21:27] Production.ERROR: pbx CDR StartTime 2025-01-13 07:21:05 - End Time 2025-01-13 10:21:05 [2025-01-13 10:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238295', 'tblTempUsageDetail_20' ) start [2025-01-13 10:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238295', 'tblTempUsageDetail_20' ) end [2025-01-13 10:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238295', 'tblTempVendorCDR_20' ) start [2025-01-13 10:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238295', 'tblTempVendorCDR_20' ) end [2025-01-13 10:21:27] Production.INFO: ProcessCDR(1,14238295,1,1,2) [2025-01-13 10:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238295', 'tblTempUsageDetail_20' ) start [2025-01-13 10:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238295', 'tblTempUsageDetail_20' ) end [2025-01-13 10:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:21:32] Production.INFO: ==23004== Releasing lock... [2025-01-13 10:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:21:32] Production.INFO: 52.5 MB #Memory Used# [2025-01-13 10:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:22:04 [end_date_ymd] => 2025-01-13 10:22:04 [RateCDR] => 1 ) [2025-01-13 10:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:22:04' and `end` < '2025-01-13 10:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:22:28] Production.INFO: count ==3352 [2025-01-13 10:22:29] Production.ERROR: pbx CDR StartTime 2025-01-13 07:22:04 - End Time 2025-01-13 10:22:04 [2025-01-13 10:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238300', 'tblTempUsageDetail_20' ) start [2025-01-13 10:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238300', 'tblTempUsageDetail_20' ) end [2025-01-13 10:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238300', 'tblTempVendorCDR_20' ) start [2025-01-13 10:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238300', 'tblTempVendorCDR_20' ) end [2025-01-13 10:22:29] Production.INFO: ProcessCDR(1,14238300,1,1,2) [2025-01-13 10:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238300', 'tblTempUsageDetail_20' ) start [2025-01-13 10:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238300', 'tblTempUsageDetail_20' ) end [2025-01-13 10:22:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:22:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:22:34] Production.INFO: ==23079== Releasing lock... [2025-01-13 10:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:22:34] Production.INFO: 53.25 MB #Memory Used# [2025-01-13 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:23:05 [end_date_ymd] => 2025-01-13 10:23:05 [RateCDR] => 1 ) [2025-01-13 10: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` >= '2025-01-13 07:23:05' and `end` < '2025-01-13 10: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 ,'') [2025-01-13 10:23:26] Production.INFO: count ==3368 [2025-01-13 10:23:27] Production.ERROR: pbx CDR StartTime 2025-01-13 07:23:05 - End Time 2025-01-13 10:23:05 [2025-01-13 10:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238305', 'tblTempUsageDetail_20' ) start [2025-01-13 10:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238305', 'tblTempUsageDetail_20' ) end [2025-01-13 10:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238305', 'tblTempVendorCDR_20' ) start [2025-01-13 10:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238305', 'tblTempVendorCDR_20' ) end [2025-01-13 10:23:27] Production.INFO: ProcessCDR(1,14238305,1,1,2) [2025-01-13 10:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:23:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238305', 'tblTempUsageDetail_20' ) start [2025-01-13 10:23:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238305', 'tblTempUsageDetail_20' ) end [2025-01-13 10:23:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:23:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:23:32] Production.INFO: ==23149== Releasing lock... [2025-01-13 10:23:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:23:32] Production.INFO: 53.25 MB #Memory Used# [2025-01-13 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:24:05 [end_date_ymd] => 2025-01-13 10:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:24:23] Production.INFO: count ==3399 [2025-01-13 10:24:25] Production.ERROR: pbx CDR StartTime 2025-01-13 07:24:05 - End Time 2025-01-13 10:24:05 [2025-01-13 10:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238310', 'tblTempUsageDetail_20' ) start [2025-01-13 10:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238310', 'tblTempUsageDetail_20' ) end [2025-01-13 10:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238310', 'tblTempVendorCDR_20' ) start [2025-01-13 10:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238310', 'tblTempVendorCDR_20' ) end [2025-01-13 10:24:25] Production.INFO: ProcessCDR(1,14238310,1,1,2) [2025-01-13 10:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238310', 'tblTempUsageDetail_20' ) start [2025-01-13 10:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238310', 'tblTempUsageDetail_20' ) end [2025-01-13 10:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:24:29] Production.INFO: ==23222== Releasing lock... [2025-01-13 10:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:24:29] Production.INFO: 53.25 MB #Memory Used# [2025-01-13 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:25:05 [end_date_ymd] => 2025-01-13 10:25:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:25:05' and `end` < '2025-01-13 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:25:25] Production.INFO: count ==3427 [2025-01-13 10:25:27] Production.ERROR: pbx CDR StartTime 2025-01-13 07:25:05 - End Time 2025-01-13 10:25:05 [2025-01-13 10:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238315', 'tblTempUsageDetail_20' ) start [2025-01-13 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238315', 'tblTempUsageDetail_20' ) end [2025-01-13 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238315', 'tblTempVendorCDR_20' ) start [2025-01-13 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238315', 'tblTempVendorCDR_20' ) end [2025-01-13 10:25:27] Production.INFO: ProcessCDR(1,14238315,1,1,2) [2025-01-13 10:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238315', 'tblTempUsageDetail_20' ) start [2025-01-13 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238315', 'tblTempUsageDetail_20' ) end [2025-01-13 10:25:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:25:32] Production.INFO: ==23292== Releasing lock... [2025-01-13 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:25:32] Production.INFO: 53.75 MB #Memory Used# [2025-01-13 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:26:05 [end_date_ymd] => 2025-01-13 10:26:05 [RateCDR] => 1 ) [2025-01-13 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:26:05' and `end` < '2025-01-13 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:26:23] Production.INFO: count ==3466 [2025-01-13 10:26:25] Production.ERROR: pbx CDR StartTime 2025-01-13 07:26:05 - End Time 2025-01-13 10:26:05 [2025-01-13 10:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238320', 'tblTempUsageDetail_20' ) start [2025-01-13 10:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238320', 'tblTempUsageDetail_20' ) end [2025-01-13 10:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238320', 'tblTempVendorCDR_20' ) start [2025-01-13 10:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238320', 'tblTempVendorCDR_20' ) end [2025-01-13 10:26:25] Production.INFO: ProcessCDR(1,14238320,1,1,2) [2025-01-13 10:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238320', 'tblTempUsageDetail_20' ) start [2025-01-13 10:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238320', 'tblTempUsageDetail_20' ) end [2025-01-13 10:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:26:29] Production.INFO: ==23362== Releasing lock... [2025-01-13 10:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:26:29] Production.INFO: 54 MB #Memory Used# [2025-01-13 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:27:04 [end_date_ymd] => 2025-01-13 10:27:04 [RateCDR] => 1 ) [2025-01-13 10:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:27:04' and `end` < '2025-01-13 10:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:27:18] Production.INFO: count ==3473 [2025-01-13 10:27:19] Production.ERROR: pbx CDR StartTime 2025-01-13 07:27:04 - End Time 2025-01-13 10:27:04 [2025-01-13 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238325', 'tblTempUsageDetail_20' ) start [2025-01-13 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238325', 'tblTempUsageDetail_20' ) end [2025-01-13 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238325', 'tblTempVendorCDR_20' ) start [2025-01-13 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238325', 'tblTempVendorCDR_20' ) end [2025-01-13 10:27:19] Production.INFO: ProcessCDR(1,14238325,1,1,2) [2025-01-13 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238325', 'tblTempUsageDetail_20' ) start [2025-01-13 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238325', 'tblTempUsageDetail_20' ) end [2025-01-13 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:27:24] Production.INFO: ==23432== Releasing lock... [2025-01-13 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:27:24] Production.INFO: 54 MB #Memory Used# [2025-01-13 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:28:05 [end_date_ymd] => 2025-01-13 10:28:05 [RateCDR] => 1 ) [2025-01-13 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:28:05' and `end` < '2025-01-13 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:28:18] Production.INFO: count ==3513 [2025-01-13 10:28:20] Production.ERROR: pbx CDR StartTime 2025-01-13 07:28:05 - End Time 2025-01-13 10:28:05 [2025-01-13 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238330', 'tblTempUsageDetail_20' ) start [2025-01-13 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238330', 'tblTempUsageDetail_20' ) end [2025-01-13 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238330', 'tblTempVendorCDR_20' ) start [2025-01-13 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238330', 'tblTempVendorCDR_20' ) end [2025-01-13 10:28:20] Production.INFO: ProcessCDR(1,14238330,1,1,2) [2025-01-13 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238330', 'tblTempUsageDetail_20' ) start [2025-01-13 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238330', 'tblTempUsageDetail_20' ) end [2025-01-13 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:28:24] Production.INFO: ==23512== Releasing lock... [2025-01-13 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:28:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-13 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:29:04 [end_date_ymd] => 2025-01-13 10:29:04 [RateCDR] => 1 ) [2025-01-13 10:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:29:04' and `end` < '2025-01-13 10:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:29:21] Production.INFO: count ==3558 [2025-01-13 10:29:23] Production.ERROR: pbx CDR StartTime 2025-01-13 07:29:04 - End Time 2025-01-13 10:29:04 [2025-01-13 10:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238335', 'tblTempUsageDetail_20' ) start [2025-01-13 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238335', 'tblTempUsageDetail_20' ) end [2025-01-13 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238335', 'tblTempVendorCDR_20' ) start [2025-01-13 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238335', 'tblTempVendorCDR_20' ) end [2025-01-13 10:29:23] Production.INFO: ProcessCDR(1,14238335,1,1,2) [2025-01-13 10:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238335', 'tblTempUsageDetail_20' ) start [2025-01-13 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238335', 'tblTempUsageDetail_20' ) end [2025-01-13 10:29:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:29:28] Production.INFO: ==23585== Releasing lock... [2025-01-13 10:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:29:28] Production.INFO: 54.5 MB #Memory Used# [2025-01-13 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:30:06 [end_date_ymd] => 2025-01-13 10:30:06 [RateCDR] => 1 ) [2025-01-13 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:30:06' and `end` < '2025-01-13 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:30:23] Production.INFO: count ==3577 [2025-01-13 10:30:25] Production.ERROR: pbx CDR StartTime 2025-01-13 07:30:06 - End Time 2025-01-13 10:30:06 [2025-01-13 10:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238341', 'tblTempUsageDetail_20' ) start [2025-01-13 10:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238341', 'tblTempUsageDetail_20' ) end [2025-01-13 10:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238341', 'tblTempVendorCDR_20' ) start [2025-01-13 10:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238341', 'tblTempVendorCDR_20' ) end [2025-01-13 10:30:25] Production.INFO: ProcessCDR(1,14238341,1,1,2) [2025-01-13 10:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238341', 'tblTempUsageDetail_20' ) start [2025-01-13 10:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238341', 'tblTempUsageDetail_20' ) end [2025-01-13 10:30:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:30:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:30:30] Production.INFO: ==23657== Releasing lock... [2025-01-13 10:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:30:30] Production.INFO: 55 MB #Memory Used# [2025-01-13 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:31:04 [end_date_ymd] => 2025-01-13 10:31:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:31:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:31:19] Production.INFO: count ==3675 [2025-01-13 10:31:20] Production.ERROR: pbx CDR StartTime 2025-01-13 07:31:04 - End Time 2025-01-13 10:31:04 [2025-01-13 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238346', 'tblTempUsageDetail_20' ) start [2025-01-13 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238346', 'tblTempUsageDetail_20' ) end [2025-01-13 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238346', 'tblTempVendorCDR_20' ) start [2025-01-13 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238346', 'tblTempVendorCDR_20' ) end [2025-01-13 10:31:20] Production.INFO: ProcessCDR(1,14238346,1,1,2) [2025-01-13 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238346', 'tblTempUsageDetail_20' ) start [2025-01-13 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238346', 'tblTempUsageDetail_20' ) end [2025-01-13 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:31:25] Production.INFO: ==23731== Releasing lock... [2025-01-13 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:31:25] Production.INFO: 55.5 MB #Memory Used# [2025-01-13 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:32:05 [end_date_ymd] => 2025-01-13 10:32:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:32:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:32:26] Production.INFO: count ==3706 [2025-01-13 10:32:27] Production.ERROR: pbx CDR StartTime 2025-01-13 07:32:05 - End Time 2025-01-13 10:32:05 [2025-01-13 10:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238351', 'tblTempUsageDetail_20' ) start [2025-01-13 10:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238351', 'tblTempUsageDetail_20' ) end [2025-01-13 10:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238351', 'tblTempVendorCDR_20' ) start [2025-01-13 10:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238351', 'tblTempVendorCDR_20' ) end [2025-01-13 10:32:27] Production.INFO: ProcessCDR(1,14238351,1,1,2) [2025-01-13 10:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238351', 'tblTempUsageDetail_20' ) start [2025-01-13 10:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238351', 'tblTempUsageDetail_20' ) end [2025-01-13 10:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:32:32] Production.INFO: ==23803== Releasing lock... [2025-01-13 10:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:32:32] Production.INFO: 55.75 MB #Memory Used# [2025-01-13 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:33:05 [end_date_ymd] => 2025-01-13 10:33:05 [RateCDR] => 1 ) [2025-01-13 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:33:05' and `end` < '2025-01-13 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:33:25] Production.INFO: count ==3746 [2025-01-13 10:33:27] Production.ERROR: pbx CDR StartTime 2025-01-13 07:33:05 - End Time 2025-01-13 10:33:05 [2025-01-13 10:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238356', 'tblTempUsageDetail_20' ) start [2025-01-13 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238356', 'tblTempUsageDetail_20' ) end [2025-01-13 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238356', 'tblTempVendorCDR_20' ) start [2025-01-13 10:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238356', 'tblTempVendorCDR_20' ) end [2025-01-13 10:33:27] Production.INFO: ProcessCDR(1,14238356,1,1,2) [2025-01-13 10:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238356', 'tblTempUsageDetail_20' ) start [2025-01-13 10:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238356', 'tblTempUsageDetail_20' ) end [2025-01-13 10:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:33:32] Production.INFO: ==23875== Releasing lock... [2025-01-13 10:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:33:32] Production.INFO: 56 MB #Memory Used# [2025-01-13 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:34:05 [end_date_ymd] => 2025-01-13 10:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:34:27] Production.INFO: count ==3773 [2025-01-13 10:34:28] Production.ERROR: pbx CDR StartTime 2025-01-13 07:34:05 - End Time 2025-01-13 10:34:05 [2025-01-13 10:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238361', 'tblTempUsageDetail_20' ) start [2025-01-13 10:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238361', 'tblTempUsageDetail_20' ) end [2025-01-13 10:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238361', 'tblTempVendorCDR_20' ) start [2025-01-13 10:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238361', 'tblTempVendorCDR_20' ) end [2025-01-13 10:34:28] Production.INFO: ProcessCDR(1,14238361,1,1,2) [2025-01-13 10:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238361', 'tblTempUsageDetail_20' ) start [2025-01-13 10:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238361', 'tblTempUsageDetail_20' ) end [2025-01-13 10:34:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:34:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:34:33] Production.INFO: ==23947== Releasing lock... [2025-01-13 10:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:34:33] Production.INFO: 56.25 MB #Memory Used# [2025-01-13 10:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:35:04 [end_date_ymd] => 2025-01-13 10:35:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:35:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:35:31] Production.INFO: count ==3793 [2025-01-13 10:35:32] Production.ERROR: pbx CDR StartTime 2025-01-13 07:35:04 - End Time 2025-01-13 10:35:04 [2025-01-13 10:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238366', 'tblTempUsageDetail_20' ) start [2025-01-13 10:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238366', 'tblTempUsageDetail_20' ) end [2025-01-13 10:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238366', 'tblTempVendorCDR_20' ) start [2025-01-13 10:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238366', 'tblTempVendorCDR_20' ) end [2025-01-13 10:35:33] Production.INFO: ProcessCDR(1,14238366,1,1,2) [2025-01-13 10:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238366', 'tblTempUsageDetail_20' ) start [2025-01-13 10:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238366', 'tblTempUsageDetail_20' ) end [2025-01-13 10:35:37] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:35:37] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:35:37] Production.INFO: ==24016== Releasing lock... [2025-01-13 10:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:35:37] Production.INFO: 56.25 MB #Memory Used# [2025-01-13 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:36:05 [end_date_ymd] => 2025-01-13 10:36:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:36:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:36:23] Production.INFO: count ==3805 [2025-01-13 10:36:25] Production.ERROR: pbx CDR StartTime 2025-01-13 07:36:05 - End Time 2025-01-13 10:36:05 [2025-01-13 10:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238371', 'tblTempUsageDetail_20' ) start [2025-01-13 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238371', 'tblTempUsageDetail_20' ) end [2025-01-13 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238371', 'tblTempVendorCDR_20' ) start [2025-01-13 10:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238371', 'tblTempVendorCDR_20' ) end [2025-01-13 10:36:25] Production.INFO: ProcessCDR(1,14238371,1,1,2) [2025-01-13 10:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238371', 'tblTempUsageDetail_20' ) start [2025-01-13 10:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238371', 'tblTempUsageDetail_20' ) end [2025-01-13 10:36:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:36:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:36:30] Production.INFO: ==24126== Releasing lock... [2025-01-13 10:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:36:30] Production.INFO: 56.5 MB #Memory Used# [2025-01-13 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:37:05 [end_date_ymd] => 2025-01-13 10:37:05 [RateCDR] => 1 ) [2025-01-13 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:37:05' and `end` < '2025-01-13 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:37:24] Production.INFO: count ==3834 [2025-01-13 10:37:25] Production.ERROR: pbx CDR StartTime 2025-01-13 07:37:05 - End Time 2025-01-13 10:37:05 [2025-01-13 10:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238376', 'tblTempUsageDetail_20' ) start [2025-01-13 10:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238376', 'tblTempUsageDetail_20' ) end [2025-01-13 10:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238376', 'tblTempVendorCDR_20' ) start [2025-01-13 10:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238376', 'tblTempVendorCDR_20' ) end [2025-01-13 10:37:26] Production.INFO: ProcessCDR(1,14238376,1,1,2) [2025-01-13 10:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238376', 'tblTempUsageDetail_20' ) start [2025-01-13 10:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238376', 'tblTempUsageDetail_20' ) end [2025-01-13 10:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:37:30] Production.INFO: ==24197== Releasing lock... [2025-01-13 10:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:37:30] Production.INFO: 56.75 MB #Memory Used# [2025-01-13 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:38:05 [end_date_ymd] => 2025-01-13 10:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:38:23] Production.INFO: count ==3884 [2025-01-13 10:38:25] Production.ERROR: pbx CDR StartTime 2025-01-13 07:38:05 - End Time 2025-01-13 10:38:05 [2025-01-13 10:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238380', 'tblTempUsageDetail_20' ) start [2025-01-13 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238380', 'tblTempUsageDetail_20' ) end [2025-01-13 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238380', 'tblTempVendorCDR_20' ) start [2025-01-13 10:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238380', 'tblTempVendorCDR_20' ) end [2025-01-13 10:38:25] Production.INFO: ProcessCDR(1,14238380,1,1,2) [2025-01-13 10:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238380', 'tblTempUsageDetail_20' ) start [2025-01-13 10:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238380', 'tblTempUsageDetail_20' ) end [2025-01-13 10:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:38:30] Production.INFO: ==24269== Releasing lock... [2025-01-13 10:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:38:30] Production.INFO: 57.25 MB #Memory Used# [2025-01-13 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:39:05 [end_date_ymd] => 2025-01-13 10:39:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:39:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:39:25] Production.INFO: count ==3920 [2025-01-13 10:39:26] Production.ERROR: pbx CDR StartTime 2025-01-13 07:39:05 - End Time 2025-01-13 10:39:05 [2025-01-13 10:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238386', 'tblTempUsageDetail_20' ) start [2025-01-13 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238386', 'tblTempUsageDetail_20' ) end [2025-01-13 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238386', 'tblTempVendorCDR_20' ) start [2025-01-13 10:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238386', 'tblTempVendorCDR_20' ) end [2025-01-13 10:39:27] Production.INFO: ProcessCDR(1,14238386,1,1,2) [2025-01-13 10:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238386', 'tblTempUsageDetail_20' ) start [2025-01-13 10:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238386', 'tblTempUsageDetail_20' ) end [2025-01-13 10:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:39:31] Production.INFO: ==24338== Releasing lock... [2025-01-13 10:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:39:31] Production.INFO: 57.25 MB #Memory Used# [2025-01-13 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:40:06 [end_date_ymd] => 2025-01-13 10:40:06 [RateCDR] => 1 ) [2025-01-13 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:40:06' and `end` < '2025-01-13 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:40:25] Production.INFO: count ==3959 [2025-01-13 10:40:27] Production.ERROR: pbx CDR StartTime 2025-01-13 07:40:06 - End Time 2025-01-13 10:40:06 [2025-01-13 10:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238392', 'tblTempUsageDetail_20' ) start [2025-01-13 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238392', 'tblTempUsageDetail_20' ) end [2025-01-13 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238392', 'tblTempVendorCDR_20' ) start [2025-01-13 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238392', 'tblTempVendorCDR_20' ) end [2025-01-13 10:40:27] Production.INFO: ProcessCDR(1,14238392,1,1,2) [2025-01-13 10:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238392', 'tblTempUsageDetail_20' ) start [2025-01-13 10:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238392', 'tblTempUsageDetail_20' ) end [2025-01-13 10:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:40:32] Production.INFO: ==24414== Releasing lock... [2025-01-13 10:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:40:32] Production.INFO: 57.5 MB #Memory Used# [2025-01-13 10:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:41:04 [end_date_ymd] => 2025-01-13 10:41:04 [RateCDR] => 1 ) [2025-01-13 10: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` >= '2025-01-13 07:41:04' and `end` < '2025-01-13 10: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 ,'') [2025-01-13 10:41:24] Production.INFO: count ==4103 [2025-01-13 10:41:26] Production.ERROR: pbx CDR StartTime 2025-01-13 07:41:04 - End Time 2025-01-13 10:41:04 [2025-01-13 10:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238397', 'tblTempUsageDetail_20' ) start [2025-01-13 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238397', 'tblTempUsageDetail_20' ) end [2025-01-13 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238397', 'tblTempVendorCDR_20' ) start [2025-01-13 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238397', 'tblTempVendorCDR_20' ) end [2025-01-13 10:41:26] Production.INFO: ProcessCDR(1,14238397,1,1,2) [2025-01-13 10:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238397', 'tblTempUsageDetail_20' ) start [2025-01-13 10:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238397', 'tblTempUsageDetail_20' ) end [2025-01-13 10:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:41:31] Production.INFO: ==24487== Releasing lock... [2025-01-13 10:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:41:31] Production.INFO: 58.75 MB #Memory Used# [2025-01-13 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:42:05 [end_date_ymd] => 2025-01-13 10:42:05 [RateCDR] => 1 ) [2025-01-13 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:42:05' and `end` < '2025-01-13 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:42:32] Production.INFO: count ==4124 [2025-01-13 10:42:34] Production.ERROR: pbx CDR StartTime 2025-01-13 07:42:05 - End Time 2025-01-13 10:42:05 [2025-01-13 10:42:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238402', 'tblTempUsageDetail_20' ) start [2025-01-13 10:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238402', 'tblTempUsageDetail_20' ) end [2025-01-13 10:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238402', 'tblTempVendorCDR_20' ) start [2025-01-13 10:42:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238402', 'tblTempVendorCDR_20' ) end [2025-01-13 10:42:34] Production.INFO: ProcessCDR(1,14238402,1,1,2) [2025-01-13 10:42:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:42:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:42:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:42:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238402', 'tblTempUsageDetail_20' ) start [2025-01-13 10:42:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238402', 'tblTempUsageDetail_20' ) end [2025-01-13 10:42:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:42:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:42:39] Production.INFO: ==24561== Releasing lock... [2025-01-13 10:42:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:42:39] Production.INFO: 58.75 MB #Memory Used# [2025-01-13 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:43:05 [end_date_ymd] => 2025-01-13 10:43:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:43:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:43:28] Production.INFO: count ==4143 [2025-01-13 10:43:30] Production.ERROR: pbx CDR StartTime 2025-01-13 07:43:05 - End Time 2025-01-13 10:43:05 [2025-01-13 10:43:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238407', 'tblTempUsageDetail_20' ) start [2025-01-13 10:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238407', 'tblTempUsageDetail_20' ) end [2025-01-13 10:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238407', 'tblTempVendorCDR_20' ) start [2025-01-13 10:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238407', 'tblTempVendorCDR_20' ) end [2025-01-13 10:43:30] Production.INFO: ProcessCDR(1,14238407,1,1,2) [2025-01-13 10:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238407', 'tblTempUsageDetail_20' ) start [2025-01-13 10:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238407', 'tblTempUsageDetail_20' ) end [2025-01-13 10:43:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:43:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:43:34] Production.INFO: ==24632== Releasing lock... [2025-01-13 10:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:43:34] Production.INFO: 59.25 MB #Memory Used# [2025-01-13 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:44:05 [end_date_ymd] => 2025-01-13 10:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:44:28] Production.INFO: count ==4160 [2025-01-13 10:44:30] Production.ERROR: pbx CDR StartTime 2025-01-13 07:44:05 - End Time 2025-01-13 10:44:05 [2025-01-13 10:44:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238412', 'tblTempUsageDetail_20' ) start [2025-01-13 10:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238412', 'tblTempUsageDetail_20' ) end [2025-01-13 10:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238412', 'tblTempVendorCDR_20' ) start [2025-01-13 10:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238412', 'tblTempVendorCDR_20' ) end [2025-01-13 10:44:30] Production.INFO: ProcessCDR(1,14238412,1,1,2) [2025-01-13 10:44:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:44:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238412', 'tblTempUsageDetail_20' ) start [2025-01-13 10:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238412', 'tblTempUsageDetail_20' ) end [2025-01-13 10:44:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:44:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:44:34] Production.INFO: ==24706== Releasing lock... [2025-01-13 10:44:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:44:34] Production.INFO: 59 MB #Memory Used# [2025-01-13 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:45:05 [end_date_ymd] => 2025-01-13 10:45:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:45:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:45:27] Production.INFO: count ==4168 [2025-01-13 10:45:29] Production.ERROR: pbx CDR StartTime 2025-01-13 07:45:05 - End Time 2025-01-13 10:45:05 [2025-01-13 10:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238417', 'tblTempUsageDetail_20' ) start [2025-01-13 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238417', 'tblTempUsageDetail_20' ) end [2025-01-13 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238417', 'tblTempVendorCDR_20' ) start [2025-01-13 10:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238417', 'tblTempVendorCDR_20' ) end [2025-01-13 10:45:29] Production.INFO: ProcessCDR(1,14238417,1,1,2) [2025-01-13 10:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238417', 'tblTempUsageDetail_20' ) start [2025-01-13 10:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238417', 'tblTempUsageDetail_20' ) end [2025-01-13 10:45:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:45:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:45:34] Production.INFO: ==24778== Releasing lock... [2025-01-13 10:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:45:34] Production.INFO: 59.25 MB #Memory Used# [2025-01-13 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:46:04 [end_date_ymd] => 2025-01-13 10:46:04 [RateCDR] => 1 ) [2025-01-13 10:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:46:04' and `end` < '2025-01-13 10:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:46:24] Production.INFO: count ==4178 [2025-01-13 10:46:26] Production.ERROR: pbx CDR StartTime 2025-01-13 07:46:04 - End Time 2025-01-13 10:46:04 [2025-01-13 10:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238422', 'tblTempUsageDetail_20' ) start [2025-01-13 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238422', 'tblTempUsageDetail_20' ) end [2025-01-13 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238422', 'tblTempVendorCDR_20' ) start [2025-01-13 10:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238422', 'tblTempVendorCDR_20' ) end [2025-01-13 10:46:26] Production.INFO: ProcessCDR(1,14238422,1,1,2) [2025-01-13 10:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238422', 'tblTempUsageDetail_20' ) start [2025-01-13 10:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238422', 'tblTempUsageDetail_20' ) end [2025-01-13 10:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:46:31] Production.INFO: ==24848== Releasing lock... [2025-01-13 10:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:46:31] Production.INFO: 59.25 MB #Memory Used# [2025-01-13 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:47:05 [end_date_ymd] => 2025-01-13 10:47:05 [RateCDR] => 1 ) [2025-01-13 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:47:05' and `end` < '2025-01-13 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:47:26] Production.INFO: count ==4204 [2025-01-13 10:47:28] Production.ERROR: pbx CDR StartTime 2025-01-13 07:47:05 - End Time 2025-01-13 10:47:05 [2025-01-13 10:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238427', 'tblTempUsageDetail_20' ) start [2025-01-13 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238427', 'tblTempUsageDetail_20' ) end [2025-01-13 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238427', 'tblTempVendorCDR_20' ) start [2025-01-13 10:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238427', 'tblTempVendorCDR_20' ) end [2025-01-13 10:47:28] Production.INFO: ProcessCDR(1,14238427,1,1,2) [2025-01-13 10:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238427', 'tblTempUsageDetail_20' ) start [2025-01-13 10:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238427', 'tblTempUsageDetail_20' ) end [2025-01-13 10:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:47:32] Production.INFO: ==24922== Releasing lock... [2025-01-13 10:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:47:32] Production.INFO: 59.5 MB #Memory Used# [2025-01-13 10:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:48:04 [end_date_ymd] => 2025-01-13 10:48:04 [RateCDR] => 1 ) [2025-01-13 10: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` >= '2025-01-13 07:48:04' and `end` < '2025-01-13 10: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 ,'') [2025-01-13 10:48:20] Production.INFO: count ==4243 [2025-01-13 10:48:21] Production.ERROR: pbx CDR StartTime 2025-01-13 07:48:04 - End Time 2025-01-13 10:48:04 [2025-01-13 10:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238432', 'tblTempUsageDetail_20' ) start [2025-01-13 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238432', 'tblTempUsageDetail_20' ) end [2025-01-13 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238432', 'tblTempVendorCDR_20' ) start [2025-01-13 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238432', 'tblTempVendorCDR_20' ) end [2025-01-13 10:48:21] Production.INFO: ProcessCDR(1,14238432,1,1,2) [2025-01-13 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238432', 'tblTempUsageDetail_20' ) start [2025-01-13 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238432', 'tblTempUsageDetail_20' ) end [2025-01-13 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:48:26] Production.INFO: ==24992== Releasing lock... [2025-01-13 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:48:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-13 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:49:05 [end_date_ymd] => 2025-01-13 10:49:05 [RateCDR] => 1 ) [2025-01-13 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:49:05' and `end` < '2025-01-13 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:49:22] Production.INFO: count ==4254 [2025-01-13 10:49:24] Production.ERROR: pbx CDR StartTime 2025-01-13 07:49:05 - End Time 2025-01-13 10:49:05 [2025-01-13 10:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238437', 'tblTempUsageDetail_20' ) start [2025-01-13 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238437', 'tblTempUsageDetail_20' ) end [2025-01-13 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238437', 'tblTempVendorCDR_20' ) start [2025-01-13 10:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238437', 'tblTempVendorCDR_20' ) end [2025-01-13 10:49:24] Production.INFO: ProcessCDR(1,14238437,1,1,2) [2025-01-13 10:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238437', 'tblTempUsageDetail_20' ) start [2025-01-13 10:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238437', 'tblTempUsageDetail_20' ) end [2025-01-13 10:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:49:29] Production.INFO: ==25068== Releasing lock... [2025-01-13 10:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:49:29] Production.INFO: 59.75 MB #Memory Used# [2025-01-13 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:50:05 [end_date_ymd] => 2025-01-13 10:50:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:50:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:50:21] Production.INFO: count ==4265 [2025-01-13 10:50:22] Production.ERROR: pbx CDR StartTime 2025-01-13 07:50:05 - End Time 2025-01-13 10:50:05 [2025-01-13 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238443', 'tblTempUsageDetail_20' ) start [2025-01-13 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238443', 'tblTempUsageDetail_20' ) end [2025-01-13 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238443', 'tblTempVendorCDR_20' ) start [2025-01-13 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238443', 'tblTempVendorCDR_20' ) end [2025-01-13 10:50:22] Production.INFO: ProcessCDR(1,14238443,1,1,2) [2025-01-13 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238443', 'tblTempUsageDetail_20' ) start [2025-01-13 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238443', 'tblTempUsageDetail_20' ) end [2025-01-13 10:50:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:50:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:50:27] Production.INFO: ==25143== Releasing lock... [2025-01-13 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:50:27] Production.INFO: 59.75 MB #Memory Used# [2025-01-13 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:51:05 [end_date_ymd] => 2025-01-13 10:51:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:51:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:51:26] Production.INFO: count ==4352 [2025-01-13 10:51:28] Production.ERROR: pbx CDR StartTime 2025-01-13 07:51:05 - End Time 2025-01-13 10:51:05 [2025-01-13 10:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238448', 'tblTempUsageDetail_20' ) start [2025-01-13 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238448', 'tblTempUsageDetail_20' ) end [2025-01-13 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238448', 'tblTempVendorCDR_20' ) start [2025-01-13 10:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238448', 'tblTempVendorCDR_20' ) end [2025-01-13 10:51:28] Production.INFO: ProcessCDR(1,14238448,1,1,2) [2025-01-13 10:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:51:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:51:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238448', 'tblTempUsageDetail_20' ) start [2025-01-13 10:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238448', 'tblTempUsageDetail_20' ) end [2025-01-13 10:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:51:33] Production.INFO: ==25255== Releasing lock... [2025-01-13 10:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:51:33] Production.INFO: 60.5 MB #Memory Used# [2025-01-13 10:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:52:04 [end_date_ymd] => 2025-01-13 10:52:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:52:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:52:24] Production.INFO: count ==4391 [2025-01-13 10:52:25] Production.ERROR: pbx CDR StartTime 2025-01-13 07:52:04 - End Time 2025-01-13 10:52:04 [2025-01-13 10:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238453', 'tblTempUsageDetail_20' ) start [2025-01-13 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238453', 'tblTempUsageDetail_20' ) end [2025-01-13 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238453', 'tblTempVendorCDR_20' ) start [2025-01-13 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238453', 'tblTempVendorCDR_20' ) end [2025-01-13 10:52:25] Production.INFO: ProcessCDR(1,14238453,1,1,2) [2025-01-13 10:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238453', 'tblTempUsageDetail_20' ) start [2025-01-13 10:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238453', 'tblTempUsageDetail_20' ) end [2025-01-13 10:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:52:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:52:31] Production.INFO: ==25325== Releasing lock... [2025-01-13 10:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:52:31] Production.INFO: 60.75 MB #Memory Used# [2025-01-13 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:53:05 [end_date_ymd] => 2025-01-13 10:53:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:53:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:53:34] Production.INFO: count ==4432 [2025-01-13 10:53:36] Production.ERROR: pbx CDR StartTime 2025-01-13 07:53:05 - End Time 2025-01-13 10:53:05 [2025-01-13 10:53:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:53:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238458', 'tblTempUsageDetail_20' ) start [2025-01-13 10:53:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238458', 'tblTempUsageDetail_20' ) end [2025-01-13 10:53:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238458', 'tblTempVendorCDR_20' ) start [2025-01-13 10:53:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238458', 'tblTempVendorCDR_20' ) end [2025-01-13 10:53:36] Production.INFO: ProcessCDR(1,14238458,1,1,2) [2025-01-13 10:53:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:53:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:53:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:53:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:53:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238458', 'tblTempUsageDetail_20' ) start [2025-01-13 10:53:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238458', 'tblTempUsageDetail_20' ) end [2025-01-13 10:53:41] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:53:41] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:53:41] Production.INFO: ==25398== Releasing lock... [2025-01-13 10:53:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:53:41] Production.INFO: 61.25 MB #Memory Used# [2025-01-13 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:54:05 [end_date_ymd] => 2025-01-13 10:54:05 [RateCDR] => 1 ) [2025-01-13 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:54:05' and `end` < '2025-01-13 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:54:23] Production.INFO: count ==4437 [2025-01-13 10:54:25] Production.ERROR: pbx CDR StartTime 2025-01-13 07:54:05 - End Time 2025-01-13 10:54:05 [2025-01-13 10:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238463', 'tblTempUsageDetail_20' ) start [2025-01-13 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238463', 'tblTempUsageDetail_20' ) end [2025-01-13 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238463', 'tblTempVendorCDR_20' ) start [2025-01-13 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238463', 'tblTempVendorCDR_20' ) end [2025-01-13 10:54:25] Production.INFO: ProcessCDR(1,14238463,1,1,2) [2025-01-13 10:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238463', 'tblTempUsageDetail_20' ) start [2025-01-13 10:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238463', 'tblTempUsageDetail_20' ) end [2025-01-13 10:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:54:30] Production.INFO: ==25469== Releasing lock... [2025-01-13 10:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:54:30] Production.INFO: 61.25 MB #Memory Used# [2025-01-13 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:55:05 [end_date_ymd] => 2025-01-13 10:55:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:55:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:55:23] Production.INFO: count ==4458 [2025-01-13 10:55:25] Production.ERROR: pbx CDR StartTime 2025-01-13 07:55:05 - End Time 2025-01-13 10:55:05 [2025-01-13 10:55:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238468', 'tblTempUsageDetail_20' ) start [2025-01-13 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238468', 'tblTempUsageDetail_20' ) end [2025-01-13 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238468', 'tblTempVendorCDR_20' ) start [2025-01-13 10:55:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238468', 'tblTempVendorCDR_20' ) end [2025-01-13 10:55:25] Production.INFO: ProcessCDR(1,14238468,1,1,2) [2025-01-13 10:55:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238468', 'tblTempUsageDetail_20' ) start [2025-01-13 10:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238468', 'tblTempUsageDetail_20' ) end [2025-01-13 10:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:55:29] Production.INFO: ==25543== Releasing lock... [2025-01-13 10:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:55:29] Production.INFO: 61.25 MB #Memory Used# [2025-01-13 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:56:05 [end_date_ymd] => 2025-01-13 10:56:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:56:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:56:22] Production.INFO: count ==4472 [2025-01-13 10:56:24] Production.ERROR: pbx CDR StartTime 2025-01-13 07:56:05 - End Time 2025-01-13 10:56:05 [2025-01-13 10:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238473', 'tblTempUsageDetail_20' ) start [2025-01-13 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238473', 'tblTempUsageDetail_20' ) end [2025-01-13 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238473', 'tblTempVendorCDR_20' ) start [2025-01-13 10:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238473', 'tblTempVendorCDR_20' ) end [2025-01-13 10:56:24] Production.INFO: ProcessCDR(1,14238473,1,1,2) [2025-01-13 10:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238473', 'tblTempUsageDetail_20' ) start [2025-01-13 10:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238473', 'tblTempUsageDetail_20' ) end [2025-01-13 10:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:56:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:56:29] Production.INFO: ==25615== Releasing lock... [2025-01-13 10:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:56:29] Production.INFO: 61.5 MB #Memory Used# [2025-01-13 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:57:05 [end_date_ymd] => 2025-01-13 10:57:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 07:57:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 10:57:26] Production.INFO: count ==4472 [2025-01-13 10:57:28] Production.ERROR: pbx CDR StartTime 2025-01-13 07:57:05 - End Time 2025-01-13 10:57:05 [2025-01-13 10:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238478', 'tblTempUsageDetail_20' ) start [2025-01-13 10:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238478', 'tblTempUsageDetail_20' ) end [2025-01-13 10:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238478', 'tblTempVendorCDR_20' ) start [2025-01-13 10:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238478', 'tblTempVendorCDR_20' ) end [2025-01-13 10:57:28] Production.INFO: ProcessCDR(1,14238478,1,1,2) [2025-01-13 10:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238478', 'tblTempUsageDetail_20' ) start [2025-01-13 10:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238478', 'tblTempUsageDetail_20' ) end [2025-01-13 10:57:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:57:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:57:33] Production.INFO: ==25689== Releasing lock... [2025-01-13 10:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:57:33] Production.INFO: 61.5 MB #Memory Used# [2025-01-13 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:58:05 [end_date_ymd] => 2025-01-13 10:58:05 [RateCDR] => 1 ) [2025-01-13 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:58:05' and `end` < '2025-01-13 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:58:29] Production.INFO: count ==4510 [2025-01-13 10:58:31] Production.ERROR: pbx CDR StartTime 2025-01-13 07:58:05 - End Time 2025-01-13 10:58:05 [2025-01-13 10:58:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238483', 'tblTempUsageDetail_20' ) start [2025-01-13 10:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238483', 'tblTempUsageDetail_20' ) end [2025-01-13 10:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238483', 'tblTempVendorCDR_20' ) start [2025-01-13 10:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238483', 'tblTempVendorCDR_20' ) end [2025-01-13 10:58:31] Production.INFO: ProcessCDR(1,14238483,1,1,2) [2025-01-13 10:58:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:58:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:58:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:58:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:58:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238483', 'tblTempUsageDetail_20' ) start [2025-01-13 10:58:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238483', 'tblTempUsageDetail_20' ) end [2025-01-13 10:58:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:58:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:58:36] Production.INFO: ==25759== Releasing lock... [2025-01-13 10:58:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:58:36] Production.INFO: 61.75 MB #Memory Used# [2025-01-13 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 07:59:06 [end_date_ymd] => 2025-01-13 10:59:06 [RateCDR] => 1 ) [2025-01-13 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 07:59:06' and `end` < '2025-01-13 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 10:59:30] Production.INFO: count ==4556 [2025-01-13 10:59:32] Production.ERROR: pbx CDR StartTime 2025-01-13 07:59:06 - End Time 2025-01-13 10:59:06 [2025-01-13 10:59:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 10:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238488', 'tblTempUsageDetail_20' ) start [2025-01-13 10:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238488', 'tblTempUsageDetail_20' ) end [2025-01-13 10:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238488', 'tblTempVendorCDR_20' ) start [2025-01-13 10:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238488', 'tblTempVendorCDR_20' ) end [2025-01-13 10:59:32] Production.INFO: ProcessCDR(1,14238488,1,1,2) [2025-01-13 10:59:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:59:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 10:59:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:59:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 10:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238488', 'tblTempUsageDetail_20' ) start [2025-01-13 10:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238488', 'tblTempUsageDetail_20' ) end [2025-01-13 10:59:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 10:59:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 10:59:36] Production.INFO: ==25831== Releasing lock... [2025-01-13 10:59:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 10:59:36] Production.INFO: 62 MB #Memory Used# [2025-01-13 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:00:05 [end_date_ymd] => 2025-01-13 11:00:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:00:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:00:32] Production.INFO: count ==4574 [2025-01-13 11:00:34] Production.ERROR: pbx CDR StartTime 2025-01-13 08:00:05 - End Time 2025-01-13 11:00:05 [2025-01-13 11:00:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238494', 'tblTempUsageDetail_20' ) start [2025-01-13 11:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238494', 'tblTempUsageDetail_20' ) end [2025-01-13 11:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238494', 'tblTempVendorCDR_20' ) start [2025-01-13 11:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238494', 'tblTempVendorCDR_20' ) end [2025-01-13 11:00:34] Production.INFO: ProcessCDR(1,14238494,1,1,2) [2025-01-13 11:00:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:00:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:00:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:00:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238494', 'tblTempUsageDetail_20' ) start [2025-01-13 11:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238494', 'tblTempUsageDetail_20' ) end [2025-01-13 11:00:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:00:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:00:39] Production.INFO: ==25902== Releasing lock... [2025-01-13 11:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:00:39] Production.INFO: 62.25 MB #Memory Used# [2025-01-13 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:01:05 [end_date_ymd] => 2025-01-13 11:01:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:01:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:01:31] Production.INFO: count ==4684 [2025-01-13 11:01:33] Production.ERROR: pbx CDR StartTime 2025-01-13 08:01:05 - End Time 2025-01-13 11:01:05 [2025-01-13 11:01:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238499', 'tblTempUsageDetail_20' ) start [2025-01-13 11:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238499', 'tblTempUsageDetail_20' ) end [2025-01-13 11:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238499', 'tblTempVendorCDR_20' ) start [2025-01-13 11:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238499', 'tblTempVendorCDR_20' ) end [2025-01-13 11:01:33] Production.INFO: ProcessCDR(1,14238499,1,1,2) [2025-01-13 11:01:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:01:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:01:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:01:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:01:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238499', 'tblTempUsageDetail_20' ) start [2025-01-13 11:01:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238499', 'tblTempUsageDetail_20' ) end [2025-01-13 11:01:38] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:01:38] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:01:38] Production.INFO: ==26068== Releasing lock... [2025-01-13 11:01:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:01:38] Production.INFO: 63 MB #Memory Used# [2025-01-13 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:02:05 [end_date_ymd] => 2025-01-13 11:02:05 [RateCDR] => 1 ) [2025-01-13 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:02:05' and `end` < '2025-01-13 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:02:24] Production.INFO: count ==4677 [2025-01-13 11:02:26] Production.ERROR: pbx CDR StartTime 2025-01-13 08:02:05 - End Time 2025-01-13 11:02:05 [2025-01-13 11:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238504', 'tblTempUsageDetail_20' ) start [2025-01-13 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238504', 'tblTempUsageDetail_20' ) end [2025-01-13 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238504', 'tblTempVendorCDR_20' ) start [2025-01-13 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238504', 'tblTempVendorCDR_20' ) end [2025-01-13 11:02:26] Production.INFO: ProcessCDR(1,14238504,1,1,2) [2025-01-13 11:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238504', 'tblTempUsageDetail_20' ) start [2025-01-13 11:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238504', 'tblTempUsageDetail_20' ) end [2025-01-13 11:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:02:31] Production.INFO: ==26140== Releasing lock... [2025-01-13 11:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:02:31] Production.INFO: 63 MB #Memory Used# [2025-01-13 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:03:05 [end_date_ymd] => 2025-01-13 11:03:05 [RateCDR] => 1 ) [2025-01-13 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:03:05' and `end` < '2025-01-13 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:03:24] Production.INFO: count ==4690 [2025-01-13 11:03:26] Production.ERROR: pbx CDR StartTime 2025-01-13 08:03:05 - End Time 2025-01-13 11:03:05 [2025-01-13 11:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238509', 'tblTempUsageDetail_20' ) start [2025-01-13 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238509', 'tblTempUsageDetail_20' ) end [2025-01-13 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238509', 'tblTempVendorCDR_20' ) start [2025-01-13 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238509', 'tblTempVendorCDR_20' ) end [2025-01-13 11:03:26] Production.INFO: ProcessCDR(1,14238509,1,1,2) [2025-01-13 11:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238509', 'tblTempUsageDetail_20' ) start [2025-01-13 11:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238509', 'tblTempUsageDetail_20' ) end [2025-01-13 11:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:03:31] Production.INFO: ==26211== Releasing lock... [2025-01-13 11:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:03:31] Production.INFO: 63 MB #Memory Used# [2025-01-13 11:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:04:04 [end_date_ymd] => 2025-01-13 11:04:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:04:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:04:20] Production.INFO: count ==4696 [2025-01-13 11:04:22] Production.ERROR: pbx CDR StartTime 2025-01-13 08:04:04 - End Time 2025-01-13 11:04:04 [2025-01-13 11:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238514', 'tblTempUsageDetail_20' ) start [2025-01-13 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238514', 'tblTempUsageDetail_20' ) end [2025-01-13 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238514', 'tblTempVendorCDR_20' ) start [2025-01-13 11:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238514', 'tblTempVendorCDR_20' ) end [2025-01-13 11:04:22] Production.INFO: ProcessCDR(1,14238514,1,1,2) [2025-01-13 11:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238514', 'tblTempUsageDetail_20' ) start [2025-01-13 11:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238514', 'tblTempUsageDetail_20' ) end [2025-01-13 11:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:04:27] Production.INFO: ==26281== Releasing lock... [2025-01-13 11:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:04:27] Production.INFO: 63 MB #Memory Used# [2025-01-13 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:05:05 [end_date_ymd] => 2025-01-13 11:05:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:05:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:05:29] Production.INFO: count ==4727 [2025-01-13 11:05:31] Production.ERROR: pbx CDR StartTime 2025-01-13 08:05:05 - End Time 2025-01-13 11:05:05 [2025-01-13 11:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238519', 'tblTempUsageDetail_20' ) start [2025-01-13 11:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238519', 'tblTempUsageDetail_20' ) end [2025-01-13 11:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238519', 'tblTempVendorCDR_20' ) start [2025-01-13 11:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238519', 'tblTempVendorCDR_20' ) end [2025-01-13 11:05:31] Production.INFO: ProcessCDR(1,14238519,1,1,2) [2025-01-13 11:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238519', 'tblTempUsageDetail_20' ) start [2025-01-13 11:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238519', 'tblTempUsageDetail_20' ) end [2025-01-13 11:05:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:05:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:05:36] Production.INFO: ==26433== Releasing lock... [2025-01-13 11:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:05:36] Production.INFO: 63.25 MB #Memory Used# [2025-01-13 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:06:05 [end_date_ymd] => 2025-01-13 11:06:05 [RateCDR] => 1 ) [2025-01-13 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:06:05' and `end` < '2025-01-13 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:06:25] Production.INFO: count ==4736 [2025-01-13 11:06:26] Production.ERROR: pbx CDR StartTime 2025-01-13 08:06:05 - End Time 2025-01-13 11:06:05 [2025-01-13 11:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238524', 'tblTempUsageDetail_20' ) start [2025-01-13 11:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238524', 'tblTempUsageDetail_20' ) end [2025-01-13 11:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238524', 'tblTempVendorCDR_20' ) start [2025-01-13 11:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238524', 'tblTempVendorCDR_20' ) end [2025-01-13 11:06:27] Production.INFO: ProcessCDR(1,14238524,1,1,2) [2025-01-13 11:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238524', 'tblTempUsageDetail_20' ) start [2025-01-13 11:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238524', 'tblTempUsageDetail_20' ) end [2025-01-13 11:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:06:32] Production.INFO: ==26506== Releasing lock... [2025-01-13 11:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:06:32] Production.INFO: 63.5 MB #Memory Used# [2025-01-13 11:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:07:04 [end_date_ymd] => 2025-01-13 11:07:04 [RateCDR] => 1 ) [2025-01-13 11:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:07:04' and `end` < '2025-01-13 11:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:07:18] Production.INFO: count ==4753 [2025-01-13 11:07:20] Production.ERROR: pbx CDR StartTime 2025-01-13 08:07:04 - End Time 2025-01-13 11:07:04 [2025-01-13 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238529', 'tblTempUsageDetail_20' ) start [2025-01-13 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238529', 'tblTempUsageDetail_20' ) end [2025-01-13 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238529', 'tblTempVendorCDR_20' ) start [2025-01-13 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238529', 'tblTempVendorCDR_20' ) end [2025-01-13 11:07:20] Production.INFO: ProcessCDR(1,14238529,1,1,2) [2025-01-13 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238529', 'tblTempUsageDetail_20' ) start [2025-01-13 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238529', 'tblTempUsageDetail_20' ) end [2025-01-13 11:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:07:25] Production.INFO: ==26615== Releasing lock... [2025-01-13 11:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:07:25] Production.INFO: 63.5 MB #Memory Used# [2025-01-13 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:08:05 [end_date_ymd] => 2025-01-13 11:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:08:20] Production.INFO: count ==4772 [2025-01-13 11:08:22] Production.ERROR: pbx CDR StartTime 2025-01-13 08:08:05 - End Time 2025-01-13 11:08:05 [2025-01-13 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238534', 'tblTempUsageDetail_20' ) start [2025-01-13 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238534', 'tblTempUsageDetail_20' ) end [2025-01-13 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238534', 'tblTempVendorCDR_20' ) start [2025-01-13 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238534', 'tblTempVendorCDR_20' ) end [2025-01-13 11:08:22] Production.INFO: ProcessCDR(1,14238534,1,1,2) [2025-01-13 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238534', 'tblTempUsageDetail_20' ) start [2025-01-13 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238534', 'tblTempUsageDetail_20' ) end [2025-01-13 11:08:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:08:27] Production.INFO: ==26765== Releasing lock... [2025-01-13 11:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:08:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-13 11:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:09:04 [end_date_ymd] => 2025-01-13 11:09:04 [RateCDR] => 1 ) [2025-01-13 11:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:09:04' and `end` < '2025-01-13 11:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:09:19] Production.INFO: count ==4775 [2025-01-13 11:09:21] Production.ERROR: pbx CDR StartTime 2025-01-13 08:09:04 - End Time 2025-01-13 11:09:04 [2025-01-13 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238539', 'tblTempUsageDetail_20' ) start [2025-01-13 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238539', 'tblTempUsageDetail_20' ) end [2025-01-13 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238539', 'tblTempVendorCDR_20' ) start [2025-01-13 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238539', 'tblTempVendorCDR_20' ) end [2025-01-13 11:09:21] Production.INFO: ProcessCDR(1,14238539,1,1,2) [2025-01-13 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238539', 'tblTempUsageDetail_20' ) start [2025-01-13 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238539', 'tblTempUsageDetail_20' ) end [2025-01-13 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:09:26] Production.INFO: ==26841== Releasing lock... [2025-01-13 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:09:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-13 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:10:06 [end_date_ymd] => 2025-01-13 11:10:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:10:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:10:22] Production.INFO: count ==4776 [2025-01-13 11:10:24] Production.ERROR: pbx CDR StartTime 2025-01-13 08:10:06 - End Time 2025-01-13 11:10:06 [2025-01-13 11:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238545', 'tblTempUsageDetail_20' ) start [2025-01-13 11:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238545', 'tblTempUsageDetail_20' ) end [2025-01-13 11:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238545', 'tblTempVendorCDR_20' ) start [2025-01-13 11:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238545', 'tblTempVendorCDR_20' ) end [2025-01-13 11:10:24] Production.INFO: ProcessCDR(1,14238545,1,1,2) [2025-01-13 11:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238545', 'tblTempUsageDetail_20' ) start [2025-01-13 11:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238545', 'tblTempUsageDetail_20' ) end [2025-01-13 11:10:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:10:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:10:29] Production.INFO: ==26917== Releasing lock... [2025-01-13 11:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:10:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-13 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:11:04 [end_date_ymd] => 2025-01-13 11:11:04 [RateCDR] => 1 ) [2025-01-13 11: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` >= '2025-01-13 08:11:04' and `end` < '2025-01-13 11: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 ,'') [2025-01-13 11:11:28] Production.INFO: count ==4863 [2025-01-13 11:11:30] Production.ERROR: pbx CDR StartTime 2025-01-13 08:11:04 - End Time 2025-01-13 11:11:04 [2025-01-13 11:11:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238550', 'tblTempUsageDetail_20' ) start [2025-01-13 11:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238550', 'tblTempUsageDetail_20' ) end [2025-01-13 11:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238550', 'tblTempVendorCDR_20' ) start [2025-01-13 11:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238550', 'tblTempVendorCDR_20' ) end [2025-01-13 11:11:30] Production.INFO: ProcessCDR(1,14238550,1,1,2) [2025-01-13 11:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:11:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:11:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238550', 'tblTempUsageDetail_20' ) start [2025-01-13 11:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238550', 'tblTempUsageDetail_20' ) end [2025-01-13 11:11:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:11:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:11:34] Production.INFO: ==26991== Releasing lock... [2025-01-13 11:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:11:34] Production.INFO: 64.25 MB #Memory Used# [2025-01-13 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:12:05 [end_date_ymd] => 2025-01-13 11:12:05 [RateCDR] => 1 ) [2025-01-13 11:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:12:05' and `end` < '2025-01-13 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:12:24] Production.INFO: count ==4884 [2025-01-13 11:12:26] Production.ERROR: pbx CDR StartTime 2025-01-13 08:12:05 - End Time 2025-01-13 11:12:05 [2025-01-13 11:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238555', 'tblTempUsageDetail_20' ) start [2025-01-13 11:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238555', 'tblTempUsageDetail_20' ) end [2025-01-13 11:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238555', 'tblTempVendorCDR_20' ) start [2025-01-13 11:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238555', 'tblTempVendorCDR_20' ) end [2025-01-13 11:12:26] Production.INFO: ProcessCDR(1,14238555,1,1,2) [2025-01-13 11:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238555', 'tblTempUsageDetail_20' ) start [2025-01-13 11:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238555', 'tblTempUsageDetail_20' ) end [2025-01-13 11:12:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:12:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:12:31] Production.INFO: ==27139== Releasing lock... [2025-01-13 11:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:12:31] Production.INFO: 64.5 MB #Memory Used# [2025-01-13 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:13:05 [end_date_ymd] => 2025-01-13 11:13:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:13:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:13:23] Production.INFO: count ==4890 [2025-01-13 11:13:25] Production.ERROR: pbx CDR StartTime 2025-01-13 08:13:05 - End Time 2025-01-13 11:13:05 [2025-01-13 11:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238560', 'tblTempUsageDetail_20' ) start [2025-01-13 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238560', 'tblTempUsageDetail_20' ) end [2025-01-13 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238560', 'tblTempVendorCDR_20' ) start [2025-01-13 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238560', 'tblTempVendorCDR_20' ) end [2025-01-13 11:13:25] Production.INFO: ProcessCDR(1,14238560,1,1,2) [2025-01-13 11:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238560', 'tblTempUsageDetail_20' ) start [2025-01-13 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238560', 'tblTempUsageDetail_20' ) end [2025-01-13 11:13:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:13:29] Production.INFO: ==27210== Releasing lock... [2025-01-13 11:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:13:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-13 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:14:05 [end_date_ymd] => 2025-01-13 11:14:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:14:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:14:28] Production.INFO: count ==4872 [2025-01-13 11:14:30] Production.ERROR: pbx CDR StartTime 2025-01-13 08:14:05 - End Time 2025-01-13 11:14:05 [2025-01-13 11:14:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238565', 'tblTempUsageDetail_20' ) start [2025-01-13 11:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238565', 'tblTempUsageDetail_20' ) end [2025-01-13 11:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238565', 'tblTempVendorCDR_20' ) start [2025-01-13 11:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238565', 'tblTempVendorCDR_20' ) end [2025-01-13 11:14:30] Production.INFO: ProcessCDR(1,14238565,1,1,2) [2025-01-13 11:14:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:14:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:14:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:14:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238565', 'tblTempUsageDetail_20' ) start [2025-01-13 11:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238565', 'tblTempUsageDetail_20' ) end [2025-01-13 11:14:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:14:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:14:35] Production.INFO: ==27280== Releasing lock... [2025-01-13 11:14:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:14:35] Production.INFO: 64.5 MB #Memory Used# [2025-01-13 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:15:05 [end_date_ymd] => 2025-01-13 11:15:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:15:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:15:26] Production.INFO: count ==4909 [2025-01-13 11:15:28] Production.ERROR: pbx CDR StartTime 2025-01-13 08:15:05 - End Time 2025-01-13 11:15:05 [2025-01-13 11:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238570', 'tblTempUsageDetail_20' ) start [2025-01-13 11:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238570', 'tblTempUsageDetail_20' ) end [2025-01-13 11:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238570', 'tblTempVendorCDR_20' ) start [2025-01-13 11:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238570', 'tblTempVendorCDR_20' ) end [2025-01-13 11:15:28] Production.INFO: ProcessCDR(1,14238570,1,1,2) [2025-01-13 11:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:15:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:15:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:15:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238570', 'tblTempUsageDetail_20' ) start [2025-01-13 11:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238570', 'tblTempUsageDetail_20' ) end [2025-01-13 11:15:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:15:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:15:33] Production.INFO: ==27431== Releasing lock... [2025-01-13 11:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:15:33] Production.INFO: 64.75 MB #Memory Used# [2025-01-13 11:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:16:04 [end_date_ymd] => 2025-01-13 11:16:04 [RateCDR] => 1 ) [2025-01-13 11: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` >= '2025-01-13 08:16:04' and `end` < '2025-01-13 11: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 ,'') [2025-01-13 11:16:26] Production.INFO: count ==4921 [2025-01-13 11:16:28] Production.ERROR: pbx CDR StartTime 2025-01-13 08:16:04 - End Time 2025-01-13 11:16:04 [2025-01-13 11:16:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238575', 'tblTempUsageDetail_20' ) start [2025-01-13 11:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238575', 'tblTempUsageDetail_20' ) end [2025-01-13 11:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238575', 'tblTempVendorCDR_20' ) start [2025-01-13 11:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238575', 'tblTempVendorCDR_20' ) end [2025-01-13 11:16:28] Production.INFO: ProcessCDR(1,14238575,1,1,2) [2025-01-13 11:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:16:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:16:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:16:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238575', 'tblTempUsageDetail_20' ) start [2025-01-13 11:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238575', 'tblTempUsageDetail_20' ) end [2025-01-13 11:16:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:16:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:16:33] Production.INFO: ==27501== Releasing lock... [2025-01-13 11:16:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:16:33] Production.INFO: 64.75 MB #Memory Used# [2025-01-13 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:17:04 [end_date_ymd] => 2025-01-13 11:17:04 [RateCDR] => 1 ) [2025-01-13 11:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:17:04' and `end` < '2025-01-13 11:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:17:26] Production.INFO: count ==4960 [2025-01-13 11:17:28] Production.ERROR: pbx CDR StartTime 2025-01-13 08:17:04 - End Time 2025-01-13 11:17:04 [2025-01-13 11:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238580', 'tblTempUsageDetail_20' ) start [2025-01-13 11:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238580', 'tblTempUsageDetail_20' ) end [2025-01-13 11:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238580', 'tblTempVendorCDR_20' ) start [2025-01-13 11:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238580', 'tblTempVendorCDR_20' ) end [2025-01-13 11:17:28] Production.INFO: ProcessCDR(1,14238580,1,1,2) [2025-01-13 11:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238580', 'tblTempUsageDetail_20' ) start [2025-01-13 11:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238580', 'tblTempUsageDetail_20' ) end [2025-01-13 11:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:17:33] Production.INFO: ==27576== Releasing lock... [2025-01-13 11:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:17:33] Production.INFO: 65 MB #Memory Used# [2025-01-13 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:18:05 [end_date_ymd] => 2025-01-13 11:18:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:18:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:18:23] Production.INFO: count ==4964 [2025-01-13 11:18:25] Production.ERROR: pbx CDR StartTime 2025-01-13 08:18:05 - End Time 2025-01-13 11:18:05 [2025-01-13 11:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238585', 'tblTempUsageDetail_20' ) start [2025-01-13 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238585', 'tblTempUsageDetail_20' ) end [2025-01-13 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238585', 'tblTempVendorCDR_20' ) start [2025-01-13 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238585', 'tblTempVendorCDR_20' ) end [2025-01-13 11:18:25] Production.INFO: ProcessCDR(1,14238585,1,1,2) [2025-01-13 11:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238585', 'tblTempUsageDetail_20' ) start [2025-01-13 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238585', 'tblTempUsageDetail_20' ) end [2025-01-13 11:18:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:18:30] Production.INFO: ==27647== Releasing lock... [2025-01-13 11:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:18:30] Production.INFO: 65.25 MB #Memory Used# [2025-01-13 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:19:04 [end_date_ymd] => 2025-01-13 11:19:04 [RateCDR] => 1 ) [2025-01-13 11:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:19:04' and `end` < '2025-01-13 11:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:19:21] Production.INFO: count ==5011 [2025-01-13 11:19:23] Production.ERROR: pbx CDR StartTime 2025-01-13 08:19:04 - End Time 2025-01-13 11:19:04 [2025-01-13 11:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238590', 'tblTempUsageDetail_20' ) start [2025-01-13 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238590', 'tblTempUsageDetail_20' ) end [2025-01-13 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238590', 'tblTempVendorCDR_20' ) start [2025-01-13 11:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238590', 'tblTempVendorCDR_20' ) end [2025-01-13 11:19:24] Production.INFO: ProcessCDR(1,14238590,1,1,2) [2025-01-13 11:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238590', 'tblTempUsageDetail_20' ) start [2025-01-13 11:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238590', 'tblTempUsageDetail_20' ) end [2025-01-13 11:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:19:29] Production.INFO: ==27719== Releasing lock... [2025-01-13 11:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:19:29] Production.INFO: 65.5 MB #Memory Used# [2025-01-13 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:20:06 [end_date_ymd] => 2025-01-13 11:20:06 [RateCDR] => 1 ) [2025-01-13 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:20:06' and `end` < '2025-01-13 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:20:25] Production.INFO: count ==5048 [2025-01-13 11:20:27] Production.ERROR: pbx CDR StartTime 2025-01-13 08:20:06 - End Time 2025-01-13 11:20:06 [2025-01-13 11:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238596', 'tblTempUsageDetail_20' ) start [2025-01-13 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238596', 'tblTempUsageDetail_20' ) end [2025-01-13 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238596', 'tblTempVendorCDR_20' ) start [2025-01-13 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238596', 'tblTempVendorCDR_20' ) end [2025-01-13 11:20:27] Production.INFO: ProcessCDR(1,14238596,1,1,2) [2025-01-13 11:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238596', 'tblTempUsageDetail_20' ) start [2025-01-13 11:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238596', 'tblTempUsageDetail_20' ) end [2025-01-13 11:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:20:32] Production.INFO: ==27802== Releasing lock... [2025-01-13 11:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:20:32] Production.INFO: 65.75 MB #Memory Used# [2025-01-13 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:21:04 [end_date_ymd] => 2025-01-13 11:21:04 [RateCDR] => 1 ) [2025-01-13 11: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` >= '2025-01-13 08:21:04' and `end` < '2025-01-13 11: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 ,'') [2025-01-13 11:21:22] Production.INFO: count ==5127 [2025-01-13 11:21:24] Production.ERROR: pbx CDR StartTime 2025-01-13 08:21:04 - End Time 2025-01-13 11:21:04 [2025-01-13 11:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238601', 'tblTempUsageDetail_20' ) start [2025-01-13 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238601', 'tblTempUsageDetail_20' ) end [2025-01-13 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238601', 'tblTempVendorCDR_20' ) start [2025-01-13 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238601', 'tblTempVendorCDR_20' ) end [2025-01-13 11:21:24] Production.INFO: ProcessCDR(1,14238601,1,1,2) [2025-01-13 11:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238601', 'tblTempUsageDetail_20' ) start [2025-01-13 11:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238601', 'tblTempUsageDetail_20' ) end [2025-01-13 11:21:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:21:29] Production.INFO: ==27878== Releasing lock... [2025-01-13 11:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:21:29] Production.INFO: 66.25 MB #Memory Used# [2025-01-13 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:22:05 [end_date_ymd] => 2025-01-13 11:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:22:19] Production.INFO: count ==5115 [2025-01-13 11:22:21] Production.ERROR: pbx CDR StartTime 2025-01-13 08:22:05 - End Time 2025-01-13 11:22:05 [2025-01-13 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238606', 'tblTempUsageDetail_20' ) start [2025-01-13 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238606', 'tblTempUsageDetail_20' ) end [2025-01-13 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238606', 'tblTempVendorCDR_20' ) start [2025-01-13 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238606', 'tblTempVendorCDR_20' ) end [2025-01-13 11:22:21] Production.INFO: ProcessCDR(1,14238606,1,1,2) [2025-01-13 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238606', 'tblTempUsageDetail_20' ) start [2025-01-13 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238606', 'tblTempUsageDetail_20' ) end [2025-01-13 11:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:22:26] Production.INFO: ==27957== Releasing lock... [2025-01-13 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:22:26] Production.INFO: 66.25 MB #Memory Used# [2025-01-13 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:23:05 [end_date_ymd] => 2025-01-13 11:23:05 [RateCDR] => 1 ) [2025-01-13 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:23:05' and `end` < '2025-01-13 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:23:21] Production.INFO: count ==5126 [2025-01-13 11:23:23] Production.ERROR: pbx CDR StartTime 2025-01-13 08:23:05 - End Time 2025-01-13 11:23:05 [2025-01-13 11:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238611', 'tblTempUsageDetail_20' ) start [2025-01-13 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238611', 'tblTempUsageDetail_20' ) end [2025-01-13 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238611', 'tblTempVendorCDR_20' ) start [2025-01-13 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238611', 'tblTempVendorCDR_20' ) end [2025-01-13 11:23:23] Production.INFO: ProcessCDR(1,14238611,1,1,2) [2025-01-13 11:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238611', 'tblTempUsageDetail_20' ) start [2025-01-13 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238611', 'tblTempUsageDetail_20' ) end [2025-01-13 11:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:23:28] Production.INFO: ==28073== Releasing lock... [2025-01-13 11:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:23:28] Production.INFO: 66.25 MB #Memory Used# [2025-01-13 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:24:05 [end_date_ymd] => 2025-01-13 11:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:24:19] Production.INFO: count ==5129 [2025-01-13 11:24:21] Production.ERROR: pbx CDR StartTime 2025-01-13 08:24:05 - End Time 2025-01-13 11:24:05 [2025-01-13 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238616', 'tblTempUsageDetail_20' ) start [2025-01-13 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238616', 'tblTempUsageDetail_20' ) end [2025-01-13 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238616', 'tblTempVendorCDR_20' ) start [2025-01-13 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238616', 'tblTempVendorCDR_20' ) end [2025-01-13 11:24:21] Production.INFO: ProcessCDR(1,14238616,1,1,2) [2025-01-13 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238616', 'tblTempUsageDetail_20' ) start [2025-01-13 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238616', 'tblTempUsageDetail_20' ) end [2025-01-13 11:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:24:25] Production.INFO: ==28152== Releasing lock... [2025-01-13 11:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:24:25] Production.INFO: 66.25 MB #Memory Used# [2025-01-13 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:25:05 [end_date_ymd] => 2025-01-13 11:25:05 [RateCDR] => 1 ) [2025-01-13 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:25:05' and `end` < '2025-01-13 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:25:24] Production.INFO: count ==5120 [2025-01-13 11:25:26] Production.ERROR: pbx CDR StartTime 2025-01-13 08:25:05 - End Time 2025-01-13 11:25:05 [2025-01-13 11:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238621', 'tblTempUsageDetail_20' ) start [2025-01-13 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238621', 'tblTempUsageDetail_20' ) end [2025-01-13 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238621', 'tblTempVendorCDR_20' ) start [2025-01-13 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238621', 'tblTempVendorCDR_20' ) end [2025-01-13 11:25:27] Production.INFO: ProcessCDR(1,14238621,1,1,2) [2025-01-13 11:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238621', 'tblTempUsageDetail_20' ) start [2025-01-13 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238621', 'tblTempUsageDetail_20' ) end [2025-01-13 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:25:31] Production.INFO: ==28226== Releasing lock... [2025-01-13 11:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:25:31] Production.INFO: 66.25 MB #Memory Used# [2025-01-13 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:26:05 [end_date_ymd] => 2025-01-13 11:26:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:26:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:26:38] Production.INFO: count ==5135 [2025-01-13 11:26:41] Production.ERROR: pbx CDR StartTime 2025-01-13 08:26:05 - End Time 2025-01-13 11:26:05 [2025-01-13 11:26:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:26:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238626', 'tblTempUsageDetail_20' ) start [2025-01-13 11:26:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238626', 'tblTempUsageDetail_20' ) end [2025-01-13 11:26:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238626', 'tblTempVendorCDR_20' ) start [2025-01-13 11:26:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238626', 'tblTempVendorCDR_20' ) end [2025-01-13 11:26:41] Production.INFO: ProcessCDR(1,14238626,1,1,2) [2025-01-13 11:26:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:26:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:26:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:26:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:26:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238626', 'tblTempUsageDetail_20' ) start [2025-01-13 11:26:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238626', 'tblTempUsageDetail_20' ) end [2025-01-13 11:26:46] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:26:46] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:26:46] Production.INFO: ==28297== Releasing lock... [2025-01-13 11:26:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:26:46] Production.INFO: 66.5 MB #Memory Used# [2025-01-13 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:27:05 [end_date_ymd] => 2025-01-13 11:27:05 [RateCDR] => 1 ) [2025-01-13 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:27:05' and `end` < '2025-01-13 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:27:28] Production.INFO: count ==5135 [2025-01-13 11:27:30] Production.ERROR: pbx CDR StartTime 2025-01-13 08:27:05 - End Time 2025-01-13 11:27:05 [2025-01-13 11:27:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238631', 'tblTempUsageDetail_20' ) start [2025-01-13 11:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238631', 'tblTempUsageDetail_20' ) end [2025-01-13 11:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238631', 'tblTempVendorCDR_20' ) start [2025-01-13 11:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238631', 'tblTempVendorCDR_20' ) end [2025-01-13 11:27:30] Production.INFO: ProcessCDR(1,14238631,1,1,2) [2025-01-13 11:27:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:27:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:27:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:27:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238631', 'tblTempUsageDetail_20' ) start [2025-01-13 11:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238631', 'tblTempUsageDetail_20' ) end [2025-01-13 11:27:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:27:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:27:35] Production.INFO: ==28385== Releasing lock... [2025-01-13 11:27:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:27:35] Production.INFO: 66.5 MB #Memory Used# [2025-01-13 11:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:28:04 [end_date_ymd] => 2025-01-13 11:28:04 [RateCDR] => 1 ) [2025-01-13 11: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` >= '2025-01-13 08:28:04' and `end` < '2025-01-13 11: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 ,'') [2025-01-13 11:28:25] Production.INFO: count ==5181 [2025-01-13 11:28:27] Production.ERROR: pbx CDR StartTime 2025-01-13 08:28:04 - End Time 2025-01-13 11:28:04 [2025-01-13 11:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238636', 'tblTempUsageDetail_20' ) start [2025-01-13 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238636', 'tblTempUsageDetail_20' ) end [2025-01-13 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238636', 'tblTempVendorCDR_20' ) start [2025-01-13 11:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238636', 'tblTempVendorCDR_20' ) end [2025-01-13 11:28:27] Production.INFO: ProcessCDR(1,14238636,1,1,2) [2025-01-13 11:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:28:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:28:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238636', 'tblTempUsageDetail_20' ) start [2025-01-13 11:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238636', 'tblTempUsageDetail_20' ) end [2025-01-13 11:28:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:28:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:28:33] Production.INFO: ==28475== Releasing lock... [2025-01-13 11:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:28:33] Production.INFO: 66.75 MB #Memory Used# [2025-01-13 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:29:05 [end_date_ymd] => 2025-01-13 11:29:05 [RateCDR] => 1 ) [2025-01-13 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:29:05' and `end` < '2025-01-13 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:29:23] Production.INFO: count ==5214 [2025-01-13 11:29:25] Production.ERROR: pbx CDR StartTime 2025-01-13 08:29:05 - End Time 2025-01-13 11:29:05 [2025-01-13 11:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238640', 'tblTempUsageDetail_20' ) start [2025-01-13 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238640', 'tblTempUsageDetail_20' ) end [2025-01-13 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238640', 'tblTempVendorCDR_20' ) start [2025-01-13 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238640', 'tblTempVendorCDR_20' ) end [2025-01-13 11:29:25] Production.INFO: ProcessCDR(1,14238640,1,1,2) [2025-01-13 11:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238640', 'tblTempUsageDetail_20' ) start [2025-01-13 11:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238640', 'tblTempUsageDetail_20' ) end [2025-01-13 11:29:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:29:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:29:30] Production.INFO: ==28568== Releasing lock... [2025-01-13 11:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:29:30] Production.INFO: 67 MB #Memory Used# [2025-01-13 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:30:05 [end_date_ymd] => 2025-01-13 11:30:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:30:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:30:25] Production.INFO: count ==5208 [2025-01-13 11:30:27] Production.ERROR: pbx CDR StartTime 2025-01-13 08:30:05 - End Time 2025-01-13 11:30:05 [2025-01-13 11:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238646', 'tblTempUsageDetail_20' ) start [2025-01-13 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238646', 'tblTempUsageDetail_20' ) end [2025-01-13 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238646', 'tblTempVendorCDR_20' ) start [2025-01-13 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238646', 'tblTempVendorCDR_20' ) end [2025-01-13 11:30:27] Production.INFO: ProcessCDR(1,14238646,1,1,2) [2025-01-13 11:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238646', 'tblTempUsageDetail_20' ) start [2025-01-13 11:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238646', 'tblTempUsageDetail_20' ) end [2025-01-13 11:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:30:32] Production.INFO: ==28648== Releasing lock... [2025-01-13 11:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:30:32] Production.INFO: 67 MB #Memory Used# [2025-01-13 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:31:06 [end_date_ymd] => 2025-01-13 11:31:06 [RateCDR] => 1 ) [2025-01-13 11: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` >= '2025-01-13 08:31:06' and `end` < '2025-01-13 11: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 ,'') [2025-01-13 11:31:26] Production.INFO: count ==5269 [2025-01-13 11:31:29] Production.ERROR: pbx CDR StartTime 2025-01-13 08:31:06 - End Time 2025-01-13 11:31:06 [2025-01-13 11:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238652', 'tblTempUsageDetail_20' ) start [2025-01-13 11:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238652', 'tblTempUsageDetail_20' ) end [2025-01-13 11:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238652', 'tblTempVendorCDR_20' ) start [2025-01-13 11:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238652', 'tblTempVendorCDR_20' ) end [2025-01-13 11:31:29] Production.INFO: ProcessCDR(1,14238652,1,1,2) [2025-01-13 11:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238652', 'tblTempUsageDetail_20' ) start [2025-01-13 11:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238652', 'tblTempUsageDetail_20' ) end [2025-01-13 11:31:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:31:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:31:34] Production.INFO: ==28724== Releasing lock... [2025-01-13 11:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:31:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-13 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:32:05 [end_date_ymd] => 2025-01-13 11:32:05 [RateCDR] => 1 ) [2025-01-13 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:32:05' and `end` < '2025-01-13 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:32:23] Production.INFO: count ==5275 [2025-01-13 11:32:25] Production.ERROR: pbx CDR StartTime 2025-01-13 08:32:05 - End Time 2025-01-13 11:32:05 [2025-01-13 11:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238657', 'tblTempUsageDetail_20' ) start [2025-01-13 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238657', 'tblTempUsageDetail_20' ) end [2025-01-13 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238657', 'tblTempVendorCDR_20' ) start [2025-01-13 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238657', 'tblTempVendorCDR_20' ) end [2025-01-13 11:32:25] Production.INFO: ProcessCDR(1,14238657,1,1,2) [2025-01-13 11:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238657', 'tblTempUsageDetail_20' ) start [2025-01-13 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238657', 'tblTempUsageDetail_20' ) end [2025-01-13 11:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:32:30] Production.INFO: ==28800== Releasing lock... [2025-01-13 11:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:32:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-13 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:33:05 [end_date_ymd] => 2025-01-13 11:33:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:33:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:33:22] Production.INFO: count ==5286 [2025-01-13 11:33:24] Production.ERROR: pbx CDR StartTime 2025-01-13 08:33:05 - End Time 2025-01-13 11:33:05 [2025-01-13 11:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238662', 'tblTempUsageDetail_20' ) start [2025-01-13 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238662', 'tblTempUsageDetail_20' ) end [2025-01-13 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238662', 'tblTempVendorCDR_20' ) start [2025-01-13 11:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238662', 'tblTempVendorCDR_20' ) end [2025-01-13 11:33:25] Production.INFO: ProcessCDR(1,14238662,1,1,2) [2025-01-13 11:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238662', 'tblTempUsageDetail_20' ) start [2025-01-13 11:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238662', 'tblTempUsageDetail_20' ) end [2025-01-13 11:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:33:29] Production.INFO: ==28877== Releasing lock... [2025-01-13 11:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:33:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-13 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:34:05 [end_date_ymd] => 2025-01-13 11:34:05 [RateCDR] => 1 ) [2025-01-13 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:34:05' and `end` < '2025-01-13 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:34:21] Production.INFO: count ==5303 [2025-01-13 11:34:23] Production.ERROR: pbx CDR StartTime 2025-01-13 08:34:05 - End Time 2025-01-13 11:34:05 [2025-01-13 11:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238667', 'tblTempUsageDetail_20' ) start [2025-01-13 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238667', 'tblTempUsageDetail_20' ) end [2025-01-13 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238667', 'tblTempVendorCDR_20' ) start [2025-01-13 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238667', 'tblTempVendorCDR_20' ) end [2025-01-13 11:34:23] Production.INFO: ProcessCDR(1,14238667,1,1,2) [2025-01-13 11:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238667', 'tblTempUsageDetail_20' ) start [2025-01-13 11:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238667', 'tblTempUsageDetail_20' ) end [2025-01-13 11:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:34:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:34:28] Production.INFO: ==28954== Releasing lock... [2025-01-13 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:34:28] Production.INFO: 67.75 MB #Memory Used# [2025-01-13 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:35:05 [end_date_ymd] => 2025-01-13 11:35:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:35:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:35:21] Production.INFO: count ==5298 [2025-01-13 11:35:24] Production.ERROR: pbx CDR StartTime 2025-01-13 08:35:05 - End Time 2025-01-13 11:35:05 [2025-01-13 11:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238672', 'tblTempUsageDetail_20' ) start [2025-01-13 11:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238672', 'tblTempUsageDetail_20' ) end [2025-01-13 11:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238672', 'tblTempVendorCDR_20' ) start [2025-01-13 11:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238672', 'tblTempVendorCDR_20' ) end [2025-01-13 11:35:24] Production.INFO: ProcessCDR(1,14238672,1,1,2) [2025-01-13 11:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238672', 'tblTempUsageDetail_20' ) start [2025-01-13 11:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238672', 'tblTempUsageDetail_20' ) end [2025-01-13 11:35:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:35:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:35:29] Production.INFO: ==29031== Releasing lock... [2025-01-13 11:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:35:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-13 11:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:36:04 [end_date_ymd] => 2025-01-13 11:36:04 [RateCDR] => 1 ) [2025-01-13 11:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:36:04' and `end` < '2025-01-13 11:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:36:19] Production.INFO: count ==5314 [2025-01-13 11:36:21] Production.ERROR: pbx CDR StartTime 2025-01-13 08:36:04 - End Time 2025-01-13 11:36:04 [2025-01-13 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238677', 'tblTempUsageDetail_20' ) start [2025-01-13 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238677', 'tblTempUsageDetail_20' ) end [2025-01-13 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238677', 'tblTempVendorCDR_20' ) start [2025-01-13 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238677', 'tblTempVendorCDR_20' ) end [2025-01-13 11:36:21] Production.INFO: ProcessCDR(1,14238677,1,1,2) [2025-01-13 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238677', 'tblTempUsageDetail_20' ) start [2025-01-13 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238677', 'tblTempUsageDetail_20' ) end [2025-01-13 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:36:26] Production.INFO: ==29108== Releasing lock... [2025-01-13 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:36:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-13 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:37:05 [end_date_ymd] => 2025-01-13 11:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:37:23] Production.INFO: count ==5314 [2025-01-13 11:37:25] Production.ERROR: pbx CDR StartTime 2025-01-13 08:37:05 - End Time 2025-01-13 11:37:05 [2025-01-13 11:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238682', 'tblTempUsageDetail_20' ) start [2025-01-13 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238682', 'tblTempUsageDetail_20' ) end [2025-01-13 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238682', 'tblTempVendorCDR_20' ) start [2025-01-13 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238682', 'tblTempVendorCDR_20' ) end [2025-01-13 11:37:25] Production.INFO: ProcessCDR(1,14238682,1,1,2) [2025-01-13 11:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238682', 'tblTempUsageDetail_20' ) start [2025-01-13 11:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238682', 'tblTempUsageDetail_20' ) end [2025-01-13 11:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:37:30] Production.INFO: ==29182== Releasing lock... [2025-01-13 11:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:37:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-13 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:38:05 [end_date_ymd] => 2025-01-13 11:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:38:25] Production.INFO: count ==5338 [2025-01-13 11:38:27] Production.ERROR: pbx CDR StartTime 2025-01-13 08:38:05 - End Time 2025-01-13 11:38:05 [2025-01-13 11:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238687', 'tblTempUsageDetail_20' ) start [2025-01-13 11:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238687', 'tblTempUsageDetail_20' ) end [2025-01-13 11:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238687', 'tblTempVendorCDR_20' ) start [2025-01-13 11:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238687', 'tblTempVendorCDR_20' ) end [2025-01-13 11:38:28] Production.INFO: ProcessCDR(1,14238687,1,1,2) [2025-01-13 11:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238687', 'tblTempUsageDetail_20' ) start [2025-01-13 11:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238687', 'tblTempUsageDetail_20' ) end [2025-01-13 11:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:38:33] Production.INFO: ==29297== Releasing lock... [2025-01-13 11:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:38:33] Production.INFO: 68 MB #Memory Used# [2025-01-13 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:39:05 [end_date_ymd] => 2025-01-13 11:39:05 [RateCDR] => 1 ) [2025-01-13 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:39:05' and `end` < '2025-01-13 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:39:18] Production.INFO: count ==5359 [2025-01-13 11:39:20] Production.ERROR: pbx CDR StartTime 2025-01-13 08:39:05 - End Time 2025-01-13 11:39:05 [2025-01-13 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238692', 'tblTempUsageDetail_20' ) start [2025-01-13 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238692', 'tblTempUsageDetail_20' ) end [2025-01-13 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238692', 'tblTempVendorCDR_20' ) start [2025-01-13 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238692', 'tblTempVendorCDR_20' ) end [2025-01-13 11:39:21] Production.INFO: ProcessCDR(1,14238692,1,1,2) [2025-01-13 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238692', 'tblTempUsageDetail_20' ) start [2025-01-13 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238692', 'tblTempUsageDetail_20' ) end [2025-01-13 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:39:25] Production.INFO: ==29377== Releasing lock... [2025-01-13 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:39:25] Production.INFO: 68 MB #Memory Used# [2025-01-13 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:40:05 [end_date_ymd] => 2025-01-13 11:40:05 [RateCDR] => 1 ) [2025-01-13 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:40:05' and `end` < '2025-01-13 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:40:25] Production.INFO: count ==5346 [2025-01-13 11:40:27] Production.ERROR: pbx CDR StartTime 2025-01-13 08:40:05 - End Time 2025-01-13 11:40:05 [2025-01-13 11:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238698', 'tblTempUsageDetail_20' ) start [2025-01-13 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238698', 'tblTempUsageDetail_20' ) end [2025-01-13 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238698', 'tblTempVendorCDR_20' ) start [2025-01-13 11:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238698', 'tblTempVendorCDR_20' ) end [2025-01-13 11:40:27] Production.INFO: ProcessCDR(1,14238698,1,1,2) [2025-01-13 11:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238698', 'tblTempUsageDetail_20' ) start [2025-01-13 11:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238698', 'tblTempUsageDetail_20' ) end [2025-01-13 11:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:40:32] Production.INFO: ==29457== Releasing lock... [2025-01-13 11:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:40:32] Production.INFO: 68 MB #Memory Used# [2025-01-13 11:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:41:04 [end_date_ymd] => 2025-01-13 11:41:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:41:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:41:22] Production.INFO: count ==5400 [2025-01-13 11:41:24] Production.ERROR: pbx CDR StartTime 2025-01-13 08:41:04 - End Time 2025-01-13 11:41:04 [2025-01-13 11:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238703', 'tblTempUsageDetail_20' ) start [2025-01-13 11:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238703', 'tblTempUsageDetail_20' ) end [2025-01-13 11:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238703', 'tblTempVendorCDR_20' ) start [2025-01-13 11:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238703', 'tblTempVendorCDR_20' ) end [2025-01-13 11:41:24] Production.INFO: ProcessCDR(1,14238703,1,1,2) [2025-01-13 11:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238703', 'tblTempUsageDetail_20' ) start [2025-01-13 11:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238703', 'tblTempUsageDetail_20' ) end [2025-01-13 11:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:41:29] Production.INFO: ==29534== Releasing lock... [2025-01-13 11:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:41:29] Production.INFO: 68.5 MB #Memory Used# [2025-01-13 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:42:05 [end_date_ymd] => 2025-01-13 11:42:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:42:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:42:20] Production.INFO: count ==5405 [2025-01-13 11:42:22] Production.ERROR: pbx CDR StartTime 2025-01-13 08:42:05 - End Time 2025-01-13 11:42:05 [2025-01-13 11:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238708', 'tblTempUsageDetail_20' ) start [2025-01-13 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238708', 'tblTempUsageDetail_20' ) end [2025-01-13 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238708', 'tblTempVendorCDR_20' ) start [2025-01-13 11:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238708', 'tblTempVendorCDR_20' ) end [2025-01-13 11:42:22] Production.INFO: ProcessCDR(1,14238708,1,1,2) [2025-01-13 11:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238708', 'tblTempUsageDetail_20' ) start [2025-01-13 11:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238708', 'tblTempUsageDetail_20' ) end [2025-01-13 11:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:42:27] Production.INFO: ==29640== Releasing lock... [2025-01-13 11:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:42:27] Production.INFO: 68.5 MB #Memory Used# [2025-01-13 11:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:43:04 [end_date_ymd] => 2025-01-13 11:43:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:43:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:43:18] Production.INFO: count ==5415 [2025-01-13 11:43:20] Production.ERROR: pbx CDR StartTime 2025-01-13 08:43:04 - End Time 2025-01-13 11:43:04 [2025-01-13 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238713', 'tblTempUsageDetail_20' ) start [2025-01-13 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238713', 'tblTempUsageDetail_20' ) end [2025-01-13 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238713', 'tblTempVendorCDR_20' ) start [2025-01-13 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238713', 'tblTempVendorCDR_20' ) end [2025-01-13 11:43:20] Production.INFO: ProcessCDR(1,14238713,1,1,2) [2025-01-13 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238713', 'tblTempUsageDetail_20' ) start [2025-01-13 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238713', 'tblTempUsageDetail_20' ) end [2025-01-13 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:43:25] Production.INFO: ==29742== Releasing lock... [2025-01-13 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:43:25] Production.INFO: 68.75 MB #Memory Used# [2025-01-13 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:44:05 [end_date_ymd] => 2025-01-13 11:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:44:20] Production.INFO: count ==5435 [2025-01-13 11:44:23] Production.ERROR: pbx CDR StartTime 2025-01-13 08:44:05 - End Time 2025-01-13 11:44:05 [2025-01-13 11:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238718', 'tblTempUsageDetail_20' ) start [2025-01-13 11:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238718', 'tblTempUsageDetail_20' ) end [2025-01-13 11:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238718', 'tblTempVendorCDR_20' ) start [2025-01-13 11:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238718', 'tblTempVendorCDR_20' ) end [2025-01-13 11:44:23] Production.INFO: ProcessCDR(1,14238718,1,1,2) [2025-01-13 11:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238718', 'tblTempUsageDetail_20' ) start [2025-01-13 11:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238718', 'tblTempUsageDetail_20' ) end [2025-01-13 11:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:44:28] Production.INFO: ==29846== Releasing lock... [2025-01-13 11:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:44:28] Production.INFO: 68.75 MB #Memory Used# [2025-01-13 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:45:05 [end_date_ymd] => 2025-01-13 11:45:05 [RateCDR] => 1 ) [2025-01-13 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:45:05' and `end` < '2025-01-13 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:45:31] Production.INFO: count ==5453 [2025-01-13 11:45:34] Production.ERROR: pbx CDR StartTime 2025-01-13 08:45:05 - End Time 2025-01-13 11:45:05 [2025-01-13 11:45:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238723', 'tblTempUsageDetail_20' ) start [2025-01-13 11:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238723', 'tblTempUsageDetail_20' ) end [2025-01-13 11:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238723', 'tblTempVendorCDR_20' ) start [2025-01-13 11:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238723', 'tblTempVendorCDR_20' ) end [2025-01-13 11:45:34] Production.INFO: ProcessCDR(1,14238723,1,1,2) [2025-01-13 11:45:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:45:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:45:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:45:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:45:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238723', 'tblTempUsageDetail_20' ) start [2025-01-13 11:45:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238723', 'tblTempUsageDetail_20' ) end [2025-01-13 11:45:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:45:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:45:39] Production.INFO: ==29948== Releasing lock... [2025-01-13 11:45:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:45:39] Production.INFO: 68.75 MB #Memory Used# [2025-01-13 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:46:05 [end_date_ymd] => 2025-01-13 11:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:46:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:46:24] Production.INFO: count ==5455 [2025-01-13 11:46:27] Production.ERROR: pbx CDR StartTime 2025-01-13 08:46:05 - End Time 2025-01-13 11:46:05 [2025-01-13 11:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238728', 'tblTempUsageDetail_20' ) start [2025-01-13 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238728', 'tblTempUsageDetail_20' ) end [2025-01-13 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238728', 'tblTempVendorCDR_20' ) start [2025-01-13 11:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238728', 'tblTempVendorCDR_20' ) end [2025-01-13 11:46:27] Production.INFO: ProcessCDR(1,14238728,1,1,2) [2025-01-13 11:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238728', 'tblTempUsageDetail_20' ) start [2025-01-13 11:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238728', 'tblTempUsageDetail_20' ) end [2025-01-13 11:46:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:46:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:46:32] Production.INFO: ==30059== Releasing lock... [2025-01-13 11:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:46:32] Production.INFO: 68.75 MB #Memory Used# [2025-01-13 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:47:05 [end_date_ymd] => 2025-01-13 11:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:47:24] Production.INFO: count ==5457 [2025-01-13 11:47:26] Production.ERROR: pbx CDR StartTime 2025-01-13 08:47:05 - End Time 2025-01-13 11:47:05 [2025-01-13 11:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238733', 'tblTempUsageDetail_20' ) start [2025-01-13 11:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238733', 'tblTempUsageDetail_20' ) end [2025-01-13 11:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238733', 'tblTempVendorCDR_20' ) start [2025-01-13 11:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238733', 'tblTempVendorCDR_20' ) end [2025-01-13 11:47:26] Production.INFO: ProcessCDR(1,14238733,1,1,2) [2025-01-13 11:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238733', 'tblTempUsageDetail_20' ) start [2025-01-13 11:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238733', 'tblTempUsageDetail_20' ) end [2025-01-13 11:47:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:47:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:47:31] Production.INFO: ==30169== Releasing lock... [2025-01-13 11:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:47:31] Production.INFO: 68.75 MB #Memory Used# [2025-01-13 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:48:05 [end_date_ymd] => 2025-01-13 11:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:48:36] Production.INFO: count ==5489 [2025-01-13 11:48:39] Production.ERROR: pbx CDR StartTime 2025-01-13 08:48:05 - End Time 2025-01-13 11:48:05 [2025-01-13 11:48:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:48:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238738', 'tblTempUsageDetail_20' ) start [2025-01-13 11:48:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238738', 'tblTempUsageDetail_20' ) end [2025-01-13 11:48:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238738', 'tblTempVendorCDR_20' ) start [2025-01-13 11:48:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238738', 'tblTempVendorCDR_20' ) end [2025-01-13 11:48:39] Production.INFO: ProcessCDR(1,14238738,1,1,2) [2025-01-13 11:48:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:48:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:48:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:48:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:48:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238738', 'tblTempUsageDetail_20' ) start [2025-01-13 11:48:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238738', 'tblTempUsageDetail_20' ) end [2025-01-13 11:48:44] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:48:44] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:48:44] Production.INFO: ==30270== Releasing lock... [2025-01-13 11:48:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:48:44] Production.INFO: 69 MB #Memory Used# [2025-01-13 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:49:05 [end_date_ymd] => 2025-01-13 11:49:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:49:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:49:31] Production.INFO: count ==5521 [2025-01-13 11:49:33] Production.ERROR: pbx CDR StartTime 2025-01-13 08:49:05 - End Time 2025-01-13 11:49:05 [2025-01-13 11:49:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238743', 'tblTempUsageDetail_20' ) start [2025-01-13 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238743', 'tblTempUsageDetail_20' ) end [2025-01-13 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238743', 'tblTempVendorCDR_20' ) start [2025-01-13 11:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238743', 'tblTempVendorCDR_20' ) end [2025-01-13 11:49:33] Production.INFO: ProcessCDR(1,14238743,1,1,2) [2025-01-13 11:49:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:49:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:49:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:49:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:49:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238743', 'tblTempUsageDetail_20' ) start [2025-01-13 11:49:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238743', 'tblTempUsageDetail_20' ) end [2025-01-13 11:49:38] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:49:38] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:49:38] Production.INFO: ==30375== Releasing lock... [2025-01-13 11:49:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:49:38] Production.INFO: 69.25 MB #Memory Used# [2025-01-13 11:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:50:05 [end_date_ymd] => 2025-01-13 11:50:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:50:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:50:30] Production.INFO: count ==5530 [2025-01-13 11:50:32] Production.ERROR: pbx CDR StartTime 2025-01-13 08:50:05 - End Time 2025-01-13 11:50:05 [2025-01-13 11:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238749', 'tblTempUsageDetail_20' ) start [2025-01-13 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238749', 'tblTempUsageDetail_20' ) end [2025-01-13 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238749', 'tblTempVendorCDR_20' ) start [2025-01-13 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238749', 'tblTempVendorCDR_20' ) end [2025-01-13 11:50:32] Production.INFO: ProcessCDR(1,14238749,1,1,2) [2025-01-13 11:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238749', 'tblTempUsageDetail_20' ) start [2025-01-13 11:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238749', 'tblTempUsageDetail_20' ) end [2025-01-13 11:50:37] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:50:37] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:50:37] Production.INFO: ==30481== Releasing lock... [2025-01-13 11:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:50:37] Production.INFO: 69.5 MB #Memory Used# [2025-01-13 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:51:06 [end_date_ymd] => 2025-01-13 11:51:06 [RateCDR] => 1 ) [2025-01-13 11:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:51:06' and `end` < '2025-01-13 11:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:51:26] Production.INFO: count ==5605 [2025-01-13 11:51:28] Production.ERROR: pbx CDR StartTime 2025-01-13 08:51:06 - End Time 2025-01-13 11:51:06 [2025-01-13 11:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238754', 'tblTempUsageDetail_20' ) start [2025-01-13 11:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238754', 'tblTempUsageDetail_20' ) end [2025-01-13 11:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238754', 'tblTempVendorCDR_20' ) start [2025-01-13 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238754', 'tblTempVendorCDR_20' ) end [2025-01-13 11:51:29] Production.INFO: ProcessCDR(1,14238754,1,1,2) [2025-01-13 11:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238754', 'tblTempUsageDetail_20' ) start [2025-01-13 11:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238754', 'tblTempUsageDetail_20' ) end [2025-01-13 11:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:51:33] Production.INFO: ==30587== Releasing lock... [2025-01-13 11:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:51:33] Production.INFO: 70 MB #Memory Used# [2025-01-13 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:52:05 [end_date_ymd] => 2025-01-13 11:52:05 [RateCDR] => 1 ) [2025-01-13 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:52:05' and `end` < '2025-01-13 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:52:33] Production.INFO: count ==5609 [2025-01-13 11:52:36] Production.ERROR: pbx CDR StartTime 2025-01-13 08:52:05 - End Time 2025-01-13 11:52:05 [2025-01-13 11:52:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238759', 'tblTempUsageDetail_20' ) start [2025-01-13 11:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238759', 'tblTempUsageDetail_20' ) end [2025-01-13 11:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238759', 'tblTempVendorCDR_20' ) start [2025-01-13 11:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238759', 'tblTempVendorCDR_20' ) end [2025-01-13 11:52:36] Production.INFO: ProcessCDR(1,14238759,1,1,2) [2025-01-13 11:52:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:52:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:52:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:52:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238759', 'tblTempUsageDetail_20' ) start [2025-01-13 11:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238759', 'tblTempUsageDetail_20' ) end [2025-01-13 11:52:41] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:52:41] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:52:41] Production.INFO: ==30688== Releasing lock... [2025-01-13 11:52:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:52:41] Production.INFO: 70 MB #Memory Used# [2025-01-13 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:53:05 [end_date_ymd] => 2025-01-13 11:53:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:53:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:53:24] Production.INFO: count ==5612 [2025-01-13 11:53:27] Production.ERROR: pbx CDR StartTime 2025-01-13 08:53:05 - End Time 2025-01-13 11:53:05 [2025-01-13 11:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238764', 'tblTempUsageDetail_20' ) start [2025-01-13 11:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238764', 'tblTempUsageDetail_20' ) end [2025-01-13 11:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238764', 'tblTempVendorCDR_20' ) start [2025-01-13 11:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238764', 'tblTempVendorCDR_20' ) end [2025-01-13 11:53:27] Production.INFO: ProcessCDR(1,14238764,1,1,2) [2025-01-13 11:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238764', 'tblTempUsageDetail_20' ) start [2025-01-13 11:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238764', 'tblTempUsageDetail_20' ) end [2025-01-13 11:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:53:32] Production.INFO: ==30787== Releasing lock... [2025-01-13 11:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:53:32] Production.INFO: 70 MB #Memory Used# [2025-01-13 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:54:05 [end_date_ymd] => 2025-01-13 11:54:05 [RateCDR] => 1 ) [2025-01-13 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:54:05' and `end` < '2025-01-13 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:54:29] Production.INFO: count ==5626 [2025-01-13 11:54:32] Production.ERROR: pbx CDR StartTime 2025-01-13 08:54:05 - End Time 2025-01-13 11:54:05 [2025-01-13 11:54:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238769', 'tblTempUsageDetail_20' ) start [2025-01-13 11:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238769', 'tblTempUsageDetail_20' ) end [2025-01-13 11:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238769', 'tblTempVendorCDR_20' ) start [2025-01-13 11:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238769', 'tblTempVendorCDR_20' ) end [2025-01-13 11:54:32] Production.INFO: ProcessCDR(1,14238769,1,1,2) [2025-01-13 11:54:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:54:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238769', 'tblTempUsageDetail_20' ) start [2025-01-13 11:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238769', 'tblTempUsageDetail_20' ) end [2025-01-13 11:54:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:54:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:54:36] Production.INFO: ==30926== Releasing lock... [2025-01-13 11:54:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:54:36] Production.INFO: 70 MB #Memory Used# [2025-01-13 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:55:05 [end_date_ymd] => 2025-01-13 11:55:05 [RateCDR] => 1 ) [2025-01-13 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:55:05' and `end` < '2025-01-13 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:55:24] Production.INFO: count ==5635 [2025-01-13 11:55:26] Production.ERROR: pbx CDR StartTime 2025-01-13 08:55:05 - End Time 2025-01-13 11:55:05 [2025-01-13 11:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238774', 'tblTempUsageDetail_20' ) start [2025-01-13 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238774', 'tblTempUsageDetail_20' ) end [2025-01-13 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238774', 'tblTempVendorCDR_20' ) start [2025-01-13 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238774', 'tblTempVendorCDR_20' ) end [2025-01-13 11:55:26] Production.INFO: ProcessCDR(1,14238774,1,1,2) [2025-01-13 11:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238774', 'tblTempUsageDetail_20' ) start [2025-01-13 11:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238774', 'tblTempUsageDetail_20' ) end [2025-01-13 11:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:55:31] Production.INFO: ==31029== Releasing lock... [2025-01-13 11:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:55:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-13 11:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:56:04 [end_date_ymd] => 2025-01-13 11:56:04 [RateCDR] => 1 ) [2025-01-13 11:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:56:04' and `end` < '2025-01-13 11:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:56:22] Production.INFO: count ==5640 [2025-01-13 11:56:25] Production.ERROR: pbx CDR StartTime 2025-01-13 08:56:04 - End Time 2025-01-13 11:56:04 [2025-01-13 11:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238779', 'tblTempUsageDetail_20' ) start [2025-01-13 11:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238779', 'tblTempUsageDetail_20' ) end [2025-01-13 11:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238779', 'tblTempVendorCDR_20' ) start [2025-01-13 11:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238779', 'tblTempVendorCDR_20' ) end [2025-01-13 11:56:25] Production.INFO: ProcessCDR(1,14238779,1,1,2) [2025-01-13 11:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238779', 'tblTempUsageDetail_20' ) start [2025-01-13 11:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238779', 'tblTempUsageDetail_20' ) end [2025-01-13 11:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:56:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:56:29] Production.INFO: ==31124== Releasing lock... [2025-01-13 11:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:56:29] Production.INFO: 70.25 MB #Memory Used# [2025-01-13 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:57:05 [end_date_ymd] => 2025-01-13 11:57:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:57:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:57:24] Production.INFO: count ==5633 [2025-01-13 11:57:26] Production.ERROR: pbx CDR StartTime 2025-01-13 08:57:05 - End Time 2025-01-13 11:57:05 [2025-01-13 11:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238784', 'tblTempUsageDetail_20' ) start [2025-01-13 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238784', 'tblTempUsageDetail_20' ) end [2025-01-13 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238784', 'tblTempVendorCDR_20' ) start [2025-01-13 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238784', 'tblTempVendorCDR_20' ) end [2025-01-13 11:57:27] Production.INFO: ProcessCDR(1,14238784,1,1,2) [2025-01-13 11:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238784', 'tblTempUsageDetail_20' ) start [2025-01-13 11:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238784', 'tblTempUsageDetail_20' ) end [2025-01-13 11:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:57:31] Production.INFO: ==31236== Releasing lock... [2025-01-13 11:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:57:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-13 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:58:05 [end_date_ymd] => 2025-01-13 11:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 08:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 11:58:24] Production.INFO: count ==5648 [2025-01-13 11:58:26] Production.ERROR: pbx CDR StartTime 2025-01-13 08:58:05 - End Time 2025-01-13 11:58:05 [2025-01-13 11:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238789', 'tblTempUsageDetail_20' ) start [2025-01-13 11:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238789', 'tblTempUsageDetail_20' ) end [2025-01-13 11:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238789', 'tblTempVendorCDR_20' ) start [2025-01-13 11:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238789', 'tblTempVendorCDR_20' ) end [2025-01-13 11:58:27] Production.INFO: ProcessCDR(1,14238789,1,1,2) [2025-01-13 11:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238789', 'tblTempUsageDetail_20' ) start [2025-01-13 11:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238789', 'tblTempUsageDetail_20' ) end [2025-01-13 11:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:58:31] Production.INFO: ==31352== Releasing lock... [2025-01-13 11:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:58:31] Production.INFO: 70.25 MB #Memory Used# [2025-01-13 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 08:59:05 [end_date_ymd] => 2025-01-13 11:59:05 [RateCDR] => 1 ) [2025-01-13 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 08:59:05' and `end` < '2025-01-13 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 11:59:22] Production.INFO: count ==5656 [2025-01-13 11:59:25] Production.ERROR: pbx CDR StartTime 2025-01-13 08:59:05 - End Time 2025-01-13 11:59:05 [2025-01-13 11:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238794', 'tblTempUsageDetail_20' ) start [2025-01-13 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238794', 'tblTempUsageDetail_20' ) end [2025-01-13 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238794', 'tblTempVendorCDR_20' ) start [2025-01-13 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238794', 'tblTempVendorCDR_20' ) end [2025-01-13 11:59:25] Production.INFO: ProcessCDR(1,14238794,1,1,2) [2025-01-13 11:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 11:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 11:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238794', 'tblTempUsageDetail_20' ) start [2025-01-13 11:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238794', 'tblTempUsageDetail_20' ) end [2025-01-13 11:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 11:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 11:59:30] Production.INFO: ==31463== Releasing lock... [2025-01-13 11:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 11:59:30] Production.INFO: 70.25 MB #Memory Used# [2025-01-13 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:00:06 [end_date_ymd] => 2025-01-13 12:00:06 [RateCDR] => 1 ) [2025-01-13 12: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` >= '2025-01-13 09:00:06' and `end` < '2025-01-13 12: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 ,'') [2025-01-13 12:00:31] Production.INFO: count ==5692 [2025-01-13 12:00:34] Production.ERROR: pbx CDR StartTime 2025-01-13 09:00:06 - End Time 2025-01-13 12:00:06 [2025-01-13 12:00:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238800', 'tblTempUsageDetail_20' ) start [2025-01-13 12:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238800', 'tblTempUsageDetail_20' ) end [2025-01-13 12:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238800', 'tblTempVendorCDR_20' ) start [2025-01-13 12:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238800', 'tblTempVendorCDR_20' ) end [2025-01-13 12:00:34] Production.INFO: ProcessCDR(1,14238800,1,1,2) [2025-01-13 12:00:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:00:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:00:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238800', 'tblTempUsageDetail_20' ) start [2025-01-13 12:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238800', 'tblTempUsageDetail_20' ) end [2025-01-13 12:00:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:00:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:00:39] Production.INFO: ==31571== Releasing lock... [2025-01-13 12:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:00:39] Production.INFO: 70.5 MB #Memory Used# [2025-01-13 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:01:05 [end_date_ymd] => 2025-01-13 12:01:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:01:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:01:23] Production.INFO: count ==5780 [2025-01-13 12:01:25] Production.ERROR: pbx CDR StartTime 2025-01-13 09:01:05 - End Time 2025-01-13 12:01:05 [2025-01-13 12:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238805', 'tblTempUsageDetail_20' ) start [2025-01-13 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238805', 'tblTempUsageDetail_20' ) end [2025-01-13 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238805', 'tblTempVendorCDR_20' ) start [2025-01-13 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238805', 'tblTempVendorCDR_20' ) end [2025-01-13 12:01:25] Production.INFO: ProcessCDR(1,14238805,1,1,2) [2025-01-13 12:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238805', 'tblTempUsageDetail_20' ) start [2025-01-13 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238805', 'tblTempUsageDetail_20' ) end [2025-01-13 12:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:01:30] Production.INFO: ==31655== Releasing lock... [2025-01-13 12:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:01:30] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:02:06 [end_date_ymd] => 2025-01-13 12:02:06 [RateCDR] => 1 ) [2025-01-13 12: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` >= '2025-01-13 09:02:06' and `end` < '2025-01-13 12: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 ,'') [2025-01-13 12:02:23] Production.INFO: count ==5778 [2025-01-13 12:02:26] Production.ERROR: pbx CDR StartTime 2025-01-13 09:02:06 - End Time 2025-01-13 12:02:06 [2025-01-13 12:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238810', 'tblTempUsageDetail_20' ) start [2025-01-13 12:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238810', 'tblTempUsageDetail_20' ) end [2025-01-13 12:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238810', 'tblTempVendorCDR_20' ) start [2025-01-13 12:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238810', 'tblTempVendorCDR_20' ) end [2025-01-13 12:02:26] Production.INFO: ProcessCDR(1,14238810,1,1,2) [2025-01-13 12:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238810', 'tblTempUsageDetail_20' ) start [2025-01-13 12:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238810', 'tblTempUsageDetail_20' ) end [2025-01-13 12:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:02:31] Production.INFO: ==31725== Releasing lock... [2025-01-13 12:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:02:31] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:03:05 [end_date_ymd] => 2025-01-13 12:03:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:03:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:03:18] Production.INFO: count ==5753 [2025-01-13 12:03:21] Production.ERROR: pbx CDR StartTime 2025-01-13 09:03:05 - End Time 2025-01-13 12:03:05 [2025-01-13 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238815', 'tblTempUsageDetail_20' ) start [2025-01-13 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238815', 'tblTempUsageDetail_20' ) end [2025-01-13 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238815', 'tblTempVendorCDR_20' ) start [2025-01-13 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238815', 'tblTempVendorCDR_20' ) end [2025-01-13 12:03:21] Production.INFO: ProcessCDR(1,14238815,1,1,2) [2025-01-13 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238815', 'tblTempUsageDetail_20' ) start [2025-01-13 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238815', 'tblTempUsageDetail_20' ) end [2025-01-13 12:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:03:25] Production.INFO: ==31799== Releasing lock... [2025-01-13 12:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:03:25] Production.INFO: 71 MB #Memory Used# [2025-01-13 12:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:04:04 [end_date_ymd] => 2025-01-13 12:04:04 [RateCDR] => 1 ) [2025-01-13 12:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:04:04' and `end` < '2025-01-13 12:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:04:18] Production.INFO: count ==5746 [2025-01-13 12:04:20] Production.ERROR: pbx CDR StartTime 2025-01-13 09:04:04 - End Time 2025-01-13 12:04:04 [2025-01-13 12:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238819', 'tblTempUsageDetail_20' ) start [2025-01-13 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238819', 'tblTempUsageDetail_20' ) end [2025-01-13 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238819', 'tblTempVendorCDR_20' ) start [2025-01-13 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238819', 'tblTempVendorCDR_20' ) end [2025-01-13 12:04:20] Production.INFO: ProcessCDR(1,14238819,1,1,2) [2025-01-13 12:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238819', 'tblTempUsageDetail_20' ) start [2025-01-13 12:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238819', 'tblTempUsageDetail_20' ) end [2025-01-13 12:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:04:25] Production.INFO: ==31869== Releasing lock... [2025-01-13 12:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:04:25] Production.INFO: 71 MB #Memory Used# [2025-01-13 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:05:05 [end_date_ymd] => 2025-01-13 12:05:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:05:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:05:21] Production.INFO: count ==5777 [2025-01-13 12:05:23] Production.ERROR: pbx CDR StartTime 2025-01-13 09:05:05 - End Time 2025-01-13 12:05:05 [2025-01-13 12:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238825', 'tblTempUsageDetail_20' ) start [2025-01-13 12:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238825', 'tblTempUsageDetail_20' ) end [2025-01-13 12:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238825', 'tblTempVendorCDR_20' ) start [2025-01-13 12:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238825', 'tblTempVendorCDR_20' ) end [2025-01-13 12:05:24] Production.INFO: ProcessCDR(1,14238825,1,1,2) [2025-01-13 12:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238825', 'tblTempUsageDetail_20' ) start [2025-01-13 12:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238825', 'tblTempUsageDetail_20' ) end [2025-01-13 12:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:05:28] Production.INFO: ==31940== Releasing lock... [2025-01-13 12:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:05:28] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:06:06 [end_date_ymd] => 2025-01-13 12:06:06 [RateCDR] => 1 ) [2025-01-13 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:06:06' and `end` < '2025-01-13 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:06:34] Production.INFO: count ==5779 [2025-01-13 12:06:36] Production.ERROR: pbx CDR StartTime 2025-01-13 09:06:06 - End Time 2025-01-13 12:06:06 [2025-01-13 12:06:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238830', 'tblTempUsageDetail_20' ) start [2025-01-13 12:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238830', 'tblTempUsageDetail_20' ) end [2025-01-13 12:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238830', 'tblTempVendorCDR_20' ) start [2025-01-13 12:06:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238830', 'tblTempVendorCDR_20' ) end [2025-01-13 12:06:36] Production.INFO: ProcessCDR(1,14238830,1,1,2) [2025-01-13 12:06:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:06:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:06:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:06:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:06:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238830', 'tblTempUsageDetail_20' ) start [2025-01-13 12:06:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238830', 'tblTempUsageDetail_20' ) end [2025-01-13 12:06:41] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:06:41] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:06:41] Production.INFO: ==32012== Releasing lock... [2025-01-13 12:06:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:06:41] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:07:04 [end_date_ymd] => 2025-01-13 12:07:04 [RateCDR] => 1 ) [2025-01-13 12:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:07:04' and `end` < '2025-01-13 12:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:07:24] Production.INFO: count ==5790 [2025-01-13 12:07:26] Production.ERROR: pbx CDR StartTime 2025-01-13 09:07:04 - End Time 2025-01-13 12:07:04 [2025-01-13 12:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238835', 'tblTempUsageDetail_20' ) start [2025-01-13 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238835', 'tblTempUsageDetail_20' ) end [2025-01-13 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238835', 'tblTempVendorCDR_20' ) start [2025-01-13 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238835', 'tblTempVendorCDR_20' ) end [2025-01-13 12:07:26] Production.INFO: ProcessCDR(1,14238835,1,1,2) [2025-01-13 12:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238835', 'tblTempUsageDetail_20' ) start [2025-01-13 12:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238835', 'tblTempUsageDetail_20' ) end [2025-01-13 12:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:07:31] Production.INFO: ==32083== Releasing lock... [2025-01-13 12:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:07:31] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:08:05 [end_date_ymd] => 2025-01-13 12:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:08:23] Production.INFO: count ==5782 [2025-01-13 12:08:25] Production.ERROR: pbx CDR StartTime 2025-01-13 09:08:05 - End Time 2025-01-13 12:08:05 [2025-01-13 12:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238840', 'tblTempUsageDetail_20' ) start [2025-01-13 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238840', 'tblTempUsageDetail_20' ) end [2025-01-13 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238840', 'tblTempVendorCDR_20' ) start [2025-01-13 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238840', 'tblTempVendorCDR_20' ) end [2025-01-13 12:08:26] Production.INFO: ProcessCDR(1,14238840,1,1,2) [2025-01-13 12:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238840', 'tblTempUsageDetail_20' ) start [2025-01-13 12:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238840', 'tblTempUsageDetail_20' ) end [2025-01-13 12:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:08:30] Production.INFO: ==32154== Releasing lock... [2025-01-13 12:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:08:30] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:09:05 [end_date_ymd] => 2025-01-13 12:09:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:09:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:09:19] Production.INFO: count ==5811 [2025-01-13 12:09:22] Production.ERROR: pbx CDR StartTime 2025-01-13 09:09:05 - End Time 2025-01-13 12:09:05 [2025-01-13 12:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238845', 'tblTempUsageDetail_20' ) start [2025-01-13 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238845', 'tblTempUsageDetail_20' ) end [2025-01-13 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238845', 'tblTempVendorCDR_20' ) start [2025-01-13 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238845', 'tblTempVendorCDR_20' ) end [2025-01-13 12:09:22] Production.INFO: ProcessCDR(1,14238845,1,1,2) [2025-01-13 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238845', 'tblTempUsageDetail_20' ) start [2025-01-13 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238845', 'tblTempUsageDetail_20' ) end [2025-01-13 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:09:27] Production.INFO: ==32262== Releasing lock... [2025-01-13 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:09:27] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:10:06 [end_date_ymd] => 2025-01-13 12:10:06 [RateCDR] => 1 ) [2025-01-13 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:10:06' and `end` < '2025-01-13 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:10:26] Production.INFO: count ==5822 [2025-01-13 12:10:29] Production.ERROR: pbx CDR StartTime 2025-01-13 09:10:06 - End Time 2025-01-13 12:10:06 [2025-01-13 12:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238851', 'tblTempUsageDetail_20' ) start [2025-01-13 12:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238851', 'tblTempUsageDetail_20' ) end [2025-01-13 12:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238851', 'tblTempVendorCDR_20' ) start [2025-01-13 12:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238851', 'tblTempVendorCDR_20' ) end [2025-01-13 12:10:29] Production.INFO: ProcessCDR(1,14238851,1,1,2) [2025-01-13 12:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238851', 'tblTempUsageDetail_20' ) start [2025-01-13 12:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238851', 'tblTempUsageDetail_20' ) end [2025-01-13 12:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:10:33] Production.INFO: ==32336== Releasing lock... [2025-01-13 12:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:10:33] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:11:04 [end_date_ymd] => 2025-01-13 12:11:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:11:04' and `end` < '2025-01-13 12:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:11:20] Production.INFO: count ==5874 [2025-01-13 12:11:22] Production.ERROR: pbx CDR StartTime 2025-01-13 09:11:04 - End Time 2025-01-13 12:11:04 [2025-01-13 12:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238856', 'tblTempUsageDetail_20' ) start [2025-01-13 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238856', 'tblTempUsageDetail_20' ) end [2025-01-13 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238856', 'tblTempVendorCDR_20' ) start [2025-01-13 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238856', 'tblTempVendorCDR_20' ) end [2025-01-13 12:11:22] Production.INFO: ProcessCDR(1,14238856,1,1,2) [2025-01-13 12:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238856', 'tblTempUsageDetail_20' ) start [2025-01-13 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238856', 'tblTempUsageDetail_20' ) end [2025-01-13 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:11:27] Production.INFO: ==32408== Releasing lock... [2025-01-13 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:11:27] Production.INFO: 72 MB #Memory Used# [2025-01-13 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:12:06 [end_date_ymd] => 2025-01-13 12:12:06 [RateCDR] => 1 ) [2025-01-13 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:12:06' and `end` < '2025-01-13 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:12:24] Production.INFO: count ==5865 [2025-01-13 12:12:27] Production.ERROR: pbx CDR StartTime 2025-01-13 09:12:06 - End Time 2025-01-13 12:12:06 [2025-01-13 12:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238861', 'tblTempUsageDetail_20' ) start [2025-01-13 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238861', 'tblTempUsageDetail_20' ) end [2025-01-13 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238861', 'tblTempVendorCDR_20' ) start [2025-01-13 12:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238861', 'tblTempVendorCDR_20' ) end [2025-01-13 12:12:27] Production.INFO: ProcessCDR(1,14238861,1,1,2) [2025-01-13 12:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238861', 'tblTempUsageDetail_20' ) start [2025-01-13 12:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238861', 'tblTempUsageDetail_20' ) end [2025-01-13 12:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:12:32] Production.INFO: ==32484== Releasing lock... [2025-01-13 12:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:12:32] Production.INFO: 72 MB #Memory Used# [2025-01-13 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:13:05 [end_date_ymd] => 2025-01-13 12:13:05 [RateCDR] => 1 ) [2025-01-13 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:13:05' and `end` < '2025-01-13 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:13:18] Production.INFO: count ==5870 [2025-01-13 12:13:21] Production.ERROR: pbx CDR StartTime 2025-01-13 09:13:05 - End Time 2025-01-13 12:13:05 [2025-01-13 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238866', 'tblTempUsageDetail_20' ) start [2025-01-13 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238866', 'tblTempUsageDetail_20' ) end [2025-01-13 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238866', 'tblTempVendorCDR_20' ) start [2025-01-13 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238866', 'tblTempVendorCDR_20' ) end [2025-01-13 12:13:21] Production.INFO: ProcessCDR(1,14238866,1,1,2) [2025-01-13 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238866', 'tblTempUsageDetail_20' ) start [2025-01-13 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238866', 'tblTempUsageDetail_20' ) end [2025-01-13 12:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:13:25] Production.INFO: ==32559== Releasing lock... [2025-01-13 12:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:13:25] Production.INFO: 72 MB #Memory Used# [2025-01-13 12:14:08] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:14:08 [end_date_ymd] => 2025-01-13 12:14:08 [RateCDR] => 1 ) [2025-01-13 12:14:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:14:08' and `end` < '2025-01-13 12:14:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:14:23] Production.INFO: count ==5851 [2025-01-13 12:14:26] Production.ERROR: pbx CDR StartTime 2025-01-13 09:14:08 - End Time 2025-01-13 12:14:08 [2025-01-13 12:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238871', 'tblTempUsageDetail_20' ) start [2025-01-13 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238871', 'tblTempUsageDetail_20' ) end [2025-01-13 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238871', 'tblTempVendorCDR_20' ) start [2025-01-13 12:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238871', 'tblTempVendorCDR_20' ) end [2025-01-13 12:14:26] Production.INFO: ProcessCDR(1,14238871,1,1,2) [2025-01-13 12:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238871', 'tblTempUsageDetail_20' ) start [2025-01-13 12:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238871', 'tblTempUsageDetail_20' ) end [2025-01-13 12:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:14:31] Production.INFO: ==32643== Releasing lock... [2025-01-13 12:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:14:31] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 12:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:15:04 [end_date_ymd] => 2025-01-13 12:15:04 [RateCDR] => 1 ) [2025-01-13 12: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` >= '2025-01-13 09:15:04' and `end` < '2025-01-13 12: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 ,'') [2025-01-13 12:15:23] Production.INFO: count ==5831 [2025-01-13 12:15:26] Production.ERROR: pbx CDR StartTime 2025-01-13 09:15:04 - End Time 2025-01-13 12:15:04 [2025-01-13 12:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238876', 'tblTempUsageDetail_20' ) start [2025-01-13 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238876', 'tblTempUsageDetail_20' ) end [2025-01-13 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238876', 'tblTempVendorCDR_20' ) start [2025-01-13 12:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238876', 'tblTempVendorCDR_20' ) end [2025-01-13 12:15:26] Production.INFO: ProcessCDR(1,14238876,1,1,2) [2025-01-13 12:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238876', 'tblTempUsageDetail_20' ) start [2025-01-13 12:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238876', 'tblTempUsageDetail_20' ) end [2025-01-13 12:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:15:31] Production.INFO: ==32714== Releasing lock... [2025-01-13 12:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:15:31] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:16:05 [end_date_ymd] => 2025-01-13 12:16:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:16:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:16:19] Production.INFO: count ==5836 [2025-01-13 12:16:21] Production.ERROR: pbx CDR StartTime 2025-01-13 09:16:05 - End Time 2025-01-13 12:16:05 [2025-01-13 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238881', 'tblTempUsageDetail_20' ) start [2025-01-13 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238881', 'tblTempUsageDetail_20' ) end [2025-01-13 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238881', 'tblTempVendorCDR_20' ) start [2025-01-13 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238881', 'tblTempVendorCDR_20' ) end [2025-01-13 12:16:21] Production.INFO: ProcessCDR(1,14238881,1,1,2) [2025-01-13 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238881', 'tblTempUsageDetail_20' ) start [2025-01-13 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238881', 'tblTempUsageDetail_20' ) end [2025-01-13 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:16:26] Production.INFO: ==328== Releasing lock... [2025-01-13 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:16:26] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:17:06 [end_date_ymd] => 2025-01-13 12:17:06 [RateCDR] => 1 ) [2025-01-13 12:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:17:06' and `end` < '2025-01-13 12:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:17:23] Production.INFO: count ==5819 [2025-01-13 12:17:25] Production.ERROR: pbx CDR StartTime 2025-01-13 09:17:06 - End Time 2025-01-13 12:17:06 [2025-01-13 12:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238886', 'tblTempUsageDetail_20' ) start [2025-01-13 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238886', 'tblTempUsageDetail_20' ) end [2025-01-13 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238886', 'tblTempVendorCDR_20' ) start [2025-01-13 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238886', 'tblTempVendorCDR_20' ) end [2025-01-13 12:17:25] Production.INFO: ProcessCDR(1,14238886,1,1,2) [2025-01-13 12:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238886', 'tblTempUsageDetail_20' ) start [2025-01-13 12:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238886', 'tblTempUsageDetail_20' ) end [2025-01-13 12:17:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:17:30] Production.INFO: ==412== Releasing lock... [2025-01-13 12:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:17:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:18:05 [end_date_ymd] => 2025-01-13 12:18:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:18:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:18:19] Production.INFO: count ==5810 [2025-01-13 12:18:22] Production.ERROR: pbx CDR StartTime 2025-01-13 09:18:05 - End Time 2025-01-13 12:18:05 [2025-01-13 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238891', 'tblTempUsageDetail_20' ) start [2025-01-13 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238891', 'tblTempUsageDetail_20' ) end [2025-01-13 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238891', 'tblTempVendorCDR_20' ) start [2025-01-13 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238891', 'tblTempVendorCDR_20' ) end [2025-01-13 12:18:22] Production.INFO: ProcessCDR(1,14238891,1,1,2) [2025-01-13 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238891', 'tblTempUsageDetail_20' ) start [2025-01-13 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238891', 'tblTempUsageDetail_20' ) end [2025-01-13 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:18:27] Production.INFO: ==498== Releasing lock... [2025-01-13 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:18:27] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:19:04 [end_date_ymd] => 2025-01-13 12:19:04 [RateCDR] => 1 ) [2025-01-13 12:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:19:04' and `end` < '2025-01-13 12:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:19:18] Production.INFO: count ==5799 [2025-01-13 12:19:21] Production.ERROR: pbx CDR StartTime 2025-01-13 09:19:04 - End Time 2025-01-13 12:19:04 [2025-01-13 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238896', 'tblTempUsageDetail_20' ) start [2025-01-13 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238896', 'tblTempUsageDetail_20' ) end [2025-01-13 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238896', 'tblTempVendorCDR_20' ) start [2025-01-13 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238896', 'tblTempVendorCDR_20' ) end [2025-01-13 12:19:21] Production.INFO: ProcessCDR(1,14238896,1,1,2) [2025-01-13 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238896', 'tblTempUsageDetail_20' ) start [2025-01-13 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238896', 'tblTempUsageDetail_20' ) end [2025-01-13 12:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:19:26] Production.INFO: ==570== Releasing lock... [2025-01-13 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:19:26] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:20:05 [end_date_ymd] => 2025-01-13 12:20:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:20:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:20:34] Production.INFO: count ==5791 [2025-01-13 12:20:36] Production.ERROR: pbx CDR StartTime 2025-01-13 09:20:05 - End Time 2025-01-13 12:20:05 [2025-01-13 12:20:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238902', 'tblTempUsageDetail_20' ) start [2025-01-13 12:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238902', 'tblTempUsageDetail_20' ) end [2025-01-13 12:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238902', 'tblTempVendorCDR_20' ) start [2025-01-13 12:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238902', 'tblTempVendorCDR_20' ) end [2025-01-13 12:20:36] Production.INFO: ProcessCDR(1,14238902,1,1,2) [2025-01-13 12:20:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:20:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:20:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:20:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238902', 'tblTempUsageDetail_20' ) start [2025-01-13 12:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238902', 'tblTempUsageDetail_20' ) end [2025-01-13 12:20:41] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:20:41] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:20:41] Production.INFO: ==651== Releasing lock... [2025-01-13 12:20:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:20:41] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:21:05 [end_date_ymd] => 2025-01-13 12:21:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:21:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:21:24] Production.INFO: count ==5822 [2025-01-13 12:21:26] Production.ERROR: pbx CDR StartTime 2025-01-13 09:21:05 - End Time 2025-01-13 12:21:05 [2025-01-13 12:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238907', 'tblTempUsageDetail_20' ) start [2025-01-13 12:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238907', 'tblTempUsageDetail_20' ) end [2025-01-13 12:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238907', 'tblTempVendorCDR_20' ) start [2025-01-13 12:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238907', 'tblTempVendorCDR_20' ) end [2025-01-13 12:21:26] Production.INFO: ProcessCDR(1,14238907,1,1,2) [2025-01-13 12:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238907', 'tblTempUsageDetail_20' ) start [2025-01-13 12:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238907', 'tblTempUsageDetail_20' ) end [2025-01-13 12:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:21:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:21:31] Production.INFO: ==753== Releasing lock... [2025-01-13 12:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:21:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:22:05 [end_date_ymd] => 2025-01-13 12:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:22:24] Production.INFO: count ==5818 [2025-01-13 12:22:26] Production.ERROR: pbx CDR StartTime 2025-01-13 09:22:05 - End Time 2025-01-13 12:22:05 [2025-01-13 12:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238912', 'tblTempUsageDetail_20' ) start [2025-01-13 12:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238912', 'tblTempUsageDetail_20' ) end [2025-01-13 12:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238912', 'tblTempVendorCDR_20' ) start [2025-01-13 12:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238912', 'tblTempVendorCDR_20' ) end [2025-01-13 12:22:27] Production.INFO: ProcessCDR(1,14238912,1,1,2) [2025-01-13 12:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238912', 'tblTempUsageDetail_20' ) start [2025-01-13 12:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238912', 'tblTempUsageDetail_20' ) end [2025-01-13 12:22:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:22:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:22:32] Production.INFO: ==826== Releasing lock... [2025-01-13 12:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:22:32] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:23:05 [end_date_ymd] => 2025-01-13 12:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:23:24] Production.INFO: count ==5757 [2025-01-13 12:23:26] Production.ERROR: pbx CDR StartTime 2025-01-13 09:23:05 - End Time 2025-01-13 12:23:05 [2025-01-13 12:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238917', 'tblTempUsageDetail_20' ) start [2025-01-13 12:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238917', 'tblTempUsageDetail_20' ) end [2025-01-13 12:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238917', 'tblTempVendorCDR_20' ) start [2025-01-13 12:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238917', 'tblTempVendorCDR_20' ) end [2025-01-13 12:23:26] Production.INFO: ProcessCDR(1,14238917,1,1,2) [2025-01-13 12:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238917', 'tblTempUsageDetail_20' ) start [2025-01-13 12:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238917', 'tblTempUsageDetail_20' ) end [2025-01-13 12:23:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:23:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:23:31] Production.INFO: ==900== Releasing lock... [2025-01-13 12:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:23:31] Production.INFO: 71 MB #Memory Used# [2025-01-13 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:24:05 [end_date_ymd] => 2025-01-13 12:24:05 [RateCDR] => 1 ) [2025-01-13 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:24:05' and `end` < '2025-01-13 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:24:22] Production.INFO: count ==5704 [2025-01-13 12:24:25] Production.ERROR: pbx CDR StartTime 2025-01-13 09:24:05 - End Time 2025-01-13 12:24:05 [2025-01-13 12:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238922', 'tblTempUsageDetail_20' ) start [2025-01-13 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238922', 'tblTempUsageDetail_20' ) end [2025-01-13 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238922', 'tblTempVendorCDR_20' ) start [2025-01-13 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238922', 'tblTempVendorCDR_20' ) end [2025-01-13 12:24:25] Production.INFO: ProcessCDR(1,14238922,1,1,2) [2025-01-13 12:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238922', 'tblTempUsageDetail_20' ) start [2025-01-13 12:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238922', 'tblTempUsageDetail_20' ) end [2025-01-13 12:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:24:30] Production.INFO: ==976== Releasing lock... [2025-01-13 12:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:24:30] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:25:05 [end_date_ymd] => 2025-01-13 12:25:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:25:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:25:18] Production.INFO: count ==5731 [2025-01-13 12:25:21] Production.ERROR: pbx CDR StartTime 2025-01-13 09:25:05 - End Time 2025-01-13 12:25:05 [2025-01-13 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238927', 'tblTempUsageDetail_20' ) start [2025-01-13 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238927', 'tblTempUsageDetail_20' ) end [2025-01-13 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238927', 'tblTempVendorCDR_20' ) start [2025-01-13 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238927', 'tblTempVendorCDR_20' ) end [2025-01-13 12:25:21] Production.INFO: ProcessCDR(1,14238927,1,1,2) [2025-01-13 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238927', 'tblTempUsageDetail_20' ) start [2025-01-13 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238927', 'tblTempUsageDetail_20' ) end [2025-01-13 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:25:26] Production.INFO: ==1087== Releasing lock... [2025-01-13 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:25:26] Production.INFO: 71 MB #Memory Used# [2025-01-13 12:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:26:04 [end_date_ymd] => 2025-01-13 12:26:04 [RateCDR] => 1 ) [2025-01-13 12: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` >= '2025-01-13 09:26:04' and `end` < '2025-01-13 12: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 ,'') [2025-01-13 12:26:29] Production.INFO: count ==5731 [2025-01-13 12:26:31] Production.ERROR: pbx CDR StartTime 2025-01-13 09:26:04 - End Time 2025-01-13 12:26:04 [2025-01-13 12:26:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238932', 'tblTempUsageDetail_20' ) start [2025-01-13 12:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238932', 'tblTempUsageDetail_20' ) end [2025-01-13 12:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238932', 'tblTempVendorCDR_20' ) start [2025-01-13 12:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238932', 'tblTempVendorCDR_20' ) end [2025-01-13 12:26:31] Production.INFO: ProcessCDR(1,14238932,1,1,2) [2025-01-13 12:26:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:26:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:26:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:26:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:26:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238932', 'tblTempUsageDetail_20' ) start [2025-01-13 12:26:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238932', 'tblTempUsageDetail_20' ) end [2025-01-13 12:26:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:26:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:26:36] Production.INFO: ==1164== Releasing lock... [2025-01-13 12:26:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:26:36] Production.INFO: 71 MB #Memory Used# [2025-01-13 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:27:05 [end_date_ymd] => 2025-01-13 12:27:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:27:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:27:26] Production.INFO: count ==5727 [2025-01-13 12:27:28] Production.ERROR: pbx CDR StartTime 2025-01-13 09:27:05 - End Time 2025-01-13 12:27:05 [2025-01-13 12:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238937', 'tblTempUsageDetail_20' ) start [2025-01-13 12:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238937', 'tblTempUsageDetail_20' ) end [2025-01-13 12:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238937', 'tblTempVendorCDR_20' ) start [2025-01-13 12:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238937', 'tblTempVendorCDR_20' ) end [2025-01-13 12:27:29] Production.INFO: ProcessCDR(1,14238937,1,1,2) [2025-01-13 12:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:27:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238937', 'tblTempUsageDetail_20' ) start [2025-01-13 12:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238937', 'tblTempUsageDetail_20' ) end [2025-01-13 12:27:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:27:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:27:33] Production.INFO: ==1245== Releasing lock... [2025-01-13 12:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:27:33] Production.INFO: 71 MB #Memory Used# [2025-01-13 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:28:05 [end_date_ymd] => 2025-01-13 12:28:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:28:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:28:28] Production.INFO: count ==5716 [2025-01-13 12:28:31] Production.ERROR: pbx CDR StartTime 2025-01-13 09:28:05 - End Time 2025-01-13 12:28:05 [2025-01-13 12:28:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238942', 'tblTempUsageDetail_20' ) start [2025-01-13 12:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238942', 'tblTempUsageDetail_20' ) end [2025-01-13 12:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238942', 'tblTempVendorCDR_20' ) start [2025-01-13 12:28:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238942', 'tblTempVendorCDR_20' ) end [2025-01-13 12:28:31] Production.INFO: ProcessCDR(1,14238942,1,1,2) [2025-01-13 12:28:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:28:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:28:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:28:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238942', 'tblTempUsageDetail_20' ) start [2025-01-13 12:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238942', 'tblTempUsageDetail_20' ) end [2025-01-13 12:28:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:28:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:28:36] Production.INFO: ==1324== Releasing lock... [2025-01-13 12:28:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:28:36] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:29:05 [end_date_ymd] => 2025-01-13 12:29:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:29:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:29:27] Production.INFO: count ==5700 [2025-01-13 12:29:29] Production.ERROR: pbx CDR StartTime 2025-01-13 09:29:05 - End Time 2025-01-13 12:29:05 [2025-01-13 12:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238947', 'tblTempUsageDetail_20' ) start [2025-01-13 12:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238947', 'tblTempUsageDetail_20' ) end [2025-01-13 12:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238947', 'tblTempVendorCDR_20' ) start [2025-01-13 12:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238947', 'tblTempVendorCDR_20' ) end [2025-01-13 12:29:29] Production.INFO: ProcessCDR(1,14238947,1,1,2) [2025-01-13 12:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238947', 'tblTempUsageDetail_20' ) start [2025-01-13 12:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238947', 'tblTempUsageDetail_20' ) end [2025-01-13 12:29:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:29:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:29:34] Production.INFO: ==1394== Releasing lock... [2025-01-13 12:29:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:29:34] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:30:05 [end_date_ymd] => 2025-01-13 12:30:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:30:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:30:32] Production.INFO: count ==5709 [2025-01-13 12:30:35] Production.ERROR: pbx CDR StartTime 2025-01-13 09:30:05 - End Time 2025-01-13 12:30:05 [2025-01-13 12:30:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238953', 'tblTempUsageDetail_20' ) start [2025-01-13 12:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238953', 'tblTempUsageDetail_20' ) end [2025-01-13 12:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238953', 'tblTempVendorCDR_20' ) start [2025-01-13 12:30:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238953', 'tblTempVendorCDR_20' ) end [2025-01-13 12:30:35] Production.INFO: ProcessCDR(1,14238953,1,1,2) [2025-01-13 12:30:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:30:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:30:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:30:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238953', 'tblTempUsageDetail_20' ) start [2025-01-13 12:30:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238953', 'tblTempUsageDetail_20' ) end [2025-01-13 12:30:40] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:30:40] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:30:40] Production.INFO: ==1469== Releasing lock... [2025-01-13 12:30:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:30:40] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:31:05 [end_date_ymd] => 2025-01-13 12:31:05 [RateCDR] => 1 ) [2025-01-13 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:31:05' and `end` < '2025-01-13 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:31:28] Production.INFO: count ==5718 [2025-01-13 12:31:30] Production.ERROR: pbx CDR StartTime 2025-01-13 09:31:05 - End Time 2025-01-13 12:31:05 [2025-01-13 12:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238958', 'tblTempUsageDetail_20' ) start [2025-01-13 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238958', 'tblTempUsageDetail_20' ) end [2025-01-13 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238958', 'tblTempVendorCDR_20' ) start [2025-01-13 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238958', 'tblTempVendorCDR_20' ) end [2025-01-13 12:31:30] Production.INFO: ProcessCDR(1,14238958,1,1,2) [2025-01-13 12:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:31:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:31:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:31:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238958', 'tblTempUsageDetail_20' ) start [2025-01-13 12:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238958', 'tblTempUsageDetail_20' ) end [2025-01-13 12:31:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:31:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:31:35] Production.INFO: ==1579== Releasing lock... [2025-01-13 12:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:31:35] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 12:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:32:04 [end_date_ymd] => 2025-01-13 12:32:04 [RateCDR] => 1 ) [2025-01-13 12: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` >= '2025-01-13 09:32:04' and `end` < '2025-01-13 12: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 ,'') [2025-01-13 12:32:20] Production.INFO: count ==5722 [2025-01-13 12:32:23] Production.ERROR: pbx CDR StartTime 2025-01-13 09:32:04 - End Time 2025-01-13 12:32:04 [2025-01-13 12:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238963', 'tblTempUsageDetail_20' ) start [2025-01-13 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238963', 'tblTempUsageDetail_20' ) end [2025-01-13 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238963', 'tblTempVendorCDR_20' ) start [2025-01-13 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238963', 'tblTempVendorCDR_20' ) end [2025-01-13 12:32:23] Production.INFO: ProcessCDR(1,14238963,1,1,2) [2025-01-13 12:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238963', 'tblTempUsageDetail_20' ) start [2025-01-13 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238963', 'tblTempUsageDetail_20' ) end [2025-01-13 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:32:28] Production.INFO: ==1648== Releasing lock... [2025-01-13 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:32:28] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:33:05 [end_date_ymd] => 2025-01-13 12:33:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:33:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:33:18] Production.INFO: count ==5728 [2025-01-13 12:33:21] Production.ERROR: pbx CDR StartTime 2025-01-13 09:33:05 - End Time 2025-01-13 12:33:05 [2025-01-13 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238968', 'tblTempUsageDetail_20' ) start [2025-01-13 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238968', 'tblTempUsageDetail_20' ) end [2025-01-13 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238968', 'tblTempVendorCDR_20' ) start [2025-01-13 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238968', 'tblTempVendorCDR_20' ) end [2025-01-13 12:33:21] Production.INFO: ProcessCDR(1,14238968,1,1,2) [2025-01-13 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238968', 'tblTempUsageDetail_20' ) start [2025-01-13 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238968', 'tblTempUsageDetail_20' ) end [2025-01-13 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:33:26] Production.INFO: ==1719== Releasing lock... [2025-01-13 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:33:26] Production.INFO: 71 MB #Memory Used# [2025-01-13 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:34:05 [end_date_ymd] => 2025-01-13 12:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:34:22] Production.INFO: count ==5709 [2025-01-13 12:34:24] Production.ERROR: pbx CDR StartTime 2025-01-13 09:34:05 - End Time 2025-01-13 12:34:05 [2025-01-13 12:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238973', 'tblTempUsageDetail_20' ) start [2025-01-13 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238973', 'tblTempUsageDetail_20' ) end [2025-01-13 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238973', 'tblTempVendorCDR_20' ) start [2025-01-13 12:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238973', 'tblTempVendorCDR_20' ) end [2025-01-13 12:34:24] Production.INFO: ProcessCDR(1,14238973,1,1,2) [2025-01-13 12:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238973', 'tblTempUsageDetail_20' ) start [2025-01-13 12:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238973', 'tblTempUsageDetail_20' ) end [2025-01-13 12:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:34:29] Production.INFO: ==1790== Releasing lock... [2025-01-13 12:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:34:29] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:35:05 [end_date_ymd] => 2025-01-13 12:35:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:35:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:35:20] Production.INFO: count ==5716 [2025-01-13 12:35:22] Production.ERROR: pbx CDR StartTime 2025-01-13 09:35:05 - End Time 2025-01-13 12:35:05 [2025-01-13 12:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238978', 'tblTempUsageDetail_20' ) start [2025-01-13 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238978', 'tblTempUsageDetail_20' ) end [2025-01-13 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238978', 'tblTempVendorCDR_20' ) start [2025-01-13 12:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238978', 'tblTempVendorCDR_20' ) end [2025-01-13 12:35:22] Production.INFO: ProcessCDR(1,14238978,1,1,2) [2025-01-13 12:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238978', 'tblTempUsageDetail_20' ) start [2025-01-13 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238978', 'tblTempUsageDetail_20' ) end [2025-01-13 12:35:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:35:27] Production.INFO: ==1864== Releasing lock... [2025-01-13 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:35:27] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 12:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:36:04 [end_date_ymd] => 2025-01-13 12:36:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:36:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:36:26] Production.INFO: count ==5692 [2025-01-13 12:36:29] Production.ERROR: pbx CDR StartTime 2025-01-13 09:36:04 - End Time 2025-01-13 12:36:04 [2025-01-13 12:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238983', 'tblTempUsageDetail_20' ) start [2025-01-13 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238983', 'tblTempUsageDetail_20' ) end [2025-01-13 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238983', 'tblTempVendorCDR_20' ) start [2025-01-13 12:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238983', 'tblTempVendorCDR_20' ) end [2025-01-13 12:36:29] Production.INFO: ProcessCDR(1,14238983,1,1,2) [2025-01-13 12:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238983', 'tblTempUsageDetail_20' ) start [2025-01-13 12:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238983', 'tblTempUsageDetail_20' ) end [2025-01-13 12:36:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:36:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:36:34] Production.INFO: ==1936== Releasing lock... [2025-01-13 12:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:36:34] Production.INFO: 70.5 MB #Memory Used# [2025-01-13 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:37:05 [end_date_ymd] => 2025-01-13 12:37:05 [RateCDR] => 1 ) [2025-01-13 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:37:05' and `end` < '2025-01-13 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:37:22] Production.INFO: count ==5687 [2025-01-13 12:37:25] Production.ERROR: pbx CDR StartTime 2025-01-13 09:37:05 - End Time 2025-01-13 12:37:05 [2025-01-13 12:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238988', 'tblTempUsageDetail_20' ) start [2025-01-13 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238988', 'tblTempUsageDetail_20' ) end [2025-01-13 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238988', 'tblTempVendorCDR_20' ) start [2025-01-13 12:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238988', 'tblTempVendorCDR_20' ) end [2025-01-13 12:37:25] Production.INFO: ProcessCDR(1,14238988,1,1,2) [2025-01-13 12:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238988', 'tblTempUsageDetail_20' ) start [2025-01-13 12:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238988', 'tblTempUsageDetail_20' ) end [2025-01-13 12:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:37:30] Production.INFO: ==2010== Releasing lock... [2025-01-13 12:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:37:30] Production.INFO: 70.5 MB #Memory Used# [2025-01-13 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:38:05 [end_date_ymd] => 2025-01-13 12:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:38:18] Production.INFO: count ==5692 [2025-01-13 12:38:21] Production.ERROR: pbx CDR StartTime 2025-01-13 09:38:05 - End Time 2025-01-13 12:38:05 [2025-01-13 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238993', 'tblTempUsageDetail_20' ) start [2025-01-13 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238993', 'tblTempUsageDetail_20' ) end [2025-01-13 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238993', 'tblTempVendorCDR_20' ) start [2025-01-13 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238993', 'tblTempVendorCDR_20' ) end [2025-01-13 12:38:21] Production.INFO: ProcessCDR(1,14238993,1,1,2) [2025-01-13 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238993', 'tblTempUsageDetail_20' ) start [2025-01-13 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238993', 'tblTempUsageDetail_20' ) end [2025-01-13 12:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:38:26] Production.INFO: ==2082== Releasing lock... [2025-01-13 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:38:26] Production.INFO: 70.5 MB #Memory Used# [2025-01-13 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:39:05 [end_date_ymd] => 2025-01-13 12:39:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:39:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:39:36] Production.INFO: count ==5679 [2025-01-13 12:39:38] Production.ERROR: pbx CDR StartTime 2025-01-13 09:39:05 - End Time 2025-01-13 12:39:05 [2025-01-13 12:39:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:39:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238998', 'tblTempUsageDetail_20' ) start [2025-01-13 12:39:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14238998', 'tblTempUsageDetail_20' ) end [2025-01-13 12:39:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238998', 'tblTempVendorCDR_20' ) start [2025-01-13 12:39:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14238998', 'tblTempVendorCDR_20' ) end [2025-01-13 12:39:38] Production.INFO: ProcessCDR(1,14238998,1,1,2) [2025-01-13 12:39:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14238998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:39:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14238998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:39:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14238998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:39:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14238998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:39:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238998', 'tblTempUsageDetail_20' ) start [2025-01-13 12:39:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14238998', 'tblTempUsageDetail_20' ) end [2025-01-13 12:39:43] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:39:43] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:39:43] Production.INFO: ==2155== Releasing lock... [2025-01-13 12:39:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:39:43] Production.INFO: 70.5 MB #Memory Used# [2025-01-13 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:40:06 [end_date_ymd] => 2025-01-13 12:40:06 [RateCDR] => 1 ) [2025-01-13 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:40:06' and `end` < '2025-01-13 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:40:34] Production.INFO: count ==5714 [2025-01-13 12:40:36] Production.ERROR: pbx CDR StartTime 2025-01-13 09:40:06 - End Time 2025-01-13 12:40:06 [2025-01-13 12:40:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239004', 'tblTempUsageDetail_20' ) start [2025-01-13 12:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239004', 'tblTempUsageDetail_20' ) end [2025-01-13 12:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239004', 'tblTempVendorCDR_20' ) start [2025-01-13 12:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239004', 'tblTempVendorCDR_20' ) end [2025-01-13 12:40:37] Production.INFO: ProcessCDR(1,14239004,1,1,2) [2025-01-13 12:40:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:40:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:40:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:40:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239004', 'tblTempUsageDetail_20' ) start [2025-01-13 12:40:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239004', 'tblTempUsageDetail_20' ) end [2025-01-13 12:40:42] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:40:42] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:40:42] Production.INFO: ==2229== Releasing lock... [2025-01-13 12:40:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:40:42] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:41:05 [end_date_ymd] => 2025-01-13 12:41:05 [RateCDR] => 1 ) [2025-01-13 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:41:05' and `end` < '2025-01-13 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:41:31] Production.INFO: count ==5731 [2025-01-13 12:41:34] Production.ERROR: pbx CDR StartTime 2025-01-13 09:41:05 - End Time 2025-01-13 12:41:05 [2025-01-13 12:41:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239009', 'tblTempUsageDetail_20' ) start [2025-01-13 12:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239009', 'tblTempUsageDetail_20' ) end [2025-01-13 12:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239009', 'tblTempVendorCDR_20' ) start [2025-01-13 12:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239009', 'tblTempVendorCDR_20' ) end [2025-01-13 12:41:34] Production.INFO: ProcessCDR(1,14239009,1,1,2) [2025-01-13 12:41:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:41:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:41:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:41:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239009', 'tblTempUsageDetail_20' ) start [2025-01-13 12:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239009', 'tblTempUsageDetail_20' ) end [2025-01-13 12:41:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:41:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:41:39] Production.INFO: ==2338== Releasing lock... [2025-01-13 12:41:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:41:39] Production.INFO: 71 MB #Memory Used# [2025-01-13 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:42:05 [end_date_ymd] => 2025-01-13 12:42:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:42:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:42:28] Production.INFO: count ==5744 [2025-01-13 12:42:30] Production.ERROR: pbx CDR StartTime 2025-01-13 09:42:05 - End Time 2025-01-13 12:42:05 [2025-01-13 12:42:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239014', 'tblTempUsageDetail_20' ) start [2025-01-13 12:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239014', 'tblTempUsageDetail_20' ) end [2025-01-13 12:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239014', 'tblTempVendorCDR_20' ) start [2025-01-13 12:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239014', 'tblTempVendorCDR_20' ) end [2025-01-13 12:42:30] Production.INFO: ProcessCDR(1,14239014,1,1,2) [2025-01-13 12:42:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:42:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:42:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:42:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239014', 'tblTempUsageDetail_20' ) start [2025-01-13 12:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239014', 'tblTempUsageDetail_20' ) end [2025-01-13 12:42:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:42:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:42:35] Production.INFO: ==2411== Releasing lock... [2025-01-13 12:42:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:42:35] Production.INFO: 71 MB #Memory Used# [2025-01-13 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:43:04 [end_date_ymd] => 2025-01-13 12:43:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:43:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:43:29] Production.INFO: count ==5768 [2025-01-13 12:43:31] Production.ERROR: pbx CDR StartTime 2025-01-13 09:43:04 - End Time 2025-01-13 12:43:04 [2025-01-13 12:43:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239019', 'tblTempUsageDetail_20' ) start [2025-01-13 12:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239019', 'tblTempUsageDetail_20' ) end [2025-01-13 12:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239019', 'tblTempVendorCDR_20' ) start [2025-01-13 12:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239019', 'tblTempVendorCDR_20' ) end [2025-01-13 12:43:31] Production.INFO: ProcessCDR(1,14239019,1,1,2) [2025-01-13 12:43:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:43:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:43:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:43:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239019', 'tblTempUsageDetail_20' ) start [2025-01-13 12:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239019', 'tblTempUsageDetail_20' ) end [2025-01-13 12:43:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:43:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:43:36] Production.INFO: ==2481== Releasing lock... [2025-01-13 12:43:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:43:36] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:44:05 [end_date_ymd] => 2025-01-13 12:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:44:23] Production.INFO: count ==5779 [2025-01-13 12:44:26] Production.ERROR: pbx CDR StartTime 2025-01-13 09:44:05 - End Time 2025-01-13 12:44:05 [2025-01-13 12:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239024', 'tblTempUsageDetail_20' ) start [2025-01-13 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239024', 'tblTempUsageDetail_20' ) end [2025-01-13 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239024', 'tblTempVendorCDR_20' ) start [2025-01-13 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239024', 'tblTempVendorCDR_20' ) end [2025-01-13 12:44:26] Production.INFO: ProcessCDR(1,14239024,1,1,2) [2025-01-13 12:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239024', 'tblTempUsageDetail_20' ) start [2025-01-13 12:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239024', 'tblTempUsageDetail_20' ) end [2025-01-13 12:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:44:31] Production.INFO: ==2552== Releasing lock... [2025-01-13 12:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:44:31] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:45:04 [end_date_ymd] => 2025-01-13 12:45:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:45:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:45:23] Production.INFO: count ==5776 [2025-01-13 12:45:25] Production.ERROR: pbx CDR StartTime 2025-01-13 09:45:04 - End Time 2025-01-13 12:45:04 [2025-01-13 12:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239029', 'tblTempUsageDetail_20' ) start [2025-01-13 12:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239029', 'tblTempUsageDetail_20' ) end [2025-01-13 12:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239029', 'tblTempVendorCDR_20' ) start [2025-01-13 12:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239029', 'tblTempVendorCDR_20' ) end [2025-01-13 12:45:25] Production.INFO: ProcessCDR(1,14239029,1,1,2) [2025-01-13 12:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239029', 'tblTempUsageDetail_20' ) start [2025-01-13 12:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239029', 'tblTempUsageDetail_20' ) end [2025-01-13 12:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:45:30] Production.INFO: ==2623== Releasing lock... [2025-01-13 12:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:45:30] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:46:05 [end_date_ymd] => 2025-01-13 12:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:46:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:46:21] Production.INFO: count ==5782 [2025-01-13 12:46:24] Production.ERROR: pbx CDR StartTime 2025-01-13 09:46:05 - End Time 2025-01-13 12:46:05 [2025-01-13 12:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239034', 'tblTempUsageDetail_20' ) start [2025-01-13 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239034', 'tblTempUsageDetail_20' ) end [2025-01-13 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239034', 'tblTempVendorCDR_20' ) start [2025-01-13 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239034', 'tblTempVendorCDR_20' ) end [2025-01-13 12:46:24] Production.INFO: ProcessCDR(1,14239034,1,1,2) [2025-01-13 12:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239034', 'tblTempUsageDetail_20' ) start [2025-01-13 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239034', 'tblTempUsageDetail_20' ) end [2025-01-13 12:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:46:28] Production.INFO: ==2695== Releasing lock... [2025-01-13 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:46:28] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:47:04 [end_date_ymd] => 2025-01-13 12:47:04 [RateCDR] => 1 ) [2025-01-13 12:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:47:04' and `end` < '2025-01-13 12:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:47:19] Production.INFO: count ==5792 [2025-01-13 12:47:21] Production.ERROR: pbx CDR StartTime 2025-01-13 09:47:04 - End Time 2025-01-13 12:47:04 [2025-01-13 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239039', 'tblTempUsageDetail_20' ) start [2025-01-13 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239039', 'tblTempUsageDetail_20' ) end [2025-01-13 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239039', 'tblTempVendorCDR_20' ) start [2025-01-13 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239039', 'tblTempVendorCDR_20' ) end [2025-01-13 12:47:22] Production.INFO: ProcessCDR(1,14239039,1,1,2) [2025-01-13 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239039', 'tblTempUsageDetail_20' ) start [2025-01-13 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239039', 'tblTempUsageDetail_20' ) end [2025-01-13 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:47:26] Production.INFO: ==2766== Releasing lock... [2025-01-13 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:47:26] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:48:05 [end_date_ymd] => 2025-01-13 12:48:05 [RateCDR] => 1 ) [2025-01-13 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:48:05' and `end` < '2025-01-13 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:48:20] Production.INFO: count ==5797 [2025-01-13 12:48:22] Production.ERROR: pbx CDR StartTime 2025-01-13 09:48:05 - End Time 2025-01-13 12:48:05 [2025-01-13 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239044', 'tblTempUsageDetail_20' ) start [2025-01-13 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239044', 'tblTempUsageDetail_20' ) end [2025-01-13 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239044', 'tblTempVendorCDR_20' ) start [2025-01-13 12:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239044', 'tblTempVendorCDR_20' ) end [2025-01-13 12:48:23] Production.INFO: ProcessCDR(1,14239044,1,1,2) [2025-01-13 12:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239044', 'tblTempUsageDetail_20' ) start [2025-01-13 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239044', 'tblTempUsageDetail_20' ) end [2025-01-13 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:48:27] Production.INFO: ==2837== Releasing lock... [2025-01-13 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:48:27] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:49:04 [end_date_ymd] => 2025-01-13 12:49:04 [RateCDR] => 1 ) [2025-01-13 12:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:49:04' and `end` < '2025-01-13 12:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:49:18] Production.INFO: count ==5800 [2025-01-13 12:49:21] Production.ERROR: pbx CDR StartTime 2025-01-13 09:49:04 - End Time 2025-01-13 12:49:04 [2025-01-13 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239049', 'tblTempUsageDetail_20' ) start [2025-01-13 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239049', 'tblTempUsageDetail_20' ) end [2025-01-13 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239049', 'tblTempVendorCDR_20' ) start [2025-01-13 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239049', 'tblTempVendorCDR_20' ) end [2025-01-13 12:49:21] Production.INFO: ProcessCDR(1,14239049,1,1,2) [2025-01-13 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239049', 'tblTempUsageDetail_20' ) start [2025-01-13 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239049', 'tblTempUsageDetail_20' ) end [2025-01-13 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:49:26] Production.INFO: ==2910== Releasing lock... [2025-01-13 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:49:26] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:50:06 [end_date_ymd] => 2025-01-13 12:50:06 [RateCDR] => 1 ) [2025-01-13 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:50:06' and `end` < '2025-01-13 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:50:30] Production.INFO: count ==5813 [2025-01-13 12:50:33] Production.ERROR: pbx CDR StartTime 2025-01-13 09:50:06 - End Time 2025-01-13 12:50:06 [2025-01-13 12:50:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239055', 'tblTempUsageDetail_20' ) start [2025-01-13 12:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239055', 'tblTempUsageDetail_20' ) end [2025-01-13 12:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239055', 'tblTempVendorCDR_20' ) start [2025-01-13 12:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239055', 'tblTempVendorCDR_20' ) end [2025-01-13 12:50:33] Production.INFO: ProcessCDR(1,14239055,1,1,2) [2025-01-13 12:50:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:50:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:50:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:50:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239055', 'tblTempUsageDetail_20' ) start [2025-01-13 12:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239055', 'tblTempUsageDetail_20' ) end [2025-01-13 12:50:38] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:50:38] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:50:38] Production.INFO: ==2983== Releasing lock... [2025-01-13 12:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:50:38] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:51:04 [end_date_ymd] => 2025-01-13 12:51:04 [RateCDR] => 1 ) [2025-01-13 12:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:51:04' and `end` < '2025-01-13 12:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:51:28] Production.INFO: count ==5809 [2025-01-13 12:51:31] Production.ERROR: pbx CDR StartTime 2025-01-13 09:51:04 - End Time 2025-01-13 12:51:04 [2025-01-13 12:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239060', 'tblTempUsageDetail_20' ) start [2025-01-13 12:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239060', 'tblTempUsageDetail_20' ) end [2025-01-13 12:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239060', 'tblTempVendorCDR_20' ) start [2025-01-13 12:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239060', 'tblTempVendorCDR_20' ) end [2025-01-13 12:51:31] Production.INFO: ProcessCDR(1,14239060,1,1,2) [2025-01-13 12:51:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:51:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239060', 'tblTempUsageDetail_20' ) start [2025-01-13 12:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239060', 'tblTempUsageDetail_20' ) end [2025-01-13 12:51:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:51:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:51:36] Production.INFO: ==3055== Releasing lock... [2025-01-13 12:51:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:51:36] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:52:05 [end_date_ymd] => 2025-01-13 12:52:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:52:29] Production.INFO: count ==5785 [2025-01-13 12:52:32] Production.ERROR: pbx CDR StartTime 2025-01-13 09:52:05 - End Time 2025-01-13 12:52:05 [2025-01-13 12:52:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239065', 'tblTempUsageDetail_20' ) start [2025-01-13 12:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239065', 'tblTempUsageDetail_20' ) end [2025-01-13 12:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239065', 'tblTempVendorCDR_20' ) start [2025-01-13 12:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239065', 'tblTempVendorCDR_20' ) end [2025-01-13 12:52:32] Production.INFO: ProcessCDR(1,14239065,1,1,2) [2025-01-13 12:52:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:52:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:52:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:52:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239065', 'tblTempUsageDetail_20' ) start [2025-01-13 12:52:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239065', 'tblTempUsageDetail_20' ) end [2025-01-13 12:52:37] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:52:37] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:52:37] Production.INFO: ==3127== Releasing lock... [2025-01-13 12:52:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:52:37] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:53:05 [end_date_ymd] => 2025-01-13 12:53:05 [RateCDR] => 1 ) [2025-01-13 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:53:05' and `end` < '2025-01-13 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:53:24] Production.INFO: count ==5778 [2025-01-13 12:53:26] Production.ERROR: pbx CDR StartTime 2025-01-13 09:53:05 - End Time 2025-01-13 12:53:05 [2025-01-13 12:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239070', 'tblTempUsageDetail_20' ) start [2025-01-13 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239070', 'tblTempUsageDetail_20' ) end [2025-01-13 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239070', 'tblTempVendorCDR_20' ) start [2025-01-13 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239070', 'tblTempVendorCDR_20' ) end [2025-01-13 12:53:26] Production.INFO: ProcessCDR(1,14239070,1,1,2) [2025-01-13 12:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239070', 'tblTempUsageDetail_20' ) start [2025-01-13 12:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239070', 'tblTempUsageDetail_20' ) end [2025-01-13 12:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:53:31] Production.INFO: ==3199== Releasing lock... [2025-01-13 12:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:53:31] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:54:05 [end_date_ymd] => 2025-01-13 12:54:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:54:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:54:30] Production.INFO: count ==5783 [2025-01-13 12:54:33] Production.ERROR: pbx CDR StartTime 2025-01-13 09:54:05 - End Time 2025-01-13 12:54:05 [2025-01-13 12:54:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239075', 'tblTempUsageDetail_20' ) start [2025-01-13 12:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239075', 'tblTempUsageDetail_20' ) end [2025-01-13 12:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239075', 'tblTempVendorCDR_20' ) start [2025-01-13 12:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239075', 'tblTempVendorCDR_20' ) end [2025-01-13 12:54:33] Production.INFO: ProcessCDR(1,14239075,1,1,2) [2025-01-13 12:54:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:54:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:54:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:54:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239075', 'tblTempUsageDetail_20' ) start [2025-01-13 12:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239075', 'tblTempUsageDetail_20' ) end [2025-01-13 12:54:38] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:54:38] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:54:38] Production.INFO: ==3286== Releasing lock... [2025-01-13 12:54:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:54:38] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:55:04 [end_date_ymd] => 2025-01-13 12:55:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:55:04' and `end` < '2025-01-13 12: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 ,'') [2025-01-13 12:55:32] Production.INFO: count ==5814 [2025-01-13 12:55:35] Production.ERROR: pbx CDR StartTime 2025-01-13 09:55:04 - End Time 2025-01-13 12:55:04 [2025-01-13 12:55:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239080', 'tblTempUsageDetail_20' ) start [2025-01-13 12:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239080', 'tblTempUsageDetail_20' ) end [2025-01-13 12:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239080', 'tblTempVendorCDR_20' ) start [2025-01-13 12:55:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239080', 'tblTempVendorCDR_20' ) end [2025-01-13 12:55:35] Production.INFO: ProcessCDR(1,14239080,1,1,2) [2025-01-13 12:55:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:55:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:55:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:55:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:55:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239080', 'tblTempUsageDetail_20' ) start [2025-01-13 12:55:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239080', 'tblTempUsageDetail_20' ) end [2025-01-13 12:55:40] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:55:40] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:55:40] Production.INFO: ==3357== Releasing lock... [2025-01-13 12:55:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:55:40] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:56:05 [end_date_ymd] => 2025-01-13 12:56:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:56:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:56:23] Production.INFO: count ==5823 [2025-01-13 12:56:25] Production.ERROR: pbx CDR StartTime 2025-01-13 09:56:05 - End Time 2025-01-13 12:56:05 [2025-01-13 12:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239085', 'tblTempUsageDetail_20' ) start [2025-01-13 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239085', 'tblTempUsageDetail_20' ) end [2025-01-13 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239085', 'tblTempVendorCDR_20' ) start [2025-01-13 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239085', 'tblTempVendorCDR_20' ) end [2025-01-13 12:56:25] Production.INFO: ProcessCDR(1,14239085,1,1,2) [2025-01-13 12:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239085', 'tblTempUsageDetail_20' ) start [2025-01-13 12:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239085', 'tblTempUsageDetail_20' ) end [2025-01-13 12:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:56:30] Production.INFO: ==3467== Releasing lock... [2025-01-13 12:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:56:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:57:04 [end_date_ymd] => 2025-01-13 12:57:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:57:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:57:24] Production.INFO: count ==5815 [2025-01-13 12:57:26] Production.ERROR: pbx CDR StartTime 2025-01-13 09:57:04 - End Time 2025-01-13 12:57:04 [2025-01-13 12:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239090', 'tblTempUsageDetail_20' ) start [2025-01-13 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239090', 'tblTempUsageDetail_20' ) end [2025-01-13 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239090', 'tblTempVendorCDR_20' ) start [2025-01-13 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239090', 'tblTempVendorCDR_20' ) end [2025-01-13 12:57:26] Production.INFO: ProcessCDR(1,14239090,1,1,2) [2025-01-13 12:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239090', 'tblTempUsageDetail_20' ) start [2025-01-13 12:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239090', 'tblTempUsageDetail_20' ) end [2025-01-13 12:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:57:31] Production.INFO: ==3535== Releasing lock... [2025-01-13 12:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:57:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:58:05 [end_date_ymd] => 2025-01-13 12:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 09:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 12:58:18] Production.INFO: count ==5817 [2025-01-13 12:58:21] Production.ERROR: pbx CDR StartTime 2025-01-13 09:58:05 - End Time 2025-01-13 12:58:05 [2025-01-13 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239095', 'tblTempUsageDetail_20' ) start [2025-01-13 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239095', 'tblTempUsageDetail_20' ) end [2025-01-13 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239095', 'tblTempVendorCDR_20' ) start [2025-01-13 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239095', 'tblTempVendorCDR_20' ) end [2025-01-13 12:58:21] Production.INFO: ProcessCDR(1,14239095,1,1,2) [2025-01-13 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239095', 'tblTempUsageDetail_20' ) start [2025-01-13 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239095', 'tblTempUsageDetail_20' ) end [2025-01-13 12:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:58:26] Production.INFO: ==3606== Releasing lock... [2025-01-13 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:58:26] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 09:59:05 [end_date_ymd] => 2025-01-13 12:59:05 [RateCDR] => 1 ) [2025-01-13 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 09:59:05' and `end` < '2025-01-13 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 12:59:26] Production.INFO: count ==5819 [2025-01-13 12:59:28] Production.ERROR: pbx CDR StartTime 2025-01-13 09:59:05 - End Time 2025-01-13 12:59:05 [2025-01-13 12:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 12:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239100', 'tblTempUsageDetail_20' ) start [2025-01-13 12:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239100', 'tblTempUsageDetail_20' ) end [2025-01-13 12:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239100', 'tblTempVendorCDR_20' ) start [2025-01-13 12:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239100', 'tblTempVendorCDR_20' ) end [2025-01-13 12:59:28] Production.INFO: ProcessCDR(1,14239100,1,1,2) [2025-01-13 12:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:59:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 12:59:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 12:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239100', 'tblTempUsageDetail_20' ) start [2025-01-13 12:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239100', 'tblTempUsageDetail_20' ) end [2025-01-13 12:59:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 12:59:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 12:59:33] Production.INFO: ==3678== Releasing lock... [2025-01-13 12:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 12:59:33] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:00:05 [end_date_ymd] => 2025-01-13 13:00:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:00:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:00:34] Production.INFO: count ==5819 [2025-01-13 13:00:36] Production.ERROR: pbx CDR StartTime 2025-01-13 10:00:05 - End Time 2025-01-13 13:00:05 [2025-01-13 13:00:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239106', 'tblTempUsageDetail_20' ) start [2025-01-13 13:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239106', 'tblTempUsageDetail_20' ) end [2025-01-13 13:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239106', 'tblTempVendorCDR_20' ) start [2025-01-13 13:00:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239106', 'tblTempVendorCDR_20' ) end [2025-01-13 13:00:37] Production.INFO: ProcessCDR(1,14239106,1,1,2) [2025-01-13 13:00:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:00:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:00:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:00:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239106', 'tblTempUsageDetail_20' ) start [2025-01-13 13:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239106', 'tblTempUsageDetail_20' ) end [2025-01-13 13:00:41] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:00:41] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:00:41] Production.INFO: ==3751== Releasing lock... [2025-01-13 13:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:00:41] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:01:05 [end_date_ymd] => 2025-01-13 13:01:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:01:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:01:23] Production.INFO: count ==5824 [2025-01-13 13:01:26] Production.ERROR: pbx CDR StartTime 2025-01-13 10:01:05 - End Time 2025-01-13 13:01:05 [2025-01-13 13:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239111', 'tblTempUsageDetail_20' ) start [2025-01-13 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239111', 'tblTempUsageDetail_20' ) end [2025-01-13 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239111', 'tblTempVendorCDR_20' ) start [2025-01-13 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239111', 'tblTempVendorCDR_20' ) end [2025-01-13 13:01:26] Production.INFO: ProcessCDR(1,14239111,1,1,2) [2025-01-13 13:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239111', 'tblTempUsageDetail_20' ) start [2025-01-13 13:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239111', 'tblTempUsageDetail_20' ) end [2025-01-13 13:01:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:01:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:01:31] Production.INFO: ==3840== Releasing lock... [2025-01-13 13:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:01:31] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 13:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:02:04 [end_date_ymd] => 2025-01-13 13:02:04 [RateCDR] => 1 ) [2025-01-13 13:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:02:04' and `end` < '2025-01-13 13:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:02:22] Production.INFO: count ==5821 [2025-01-13 13:02:24] Production.ERROR: pbx CDR StartTime 2025-01-13 10:02:04 - End Time 2025-01-13 13:02:04 [2025-01-13 13:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239116', 'tblTempUsageDetail_20' ) start [2025-01-13 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239116', 'tblTempUsageDetail_20' ) end [2025-01-13 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239116', 'tblTempVendorCDR_20' ) start [2025-01-13 13:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239116', 'tblTempVendorCDR_20' ) end [2025-01-13 13:02:24] Production.INFO: ProcessCDR(1,14239116,1,1,2) [2025-01-13 13:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:02:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:02:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:02:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239116', 'tblTempUsageDetail_20' ) start [2025-01-13 13:02:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239116', 'tblTempUsageDetail_20' ) end [2025-01-13 13:02:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:02:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:02:29] Production.INFO: ==3913== Releasing lock... [2025-01-13 13:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:02:29] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:03:05 [end_date_ymd] => 2025-01-13 13:03:05 [RateCDR] => 1 ) [2025-01-13 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:03:05' and `end` < '2025-01-13 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:03:20] Production.INFO: count ==5768 [2025-01-13 13:03:22] Production.ERROR: pbx CDR StartTime 2025-01-13 10:03:05 - End Time 2025-01-13 13:03:05 [2025-01-13 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239121', 'tblTempUsageDetail_20' ) start [2025-01-13 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239121', 'tblTempUsageDetail_20' ) end [2025-01-13 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239121', 'tblTempVendorCDR_20' ) start [2025-01-13 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239121', 'tblTempVendorCDR_20' ) end [2025-01-13 13:03:22] Production.INFO: ProcessCDR(1,14239121,1,1,2) [2025-01-13 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239121', 'tblTempUsageDetail_20' ) start [2025-01-13 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239121', 'tblTempUsageDetail_20' ) end [2025-01-13 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:03:27] Production.INFO: ==3985== Releasing lock... [2025-01-13 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:03:27] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:04:05 [end_date_ymd] => 2025-01-13 13:04:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:04:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:04:22] Production.INFO: count ==5762 [2025-01-13 13:04:24] Production.ERROR: pbx CDR StartTime 2025-01-13 10:04:05 - End Time 2025-01-13 13:04:05 [2025-01-13 13:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239126', 'tblTempUsageDetail_20' ) start [2025-01-13 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239126', 'tblTempUsageDetail_20' ) end [2025-01-13 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239126', 'tblTempVendorCDR_20' ) start [2025-01-13 13:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239126', 'tblTempVendorCDR_20' ) end [2025-01-13 13:04:24] Production.INFO: ProcessCDR(1,14239126,1,1,2) [2025-01-13 13:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239126', 'tblTempUsageDetail_20' ) start [2025-01-13 13:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239126', 'tblTempUsageDetail_20' ) end [2025-01-13 13:04:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:04:29] Production.INFO: ==4057== Releasing lock... [2025-01-13 13:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:04:29] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:05:05 [end_date_ymd] => 2025-01-13 13:05:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:05:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:05:18] Production.INFO: count ==5750 [2025-01-13 13:05:21] Production.ERROR: pbx CDR StartTime 2025-01-13 10:05:05 - End Time 2025-01-13 13:05:05 [2025-01-13 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239131', 'tblTempUsageDetail_20' ) start [2025-01-13 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239131', 'tblTempUsageDetail_20' ) end [2025-01-13 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239131', 'tblTempVendorCDR_20' ) start [2025-01-13 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239131', 'tblTempVendorCDR_20' ) end [2025-01-13 13:05:21] Production.INFO: ProcessCDR(1,14239131,1,1,2) [2025-01-13 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239131', 'tblTempUsageDetail_20' ) start [2025-01-13 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239131', 'tblTempUsageDetail_20' ) end [2025-01-13 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:05:26] Production.INFO: ==4129== Releasing lock... [2025-01-13 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:05:26] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:06:05 [end_date_ymd] => 2025-01-13 13:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:06:20] Production.INFO: count ==5751 [2025-01-13 13:06:23] Production.ERROR: pbx CDR StartTime 2025-01-13 10:06:05 - End Time 2025-01-13 13:06:05 [2025-01-13 13:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239136', 'tblTempUsageDetail_20' ) start [2025-01-13 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239136', 'tblTempUsageDetail_20' ) end [2025-01-13 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239136', 'tblTempVendorCDR_20' ) start [2025-01-13 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239136', 'tblTempVendorCDR_20' ) end [2025-01-13 13:06:23] Production.INFO: ProcessCDR(1,14239136,1,1,2) [2025-01-13 13:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239136', 'tblTempUsageDetail_20' ) start [2025-01-13 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239136', 'tblTempUsageDetail_20' ) end [2025-01-13 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:06:28] Production.INFO: ==4200== Releasing lock... [2025-01-13 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:06:28] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:07:05 [end_date_ymd] => 2025-01-13 13:07:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:07:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:07:21] Production.INFO: count ==5719 [2025-01-13 13:07:23] Production.ERROR: pbx CDR StartTime 2025-01-13 10:07:05 - End Time 2025-01-13 13:07:05 [2025-01-13 13:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239141', 'tblTempUsageDetail_20' ) start [2025-01-13 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239141', 'tblTempUsageDetail_20' ) end [2025-01-13 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239141', 'tblTempVendorCDR_20' ) start [2025-01-13 13:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239141', 'tblTempVendorCDR_20' ) end [2025-01-13 13:07:23] Production.INFO: ProcessCDR(1,14239141,1,1,2) [2025-01-13 13:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239141', 'tblTempUsageDetail_20' ) start [2025-01-13 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239141', 'tblTempUsageDetail_20' ) end [2025-01-13 13:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:07:28] Production.INFO: ==4274== Releasing lock... [2025-01-13 13:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:07:28] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:08:05 [end_date_ymd] => 2025-01-13 13:08:05 [RateCDR] => 1 ) [2025-01-13 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:08:05' and `end` < '2025-01-13 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:08:19] Production.INFO: count ==5699 [2025-01-13 13:08:22] Production.ERROR: pbx CDR StartTime 2025-01-13 10:08:05 - End Time 2025-01-13 13:08:05 [2025-01-13 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239146', 'tblTempUsageDetail_20' ) start [2025-01-13 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239146', 'tblTempUsageDetail_20' ) end [2025-01-13 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239146', 'tblTempVendorCDR_20' ) start [2025-01-13 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239146', 'tblTempVendorCDR_20' ) end [2025-01-13 13:08:22] Production.INFO: ProcessCDR(1,14239146,1,1,2) [2025-01-13 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239146', 'tblTempUsageDetail_20' ) start [2025-01-13 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239146', 'tblTempUsageDetail_20' ) end [2025-01-13 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:08:27] Production.INFO: ==4345== Releasing lock... [2025-01-13 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:08:27] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:09:05 [end_date_ymd] => 2025-01-13 13:09:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:09:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:09:20] Production.INFO: count ==5657 [2025-01-13 13:09:22] Production.ERROR: pbx CDR StartTime 2025-01-13 10:09:05 - End Time 2025-01-13 13:09:05 [2025-01-13 13:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239151', 'tblTempUsageDetail_20' ) start [2025-01-13 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239151', 'tblTempUsageDetail_20' ) end [2025-01-13 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239151', 'tblTempVendorCDR_20' ) start [2025-01-13 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239151', 'tblTempVendorCDR_20' ) end [2025-01-13 13:09:22] Production.INFO: ProcessCDR(1,14239151,1,1,2) [2025-01-13 13:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239151', 'tblTempUsageDetail_20' ) start [2025-01-13 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239151', 'tblTempUsageDetail_20' ) end [2025-01-13 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:09:26] Production.INFO: ==4415== Releasing lock... [2025-01-13 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:09:26] Production.INFO: 70.25 MB #Memory Used# [2025-01-13 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:10:06 [end_date_ymd] => 2025-01-13 13:10:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:10:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:10:21] Production.INFO: count ==5673 [2025-01-13 13:10:24] Production.ERROR: pbx CDR StartTime 2025-01-13 10:10:06 - End Time 2025-01-13 13:10:06 [2025-01-13 13:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239157', 'tblTempUsageDetail_20' ) start [2025-01-13 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239157', 'tblTempUsageDetail_20' ) end [2025-01-13 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239157', 'tblTempVendorCDR_20' ) start [2025-01-13 13:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239157', 'tblTempVendorCDR_20' ) end [2025-01-13 13:10:24] Production.INFO: ProcessCDR(1,14239157,1,1,2) [2025-01-13 13:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239157', 'tblTempUsageDetail_20' ) start [2025-01-13 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239157', 'tblTempUsageDetail_20' ) end [2025-01-13 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:10:28] Production.INFO: ==4490== Releasing lock... [2025-01-13 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:10:28] Production.INFO: 70.5 MB #Memory Used# [2025-01-13 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:11:05 [end_date_ymd] => 2025-01-13 13:11:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:11:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:11:25] Production.INFO: count ==5712 [2025-01-13 13:11:27] Production.ERROR: pbx CDR StartTime 2025-01-13 10:11:05 - End Time 2025-01-13 13:11:05 [2025-01-13 13:11:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239162', 'tblTempUsageDetail_20' ) start [2025-01-13 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239162', 'tblTempUsageDetail_20' ) end [2025-01-13 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239162', 'tblTempVendorCDR_20' ) start [2025-01-13 13:11:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239162', 'tblTempVendorCDR_20' ) end [2025-01-13 13:11:27] Production.INFO: ProcessCDR(1,14239162,1,1,2) [2025-01-13 13:11:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:11:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:11:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:11:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239162', 'tblTempUsageDetail_20' ) start [2025-01-13 13:11:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239162', 'tblTempUsageDetail_20' ) end [2025-01-13 13:11:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:11:32] Production.INFO: ==4562== Releasing lock... [2025-01-13 13:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:11:32] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:12:05 [end_date_ymd] => 2025-01-13 13:12:05 [RateCDR] => 1 ) [2025-01-13 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:12:05' and `end` < '2025-01-13 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:12:20] Production.INFO: count ==5711 [2025-01-13 13:12:23] Production.ERROR: pbx CDR StartTime 2025-01-13 10:12:05 - End Time 2025-01-13 13:12:05 [2025-01-13 13:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239167', 'tblTempUsageDetail_20' ) start [2025-01-13 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239167', 'tblTempUsageDetail_20' ) end [2025-01-13 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239167', 'tblTempVendorCDR_20' ) start [2025-01-13 13:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239167', 'tblTempVendorCDR_20' ) end [2025-01-13 13:12:23] Production.INFO: ProcessCDR(1,14239167,1,1,2) [2025-01-13 13:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239167', 'tblTempUsageDetail_20' ) start [2025-01-13 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239167', 'tblTempUsageDetail_20' ) end [2025-01-13 13:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:12:28] Production.INFO: ==4680== Releasing lock... [2025-01-13 13:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:12:28] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:13:04 [end_date_ymd] => 2025-01-13 13:13:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:13:04' and `end` < '2025-01-13 13:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:13:24] Production.INFO: count ==5718 [2025-01-13 13:13:27] Production.ERROR: pbx CDR StartTime 2025-01-13 10:13:04 - End Time 2025-01-13 13:13:04 [2025-01-13 13:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239172', 'tblTempUsageDetail_20' ) start [2025-01-13 13:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239172', 'tblTempUsageDetail_20' ) end [2025-01-13 13:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239172', 'tblTempVendorCDR_20' ) start [2025-01-13 13:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239172', 'tblTempVendorCDR_20' ) end [2025-01-13 13:13:27] Production.INFO: ProcessCDR(1,14239172,1,1,2) [2025-01-13 13:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239172', 'tblTempUsageDetail_20' ) start [2025-01-13 13:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239172', 'tblTempUsageDetail_20' ) end [2025-01-13 13:13:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:13:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:13:32] Production.INFO: ==4755== Releasing lock... [2025-01-13 13:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:13:32] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:14:05 [end_date_ymd] => 2025-01-13 13:14:05 [RateCDR] => 1 ) [2025-01-13 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:14:05' and `end` < '2025-01-13 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:14:28] Production.INFO: count ==5723 [2025-01-13 13:14:30] Production.ERROR: pbx CDR StartTime 2025-01-13 10:14:05 - End Time 2025-01-13 13:14:05 [2025-01-13 13:14:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239177', 'tblTempUsageDetail_20' ) start [2025-01-13 13:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239177', 'tblTempUsageDetail_20' ) end [2025-01-13 13:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239177', 'tblTempVendorCDR_20' ) start [2025-01-13 13:14:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239177', 'tblTempVendorCDR_20' ) end [2025-01-13 13:14:31] Production.INFO: ProcessCDR(1,14239177,1,1,2) [2025-01-13 13:14:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:14:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:14:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:14:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239177', 'tblTempUsageDetail_20' ) start [2025-01-13 13:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239177', 'tblTempUsageDetail_20' ) end [2025-01-13 13:14:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:14:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:14:35] Production.INFO: ==4826== Releasing lock... [2025-01-13 13:14:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:14:35] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:15:05 [end_date_ymd] => 2025-01-13 13:15:05 [RateCDR] => 1 ) [2025-01-13 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:15:05' and `end` < '2025-01-13 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:15:24] Production.INFO: count ==5719 [2025-01-13 13:15:26] Production.ERROR: pbx CDR StartTime 2025-01-13 10:15:05 - End Time 2025-01-13 13:15:05 [2025-01-13 13:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239182', 'tblTempUsageDetail_20' ) start [2025-01-13 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239182', 'tblTempUsageDetail_20' ) end [2025-01-13 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239182', 'tblTempVendorCDR_20' ) start [2025-01-13 13:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239182', 'tblTempVendorCDR_20' ) end [2025-01-13 13:15:26] Production.INFO: ProcessCDR(1,14239182,1,1,2) [2025-01-13 13:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239182', 'tblTempUsageDetail_20' ) start [2025-01-13 13:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239182', 'tblTempUsageDetail_20' ) end [2025-01-13 13:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:15:31] Production.INFO: ==4897== Releasing lock... [2025-01-13 13:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:15:31] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:16:05 [end_date_ymd] => 2025-01-13 13:16:05 [RateCDR] => 1 ) [2025-01-13 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:16:05' and `end` < '2025-01-13 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:16:30] Production.INFO: count ==5723 [2025-01-13 13:16:32] Production.ERROR: pbx CDR StartTime 2025-01-13 10:16:05 - End Time 2025-01-13 13:16:05 [2025-01-13 13:16:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239187', 'tblTempUsageDetail_20' ) start [2025-01-13 13:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239187', 'tblTempUsageDetail_20' ) end [2025-01-13 13:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239187', 'tblTempVendorCDR_20' ) start [2025-01-13 13:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239187', 'tblTempVendorCDR_20' ) end [2025-01-13 13:16:33] Production.INFO: ProcessCDR(1,14239187,1,1,2) [2025-01-13 13:16:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:16:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:16:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:16:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239187', 'tblTempUsageDetail_20' ) start [2025-01-13 13:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239187', 'tblTempUsageDetail_20' ) end [2025-01-13 13:16:37] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:16:37] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:16:37] Production.INFO: ==4981== Releasing lock... [2025-01-13 13:16:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:16:37] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:17:05 [end_date_ymd] => 2025-01-13 13:17:05 [RateCDR] => 1 ) [2025-01-13 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:17:05' and `end` < '2025-01-13 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:17:25] Production.INFO: count ==5718 [2025-01-13 13:17:27] Production.ERROR: pbx CDR StartTime 2025-01-13 10:17:05 - End Time 2025-01-13 13:17:05 [2025-01-13 13:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239192', 'tblTempUsageDetail_20' ) start [2025-01-13 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239192', 'tblTempUsageDetail_20' ) end [2025-01-13 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239192', 'tblTempVendorCDR_20' ) start [2025-01-13 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239192', 'tblTempVendorCDR_20' ) end [2025-01-13 13:17:27] Production.INFO: ProcessCDR(1,14239192,1,1,2) [2025-01-13 13:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239192', 'tblTempUsageDetail_20' ) start [2025-01-13 13:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239192', 'tblTempUsageDetail_20' ) end [2025-01-13 13:17:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:17:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:17:32] Production.INFO: ==5052== Releasing lock... [2025-01-13 13:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:17:32] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:18:04 [end_date_ymd] => 2025-01-13 13:18:04 [RateCDR] => 1 ) [2025-01-13 13: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` >= '2025-01-13 10:18:04' and `end` < '2025-01-13 13: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 ,'') [2025-01-13 13:18:23] Production.INFO: count ==5705 [2025-01-13 13:18:25] Production.ERROR: pbx CDR StartTime 2025-01-13 10:18:04 - End Time 2025-01-13 13:18:04 [2025-01-13 13:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239197', 'tblTempUsageDetail_20' ) start [2025-01-13 13:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239197', 'tblTempUsageDetail_20' ) end [2025-01-13 13:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239197', 'tblTempVendorCDR_20' ) start [2025-01-13 13:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239197', 'tblTempVendorCDR_20' ) end [2025-01-13 13:18:26] Production.INFO: ProcessCDR(1,14239197,1,1,2) [2025-01-13 13:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239197', 'tblTempUsageDetail_20' ) start [2025-01-13 13:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239197', 'tblTempUsageDetail_20' ) end [2025-01-13 13:18:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:18:30] Production.INFO: ==5124== Releasing lock... [2025-01-13 13:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:18:30] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:19:04 [end_date_ymd] => 2025-01-13 13:19:04 [RateCDR] => 1 ) [2025-01-13 13:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:19:04' and `end` < '2025-01-13 13:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:19:23] Production.INFO: count ==5661 [2025-01-13 13:19:25] Production.ERROR: pbx CDR StartTime 2025-01-13 10:19:04 - End Time 2025-01-13 13:19:04 [2025-01-13 13:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239202', 'tblTempUsageDetail_20' ) start [2025-01-13 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239202', 'tblTempUsageDetail_20' ) end [2025-01-13 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239202', 'tblTempVendorCDR_20' ) start [2025-01-13 13:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239202', 'tblTempVendorCDR_20' ) end [2025-01-13 13:19:25] Production.INFO: ProcessCDR(1,14239202,1,1,2) [2025-01-13 13:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239202', 'tblTempUsageDetail_20' ) start [2025-01-13 13:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239202', 'tblTempUsageDetail_20' ) end [2025-01-13 13:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:19:30] Production.INFO: ==5198== Releasing lock... [2025-01-13 13:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:19:30] Production.INFO: 70.5 MB #Memory Used# [2025-01-13 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:20:06 [end_date_ymd] => 2025-01-13 13:20:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:20:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:20:28] Production.INFO: count ==5638 [2025-01-13 13:20:30] Production.ERROR: pbx CDR StartTime 2025-01-13 10:20:06 - End Time 2025-01-13 13:20:06 [2025-01-13 13:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239208', 'tblTempUsageDetail_20' ) start [2025-01-13 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239208', 'tblTempUsageDetail_20' ) end [2025-01-13 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239208', 'tblTempVendorCDR_20' ) start [2025-01-13 13:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239208', 'tblTempVendorCDR_20' ) end [2025-01-13 13:20:30] Production.INFO: ProcessCDR(1,14239208,1,1,2) [2025-01-13 13:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:20:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:20:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:20:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239208', 'tblTempUsageDetail_20' ) start [2025-01-13 13:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239208', 'tblTempUsageDetail_20' ) end [2025-01-13 13:20:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:20:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:20:35] Production.INFO: ==5271== Releasing lock... [2025-01-13 13:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:20:35] Production.INFO: 70.25 MB #Memory Used# [2025-01-13 13:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:21:04 [end_date_ymd] => 2025-01-13 13:21:04 [RateCDR] => 1 ) [2025-01-13 13:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:21:04' and `end` < '2025-01-13 13:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:21:24] Production.INFO: count ==5630 [2025-01-13 13:21:26] Production.ERROR: pbx CDR StartTime 2025-01-13 10:21:04 - End Time 2025-01-13 13:21:04 [2025-01-13 13:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239213', 'tblTempUsageDetail_20' ) start [2025-01-13 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239213', 'tblTempUsageDetail_20' ) end [2025-01-13 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239213', 'tblTempVendorCDR_20' ) start [2025-01-13 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239213', 'tblTempVendorCDR_20' ) end [2025-01-13 13:21:27] Production.INFO: ProcessCDR(1,14239213,1,1,2) [2025-01-13 13:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239213', 'tblTempUsageDetail_20' ) start [2025-01-13 13:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239213', 'tblTempUsageDetail_20' ) end [2025-01-13 13:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:21:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:21:32] Production.INFO: ==5343== Releasing lock... [2025-01-13 13:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:21:32] Production.INFO: 70.25 MB #Memory Used# [2025-01-13 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:22:05 [end_date_ymd] => 2025-01-13 13:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:22:20] Production.INFO: count ==5628 [2025-01-13 13:22:23] Production.ERROR: pbx CDR StartTime 2025-01-13 10:22:05 - End Time 2025-01-13 13:22:05 [2025-01-13 13:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239218', 'tblTempUsageDetail_20' ) start [2025-01-13 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239218', 'tblTempUsageDetail_20' ) end [2025-01-13 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239218', 'tblTempVendorCDR_20' ) start [2025-01-13 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239218', 'tblTempVendorCDR_20' ) end [2025-01-13 13:22:23] Production.INFO: ProcessCDR(1,14239218,1,1,2) [2025-01-13 13:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239218', 'tblTempUsageDetail_20' ) start [2025-01-13 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239218', 'tblTempUsageDetail_20' ) end [2025-01-13 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:22:28] Production.INFO: ==5419== Releasing lock... [2025-01-13 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:22:28] Production.INFO: 70.25 MB #Memory Used# [2025-01-13 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:23:05 [end_date_ymd] => 2025-01-13 13:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:23:27] Production.INFO: count ==5640 [2025-01-13 13:23:30] Production.ERROR: pbx CDR StartTime 2025-01-13 10:23:05 - End Time 2025-01-13 13:23:05 [2025-01-13 13:23:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239223', 'tblTempUsageDetail_20' ) start [2025-01-13 13:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239223', 'tblTempUsageDetail_20' ) end [2025-01-13 13:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239223', 'tblTempVendorCDR_20' ) start [2025-01-13 13:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239223', 'tblTempVendorCDR_20' ) end [2025-01-13 13:23:30] Production.INFO: ProcessCDR(1,14239223,1,1,2) [2025-01-13 13:23:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:23:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:23:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:23:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239223', 'tblTempUsageDetail_20' ) start [2025-01-13 13:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239223', 'tblTempUsageDetail_20' ) end [2025-01-13 13:23:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:23:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:23:35] Production.INFO: ==5491== Releasing lock... [2025-01-13 13:23:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:23:35] Production.INFO: 70.25 MB #Memory Used# [2025-01-13 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:24:05 [end_date_ymd] => 2025-01-13 13:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:24:28] Production.INFO: count ==5611 [2025-01-13 13:24:31] Production.ERROR: pbx CDR StartTime 2025-01-13 10:24:05 - End Time 2025-01-13 13:24:05 [2025-01-13 13:24:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239228', 'tblTempUsageDetail_20' ) start [2025-01-13 13:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239228', 'tblTempUsageDetail_20' ) end [2025-01-13 13:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239228', 'tblTempVendorCDR_20' ) start [2025-01-13 13:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239228', 'tblTempVendorCDR_20' ) end [2025-01-13 13:24:31] Production.INFO: ProcessCDR(1,14239228,1,1,2) [2025-01-13 13:24:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239228', 'tblTempUsageDetail_20' ) start [2025-01-13 13:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239228', 'tblTempUsageDetail_20' ) end [2025-01-13 13:24:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:24:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:24:35] Production.INFO: ==5564== Releasing lock... [2025-01-13 13:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:24:35] Production.INFO: 70 MB #Memory Used# [2025-01-13 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:25:04 [end_date_ymd] => 2025-01-13 13:25:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:25:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:25:21] Production.INFO: count ==5605 [2025-01-13 13:25:23] Production.ERROR: pbx CDR StartTime 2025-01-13 10:25:04 - End Time 2025-01-13 13:25:04 [2025-01-13 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239233', 'tblTempUsageDetail_20' ) start [2025-01-13 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239233', 'tblTempUsageDetail_20' ) end [2025-01-13 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239233', 'tblTempVendorCDR_20' ) start [2025-01-13 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239233', 'tblTempVendorCDR_20' ) end [2025-01-13 13:25:23] Production.INFO: ProcessCDR(1,14239233,1,1,2) [2025-01-13 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239233', 'tblTempUsageDetail_20' ) start [2025-01-13 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239233', 'tblTempUsageDetail_20' ) end [2025-01-13 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:25:28] Production.INFO: ==5638== Releasing lock... [2025-01-13 13:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:25:28] Production.INFO: 70 MB #Memory Used# [2025-01-13 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:26:05 [end_date_ymd] => 2025-01-13 13:26:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:26:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:26:22] Production.INFO: count ==5604 [2025-01-13 13:26:24] Production.ERROR: pbx CDR StartTime 2025-01-13 10:26:05 - End Time 2025-01-13 13:26:05 [2025-01-13 13:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239238', 'tblTempUsageDetail_20' ) start [2025-01-13 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239238', 'tblTempUsageDetail_20' ) end [2025-01-13 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239238', 'tblTempVendorCDR_20' ) start [2025-01-13 13:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239238', 'tblTempVendorCDR_20' ) end [2025-01-13 13:26:25] Production.INFO: ProcessCDR(1,14239238,1,1,2) [2025-01-13 13:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239238', 'tblTempUsageDetail_20' ) start [2025-01-13 13:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239238', 'tblTempUsageDetail_20' ) end [2025-01-13 13:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:26:29] Production.INFO: ==5712== Releasing lock... [2025-01-13 13:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:26:29] Production.INFO: 70 MB #Memory Used# [2025-01-13 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:27:05 [end_date_ymd] => 2025-01-13 13:27:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:27:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:27:20] Production.INFO: count ==5594 [2025-01-13 13:27:22] Production.ERROR: pbx CDR StartTime 2025-01-13 10:27:05 - End Time 2025-01-13 13:27:05 [2025-01-13 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239243', 'tblTempUsageDetail_20' ) start [2025-01-13 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239243', 'tblTempUsageDetail_20' ) end [2025-01-13 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239243', 'tblTempVendorCDR_20' ) start [2025-01-13 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239243', 'tblTempVendorCDR_20' ) end [2025-01-13 13:27:23] Production.INFO: ProcessCDR(1,14239243,1,1,2) [2025-01-13 13:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239243', 'tblTempUsageDetail_20' ) start [2025-01-13 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239243', 'tblTempUsageDetail_20' ) end [2025-01-13 13:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:27:26] Production.INFO: ==5782== Releasing lock... [2025-01-13 13:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:27:26] Production.INFO: 70 MB #Memory Used# [2025-01-13 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:28:05 [end_date_ymd] => 2025-01-13 13:28:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:28:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:28:20] Production.INFO: count ==5586 [2025-01-13 13:28:22] Production.ERROR: pbx CDR StartTime 2025-01-13 10:28:05 - End Time 2025-01-13 13:28:05 [2025-01-13 13:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239248', 'tblTempUsageDetail_20' ) start [2025-01-13 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239248', 'tblTempUsageDetail_20' ) end [2025-01-13 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239248', 'tblTempVendorCDR_20' ) start [2025-01-13 13:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239248', 'tblTempVendorCDR_20' ) end [2025-01-13 13:28:23] Production.INFO: ProcessCDR(1,14239248,1,1,2) [2025-01-13 13:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239248', 'tblTempUsageDetail_20' ) start [2025-01-13 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239248', 'tblTempUsageDetail_20' ) end [2025-01-13 13:28:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:28:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:28:28] Production.INFO: ==5892== Releasing lock... [2025-01-13 13:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:28:28] Production.INFO: 69.75 MB #Memory Used# [2025-01-13 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:29:05 [end_date_ymd] => 2025-01-13 13:29:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:29:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:29:27] Production.INFO: count ==5602 [2025-01-13 13:29:29] Production.ERROR: pbx CDR StartTime 2025-01-13 10:29:05 - End Time 2025-01-13 13:29:05 [2025-01-13 13:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239253', 'tblTempUsageDetail_20' ) start [2025-01-13 13:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239253', 'tblTempUsageDetail_20' ) end [2025-01-13 13:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239253', 'tblTempVendorCDR_20' ) start [2025-01-13 13:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239253', 'tblTempVendorCDR_20' ) end [2025-01-13 13:29:29] Production.INFO: ProcessCDR(1,14239253,1,1,2) [2025-01-13 13:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239253', 'tblTempUsageDetail_20' ) start [2025-01-13 13:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239253', 'tblTempUsageDetail_20' ) end [2025-01-13 13:29:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:29:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:29:34] Production.INFO: ==5970== Releasing lock... [2025-01-13 13:29:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:29:34] Production.INFO: 70 MB #Memory Used# [2025-01-13 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:30:05 [end_date_ymd] => 2025-01-13 13:30:05 [RateCDR] => 1 ) [2025-01-13 13: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` >= '2025-01-13 10:30:05' and `end` < '2025-01-13 13: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 ,'') [2025-01-13 13:30:26] Production.INFO: count ==5597 [2025-01-13 13:30:29] Production.ERROR: pbx CDR StartTime 2025-01-13 10:30:05 - End Time 2025-01-13 13:30:05 [2025-01-13 13:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239259', 'tblTempUsageDetail_20' ) start [2025-01-13 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239259', 'tblTempUsageDetail_20' ) end [2025-01-13 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239259', 'tblTempVendorCDR_20' ) start [2025-01-13 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239259', 'tblTempVendorCDR_20' ) end [2025-01-13 13:30:29] Production.INFO: ProcessCDR(1,14239259,1,1,2) [2025-01-13 13:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239259', 'tblTempUsageDetail_20' ) start [2025-01-13 13:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239259', 'tblTempUsageDetail_20' ) end [2025-01-13 13:30:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:30:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:30:34] Production.INFO: ==6045== Releasing lock... [2025-01-13 13:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:30:34] Production.INFO: 70 MB #Memory Used# [2025-01-13 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:31:05 [end_date_ymd] => 2025-01-13 13:31:05 [RateCDR] => 1 ) [2025-01-13 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:31:05' and `end` < '2025-01-13 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:31:30] Production.INFO: count ==5589 [2025-01-13 13:31:32] Production.ERROR: pbx CDR StartTime 2025-01-13 10:31:05 - End Time 2025-01-13 13:31:05 [2025-01-13 13:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239264', 'tblTempUsageDetail_20' ) start [2025-01-13 13:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239264', 'tblTempUsageDetail_20' ) end [2025-01-13 13:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239264', 'tblTempVendorCDR_20' ) start [2025-01-13 13:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239264', 'tblTempVendorCDR_20' ) end [2025-01-13 13:31:32] Production.INFO: ProcessCDR(1,14239264,1,1,2) [2025-01-13 13:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:31:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:31:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239264', 'tblTempUsageDetail_20' ) start [2025-01-13 13:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239264', 'tblTempUsageDetail_20' ) end [2025-01-13 13:31:37] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:31:37] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:31:37] Production.INFO: ==6123== Releasing lock... [2025-01-13 13:31:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:31:37] Production.INFO: 69.75 MB #Memory Used# [2025-01-13 13:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:32:04 [end_date_ymd] => 2025-01-13 13:32:04 [RateCDR] => 1 ) [2025-01-13 13:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:32:04' and `end` < '2025-01-13 13:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:32:26] Production.INFO: count ==5573 [2025-01-13 13:32:28] Production.ERROR: pbx CDR StartTime 2025-01-13 10:32:04 - End Time 2025-01-13 13:32:04 [2025-01-13 13:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239269', 'tblTempUsageDetail_20' ) start [2025-01-13 13:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239269', 'tblTempUsageDetail_20' ) end [2025-01-13 13:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239269', 'tblTempVendorCDR_20' ) start [2025-01-13 13:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239269', 'tblTempVendorCDR_20' ) end [2025-01-13 13:32:28] Production.INFO: ProcessCDR(1,14239269,1,1,2) [2025-01-13 13:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239269', 'tblTempUsageDetail_20' ) start [2025-01-13 13:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239269', 'tblTempUsageDetail_20' ) end [2025-01-13 13:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:32:33] Production.INFO: ==6192== Releasing lock... [2025-01-13 13:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:32:33] Production.INFO: 69.75 MB #Memory Used# [2025-01-13 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:33:05 [end_date_ymd] => 2025-01-13 13:33:05 [RateCDR] => 1 ) [2025-01-13 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:33:05' and `end` < '2025-01-13 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:33:24] Production.INFO: count ==5587 [2025-01-13 13:33:27] Production.ERROR: pbx CDR StartTime 2025-01-13 10:33:05 - End Time 2025-01-13 13:33:05 [2025-01-13 13:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239274', 'tblTempUsageDetail_20' ) start [2025-01-13 13:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239274', 'tblTempUsageDetail_20' ) end [2025-01-13 13:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239274', 'tblTempVendorCDR_20' ) start [2025-01-13 13:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239274', 'tblTempVendorCDR_20' ) end [2025-01-13 13:33:27] Production.INFO: ProcessCDR(1,14239274,1,1,2) [2025-01-13 13:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239274', 'tblTempUsageDetail_20' ) start [2025-01-13 13:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239274', 'tblTempUsageDetail_20' ) end [2025-01-13 13:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:33:32] Production.INFO: ==6262== Releasing lock... [2025-01-13 13:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:33:32] Production.INFO: 69.75 MB #Memory Used# [2025-01-13 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:34:05 [end_date_ymd] => 2025-01-13 13:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:34:20] Production.INFO: count ==5591 [2025-01-13 13:34:22] Production.ERROR: pbx CDR StartTime 2025-01-13 10:34:05 - End Time 2025-01-13 13:34:05 [2025-01-13 13:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239279', 'tblTempUsageDetail_20' ) start [2025-01-13 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239279', 'tblTempUsageDetail_20' ) end [2025-01-13 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239279', 'tblTempVendorCDR_20' ) start [2025-01-13 13:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239279', 'tblTempVendorCDR_20' ) end [2025-01-13 13:34:22] Production.INFO: ProcessCDR(1,14239279,1,1,2) [2025-01-13 13:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239279', 'tblTempUsageDetail_20' ) start [2025-01-13 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239279', 'tblTempUsageDetail_20' ) end [2025-01-13 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:34:27] Production.INFO: ==6338== Releasing lock... [2025-01-13 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:34:27] Production.INFO: 70 MB #Memory Used# [2025-01-13 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:35:04 [end_date_ymd] => 2025-01-13 13:35:04 [RateCDR] => 1 ) [2025-01-13 13:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:35:04' and `end` < '2025-01-13 13:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:35:21] Production.INFO: count ==5600 [2025-01-13 13:35:23] Production.ERROR: pbx CDR StartTime 2025-01-13 10:35:04 - End Time 2025-01-13 13:35:04 [2025-01-13 13:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239284', 'tblTempUsageDetail_20' ) start [2025-01-13 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239284', 'tblTempUsageDetail_20' ) end [2025-01-13 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239284', 'tblTempVendorCDR_20' ) start [2025-01-13 13:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239284', 'tblTempVendorCDR_20' ) end [2025-01-13 13:35:23] Production.INFO: ProcessCDR(1,14239284,1,1,2) [2025-01-13 13:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239284', 'tblTempUsageDetail_20' ) start [2025-01-13 13:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239284', 'tblTempUsageDetail_20' ) end [2025-01-13 13:35:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:35:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:35:28] Production.INFO: ==6410== Releasing lock... [2025-01-13 13:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:35:28] Production.INFO: 70 MB #Memory Used# [2025-01-13 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:36:05 [end_date_ymd] => 2025-01-13 13:36:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:36:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:36:21] Production.INFO: count ==5575 [2025-01-13 13:36:23] Production.ERROR: pbx CDR StartTime 2025-01-13 10:36:05 - End Time 2025-01-13 13:36:05 [2025-01-13 13:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239289', 'tblTempUsageDetail_20' ) start [2025-01-13 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239289', 'tblTempUsageDetail_20' ) end [2025-01-13 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239289', 'tblTempVendorCDR_20' ) start [2025-01-13 13:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239289', 'tblTempVendorCDR_20' ) end [2025-01-13 13:36:23] Production.INFO: ProcessCDR(1,14239289,1,1,2) [2025-01-13 13:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239289', 'tblTempUsageDetail_20' ) start [2025-01-13 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239289', 'tblTempUsageDetail_20' ) end [2025-01-13 13:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:36:28] Production.INFO: ==6488== Releasing lock... [2025-01-13 13:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:36:28] Production.INFO: 69.75 MB #Memory Used# [2025-01-13 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:37:05 [end_date_ymd] => 2025-01-13 13:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:37:34] Production.INFO: count ==5673 [2025-01-13 13:37:36] Production.ERROR: pbx CDR StartTime 2025-01-13 10:37:05 - End Time 2025-01-13 13:37:05 [2025-01-13 13:37:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239294', 'tblTempUsageDetail_20' ) start [2025-01-13 13:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239294', 'tblTempUsageDetail_20' ) end [2025-01-13 13:37:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239294', 'tblTempVendorCDR_20' ) start [2025-01-13 13:37:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239294', 'tblTempVendorCDR_20' ) end [2025-01-13 13:37:37] Production.INFO: ProcessCDR(1,14239294,1,1,2) [2025-01-13 13:37:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:37:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:37:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:37:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:37:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239294', 'tblTempUsageDetail_20' ) start [2025-01-13 13:37:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239294', 'tblTempUsageDetail_20' ) end [2025-01-13 13:37:42] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:37:42] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:37:42] Production.INFO: ==6583== Releasing lock... [2025-01-13 13:37:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:37:42] Production.INFO: 70.5 MB #Memory Used# [2025-01-13 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:38:05 [end_date_ymd] => 2025-01-13 13:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:38:26] Production.INFO: count ==5681 [2025-01-13 13:38:28] Production.ERROR: pbx CDR StartTime 2025-01-13 10:38:05 - End Time 2025-01-13 13:38:05 [2025-01-13 13:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239299', 'tblTempUsageDetail_20' ) start [2025-01-13 13:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239299', 'tblTempUsageDetail_20' ) end [2025-01-13 13:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239299', 'tblTempVendorCDR_20' ) start [2025-01-13 13:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239299', 'tblTempVendorCDR_20' ) end [2025-01-13 13:38:28] Production.INFO: ProcessCDR(1,14239299,1,1,2) [2025-01-13 13:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239299', 'tblTempUsageDetail_20' ) start [2025-01-13 13:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239299', 'tblTempUsageDetail_20' ) end [2025-01-13 13:38:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:38:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:38:33] Production.INFO: ==6659== Releasing lock... [2025-01-13 13:38:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:38:33] Production.INFO: 70.5 MB #Memory Used# [2025-01-13 13:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:39:04 [end_date_ymd] => 2025-01-13 13:39:04 [RateCDR] => 1 ) [2025-01-13 13:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:39:04' and `end` < '2025-01-13 13:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:39:26] Production.INFO: count ==5704 [2025-01-13 13:39:28] Production.ERROR: pbx CDR StartTime 2025-01-13 10:39:04 - End Time 2025-01-13 13:39:04 [2025-01-13 13:39:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239304', 'tblTempUsageDetail_20' ) start [2025-01-13 13:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239304', 'tblTempUsageDetail_20' ) end [2025-01-13 13:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239304', 'tblTempVendorCDR_20' ) start [2025-01-13 13:39:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239304', 'tblTempVendorCDR_20' ) end [2025-01-13 13:39:29] Production.INFO: ProcessCDR(1,14239304,1,1,2) [2025-01-13 13:39:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:39:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:39:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239304', 'tblTempUsageDetail_20' ) start [2025-01-13 13:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239304', 'tblTempUsageDetail_20' ) end [2025-01-13 13:39:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:39:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:39:33] Production.INFO: ==6750== Releasing lock... [2025-01-13 13:39:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:39:33] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:40:06 [end_date_ymd] => 2025-01-13 13:40:06 [RateCDR] => 1 ) [2025-01-13 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:40:06' and `end` < '2025-01-13 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:40:25] Production.INFO: count ==5724 [2025-01-13 13:40:28] Production.ERROR: pbx CDR StartTime 2025-01-13 10:40:06 - End Time 2025-01-13 13:40:06 [2025-01-13 13:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239310', 'tblTempUsageDetail_20' ) start [2025-01-13 13:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239310', 'tblTempUsageDetail_20' ) end [2025-01-13 13:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239310', 'tblTempVendorCDR_20' ) start [2025-01-13 13:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239310', 'tblTempVendorCDR_20' ) end [2025-01-13 13:40:28] Production.INFO: ProcessCDR(1,14239310,1,1,2) [2025-01-13 13:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239310', 'tblTempUsageDetail_20' ) start [2025-01-13 13:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239310', 'tblTempUsageDetail_20' ) end [2025-01-13 13:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:40:32] Production.INFO: ==6843== Releasing lock... [2025-01-13 13:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:40:32] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:41:06 [end_date_ymd] => 2025-01-13 13:41:06 [RateCDR] => 1 ) [2025-01-13 13:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:41:06' and `end` < '2025-01-13 13:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:41:21] Production.INFO: count ==5728 [2025-01-13 13:41:23] Production.ERROR: pbx CDR StartTime 2025-01-13 10:41:06 - End Time 2025-01-13 13:41:06 [2025-01-13 13:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239315', 'tblTempUsageDetail_20' ) start [2025-01-13 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239315', 'tblTempUsageDetail_20' ) end [2025-01-13 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239315', 'tblTempVendorCDR_20' ) start [2025-01-13 13:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239315', 'tblTempVendorCDR_20' ) end [2025-01-13 13:41:23] Production.INFO: ProcessCDR(1,14239315,1,1,2) [2025-01-13 13:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239315', 'tblTempUsageDetail_20' ) start [2025-01-13 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239315', 'tblTempUsageDetail_20' ) end [2025-01-13 13:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:41:28] Production.INFO: ==6928== Releasing lock... [2025-01-13 13:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:41:28] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:42:05 [end_date_ymd] => 2025-01-13 13:42:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:42:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:42:30] Production.INFO: count ==5731 [2025-01-13 13:42:33] Production.ERROR: pbx CDR StartTime 2025-01-13 10:42:05 - End Time 2025-01-13 13:42:05 [2025-01-13 13:42:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:42:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239320', 'tblTempUsageDetail_20' ) start [2025-01-13 13:42:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239320', 'tblTempUsageDetail_20' ) end [2025-01-13 13:42:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239320', 'tblTempVendorCDR_20' ) start [2025-01-13 13:42:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239320', 'tblTempVendorCDR_20' ) end [2025-01-13 13:42:33] Production.INFO: ProcessCDR(1,14239320,1,1,2) [2025-01-13 13:42:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:42:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:42:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:42:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:42:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239320', 'tblTempUsageDetail_20' ) start [2025-01-13 13:42:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239320', 'tblTempUsageDetail_20' ) end [2025-01-13 13:42:38] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:42:38] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:42:38] Production.INFO: ==7024== Releasing lock... [2025-01-13 13:42:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:42:38] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:43:05 [end_date_ymd] => 2025-01-13 13:43:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:43:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:43:24] Production.INFO: count ==5756 [2025-01-13 13:43:27] Production.ERROR: pbx CDR StartTime 2025-01-13 10:43:05 - End Time 2025-01-13 13:43:05 [2025-01-13 13:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239325', 'tblTempUsageDetail_20' ) start [2025-01-13 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239325', 'tblTempUsageDetail_20' ) end [2025-01-13 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239325', 'tblTempVendorCDR_20' ) start [2025-01-13 13:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239325', 'tblTempVendorCDR_20' ) end [2025-01-13 13:43:27] Production.INFO: ProcessCDR(1,14239325,1,1,2) [2025-01-13 13:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239325', 'tblTempUsageDetail_20' ) start [2025-01-13 13:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239325', 'tblTempUsageDetail_20' ) end [2025-01-13 13:43:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:43:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:43:32] Production.INFO: ==7151== Releasing lock... [2025-01-13 13:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:43:32] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 13:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:44:04 [end_date_ymd] => 2025-01-13 13:44:04 [RateCDR] => 1 ) [2025-01-13 13:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:44:04' and `end` < '2025-01-13 13:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:44:33] Production.INFO: count ==5760 [2025-01-13 13:44:36] Production.ERROR: pbx CDR StartTime 2025-01-13 10:44:04 - End Time 2025-01-13 13:44:04 [2025-01-13 13:44:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:44:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239330', 'tblTempUsageDetail_20' ) start [2025-01-13 13:44:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239330', 'tblTempUsageDetail_20' ) end [2025-01-13 13:44:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239330', 'tblTempVendorCDR_20' ) start [2025-01-13 13:44:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239330', 'tblTempVendorCDR_20' ) end [2025-01-13 13:44:36] Production.INFO: ProcessCDR(1,14239330,1,1,2) [2025-01-13 13:44:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:44:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:44:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:44:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:44:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239330', 'tblTempUsageDetail_20' ) start [2025-01-13 13:44:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239330', 'tblTempUsageDetail_20' ) end [2025-01-13 13:44:41] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:44:41] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:44:41] Production.INFO: ==7247== Releasing lock... [2025-01-13 13:44:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:44:41] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:45:05 [end_date_ymd] => 2025-01-13 13:45:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:45:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:45:31] Production.INFO: count ==5761 [2025-01-13 13:45:33] Production.ERROR: pbx CDR StartTime 2025-01-13 10:45:05 - End Time 2025-01-13 13:45:05 [2025-01-13 13:45:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239335', 'tblTempUsageDetail_20' ) start [2025-01-13 13:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239335', 'tblTempUsageDetail_20' ) end [2025-01-13 13:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239335', 'tblTempVendorCDR_20' ) start [2025-01-13 13:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239335', 'tblTempVendorCDR_20' ) end [2025-01-13 13:45:33] Production.INFO: ProcessCDR(1,14239335,1,1,2) [2025-01-13 13:45:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:45:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:45:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:45:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239335', 'tblTempUsageDetail_20' ) start [2025-01-13 13:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239335', 'tblTempUsageDetail_20' ) end [2025-01-13 13:45:38] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:45:38] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:45:38] Production.INFO: ==7332== Releasing lock... [2025-01-13 13:45:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:45:38] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:46:04 [end_date_ymd] => 2025-01-13 13:46:04 [RateCDR] => 1 ) [2025-01-13 13:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:46:04' and `end` < '2025-01-13 13:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:46:22] Production.INFO: count ==5742 [2025-01-13 13:46:24] Production.ERROR: pbx CDR StartTime 2025-01-13 10:46:04 - End Time 2025-01-13 13:46:04 [2025-01-13 13:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239340', 'tblTempUsageDetail_20' ) start [2025-01-13 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239340', 'tblTempUsageDetail_20' ) end [2025-01-13 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239340', 'tblTempVendorCDR_20' ) start [2025-01-13 13:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239340', 'tblTempVendorCDR_20' ) end [2025-01-13 13:46:24] Production.INFO: ProcessCDR(1,14239340,1,1,2) [2025-01-13 13:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239340', 'tblTempUsageDetail_20' ) start [2025-01-13 13:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239340', 'tblTempUsageDetail_20' ) end [2025-01-13 13:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:46:29] Production.INFO: ==7420== Releasing lock... [2025-01-13 13:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:46:29] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:47:05 [end_date_ymd] => 2025-01-13 13:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:47:30] Production.INFO: count ==5722 [2025-01-13 13:47:33] Production.ERROR: pbx CDR StartTime 2025-01-13 10:47:05 - End Time 2025-01-13 13:47:05 [2025-01-13 13:47:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239345', 'tblTempUsageDetail_20' ) start [2025-01-13 13:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239345', 'tblTempUsageDetail_20' ) end [2025-01-13 13:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239345', 'tblTempVendorCDR_20' ) start [2025-01-13 13:47:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239345', 'tblTempVendorCDR_20' ) end [2025-01-13 13:47:33] Production.INFO: ProcessCDR(1,14239345,1,1,2) [2025-01-13 13:47:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:47:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:47:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:47:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:47:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239345', 'tblTempUsageDetail_20' ) start [2025-01-13 13:47:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239345', 'tblTempUsageDetail_20' ) end [2025-01-13 13:47:38] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:47:38] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:47:38] Production.INFO: ==7504== Releasing lock... [2025-01-13 13:47:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:47:38] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:48:05 [end_date_ymd] => 2025-01-13 13:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:48:27] Production.INFO: count ==5721 [2025-01-13 13:48:30] Production.ERROR: pbx CDR StartTime 2025-01-13 10:48:05 - End Time 2025-01-13 13:48:05 [2025-01-13 13:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239350', 'tblTempUsageDetail_20' ) start [2025-01-13 13:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239350', 'tblTempUsageDetail_20' ) end [2025-01-13 13:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239350', 'tblTempVendorCDR_20' ) start [2025-01-13 13:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239350', 'tblTempVendorCDR_20' ) end [2025-01-13 13:48:30] Production.INFO: ProcessCDR(1,14239350,1,1,2) [2025-01-13 13:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239350', 'tblTempUsageDetail_20' ) start [2025-01-13 13:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239350', 'tblTempUsageDetail_20' ) end [2025-01-13 13:48:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:48:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:48:35] Production.INFO: ==7594== Releasing lock... [2025-01-13 13:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:48:35] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:49:04 [end_date_ymd] => 2025-01-13 13:49:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:49:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:49:21] Production.INFO: count ==5736 [2025-01-13 13:49:24] Production.ERROR: pbx CDR StartTime 2025-01-13 10:49:04 - End Time 2025-01-13 13:49:04 [2025-01-13 13:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239355', 'tblTempUsageDetail_20' ) start [2025-01-13 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239355', 'tblTempUsageDetail_20' ) end [2025-01-13 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239355', 'tblTempVendorCDR_20' ) start [2025-01-13 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239355', 'tblTempVendorCDR_20' ) end [2025-01-13 13:49:24] Production.INFO: ProcessCDR(1,14239355,1,1,2) [2025-01-13 13:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239355', 'tblTempUsageDetail_20' ) start [2025-01-13 13:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239355', 'tblTempUsageDetail_20' ) end [2025-01-13 13:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:49:29] Production.INFO: ==7678== Releasing lock... [2025-01-13 13:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:49:29] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:50:06 [end_date_ymd] => 2025-01-13 13:50:06 [RateCDR] => 1 ) [2025-01-13 13: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` >= '2025-01-13 10:50:06' and `end` < '2025-01-13 13: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 ,'') [2025-01-13 13:50:27] Production.INFO: count ==5750 [2025-01-13 13:50:29] Production.ERROR: pbx CDR StartTime 2025-01-13 10:50:06 - End Time 2025-01-13 13:50:06 [2025-01-13 13:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239361', 'tblTempUsageDetail_20' ) start [2025-01-13 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239361', 'tblTempUsageDetail_20' ) end [2025-01-13 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239361', 'tblTempVendorCDR_20' ) start [2025-01-13 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239361', 'tblTempVendorCDR_20' ) end [2025-01-13 13:50:29] Production.INFO: ProcessCDR(1,14239361,1,1,2) [2025-01-13 13:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239361', 'tblTempUsageDetail_20' ) start [2025-01-13 13:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239361', 'tblTempUsageDetail_20' ) end [2025-01-13 13:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:50:34] Production.INFO: ==7774== Releasing lock... [2025-01-13 13:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:50:34] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:51:04 [end_date_ymd] => 2025-01-13 13:51:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:51:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:51:26] Production.INFO: count ==5762 [2025-01-13 13:51:29] Production.ERROR: pbx CDR StartTime 2025-01-13 10:51:04 - End Time 2025-01-13 13:51:04 [2025-01-13 13:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239366', 'tblTempUsageDetail_20' ) start [2025-01-13 13:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239366', 'tblTempUsageDetail_20' ) end [2025-01-13 13:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239366', 'tblTempVendorCDR_20' ) start [2025-01-13 13:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239366', 'tblTempVendorCDR_20' ) end [2025-01-13 13:51:29] Production.INFO: ProcessCDR(1,14239366,1,1,2) [2025-01-13 13:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:51:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:51:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:51:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239366', 'tblTempUsageDetail_20' ) start [2025-01-13 13:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239366', 'tblTempUsageDetail_20' ) end [2025-01-13 13:51:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:51:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:51:34] Production.INFO: ==7863== Releasing lock... [2025-01-13 13:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:51:34] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:52:05 [end_date_ymd] => 2025-01-13 13:52:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:52:24] Production.INFO: count ==5711 [2025-01-13 13:52:26] Production.ERROR: pbx CDR StartTime 2025-01-13 10:52:05 - End Time 2025-01-13 13:52:05 [2025-01-13 13:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239371', 'tblTempUsageDetail_20' ) start [2025-01-13 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239371', 'tblTempUsageDetail_20' ) end [2025-01-13 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239371', 'tblTempVendorCDR_20' ) start [2025-01-13 13:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239371', 'tblTempVendorCDR_20' ) end [2025-01-13 13:52:26] Production.INFO: ProcessCDR(1,14239371,1,1,2) [2025-01-13 13:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239371', 'tblTempUsageDetail_20' ) start [2025-01-13 13:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239371', 'tblTempUsageDetail_20' ) end [2025-01-13 13:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:52:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:52:31] Production.INFO: ==7949== Releasing lock... [2025-01-13 13:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:52:31] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:53:05 [end_date_ymd] => 2025-01-13 13:53:05 [RateCDR] => 1 ) [2025-01-13 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 10:53:05' and `end` < '2025-01-13 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 13:53:27] Production.INFO: count ==5720 [2025-01-13 13:53:29] Production.ERROR: pbx CDR StartTime 2025-01-13 10:53:05 - End Time 2025-01-13 13:53:05 [2025-01-13 13:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239376', 'tblTempUsageDetail_20' ) start [2025-01-13 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239376', 'tblTempUsageDetail_20' ) end [2025-01-13 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239376', 'tblTempVendorCDR_20' ) start [2025-01-13 13:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239376', 'tblTempVendorCDR_20' ) end [2025-01-13 13:53:29] Production.INFO: ProcessCDR(1,14239376,1,1,2) [2025-01-13 13:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:53:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:53:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239376', 'tblTempUsageDetail_20' ) start [2025-01-13 13:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239376', 'tblTempUsageDetail_20' ) end [2025-01-13 13:53:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:53:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:53:34] Production.INFO: ==8038== Releasing lock... [2025-01-13 13:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:53:34] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:54:05 [end_date_ymd] => 2025-01-13 13:54:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:54:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:54:25] Production.INFO: count ==5731 [2025-01-13 13:54:28] Production.ERROR: pbx CDR StartTime 2025-01-13 10:54:05 - End Time 2025-01-13 13:54:05 [2025-01-13 13:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239381', 'tblTempUsageDetail_20' ) start [2025-01-13 13:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239381', 'tblTempUsageDetail_20' ) end [2025-01-13 13:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239381', 'tblTempVendorCDR_20' ) start [2025-01-13 13:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239381', 'tblTempVendorCDR_20' ) end [2025-01-13 13:54:28] Production.INFO: ProcessCDR(1,14239381,1,1,2) [2025-01-13 13:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239381', 'tblTempUsageDetail_20' ) start [2025-01-13 13:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239381', 'tblTempUsageDetail_20' ) end [2025-01-13 13:54:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:54:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:54:32] Production.INFO: ==8132== Releasing lock... [2025-01-13 13:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:54:32] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:55:05 [end_date_ymd] => 2025-01-13 13:55:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:55:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:55:23] Production.INFO: count ==5748 [2025-01-13 13:55:26] Production.ERROR: pbx CDR StartTime 2025-01-13 10:55:05 - End Time 2025-01-13 13:55:05 [2025-01-13 13:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239386', 'tblTempUsageDetail_20' ) start [2025-01-13 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239386', 'tblTempUsageDetail_20' ) end [2025-01-13 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239386', 'tblTempVendorCDR_20' ) start [2025-01-13 13:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239386', 'tblTempVendorCDR_20' ) end [2025-01-13 13:55:26] Production.INFO: ProcessCDR(1,14239386,1,1,2) [2025-01-13 13:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239386', 'tblTempUsageDetail_20' ) start [2025-01-13 13:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239386', 'tblTempUsageDetail_20' ) end [2025-01-13 13:55:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:55:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:55:32] Production.INFO: ==8217== Releasing lock... [2025-01-13 13:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:55:32] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:56:05 [end_date_ymd] => 2025-01-13 13:56:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:56:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:56:20] Production.INFO: count ==5746 [2025-01-13 13:56:22] Production.ERROR: pbx CDR StartTime 2025-01-13 10:56:05 - End Time 2025-01-13 13:56:05 [2025-01-13 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239391', 'tblTempUsageDetail_20' ) start [2025-01-13 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239391', 'tblTempUsageDetail_20' ) end [2025-01-13 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239391', 'tblTempVendorCDR_20' ) start [2025-01-13 13:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239391', 'tblTempVendorCDR_20' ) end [2025-01-13 13:56:23] Production.INFO: ProcessCDR(1,14239391,1,1,2) [2025-01-13 13:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239391', 'tblTempUsageDetail_20' ) start [2025-01-13 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239391', 'tblTempUsageDetail_20' ) end [2025-01-13 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:56:27] Production.INFO: ==8297== Releasing lock... [2025-01-13 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:56:27] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:57:05 [end_date_ymd] => 2025-01-13 13:57:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:57:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:57:19] Production.INFO: count ==5753 [2025-01-13 13:57:22] Production.ERROR: pbx CDR StartTime 2025-01-13 10:57:05 - End Time 2025-01-13 13:57:05 [2025-01-13 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239396', 'tblTempUsageDetail_20' ) start [2025-01-13 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239396', 'tblTempUsageDetail_20' ) end [2025-01-13 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239396', 'tblTempVendorCDR_20' ) start [2025-01-13 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239396', 'tblTempVendorCDR_20' ) end [2025-01-13 13:57:22] Production.INFO: ProcessCDR(1,14239396,1,1,2) [2025-01-13 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239396', 'tblTempUsageDetail_20' ) start [2025-01-13 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239396', 'tblTempUsageDetail_20' ) end [2025-01-13 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:57:27] Production.INFO: ==8371== Releasing lock... [2025-01-13 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:57:27] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:58:04 [end_date_ymd] => 2025-01-13 13:58:04 [RateCDR] => 1 ) [2025-01-13 13: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` >= '2025-01-13 10:58:04' and `end` < '2025-01-13 13: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 ,'') [2025-01-13 13:58:22] Production.INFO: count ==5731 [2025-01-13 13:58:24] Production.ERROR: pbx CDR StartTime 2025-01-13 10:58:04 - End Time 2025-01-13 13:58:04 [2025-01-13 13:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239401', 'tblTempUsageDetail_20' ) start [2025-01-13 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239401', 'tblTempUsageDetail_20' ) end [2025-01-13 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239401', 'tblTempVendorCDR_20' ) start [2025-01-13 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239401', 'tblTempVendorCDR_20' ) end [2025-01-13 13:58:24] Production.INFO: ProcessCDR(1,14239401,1,1,2) [2025-01-13 13:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239401', 'tblTempUsageDetail_20' ) start [2025-01-13 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239401', 'tblTempUsageDetail_20' ) end [2025-01-13 13:58:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:58:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:58:29] Production.INFO: ==8449== Releasing lock... [2025-01-13 13:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:58:29] Production.INFO: 71 MB #Memory Used# [2025-01-13 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 10:59:05 [end_date_ymd] => 2025-01-13 13:59:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 10:59:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 13:59:31] Production.INFO: count ==5715 [2025-01-13 13:59:33] Production.ERROR: pbx CDR StartTime 2025-01-13 10:59:05 - End Time 2025-01-13 13:59:05 [2025-01-13 13:59:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 13:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239406', 'tblTempUsageDetail_20' ) start [2025-01-13 13:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239406', 'tblTempUsageDetail_20' ) end [2025-01-13 13:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239406', 'tblTempVendorCDR_20' ) start [2025-01-13 13:59:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239406', 'tblTempVendorCDR_20' ) end [2025-01-13 13:59:33] Production.INFO: ProcessCDR(1,14239406,1,1,2) [2025-01-13 13:59:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:59:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 13:59:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:59:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 13:59:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239406', 'tblTempUsageDetail_20' ) start [2025-01-13 13:59:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239406', 'tblTempUsageDetail_20' ) end [2025-01-13 13:59:38] Production.ERROR: pbx prc_insertCDR start [2025-01-13 13:59:38] Production.ERROR: pbx prc_insertCDR end [2025-01-13 13:59:38] Production.INFO: ==8559== Releasing lock... [2025-01-13 13:59:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 13:59:38] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:00:05 [end_date_ymd] => 2025-01-13 14:00:05 [RateCDR] => 1 ) [2025-01-13 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:00:05' and `end` < '2025-01-13 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:00:33] Production.INFO: count ==5720 [2025-01-13 14:00:35] Production.ERROR: pbx CDR StartTime 2025-01-13 11:00:05 - End Time 2025-01-13 14:00:05 [2025-01-13 14:00:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239411', 'tblTempUsageDetail_20' ) start [2025-01-13 14:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239411', 'tblTempUsageDetail_20' ) end [2025-01-13 14:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239411', 'tblTempVendorCDR_20' ) start [2025-01-13 14:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239411', 'tblTempVendorCDR_20' ) end [2025-01-13 14:00:36] Production.INFO: ProcessCDR(1,14239411,1,1,2) [2025-01-13 14:00:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:00:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:00:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:00:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239411', 'tblTempUsageDetail_20' ) start [2025-01-13 14:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239411', 'tblTempUsageDetail_20' ) end [2025-01-13 14:00:40] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:00:40] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:00:40] Production.INFO: ==8631== Releasing lock... [2025-01-13 14:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:00:40] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:01:05 [end_date_ymd] => 2025-01-13 14:01:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:01:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:01:32] Production.INFO: count ==5752 [2025-01-13 14:01:35] Production.ERROR: pbx CDR StartTime 2025-01-13 11:01:05 - End Time 2025-01-13 14:01:05 [2025-01-13 14:01:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:01:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239417', 'tblTempUsageDetail_20' ) start [2025-01-13 14:01:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239417', 'tblTempUsageDetail_20' ) end [2025-01-13 14:01:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239417', 'tblTempVendorCDR_20' ) start [2025-01-13 14:01:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239417', 'tblTempVendorCDR_20' ) end [2025-01-13 14:01:35] Production.INFO: ProcessCDR(1,14239417,1,1,2) [2025-01-13 14:01:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:01:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:01:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:01:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239417', 'tblTempUsageDetail_20' ) start [2025-01-13 14:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239417', 'tblTempUsageDetail_20' ) end [2025-01-13 14:01:40] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:01:40] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:01:40] Production.INFO: ==8719== Releasing lock... [2025-01-13 14:01:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:01:40] Production.INFO: 71 MB #Memory Used# [2025-01-13 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:02:05 [end_date_ymd] => 2025-01-13 14:02:05 [RateCDR] => 1 ) [2025-01-13 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:02:05' and `end` < '2025-01-13 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:02:22] Production.INFO: count ==5820 [2025-01-13 14:02:25] Production.ERROR: pbx CDR StartTime 2025-01-13 11:02:05 - End Time 2025-01-13 14:02:05 [2025-01-13 14:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239422', 'tblTempUsageDetail_20' ) start [2025-01-13 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239422', 'tblTempUsageDetail_20' ) end [2025-01-13 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239422', 'tblTempVendorCDR_20' ) start [2025-01-13 14:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239422', 'tblTempVendorCDR_20' ) end [2025-01-13 14:02:25] Production.INFO: ProcessCDR(1,14239422,1,1,2) [2025-01-13 14:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239422', 'tblTempUsageDetail_20' ) start [2025-01-13 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239422', 'tblTempUsageDetail_20' ) end [2025-01-13 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:02:28] Production.INFO: ==8792== Releasing lock... [2025-01-13 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:02:28] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:03:04 [end_date_ymd] => 2025-01-13 14:03:04 [RateCDR] => 1 ) [2025-01-13 14: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` >= '2025-01-13 11:03:04' and `end` < '2025-01-13 14: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 ,'') [2025-01-13 14:03:22] Production.INFO: count ==5836 [2025-01-13 14:03:24] Production.ERROR: pbx CDR StartTime 2025-01-13 11:03:04 - End Time 2025-01-13 14:03:04 [2025-01-13 14:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239427', 'tblTempUsageDetail_20' ) start [2025-01-13 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239427', 'tblTempUsageDetail_20' ) end [2025-01-13 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239427', 'tblTempVendorCDR_20' ) start [2025-01-13 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239427', 'tblTempVendorCDR_20' ) end [2025-01-13 14:03:25] Production.INFO: ProcessCDR(1,14239427,1,1,2) [2025-01-13 14:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239427', 'tblTempUsageDetail_20' ) start [2025-01-13 14:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239427', 'tblTempUsageDetail_20' ) end [2025-01-13 14:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:03:29] Production.INFO: ==8865== Releasing lock... [2025-01-13 14:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:03:29] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:04:05 [end_date_ymd] => 2025-01-13 14:04:05 [RateCDR] => 1 ) [2025-01-13 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:04:05' and `end` < '2025-01-13 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:04:22] Production.INFO: count ==5827 [2025-01-13 14:04:24] Production.ERROR: pbx CDR StartTime 2025-01-13 11:04:05 - End Time 2025-01-13 14:04:05 [2025-01-13 14:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239432', 'tblTempUsageDetail_20' ) start [2025-01-13 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239432', 'tblTempUsageDetail_20' ) end [2025-01-13 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239432', 'tblTempVendorCDR_20' ) start [2025-01-13 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239432', 'tblTempVendorCDR_20' ) end [2025-01-13 14:04:25] Production.INFO: ProcessCDR(1,14239432,1,1,2) [2025-01-13 14:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239432', 'tblTempUsageDetail_20' ) start [2025-01-13 14:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239432', 'tblTempUsageDetail_20' ) end [2025-01-13 14:04:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:04:29] Production.INFO: ==8936== Releasing lock... [2025-01-13 14:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:04:29] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:05:04 [end_date_ymd] => 2025-01-13 14:05:04 [RateCDR] => 1 ) [2025-01-13 14:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:05:04' and `end` < '2025-01-13 14:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:05:22] Production.INFO: count ==5815 [2025-01-13 14:05:25] Production.ERROR: pbx CDR StartTime 2025-01-13 11:05:04 - End Time 2025-01-13 14:05:04 [2025-01-13 14:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239437', 'tblTempUsageDetail_20' ) start [2025-01-13 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239437', 'tblTempUsageDetail_20' ) end [2025-01-13 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239437', 'tblTempVendorCDR_20' ) start [2025-01-13 14:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239437', 'tblTempVendorCDR_20' ) end [2025-01-13 14:05:25] Production.INFO: ProcessCDR(1,14239437,1,1,2) [2025-01-13 14:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239437', 'tblTempUsageDetail_20' ) start [2025-01-13 14:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239437', 'tblTempUsageDetail_20' ) end [2025-01-13 14:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:05:30] Production.INFO: ==9006== Releasing lock... [2025-01-13 14:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:05:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:06:05 [end_date_ymd] => 2025-01-13 14:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:06:23] Production.INFO: count ==5825 [2025-01-13 14:06:26] Production.ERROR: pbx CDR StartTime 2025-01-13 11:06:05 - End Time 2025-01-13 14:06:05 [2025-01-13 14:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239442', 'tblTempUsageDetail_20' ) start [2025-01-13 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239442', 'tblTempUsageDetail_20' ) end [2025-01-13 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239442', 'tblTempVendorCDR_20' ) start [2025-01-13 14:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239442', 'tblTempVendorCDR_20' ) end [2025-01-13 14:06:26] Production.INFO: ProcessCDR(1,14239442,1,1,2) [2025-01-13 14:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239442', 'tblTempUsageDetail_20' ) start [2025-01-13 14:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239442', 'tblTempUsageDetail_20' ) end [2025-01-13 14:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:06:30] Production.INFO: ==9078== Releasing lock... [2025-01-13 14:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:06:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:07:05 [end_date_ymd] => 2025-01-13 14:07:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:07:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:07:22] Production.INFO: count ==5822 [2025-01-13 14:07:24] Production.ERROR: pbx CDR StartTime 2025-01-13 11:07:05 - End Time 2025-01-13 14:07:05 [2025-01-13 14:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239447', 'tblTempUsageDetail_20' ) start [2025-01-13 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239447', 'tblTempUsageDetail_20' ) end [2025-01-13 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239447', 'tblTempVendorCDR_20' ) start [2025-01-13 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239447', 'tblTempVendorCDR_20' ) end [2025-01-13 14:07:25] Production.INFO: ProcessCDR(1,14239447,1,1,2) [2025-01-13 14:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239447', 'tblTempUsageDetail_20' ) start [2025-01-13 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239447', 'tblTempUsageDetail_20' ) end [2025-01-13 14:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:07:30] Production.INFO: ==9149== Releasing lock... [2025-01-13 14:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:07:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:08:04 [end_date_ymd] => 2025-01-13 14:08:04 [RateCDR] => 1 ) [2025-01-13 14:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:08:04' and `end` < '2025-01-13 14:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:08:28] Production.INFO: count ==5825 [2025-01-13 14:08:30] Production.ERROR: pbx CDR StartTime 2025-01-13 11:08:04 - End Time 2025-01-13 14:08:04 [2025-01-13 14:08:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:08:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239452', 'tblTempUsageDetail_20' ) start [2025-01-13 14:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239452', 'tblTempUsageDetail_20' ) end [2025-01-13 14:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239452', 'tblTempVendorCDR_20' ) start [2025-01-13 14:08:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239452', 'tblTempVendorCDR_20' ) end [2025-01-13 14:08:31] Production.INFO: ProcessCDR(1,14239452,1,1,2) [2025-01-13 14:08:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:08:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:08:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:08:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:08:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239452', 'tblTempUsageDetail_20' ) start [2025-01-13 14:08:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239452', 'tblTempUsageDetail_20' ) end [2025-01-13 14:08:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:08:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:08:35] Production.INFO: ==9221== Releasing lock... [2025-01-13 14:08:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:08:35] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:09:05 [end_date_ymd] => 2025-01-13 14:09:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:09:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:09:24] Production.INFO: count ==5805 [2025-01-13 14:09:26] Production.ERROR: pbx CDR StartTime 2025-01-13 11:09:05 - End Time 2025-01-13 14:09:05 [2025-01-13 14:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239457', 'tblTempUsageDetail_20' ) start [2025-01-13 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239457', 'tblTempUsageDetail_20' ) end [2025-01-13 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239457', 'tblTempVendorCDR_20' ) start [2025-01-13 14:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239457', 'tblTempVendorCDR_20' ) end [2025-01-13 14:09:26] Production.INFO: ProcessCDR(1,14239457,1,1,2) [2025-01-13 14:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239457', 'tblTempUsageDetail_20' ) start [2025-01-13 14:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239457', 'tblTempUsageDetail_20' ) end [2025-01-13 14:09:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:09:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:09:31] Production.INFO: ==9295== Releasing lock... [2025-01-13 14:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:09:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:10:06 [end_date_ymd] => 2025-01-13 14:10:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:10:06' and `end` < '2025-01-13 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:10:25] Production.INFO: count ==5817 [2025-01-13 14:10:27] Production.ERROR: pbx CDR StartTime 2025-01-13 11:10:06 - End Time 2025-01-13 14:10:06 [2025-01-13 14:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239463', 'tblTempUsageDetail_20' ) start [2025-01-13 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239463', 'tblTempUsageDetail_20' ) end [2025-01-13 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239463', 'tblTempVendorCDR_20' ) start [2025-01-13 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239463', 'tblTempVendorCDR_20' ) end [2025-01-13 14:10:27] Production.INFO: ProcessCDR(1,14239463,1,1,2) [2025-01-13 14:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239463', 'tblTempUsageDetail_20' ) start [2025-01-13 14:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239463', 'tblTempUsageDetail_20' ) end [2025-01-13 14:10:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:10:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:10:32] Production.INFO: ==9373== Releasing lock... [2025-01-13 14:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:10:32] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:11:05 [end_date_ymd] => 2025-01-13 14:11:05 [RateCDR] => 1 ) [2025-01-13 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:11:05' and `end` < '2025-01-13 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:11:21] Production.INFO: count ==5771 [2025-01-13 14:11:24] Production.ERROR: pbx CDR StartTime 2025-01-13 11:11:05 - End Time 2025-01-13 14:11:05 [2025-01-13 14:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239468', 'tblTempUsageDetail_20' ) start [2025-01-13 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239468', 'tblTempUsageDetail_20' ) end [2025-01-13 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239468', 'tblTempVendorCDR_20' ) start [2025-01-13 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239468', 'tblTempVendorCDR_20' ) end [2025-01-13 14:11:24] Production.INFO: ProcessCDR(1,14239468,1,1,2) [2025-01-13 14:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239468', 'tblTempUsageDetail_20' ) start [2025-01-13 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239468', 'tblTempUsageDetail_20' ) end [2025-01-13 14:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:11:28] Production.INFO: ==9449== Releasing lock... [2025-01-13 14:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:11:28] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:12:05 [end_date_ymd] => 2025-01-13 14:12:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:12:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:12:21] Production.INFO: count ==5776 [2025-01-13 14:12:24] Production.ERROR: pbx CDR StartTime 2025-01-13 11:12:05 - End Time 2025-01-13 14:12:05 [2025-01-13 14:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239473', 'tblTempUsageDetail_20' ) start [2025-01-13 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239473', 'tblTempUsageDetail_20' ) end [2025-01-13 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239473', 'tblTempVendorCDR_20' ) start [2025-01-13 14:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239473', 'tblTempVendorCDR_20' ) end [2025-01-13 14:12:24] Production.INFO: ProcessCDR(1,14239473,1,1,2) [2025-01-13 14:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239473', 'tblTempUsageDetail_20' ) start [2025-01-13 14:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239473', 'tblTempUsageDetail_20' ) end [2025-01-13 14:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:12:28] Production.INFO: ==9520== Releasing lock... [2025-01-13 14:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:12:28] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 14:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:13:04 [end_date_ymd] => 2025-01-13 14:13:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:13:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:13:18] Production.INFO: count ==5778 [2025-01-13 14:13:20] Production.ERROR: pbx CDR StartTime 2025-01-13 11:13:04 - End Time 2025-01-13 14:13:04 [2025-01-13 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239478', 'tblTempUsageDetail_20' ) start [2025-01-13 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239478', 'tblTempUsageDetail_20' ) end [2025-01-13 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239478', 'tblTempVendorCDR_20' ) start [2025-01-13 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239478', 'tblTempVendorCDR_20' ) end [2025-01-13 14:13:21] Production.INFO: ProcessCDR(1,14239478,1,1,2) [2025-01-13 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239478', 'tblTempUsageDetail_20' ) start [2025-01-13 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239478', 'tblTempUsageDetail_20' ) end [2025-01-13 14:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:13:25] Production.INFO: ==9590== Releasing lock... [2025-01-13 14:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:13:25] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:14:05 [end_date_ymd] => 2025-01-13 14:14:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:14:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:14:19] Production.INFO: count ==5769 [2025-01-13 14:14:21] Production.ERROR: pbx CDR StartTime 2025-01-13 11:14:05 - End Time 2025-01-13 14:14:05 [2025-01-13 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239483', 'tblTempUsageDetail_20' ) start [2025-01-13 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239483', 'tblTempUsageDetail_20' ) end [2025-01-13 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239483', 'tblTempVendorCDR_20' ) start [2025-01-13 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239483', 'tblTempVendorCDR_20' ) end [2025-01-13 14:14:22] Production.INFO: ProcessCDR(1,14239483,1,1,2) [2025-01-13 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239483', 'tblTempUsageDetail_20' ) start [2025-01-13 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239483', 'tblTempUsageDetail_20' ) end [2025-01-13 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:14:26] Production.INFO: ==9703== Releasing lock... [2025-01-13 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:14:26] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:15:04 [end_date_ymd] => 2025-01-13 14:15:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:15:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:15:19] Production.INFO: count ==5773 [2025-01-13 14:15:22] Production.ERROR: pbx CDR StartTime 2025-01-13 11:15:04 - End Time 2025-01-13 14:15:04 [2025-01-13 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239488', 'tblTempUsageDetail_20' ) start [2025-01-13 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239488', 'tblTempUsageDetail_20' ) end [2025-01-13 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239488', 'tblTempVendorCDR_20' ) start [2025-01-13 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239488', 'tblTempVendorCDR_20' ) end [2025-01-13 14:15:22] Production.INFO: ProcessCDR(1,14239488,1,1,2) [2025-01-13 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239488', 'tblTempUsageDetail_20' ) start [2025-01-13 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239488', 'tblTempUsageDetail_20' ) end [2025-01-13 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:15:27] Production.INFO: ==9772== Releasing lock... [2025-01-13 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:15:27] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 14:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:16:04 [end_date_ymd] => 2025-01-13 14:16:04 [RateCDR] => 1 ) [2025-01-13 14:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:16:04' and `end` < '2025-01-13 14:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:16:21] Production.INFO: count ==5758 [2025-01-13 14:16:23] Production.ERROR: pbx CDR StartTime 2025-01-13 11:16:04 - End Time 2025-01-13 14:16:04 [2025-01-13 14:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239493', 'tblTempUsageDetail_20' ) start [2025-01-13 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239493', 'tblTempUsageDetail_20' ) end [2025-01-13 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239493', 'tblTempVendorCDR_20' ) start [2025-01-13 14:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239493', 'tblTempVendorCDR_20' ) end [2025-01-13 14:16:23] Production.INFO: ProcessCDR(1,14239493,1,1,2) [2025-01-13 14:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239493', 'tblTempUsageDetail_20' ) start [2025-01-13 14:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239493', 'tblTempUsageDetail_20' ) end [2025-01-13 14:16:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:16:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:16:28] Production.INFO: ==9843== Releasing lock... [2025-01-13 14:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:16:28] Production.INFO: 71 MB #Memory Used# [2025-01-13 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:17:05 [end_date_ymd] => 2025-01-13 14:17:05 [RateCDR] => 1 ) [2025-01-13 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:17:05' and `end` < '2025-01-13 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:17:23] Production.INFO: count ==5724 [2025-01-13 14:17:26] Production.ERROR: pbx CDR StartTime 2025-01-13 11:17:05 - End Time 2025-01-13 14:17:05 [2025-01-13 14:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239498', 'tblTempUsageDetail_20' ) start [2025-01-13 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239498', 'tblTempUsageDetail_20' ) end [2025-01-13 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239498', 'tblTempVendorCDR_20' ) start [2025-01-13 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239498', 'tblTempVendorCDR_20' ) end [2025-01-13 14:17:26] Production.INFO: ProcessCDR(1,14239498,1,1,2) [2025-01-13 14:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:17:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:17:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239498', 'tblTempUsageDetail_20' ) start [2025-01-13 14:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239498', 'tblTempUsageDetail_20' ) end [2025-01-13 14:17:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:17:30] Production.INFO: ==9915== Releasing lock... [2025-01-13 14:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:17:30] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 14:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:18:04 [end_date_ymd] => 2025-01-13 14:18:04 [RateCDR] => 1 ) [2025-01-13 14:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:18:04' and `end` < '2025-01-13 14:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:18:26] Production.INFO: count ==5722 [2025-01-13 14:18:29] Production.ERROR: pbx CDR StartTime 2025-01-13 11:18:04 - End Time 2025-01-13 14:18:04 [2025-01-13 14:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239503', 'tblTempUsageDetail_20' ) start [2025-01-13 14:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239503', 'tblTempUsageDetail_20' ) end [2025-01-13 14:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239503', 'tblTempVendorCDR_20' ) start [2025-01-13 14:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239503', 'tblTempVendorCDR_20' ) end [2025-01-13 14:18:29] Production.INFO: ProcessCDR(1,14239503,1,1,2) [2025-01-13 14:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:18:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:18:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239503', 'tblTempUsageDetail_20' ) start [2025-01-13 14:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239503', 'tblTempUsageDetail_20' ) end [2025-01-13 14:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:18:34] Production.INFO: ==9985== Releasing lock... [2025-01-13 14:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:18:34] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:19:05 [end_date_ymd] => 2025-01-13 14:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:19:30] Production.INFO: count ==5707 [2025-01-13 14:19:33] Production.ERROR: pbx CDR StartTime 2025-01-13 11:19:05 - End Time 2025-01-13 14:19:05 [2025-01-13 14:19:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239508', 'tblTempUsageDetail_20' ) start [2025-01-13 14:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239508', 'tblTempUsageDetail_20' ) end [2025-01-13 14:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239508', 'tblTempVendorCDR_20' ) start [2025-01-13 14:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239508', 'tblTempVendorCDR_20' ) end [2025-01-13 14:19:33] Production.INFO: ProcessCDR(1,14239508,1,1,2) [2025-01-13 14:19:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:19:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:19:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:19:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239508', 'tblTempUsageDetail_20' ) start [2025-01-13 14:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239508', 'tblTempUsageDetail_20' ) end [2025-01-13 14:19:37] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:19:37] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:19:37] Production.INFO: ==10057== Releasing lock... [2025-01-13 14:19:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:19:37] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:20:06 [end_date_ymd] => 2025-01-13 14:20:06 [RateCDR] => 1 ) [2025-01-13 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:20:06' and `end` < '2025-01-13 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:20:27] Production.INFO: count ==5692 [2025-01-13 14:20:29] Production.ERROR: pbx CDR StartTime 2025-01-13 11:20:06 - End Time 2025-01-13 14:20:06 [2025-01-13 14:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239514', 'tblTempUsageDetail_20' ) start [2025-01-13 14:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239514', 'tblTempUsageDetail_20' ) end [2025-01-13 14:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239514', 'tblTempVendorCDR_20' ) start [2025-01-13 14:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239514', 'tblTempVendorCDR_20' ) end [2025-01-13 14:20:29] Production.INFO: ProcessCDR(1,14239514,1,1,2) [2025-01-13 14:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239514', 'tblTempUsageDetail_20' ) start [2025-01-13 14:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239514', 'tblTempUsageDetail_20' ) end [2025-01-13 14:20:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:20:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:20:34] Production.INFO: ==10131== Releasing lock... [2025-01-13 14:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:20:34] Production.INFO: 70.5 MB #Memory Used# [2025-01-13 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:21:05 [end_date_ymd] => 2025-01-13 14:21:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:21:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:21:22] Production.INFO: count ==5721 [2025-01-13 14:21:25] Production.ERROR: pbx CDR StartTime 2025-01-13 11:21:05 - End Time 2025-01-13 14:21:05 [2025-01-13 14:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239519', 'tblTempUsageDetail_20' ) start [2025-01-13 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239519', 'tblTempUsageDetail_20' ) end [2025-01-13 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239519', 'tblTempVendorCDR_20' ) start [2025-01-13 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239519', 'tblTempVendorCDR_20' ) end [2025-01-13 14:21:25] Production.INFO: ProcessCDR(1,14239519,1,1,2) [2025-01-13 14:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239519', 'tblTempUsageDetail_20' ) start [2025-01-13 14:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239519', 'tblTempUsageDetail_20' ) end [2025-01-13 14:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:21:30] Production.INFO: ==10203== Releasing lock... [2025-01-13 14:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:21:30] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:22:05 [end_date_ymd] => 2025-01-13 14:22:05 [RateCDR] => 1 ) [2025-01-13 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:22:05' and `end` < '2025-01-13 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:22:22] Production.INFO: count ==5762 [2025-01-13 14:22:24] Production.ERROR: pbx CDR StartTime 2025-01-13 11:22:05 - End Time 2025-01-13 14:22:05 [2025-01-13 14:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239524', 'tblTempUsageDetail_20' ) start [2025-01-13 14:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239524', 'tblTempUsageDetail_20' ) end [2025-01-13 14:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239524', 'tblTempVendorCDR_20' ) start [2025-01-13 14:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239524', 'tblTempVendorCDR_20' ) end [2025-01-13 14:22:24] Production.INFO: ProcessCDR(1,14239524,1,1,2) [2025-01-13 14:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239524', 'tblTempUsageDetail_20' ) start [2025-01-13 14:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239524', 'tblTempUsageDetail_20' ) end [2025-01-13 14:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:22:29] Production.INFO: ==10275== Releasing lock... [2025-01-13 14:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:22:29] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:23:05 [end_date_ymd] => 2025-01-13 14:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:23:21] Production.INFO: count ==5765 [2025-01-13 14:23:24] Production.ERROR: pbx CDR StartTime 2025-01-13 11:23:05 - End Time 2025-01-13 14:23:05 [2025-01-13 14:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239529', 'tblTempUsageDetail_20' ) start [2025-01-13 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239529', 'tblTempUsageDetail_20' ) end [2025-01-13 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239529', 'tblTempVendorCDR_20' ) start [2025-01-13 14:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239529', 'tblTempVendorCDR_20' ) end [2025-01-13 14:23:24] Production.INFO: ProcessCDR(1,14239529,1,1,2) [2025-01-13 14:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239529', 'tblTempUsageDetail_20' ) start [2025-01-13 14:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239529', 'tblTempUsageDetail_20' ) end [2025-01-13 14:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:23:29] Production.INFO: ==10350== Releasing lock... [2025-01-13 14:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:23:29] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:24:05 [end_date_ymd] => 2025-01-13 14:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:24:22] Production.INFO: count ==5766 [2025-01-13 14:24:24] Production.ERROR: pbx CDR StartTime 2025-01-13 11:24:05 - End Time 2025-01-13 14:24:05 [2025-01-13 14:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239534', 'tblTempUsageDetail_20' ) start [2025-01-13 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239534', 'tblTempUsageDetail_20' ) end [2025-01-13 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239534', 'tblTempVendorCDR_20' ) start [2025-01-13 14:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239534', 'tblTempVendorCDR_20' ) end [2025-01-13 14:24:24] Production.INFO: ProcessCDR(1,14239534,1,1,2) [2025-01-13 14:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239534', 'tblTempUsageDetail_20' ) start [2025-01-13 14:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239534', 'tblTempUsageDetail_20' ) end [2025-01-13 14:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:24:29] Production.INFO: ==10425== Releasing lock... [2025-01-13 14:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:24:29] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:25:06 [end_date_ymd] => 2025-01-13 14:25:06 [RateCDR] => 1 ) [2025-01-13 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:25:06' and `end` < '2025-01-13 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:25:23] Production.INFO: count ==5771 [2025-01-13 14:25:26] Production.ERROR: pbx CDR StartTime 2025-01-13 11:25:06 - End Time 2025-01-13 14:25:06 [2025-01-13 14:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239539', 'tblTempUsageDetail_20' ) start [2025-01-13 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239539', 'tblTempUsageDetail_20' ) end [2025-01-13 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239539', 'tblTempVendorCDR_20' ) start [2025-01-13 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239539', 'tblTempVendorCDR_20' ) end [2025-01-13 14:25:26] Production.INFO: ProcessCDR(1,14239539,1,1,2) [2025-01-13 14:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239539', 'tblTempUsageDetail_20' ) start [2025-01-13 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239539', 'tblTempUsageDetail_20' ) end [2025-01-13 14:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:25:31] Production.INFO: ==10498== Releasing lock... [2025-01-13 14:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:25:31] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:26:05 [end_date_ymd] => 2025-01-13 14:26:05 [RateCDR] => 1 ) [2025-01-13 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:26:05' and `end` < '2025-01-13 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:26:23] Production.INFO: count ==5763 [2025-01-13 14:26:26] Production.ERROR: pbx CDR StartTime 2025-01-13 11:26:05 - End Time 2025-01-13 14:26:05 [2025-01-13 14:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239544', 'tblTempUsageDetail_20' ) start [2025-01-13 14:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239544', 'tblTempUsageDetail_20' ) end [2025-01-13 14:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239544', 'tblTempVendorCDR_20' ) start [2025-01-13 14:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239544', 'tblTempVendorCDR_20' ) end [2025-01-13 14:26:26] Production.INFO: ProcessCDR(1,14239544,1,1,2) [2025-01-13 14:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239544', 'tblTempUsageDetail_20' ) start [2025-01-13 14:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239544', 'tblTempUsageDetail_20' ) end [2025-01-13 14:26:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:26:30] Production.INFO: ==10568== Releasing lock... [2025-01-13 14:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:26:30] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:27:05 [end_date_ymd] => 2025-01-13 14:27:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:27:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:27:23] Production.INFO: count ==5802 [2025-01-13 14:27:26] Production.ERROR: pbx CDR StartTime 2025-01-13 11:27:05 - End Time 2025-01-13 14:27:05 [2025-01-13 14:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239549', 'tblTempUsageDetail_20' ) start [2025-01-13 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239549', 'tblTempUsageDetail_20' ) end [2025-01-13 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239549', 'tblTempVendorCDR_20' ) start [2025-01-13 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239549', 'tblTempVendorCDR_20' ) end [2025-01-13 14:27:26] Production.INFO: ProcessCDR(1,14239549,1,1,2) [2025-01-13 14:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239549', 'tblTempUsageDetail_20' ) start [2025-01-13 14:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239549', 'tblTempUsageDetail_20' ) end [2025-01-13 14:27:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:27:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:27:31] Production.INFO: ==10639== Releasing lock... [2025-01-13 14:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:27:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:28:04 [end_date_ymd] => 2025-01-13 14:28:04 [RateCDR] => 1 ) [2025-01-13 14:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:28:04' and `end` < '2025-01-13 14:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:28:20] Production.INFO: count ==5799 [2025-01-13 14:28:22] Production.ERROR: pbx CDR StartTime 2025-01-13 11:28:04 - End Time 2025-01-13 14:28:04 [2025-01-13 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239554', 'tblTempUsageDetail_20' ) start [2025-01-13 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239554', 'tblTempUsageDetail_20' ) end [2025-01-13 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239554', 'tblTempVendorCDR_20' ) start [2025-01-13 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239554', 'tblTempVendorCDR_20' ) end [2025-01-13 14:28:22] Production.INFO: ProcessCDR(1,14239554,1,1,2) [2025-01-13 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239554', 'tblTempUsageDetail_20' ) start [2025-01-13 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239554', 'tblTempUsageDetail_20' ) end [2025-01-13 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:28:27] Production.INFO: ==10708== Releasing lock... [2025-01-13 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:28:27] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:29:05 [end_date_ymd] => 2025-01-13 14:29:05 [RateCDR] => 1 ) [2025-01-13 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:29:05' and `end` < '2025-01-13 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:29:21] Production.INFO: count ==5808 [2025-01-13 14:29:24] Production.ERROR: pbx CDR StartTime 2025-01-13 11:29:05 - End Time 2025-01-13 14:29:05 [2025-01-13 14:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239559', 'tblTempUsageDetail_20' ) start [2025-01-13 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239559', 'tblTempUsageDetail_20' ) end [2025-01-13 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239559', 'tblTempVendorCDR_20' ) start [2025-01-13 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239559', 'tblTempVendorCDR_20' ) end [2025-01-13 14:29:24] Production.INFO: ProcessCDR(1,14239559,1,1,2) [2025-01-13 14:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239559', 'tblTempUsageDetail_20' ) start [2025-01-13 14:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239559', 'tblTempUsageDetail_20' ) end [2025-01-13 14:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:29:29] Production.INFO: ==10778== Releasing lock... [2025-01-13 14:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:29:29] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:30:05 [end_date_ymd] => 2025-01-13 14:30:05 [RateCDR] => 1 ) [2025-01-13 14:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:30:05' and `end` < '2025-01-13 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:30:20] Production.INFO: count ==5821 [2025-01-13 14:30:22] Production.ERROR: pbx CDR StartTime 2025-01-13 11:30:05 - End Time 2025-01-13 14:30:05 [2025-01-13 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239565', 'tblTempUsageDetail_20' ) start [2025-01-13 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239565', 'tblTempUsageDetail_20' ) end [2025-01-13 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239565', 'tblTempVendorCDR_20' ) start [2025-01-13 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239565', 'tblTempVendorCDR_20' ) end [2025-01-13 14:30:22] Production.INFO: ProcessCDR(1,14239565,1,1,2) [2025-01-13 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239565', 'tblTempUsageDetail_20' ) start [2025-01-13 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239565', 'tblTempUsageDetail_20' ) end [2025-01-13 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:30:27] Production.INFO: ==10891== Releasing lock... [2025-01-13 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:30:27] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:31:05 [end_date_ymd] => 2025-01-13 14:31:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:31:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:31:23] Production.INFO: count ==5866 [2025-01-13 14:31:25] Production.ERROR: pbx CDR StartTime 2025-01-13 11:31:05 - End Time 2025-01-13 14:31:05 [2025-01-13 14:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239570', 'tblTempUsageDetail_20' ) start [2025-01-13 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239570', 'tblTempUsageDetail_20' ) end [2025-01-13 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239570', 'tblTempVendorCDR_20' ) start [2025-01-13 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239570', 'tblTempVendorCDR_20' ) end [2025-01-13 14:31:25] Production.INFO: ProcessCDR(1,14239570,1,1,2) [2025-01-13 14:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239570', 'tblTempUsageDetail_20' ) start [2025-01-13 14:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239570', 'tblTempUsageDetail_20' ) end [2025-01-13 14:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:31:30] Production.INFO: ==10964== Releasing lock... [2025-01-13 14:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:31:30] Production.INFO: 72 MB #Memory Used# [2025-01-13 14:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:32:04 [end_date_ymd] => 2025-01-13 14:32:04 [RateCDR] => 1 ) [2025-01-13 14: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` >= '2025-01-13 11:32:04' and `end` < '2025-01-13 14: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 ,'') [2025-01-13 14:32:28] Production.INFO: count ==5886 [2025-01-13 14:32:30] Production.ERROR: pbx CDR StartTime 2025-01-13 11:32:04 - End Time 2025-01-13 14:32:04 [2025-01-13 14:32:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239575', 'tblTempUsageDetail_20' ) start [2025-01-13 14:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239575', 'tblTempUsageDetail_20' ) end [2025-01-13 14:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239575', 'tblTempVendorCDR_20' ) start [2025-01-13 14:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239575', 'tblTempVendorCDR_20' ) end [2025-01-13 14:32:30] Production.INFO: ProcessCDR(1,14239575,1,1,2) [2025-01-13 14:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239575', 'tblTempUsageDetail_20' ) start [2025-01-13 14:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239575', 'tblTempUsageDetail_20' ) end [2025-01-13 14:32:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:32:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:32:35] Production.INFO: ==11033== Releasing lock... [2025-01-13 14:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:32:35] Production.INFO: 72 MB #Memory Used# [2025-01-13 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:33:05 [end_date_ymd] => 2025-01-13 14:33:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:33:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:33:25] Production.INFO: count ==5882 [2025-01-13 14:33:27] Production.ERROR: pbx CDR StartTime 2025-01-13 11:33:05 - End Time 2025-01-13 14:33:05 [2025-01-13 14:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239580', 'tblTempUsageDetail_20' ) start [2025-01-13 14:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239580', 'tblTempUsageDetail_20' ) end [2025-01-13 14:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239580', 'tblTempVendorCDR_20' ) start [2025-01-13 14:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239580', 'tblTempVendorCDR_20' ) end [2025-01-13 14:33:27] Production.INFO: ProcessCDR(1,14239580,1,1,2) [2025-01-13 14:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239580', 'tblTempUsageDetail_20' ) start [2025-01-13 14:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239580', 'tblTempUsageDetail_20' ) end [2025-01-13 14:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:33:32] Production.INFO: ==11105== Releasing lock... [2025-01-13 14:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:33:32] Production.INFO: 72 MB #Memory Used# [2025-01-13 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:34:05 [end_date_ymd] => 2025-01-13 14:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:34:27] Production.INFO: count ==5866 [2025-01-13 14:34:29] Production.ERROR: pbx CDR StartTime 2025-01-13 11:34:05 - End Time 2025-01-13 14:34:05 [2025-01-13 14:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239585', 'tblTempUsageDetail_20' ) start [2025-01-13 14:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239585', 'tblTempUsageDetail_20' ) end [2025-01-13 14:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239585', 'tblTempVendorCDR_20' ) start [2025-01-13 14:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239585', 'tblTempVendorCDR_20' ) end [2025-01-13 14:34:29] Production.INFO: ProcessCDR(1,14239585,1,1,2) [2025-01-13 14:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239585', 'tblTempUsageDetail_20' ) start [2025-01-13 14:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239585', 'tblTempUsageDetail_20' ) end [2025-01-13 14:34:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:34:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:34:34] Production.INFO: ==11175== Releasing lock... [2025-01-13 14:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:34:34] Production.INFO: 72 MB #Memory Used# [2025-01-13 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:35:05 [end_date_ymd] => 2025-01-13 14:35:05 [RateCDR] => 1 ) [2025-01-13 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:35:05' and `end` < '2025-01-13 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:35:25] Production.INFO: count ==5866 [2025-01-13 14:35:27] Production.ERROR: pbx CDR StartTime 2025-01-13 11:35:05 - End Time 2025-01-13 14:35:05 [2025-01-13 14:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239590', 'tblTempUsageDetail_20' ) start [2025-01-13 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239590', 'tblTempUsageDetail_20' ) end [2025-01-13 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239590', 'tblTempVendorCDR_20' ) start [2025-01-13 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239590', 'tblTempVendorCDR_20' ) end [2025-01-13 14:35:27] Production.INFO: ProcessCDR(1,14239590,1,1,2) [2025-01-13 14:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239590', 'tblTempUsageDetail_20' ) start [2025-01-13 14:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239590', 'tblTempUsageDetail_20' ) end [2025-01-13 14:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:35:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:35:32] Production.INFO: ==11259== Releasing lock... [2025-01-13 14:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:35:32] Production.INFO: 72 MB #Memory Used# [2025-01-13 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:36:06 [end_date_ymd] => 2025-01-13 14:36:06 [RateCDR] => 1 ) [2025-01-13 14: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` >= '2025-01-13 11:36:06' and `end` < '2025-01-13 14: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 ,'') [2025-01-13 14:36:32] Production.INFO: count ==5853 [2025-01-13 14:36:34] Production.ERROR: pbx CDR StartTime 2025-01-13 11:36:06 - End Time 2025-01-13 14:36:06 [2025-01-13 14:36:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239595', 'tblTempUsageDetail_20' ) start [2025-01-13 14:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239595', 'tblTempUsageDetail_20' ) end [2025-01-13 14:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239595', 'tblTempVendorCDR_20' ) start [2025-01-13 14:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239595', 'tblTempVendorCDR_20' ) end [2025-01-13 14:36:34] Production.INFO: ProcessCDR(1,14239595,1,1,2) [2025-01-13 14:36:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:36:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:36:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:36:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:36:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239595', 'tblTempUsageDetail_20' ) start [2025-01-13 14:36:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239595', 'tblTempUsageDetail_20' ) end [2025-01-13 14:36:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:36:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:36:39] Production.INFO: ==11334== Releasing lock... [2025-01-13 14:36:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:36:39] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:37:05 [end_date_ymd] => 2025-01-13 14:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:37:34] Production.INFO: count ==5852 [2025-01-13 14:37:37] Production.ERROR: pbx CDR StartTime 2025-01-13 11:37:05 - End Time 2025-01-13 14:37:05 [2025-01-13 14:37:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:37:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239600', 'tblTempUsageDetail_20' ) start [2025-01-13 14:37:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239600', 'tblTempUsageDetail_20' ) end [2025-01-13 14:37:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239600', 'tblTempVendorCDR_20' ) start [2025-01-13 14:37:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239600', 'tblTempVendorCDR_20' ) end [2025-01-13 14:37:37] Production.INFO: ProcessCDR(1,14239600,1,1,2) [2025-01-13 14:37:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:37:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:37:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:37:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:37:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239600', 'tblTempUsageDetail_20' ) start [2025-01-13 14:37:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239600', 'tblTempUsageDetail_20' ) end [2025-01-13 14:37:41] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:37:42] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:37:42] Production.INFO: ==11409== Releasing lock... [2025-01-13 14:37:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:37:42] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:38:05 [end_date_ymd] => 2025-01-13 14:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:38:26] Production.INFO: count ==5856 [2025-01-13 14:38:29] Production.ERROR: pbx CDR StartTime 2025-01-13 11:38:05 - End Time 2025-01-13 14:38:05 [2025-01-13 14:38:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239605', 'tblTempUsageDetail_20' ) start [2025-01-13 14:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239605', 'tblTempUsageDetail_20' ) end [2025-01-13 14:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239605', 'tblTempVendorCDR_20' ) start [2025-01-13 14:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239605', 'tblTempVendorCDR_20' ) end [2025-01-13 14:38:29] Production.INFO: ProcessCDR(1,14239605,1,1,2) [2025-01-13 14:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239605', 'tblTempUsageDetail_20' ) start [2025-01-13 14:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239605', 'tblTempUsageDetail_20' ) end [2025-01-13 14:38:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:38:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:38:34] Production.INFO: ==11479== Releasing lock... [2025-01-13 14:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:38:34] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:39:04 [end_date_ymd] => 2025-01-13 14:39:04 [RateCDR] => 1 ) [2025-01-13 14:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:39:04' and `end` < '2025-01-13 14:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:39:22] Production.INFO: count ==5858 [2025-01-13 14:39:24] Production.ERROR: pbx CDR StartTime 2025-01-13 11:39:04 - End Time 2025-01-13 14:39:04 [2025-01-13 14:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239610', 'tblTempUsageDetail_20' ) start [2025-01-13 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239610', 'tblTempUsageDetail_20' ) end [2025-01-13 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239610', 'tblTempVendorCDR_20' ) start [2025-01-13 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239610', 'tblTempVendorCDR_20' ) end [2025-01-13 14:39:24] Production.INFO: ProcessCDR(1,14239610,1,1,2) [2025-01-13 14:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239610', 'tblTempUsageDetail_20' ) start [2025-01-13 14:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239610', 'tblTempUsageDetail_20' ) end [2025-01-13 14:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:39:29] Production.INFO: ==11552== Releasing lock... [2025-01-13 14:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:39:29] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:40:06 [end_date_ymd] => 2025-01-13 14:40:06 [RateCDR] => 1 ) [2025-01-13 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:40:06' and `end` < '2025-01-13 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:40:33] Production.INFO: count ==5878 [2025-01-13 14:40:36] Production.ERROR: pbx CDR StartTime 2025-01-13 11:40:06 - End Time 2025-01-13 14:40:06 [2025-01-13 14:40:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239616', 'tblTempUsageDetail_20' ) start [2025-01-13 14:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239616', 'tblTempUsageDetail_20' ) end [2025-01-13 14:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239616', 'tblTempVendorCDR_20' ) start [2025-01-13 14:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239616', 'tblTempVendorCDR_20' ) end [2025-01-13 14:40:36] Production.INFO: ProcessCDR(1,14239616,1,1,2) [2025-01-13 14:40:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:40:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:40:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:40:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:40:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239616', 'tblTempUsageDetail_20' ) start [2025-01-13 14:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239616', 'tblTempUsageDetail_20' ) end [2025-01-13 14:40:41] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:40:41] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:40:41] Production.INFO: ==11628== Releasing lock... [2025-01-13 14:40:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:40:41] Production.INFO: 72 MB #Memory Used# [2025-01-13 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:41:04 [end_date_ymd] => 2025-01-13 14:41:04 [RateCDR] => 1 ) [2025-01-13 14:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:41:04' and `end` < '2025-01-13 14:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:41:22] Production.INFO: count ==5905 [2025-01-13 14:41:24] Production.ERROR: pbx CDR StartTime 2025-01-13 11:41:04 - End Time 2025-01-13 14:41:04 [2025-01-13 14:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239621', 'tblTempUsageDetail_20' ) start [2025-01-13 14:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239621', 'tblTempUsageDetail_20' ) end [2025-01-13 14:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239621', 'tblTempVendorCDR_20' ) start [2025-01-13 14:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239621', 'tblTempVendorCDR_20' ) end [2025-01-13 14:41:24] Production.INFO: ProcessCDR(1,14239621,1,1,2) [2025-01-13 14:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239621', 'tblTempUsageDetail_20' ) start [2025-01-13 14:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239621', 'tblTempUsageDetail_20' ) end [2025-01-13 14:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:41:29] Production.INFO: ==11701== Releasing lock... [2025-01-13 14:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:41:29] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:42:05 [end_date_ymd] => 2025-01-13 14:42:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:42:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:42:27] Production.INFO: count ==5911 [2025-01-13 14:42:30] Production.ERROR: pbx CDR StartTime 2025-01-13 11:42:05 - End Time 2025-01-13 14:42:05 [2025-01-13 14:42:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239626', 'tblTempUsageDetail_20' ) start [2025-01-13 14:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239626', 'tblTempUsageDetail_20' ) end [2025-01-13 14:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239626', 'tblTempVendorCDR_20' ) start [2025-01-13 14:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239626', 'tblTempVendorCDR_20' ) end [2025-01-13 14:42:30] Production.INFO: ProcessCDR(1,14239626,1,1,2) [2025-01-13 14:42:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:42:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:42:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239626', 'tblTempUsageDetail_20' ) start [2025-01-13 14:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239626', 'tblTempUsageDetail_20' ) end [2025-01-13 14:42:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:42:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:42:34] Production.INFO: ==11773== Releasing lock... [2025-01-13 14:42:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:42:34] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:43:04 [end_date_ymd] => 2025-01-13 14:43:04 [RateCDR] => 1 ) [2025-01-13 14:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:43:04' and `end` < '2025-01-13 14:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:43:25] Production.INFO: count ==5888 [2025-01-13 14:43:27] Production.ERROR: pbx CDR StartTime 2025-01-13 11:43:04 - End Time 2025-01-13 14:43:04 [2025-01-13 14:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239631', 'tblTempUsageDetail_20' ) start [2025-01-13 14:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239631', 'tblTempUsageDetail_20' ) end [2025-01-13 14:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239631', 'tblTempVendorCDR_20' ) start [2025-01-13 14:43:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239631', 'tblTempVendorCDR_20' ) end [2025-01-13 14:43:28] Production.INFO: ProcessCDR(1,14239631,1,1,2) [2025-01-13 14:43:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:43:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239631', 'tblTempUsageDetail_20' ) start [2025-01-13 14:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239631', 'tblTempUsageDetail_20' ) end [2025-01-13 14:43:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:43:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:43:33] Production.INFO: ==11843== Releasing lock... [2025-01-13 14:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:43:33] Production.INFO: 72 MB #Memory Used# [2025-01-13 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:44:06 [end_date_ymd] => 2025-01-13 14:44:06 [RateCDR] => 1 ) [2025-01-13 14:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:44:06' and `end` < '2025-01-13 14:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:44:24] Production.INFO: count ==5894 [2025-01-13 14:44:26] Production.ERROR: pbx CDR StartTime 2025-01-13 11:44:06 - End Time 2025-01-13 14:44:06 [2025-01-13 14:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239636', 'tblTempUsageDetail_20' ) start [2025-01-13 14:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239636', 'tblTempUsageDetail_20' ) end [2025-01-13 14:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239636', 'tblTempVendorCDR_20' ) start [2025-01-13 14:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239636', 'tblTempVendorCDR_20' ) end [2025-01-13 14:44:27] Production.INFO: ProcessCDR(1,14239636,1,1,2) [2025-01-13 14:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239636', 'tblTempUsageDetail_20' ) start [2025-01-13 14:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239636', 'tblTempUsageDetail_20' ) end [2025-01-13 14:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:44:31] Production.INFO: ==11912== Releasing lock... [2025-01-13 14:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:44:31] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:45:05 [end_date_ymd] => 2025-01-13 14:45:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:45:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:45:29] Production.INFO: count ==5906 [2025-01-13 14:45:32] Production.ERROR: pbx CDR StartTime 2025-01-13 11:45:05 - End Time 2025-01-13 14:45:05 [2025-01-13 14:45:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239641', 'tblTempUsageDetail_20' ) start [2025-01-13 14:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239641', 'tblTempUsageDetail_20' ) end [2025-01-13 14:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239641', 'tblTempVendorCDR_20' ) start [2025-01-13 14:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239641', 'tblTempVendorCDR_20' ) end [2025-01-13 14:45:32] Production.INFO: ProcessCDR(1,14239641,1,1,2) [2025-01-13 14:45:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:45:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:45:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239641', 'tblTempUsageDetail_20' ) start [2025-01-13 14:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239641', 'tblTempUsageDetail_20' ) end [2025-01-13 14:45:37] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:45:37] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:45:37] Production.INFO: ==11983== Releasing lock... [2025-01-13 14:45:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:45:37] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:46:05 [end_date_ymd] => 2025-01-13 14:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:46:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:46:24] Production.INFO: count ==5902 [2025-01-13 14:46:27] Production.ERROR: pbx CDR StartTime 2025-01-13 11:46:05 - End Time 2025-01-13 14:46:05 [2025-01-13 14:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239646', 'tblTempUsageDetail_20' ) start [2025-01-13 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239646', 'tblTempUsageDetail_20' ) end [2025-01-13 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239646', 'tblTempVendorCDR_20' ) start [2025-01-13 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239646', 'tblTempVendorCDR_20' ) end [2025-01-13 14:46:27] Production.INFO: ProcessCDR(1,14239646,1,1,2) [2025-01-13 14:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239646', 'tblTempUsageDetail_20' ) start [2025-01-13 14:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239646', 'tblTempUsageDetail_20' ) end [2025-01-13 14:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:46:31] Production.INFO: ==12094== Releasing lock... [2025-01-13 14:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:46:31] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 14:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:47:04 [end_date_ymd] => 2025-01-13 14:47:04 [RateCDR] => 1 ) [2025-01-13 14: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` >= '2025-01-13 11:47:04' and `end` < '2025-01-13 14: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 ,'') [2025-01-13 14:47:33] Production.INFO: count ==5881 [2025-01-13 14:47:35] Production.ERROR: pbx CDR StartTime 2025-01-13 11:47:04 - End Time 2025-01-13 14:47:04 [2025-01-13 14:47:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239651', 'tblTempUsageDetail_20' ) start [2025-01-13 14:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239651', 'tblTempUsageDetail_20' ) end [2025-01-13 14:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239651', 'tblTempVendorCDR_20' ) start [2025-01-13 14:47:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239651', 'tblTempVendorCDR_20' ) end [2025-01-13 14:47:35] Production.INFO: ProcessCDR(1,14239651,1,1,2) [2025-01-13 14:47:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:47:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:47:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:47:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:47:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239651', 'tblTempUsageDetail_20' ) start [2025-01-13 14:47:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239651', 'tblTempUsageDetail_20' ) end [2025-01-13 14:47:40] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:47:40] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:47:40] Production.INFO: ==12166== Releasing lock... [2025-01-13 14:47:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:47:40] Production.INFO: 72 MB #Memory Used# [2025-01-13 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:48:05 [end_date_ymd] => 2025-01-13 14:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:48:27] Production.INFO: count ==5847 [2025-01-13 14:48:29] Production.ERROR: pbx CDR StartTime 2025-01-13 11:48:05 - End Time 2025-01-13 14:48:05 [2025-01-13 14:48:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239656', 'tblTempUsageDetail_20' ) start [2025-01-13 14:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239656', 'tblTempUsageDetail_20' ) end [2025-01-13 14:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239656', 'tblTempVendorCDR_20' ) start [2025-01-13 14:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239656', 'tblTempVendorCDR_20' ) end [2025-01-13 14:48:30] Production.INFO: ProcessCDR(1,14239656,1,1,2) [2025-01-13 14:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:48:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239656', 'tblTempUsageDetail_20' ) start [2025-01-13 14:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239656', 'tblTempUsageDetail_20' ) end [2025-01-13 14:48:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:48:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:48:34] Production.INFO: ==12239== Releasing lock... [2025-01-13 14:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:48:34] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:49:04 [end_date_ymd] => 2025-01-13 14:49:04 [RateCDR] => 1 ) [2025-01-13 14: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` >= '2025-01-13 11:49:04' and `end` < '2025-01-13 14: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 ,'') [2025-01-13 14:49:29] Production.INFO: count ==5826 [2025-01-13 14:49:32] Production.ERROR: pbx CDR StartTime 2025-01-13 11:49:04 - End Time 2025-01-13 14:49:04 [2025-01-13 14:49:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239661', 'tblTempUsageDetail_20' ) start [2025-01-13 14:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239661', 'tblTempUsageDetail_20' ) end [2025-01-13 14:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239661', 'tblTempVendorCDR_20' ) start [2025-01-13 14:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239661', 'tblTempVendorCDR_20' ) end [2025-01-13 14:49:32] Production.INFO: ProcessCDR(1,14239661,1,1,2) [2025-01-13 14:49:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:49:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:49:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:49:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239661', 'tblTempUsageDetail_20' ) start [2025-01-13 14:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239661', 'tblTempUsageDetail_20' ) end [2025-01-13 14:49:37] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:49:37] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:49:37] Production.INFO: ==12311== Releasing lock... [2025-01-13 14:49:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:49:37] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:50:05 [end_date_ymd] => 2025-01-13 14:50:05 [RateCDR] => 1 ) [2025-01-13 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:50:05' and `end` < '2025-01-13 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:50:28] Production.INFO: count ==5844 [2025-01-13 14:50:31] Production.ERROR: pbx CDR StartTime 2025-01-13 11:50:05 - End Time 2025-01-13 14:50:05 [2025-01-13 14:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239666', 'tblTempUsageDetail_20' ) start [2025-01-13 14:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239666', 'tblTempUsageDetail_20' ) end [2025-01-13 14:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239666', 'tblTempVendorCDR_20' ) start [2025-01-13 14:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239666', 'tblTempVendorCDR_20' ) end [2025-01-13 14:50:31] Production.INFO: ProcessCDR(1,14239666,1,1,2) [2025-01-13 14:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:50:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239666', 'tblTempUsageDetail_20' ) start [2025-01-13 14:50:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239666', 'tblTempUsageDetail_20' ) end [2025-01-13 14:50:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:50:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:50:35] Production.INFO: ==12387== Releasing lock... [2025-01-13 14:50:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:50:35] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:51:04 [end_date_ymd] => 2025-01-13 14:51:04 [RateCDR] => 1 ) [2025-01-13 14: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` >= '2025-01-13 11:51:04' and `end` < '2025-01-13 14: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 ,'') [2025-01-13 14:51:22] Production.INFO: count ==5817 [2025-01-13 14:51:24] Production.ERROR: pbx CDR StartTime 2025-01-13 11:51:04 - End Time 2025-01-13 14:51:04 [2025-01-13 14:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239672', 'tblTempUsageDetail_20' ) start [2025-01-13 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239672', 'tblTempUsageDetail_20' ) end [2025-01-13 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239672', 'tblTempVendorCDR_20' ) start [2025-01-13 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239672', 'tblTempVendorCDR_20' ) end [2025-01-13 14:51:25] Production.INFO: ProcessCDR(1,14239672,1,1,2) [2025-01-13 14:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239672', 'tblTempUsageDetail_20' ) start [2025-01-13 14:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239672', 'tblTempUsageDetail_20' ) end [2025-01-13 14:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:51:30] Production.INFO: ==12459== Releasing lock... [2025-01-13 14:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:51:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:52:05 [end_date_ymd] => 2025-01-13 14:52:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:52:20] Production.INFO: count ==5811 [2025-01-13 14:52:22] Production.ERROR: pbx CDR StartTime 2025-01-13 11:52:05 - End Time 2025-01-13 14:52:05 [2025-01-13 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239677', 'tblTempUsageDetail_20' ) start [2025-01-13 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239677', 'tblTempUsageDetail_20' ) end [2025-01-13 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239677', 'tblTempVendorCDR_20' ) start [2025-01-13 14:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239677', 'tblTempVendorCDR_20' ) end [2025-01-13 14:52:23] Production.INFO: ProcessCDR(1,14239677,1,1,2) [2025-01-13 14:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239677', 'tblTempUsageDetail_20' ) start [2025-01-13 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239677', 'tblTempUsageDetail_20' ) end [2025-01-13 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:52:27] Production.INFO: ==12529== Releasing lock... [2025-01-13 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:52:27] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:53:05 [end_date_ymd] => 2025-01-13 14:53:05 [RateCDR] => 1 ) [2025-01-13 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:53:05' and `end` < '2025-01-13 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:53:26] Production.INFO: count ==5841 [2025-01-13 14:53:29] Production.ERROR: pbx CDR StartTime 2025-01-13 11:53:05 - End Time 2025-01-13 14:53:05 [2025-01-13 14:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239682', 'tblTempUsageDetail_20' ) start [2025-01-13 14:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239682', 'tblTempUsageDetail_20' ) end [2025-01-13 14:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239682', 'tblTempVendorCDR_20' ) start [2025-01-13 14:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239682', 'tblTempVendorCDR_20' ) end [2025-01-13 14:53:29] Production.INFO: ProcessCDR(1,14239682,1,1,2) [2025-01-13 14:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239682', 'tblTempUsageDetail_20' ) start [2025-01-13 14:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239682', 'tblTempUsageDetail_20' ) end [2025-01-13 14:53:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:53:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:53:34] Production.INFO: ==12599== Releasing lock... [2025-01-13 14:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:53:34] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:54:05 [end_date_ymd] => 2025-01-13 14:54:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:54:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:54:23] Production.INFO: count ==5845 [2025-01-13 14:54:25] Production.ERROR: pbx CDR StartTime 2025-01-13 11:54:05 - End Time 2025-01-13 14:54:05 [2025-01-13 14:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239687', 'tblTempUsageDetail_20' ) start [2025-01-13 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239687', 'tblTempUsageDetail_20' ) end [2025-01-13 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239687', 'tblTempVendorCDR_20' ) start [2025-01-13 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239687', 'tblTempVendorCDR_20' ) end [2025-01-13 14:54:25] Production.INFO: ProcessCDR(1,14239687,1,1,2) [2025-01-13 14:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239687', 'tblTempUsageDetail_20' ) start [2025-01-13 14:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239687', 'tblTempUsageDetail_20' ) end [2025-01-13 14:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:54:30] Production.INFO: ==12672== Releasing lock... [2025-01-13 14:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:54:30] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:55:05 [end_date_ymd] => 2025-01-13 14:55:05 [RateCDR] => 1 ) [2025-01-13 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:55:05' and `end` < '2025-01-13 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:55:25] Production.INFO: count ==5840 [2025-01-13 14:55:28] Production.ERROR: pbx CDR StartTime 2025-01-13 11:55:05 - End Time 2025-01-13 14:55:05 [2025-01-13 14:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239692', 'tblTempUsageDetail_20' ) start [2025-01-13 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239692', 'tblTempUsageDetail_20' ) end [2025-01-13 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239692', 'tblTempVendorCDR_20' ) start [2025-01-13 14:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239692', 'tblTempVendorCDR_20' ) end [2025-01-13 14:55:28] Production.INFO: ProcessCDR(1,14239692,1,1,2) [2025-01-13 14:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239692', 'tblTempUsageDetail_20' ) start [2025-01-13 14:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239692', 'tblTempUsageDetail_20' ) end [2025-01-13 14:55:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:55:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:55:33] Production.INFO: ==12744== Releasing lock... [2025-01-13 14:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:55:33] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:56:05 [end_date_ymd] => 2025-01-13 14:56:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:56:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:56:22] Production.INFO: count ==5829 [2025-01-13 14:56:25] Production.ERROR: pbx CDR StartTime 2025-01-13 11:56:05 - End Time 2025-01-13 14:56:05 [2025-01-13 14:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239697', 'tblTempUsageDetail_20' ) start [2025-01-13 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239697', 'tblTempUsageDetail_20' ) end [2025-01-13 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239697', 'tblTempVendorCDR_20' ) start [2025-01-13 14:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239697', 'tblTempVendorCDR_20' ) end [2025-01-13 14:56:25] Production.INFO: ProcessCDR(1,14239697,1,1,2) [2025-01-13 14:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:56:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:56:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:56:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239697', 'tblTempUsageDetail_20' ) start [2025-01-13 14:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239697', 'tblTempUsageDetail_20' ) end [2025-01-13 14:56:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:56:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:56:29] Production.INFO: ==12815== Releasing lock... [2025-01-13 14:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:56:29] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:57:04 [end_date_ymd] => 2025-01-13 14:57:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:57:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:57:19] Production.INFO: count ==5831 [2025-01-13 14:57:21] Production.ERROR: pbx CDR StartTime 2025-01-13 11:57:04 - End Time 2025-01-13 14:57:04 [2025-01-13 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239702', 'tblTempUsageDetail_20' ) start [2025-01-13 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239702', 'tblTempUsageDetail_20' ) end [2025-01-13 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239702', 'tblTempVendorCDR_20' ) start [2025-01-13 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239702', 'tblTempVendorCDR_20' ) end [2025-01-13 14:57:21] Production.INFO: ProcessCDR(1,14239702,1,1,2) [2025-01-13 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239702', 'tblTempUsageDetail_20' ) start [2025-01-13 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239702', 'tblTempUsageDetail_20' ) end [2025-01-13 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:57:27] Production.INFO: ==12885== Releasing lock... [2025-01-13 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:57:27] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:58:05 [end_date_ymd] => 2025-01-13 14:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 11:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 14:58:19] Production.INFO: count ==5831 [2025-01-13 14:58:21] Production.ERROR: pbx CDR StartTime 2025-01-13 11:58:05 - End Time 2025-01-13 14:58:05 [2025-01-13 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239707', 'tblTempUsageDetail_20' ) start [2025-01-13 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239707', 'tblTempUsageDetail_20' ) end [2025-01-13 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239707', 'tblTempVendorCDR_20' ) start [2025-01-13 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239707', 'tblTempVendorCDR_20' ) end [2025-01-13 14:58:22] Production.INFO: ProcessCDR(1,14239707,1,1,2) [2025-01-13 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239707', 'tblTempUsageDetail_20' ) start [2025-01-13 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239707', 'tblTempUsageDetail_20' ) end [2025-01-13 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:58:26] Production.INFO: ==12957== Releasing lock... [2025-01-13 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:58:26] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 14:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 11:59:04 [end_date_ymd] => 2025-01-13 14:59:04 [RateCDR] => 1 ) [2025-01-13 14:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 11:59:04' and `end` < '2025-01-13 14:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 14:59:25] Production.INFO: count ==5815 [2025-01-13 14:59:28] Production.ERROR: pbx CDR StartTime 2025-01-13 11:59:04 - End Time 2025-01-13 14:59:04 [2025-01-13 14:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239712', 'tblTempUsageDetail_20' ) start [2025-01-13 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239712', 'tblTempUsageDetail_20' ) end [2025-01-13 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239712', 'tblTempVendorCDR_20' ) start [2025-01-13 14:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239712', 'tblTempVendorCDR_20' ) end [2025-01-13 14:59:28] Production.INFO: ProcessCDR(1,14239712,1,1,2) [2025-01-13 14:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:59:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 14:59:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:59:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 14:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239712', 'tblTempUsageDetail_20' ) start [2025-01-13 14:59:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239712', 'tblTempUsageDetail_20' ) end [2025-01-13 14:59:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 14:59:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 14:59:32] Production.INFO: ==13027== Releasing lock... [2025-01-13 14:59:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 14:59:32] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:00:06 [end_date_ymd] => 2025-01-13 15:00:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:00:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:00:27] Production.INFO: count ==5782 [2025-01-13 15:00:29] Production.ERROR: pbx CDR StartTime 2025-01-13 12:00:06 - End Time 2025-01-13 15:00:06 [2025-01-13 15:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239717', 'tblTempUsageDetail_20' ) start [2025-01-13 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239717', 'tblTempUsageDetail_20' ) end [2025-01-13 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239717', 'tblTempVendorCDR_20' ) start [2025-01-13 15:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239717', 'tblTempVendorCDR_20' ) end [2025-01-13 15:00:29] Production.INFO: ProcessCDR(1,14239717,1,1,2) [2025-01-13 15:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239717', 'tblTempUsageDetail_20' ) start [2025-01-13 15:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239717', 'tblTempUsageDetail_20' ) end [2025-01-13 15:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:00:34] Production.INFO: ==13102== Releasing lock... [2025-01-13 15:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:00:34] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:01:05 [end_date_ymd] => 2025-01-13 15:01:05 [RateCDR] => 1 ) [2025-01-13 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:01:05' and `end` < '2025-01-13 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:01:26] Production.INFO: count ==5806 [2025-01-13 15:01:29] Production.ERROR: pbx CDR StartTime 2025-01-13 12:01:05 - End Time 2025-01-13 15:01:05 [2025-01-13 15:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239723', 'tblTempUsageDetail_20' ) start [2025-01-13 15:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239723', 'tblTempUsageDetail_20' ) end [2025-01-13 15:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239723', 'tblTempVendorCDR_20' ) start [2025-01-13 15:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239723', 'tblTempVendorCDR_20' ) end [2025-01-13 15:01:29] Production.INFO: ProcessCDR(1,14239723,1,1,2) [2025-01-13 15:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239723', 'tblTempUsageDetail_20' ) start [2025-01-13 15:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239723', 'tblTempUsageDetail_20' ) end [2025-01-13 15:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:01:33] Production.INFO: ==13268== Releasing lock... [2025-01-13 15:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:01:33] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:02:05 [end_date_ymd] => 2025-01-13 15:02:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:02:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:02:24] Production.INFO: count ==5803 [2025-01-13 15:02:27] Production.ERROR: pbx CDR StartTime 2025-01-13 12:02:05 - End Time 2025-01-13 15:02:05 [2025-01-13 15:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239728', 'tblTempUsageDetail_20' ) start [2025-01-13 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239728', 'tblTempUsageDetail_20' ) end [2025-01-13 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239728', 'tblTempVendorCDR_20' ) start [2025-01-13 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239728', 'tblTempVendorCDR_20' ) end [2025-01-13 15:02:27] Production.INFO: ProcessCDR(1,14239728,1,1,2) [2025-01-13 15:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239728', 'tblTempUsageDetail_20' ) start [2025-01-13 15:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239728', 'tblTempUsageDetail_20' ) end [2025-01-13 15:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:02:31] Production.INFO: ==13378== Releasing lock... [2025-01-13 15:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:02:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:03:05 [end_date_ymd] => 2025-01-13 15:03:05 [RateCDR] => 1 ) [2025-01-13 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:03:05' and `end` < '2025-01-13 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:03:26] Production.INFO: count ==5805 [2025-01-13 15:03:28] Production.ERROR: pbx CDR StartTime 2025-01-13 12:03:05 - End Time 2025-01-13 15:03:05 [2025-01-13 15:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239733', 'tblTempUsageDetail_20' ) start [2025-01-13 15:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239733', 'tblTempUsageDetail_20' ) end [2025-01-13 15:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239733', 'tblTempVendorCDR_20' ) start [2025-01-13 15:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239733', 'tblTempVendorCDR_20' ) end [2025-01-13 15:03:29] Production.INFO: ProcessCDR(1,14239733,1,1,2) [2025-01-13 15:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239733', 'tblTempUsageDetail_20' ) start [2025-01-13 15:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239733', 'tblTempUsageDetail_20' ) end [2025-01-13 15:03:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:03:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:03:33] Production.INFO: ==13452== Releasing lock... [2025-01-13 15:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:03:33] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 15:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:04:04 [end_date_ymd] => 2025-01-13 15:04:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:04:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:04:26] Production.INFO: count ==5804 [2025-01-13 15:04:28] Production.ERROR: pbx CDR StartTime 2025-01-13 12:04:04 - End Time 2025-01-13 15:04:04 [2025-01-13 15:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239738', 'tblTempUsageDetail_20' ) start [2025-01-13 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239738', 'tblTempUsageDetail_20' ) end [2025-01-13 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239738', 'tblTempVendorCDR_20' ) start [2025-01-13 15:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239738', 'tblTempVendorCDR_20' ) end [2025-01-13 15:04:29] Production.INFO: ProcessCDR(1,14239738,1,1,2) [2025-01-13 15:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239738', 'tblTempUsageDetail_20' ) start [2025-01-13 15:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239738', 'tblTempUsageDetail_20' ) end [2025-01-13 15:04:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:04:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:04:33] Production.INFO: ==13529== Releasing lock... [2025-01-13 15:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:04:33] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:05:05 [end_date_ymd] => 2025-01-13 15:05:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:05:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:05:29] Production.INFO: count ==5789 [2025-01-13 15:05:31] Production.ERROR: pbx CDR StartTime 2025-01-13 12:05:05 - End Time 2025-01-13 15:05:05 [2025-01-13 15:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239743', 'tblTempUsageDetail_20' ) start [2025-01-13 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239743', 'tblTempUsageDetail_20' ) end [2025-01-13 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239743', 'tblTempVendorCDR_20' ) start [2025-01-13 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239743', 'tblTempVendorCDR_20' ) end [2025-01-13 15:05:31] Production.INFO: ProcessCDR(1,14239743,1,1,2) [2025-01-13 15:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239743', 'tblTempUsageDetail_20' ) start [2025-01-13 15:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239743', 'tblTempUsageDetail_20' ) end [2025-01-13 15:05:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:05:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:05:36] Production.INFO: ==13677== Releasing lock... [2025-01-13 15:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:05:36] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:06:05 [end_date_ymd] => 2025-01-13 15:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:06:27] Production.INFO: count ==5773 [2025-01-13 15:06:29] Production.ERROR: pbx CDR StartTime 2025-01-13 12:06:05 - End Time 2025-01-13 15:06:05 [2025-01-13 15:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239748', 'tblTempUsageDetail_20' ) start [2025-01-13 15:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239748', 'tblTempUsageDetail_20' ) end [2025-01-13 15:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239748', 'tblTempVendorCDR_20' ) start [2025-01-13 15:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239748', 'tblTempVendorCDR_20' ) end [2025-01-13 15:06:30] Production.INFO: ProcessCDR(1,14239748,1,1,2) [2025-01-13 15:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239748', 'tblTempUsageDetail_20' ) start [2025-01-13 15:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239748', 'tblTempUsageDetail_20' ) end [2025-01-13 15:06:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:06:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:06:34] Production.INFO: ==13748== Releasing lock... [2025-01-13 15:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:06:34] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:07:05 [end_date_ymd] => 2025-01-13 15:07:05 [RateCDR] => 1 ) [2025-01-13 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:07:05' and `end` < '2025-01-13 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:07:27] Production.INFO: count ==5770 [2025-01-13 15:07:30] Production.ERROR: pbx CDR StartTime 2025-01-13 12:07:05 - End Time 2025-01-13 15:07:05 [2025-01-13 15:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239753', 'tblTempUsageDetail_20' ) start [2025-01-13 15:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239753', 'tblTempUsageDetail_20' ) end [2025-01-13 15:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239753', 'tblTempVendorCDR_20' ) start [2025-01-13 15:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239753', 'tblTempVendorCDR_20' ) end [2025-01-13 15:07:30] Production.INFO: ProcessCDR(1,14239753,1,1,2) [2025-01-13 15:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239753', 'tblTempUsageDetail_20' ) start [2025-01-13 15:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239753', 'tblTempUsageDetail_20' ) end [2025-01-13 15:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:07:34] Production.INFO: ==13818== Releasing lock... [2025-01-13 15:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:07:34] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:08:05 [end_date_ymd] => 2025-01-13 15:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:08:23] Production.INFO: count ==5767 [2025-01-13 15:08:25] Production.ERROR: pbx CDR StartTime 2025-01-13 12:08:05 - End Time 2025-01-13 15:08:05 [2025-01-13 15:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239758', 'tblTempUsageDetail_20' ) start [2025-01-13 15:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239758', 'tblTempUsageDetail_20' ) end [2025-01-13 15:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239758', 'tblTempVendorCDR_20' ) start [2025-01-13 15:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239758', 'tblTempVendorCDR_20' ) end [2025-01-13 15:08:25] Production.INFO: ProcessCDR(1,14239758,1,1,2) [2025-01-13 15:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239758', 'tblTempUsageDetail_20' ) start [2025-01-13 15:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239758', 'tblTempUsageDetail_20' ) end [2025-01-13 15:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:08:30] Production.INFO: ==13968== Releasing lock... [2025-01-13 15:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:08:30] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:09:05 [end_date_ymd] => 2025-01-13 15:09:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:09:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:09:19] Production.INFO: count ==5755 [2025-01-13 15:09:21] Production.ERROR: pbx CDR StartTime 2025-01-13 12:09:05 - End Time 2025-01-13 15:09:05 [2025-01-13 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239763', 'tblTempUsageDetail_20' ) start [2025-01-13 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239763', 'tblTempUsageDetail_20' ) end [2025-01-13 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239763', 'tblTempVendorCDR_20' ) start [2025-01-13 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239763', 'tblTempVendorCDR_20' ) end [2025-01-13 15:09:21] Production.INFO: ProcessCDR(1,14239763,1,1,2) [2025-01-13 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239763', 'tblTempUsageDetail_20' ) start [2025-01-13 15:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239763', 'tblTempUsageDetail_20' ) end [2025-01-13 15:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:09:25] Production.INFO: ==14038== Releasing lock... [2025-01-13 15:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:09:25] Production.INFO: 71 MB #Memory Used# [2025-01-13 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:10:06 [end_date_ymd] => 2025-01-13 15:10:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:10:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:10:23] Production.INFO: count ==5755 [2025-01-13 15:10:25] Production.ERROR: pbx CDR StartTime 2025-01-13 12:10:06 - End Time 2025-01-13 15:10:06 [2025-01-13 15:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239769', 'tblTempUsageDetail_20' ) start [2025-01-13 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239769', 'tblTempUsageDetail_20' ) end [2025-01-13 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239769', 'tblTempVendorCDR_20' ) start [2025-01-13 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239769', 'tblTempVendorCDR_20' ) end [2025-01-13 15:10:25] Production.INFO: ProcessCDR(1,14239769,1,1,2) [2025-01-13 15:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239769', 'tblTempUsageDetail_20' ) start [2025-01-13 15:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239769', 'tblTempUsageDetail_20' ) end [2025-01-13 15:10:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:10:31] Production.INFO: ==14110== Releasing lock... [2025-01-13 15:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:10:31] Production.INFO: 71 MB #Memory Used# [2025-01-13 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:11:04 [end_date_ymd] => 2025-01-13 15:11:04 [RateCDR] => 1 ) [2025-01-13 15:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:11:04' and `end` < '2025-01-13 15:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:11:30] Production.INFO: count ==5779 [2025-01-13 15:11:33] Production.ERROR: pbx CDR StartTime 2025-01-13 12:11:04 - End Time 2025-01-13 15:11:04 [2025-01-13 15:11:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239774', 'tblTempUsageDetail_20' ) start [2025-01-13 15:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239774', 'tblTempUsageDetail_20' ) end [2025-01-13 15:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239774', 'tblTempVendorCDR_20' ) start [2025-01-13 15:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239774', 'tblTempVendorCDR_20' ) end [2025-01-13 15:11:33] Production.INFO: ProcessCDR(1,14239774,1,1,2) [2025-01-13 15:11:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:11:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:11:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:11:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239774', 'tblTempUsageDetail_20' ) start [2025-01-13 15:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239774', 'tblTempUsageDetail_20' ) end [2025-01-13 15:11:38] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:11:38] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:11:38] Production.INFO: ==14182== Releasing lock... [2025-01-13 15:11:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:11:38] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:12:06 [end_date_ymd] => 2025-01-13 15:12:06 [RateCDR] => 1 ) [2025-01-13 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:12:06' and `end` < '2025-01-13 15:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:12:28] Production.INFO: count ==5803 [2025-01-13 15:12:30] Production.ERROR: pbx CDR StartTime 2025-01-13 12:12:06 - End Time 2025-01-13 15:12:06 [2025-01-13 15:12:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239779', 'tblTempUsageDetail_20' ) start [2025-01-13 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239779', 'tblTempUsageDetail_20' ) end [2025-01-13 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239779', 'tblTempVendorCDR_20' ) start [2025-01-13 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239779', 'tblTempVendorCDR_20' ) end [2025-01-13 15:12:31] Production.INFO: ProcessCDR(1,14239779,1,1,2) [2025-01-13 15:12:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:12:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:12:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:12:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239779', 'tblTempUsageDetail_20' ) start [2025-01-13 15:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239779', 'tblTempUsageDetail_20' ) end [2025-01-13 15:12:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:12:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:12:35] Production.INFO: ==14330== Releasing lock... [2025-01-13 15:12:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:12:35] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:13:05 [end_date_ymd] => 2025-01-13 15:13:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:13:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:13:23] Production.INFO: count ==5810 [2025-01-13 15:13:26] Production.ERROR: pbx CDR StartTime 2025-01-13 12:13:05 - End Time 2025-01-13 15:13:05 [2025-01-13 15:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239784', 'tblTempUsageDetail_20' ) start [2025-01-13 15:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239784', 'tblTempUsageDetail_20' ) end [2025-01-13 15:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239784', 'tblTempVendorCDR_20' ) start [2025-01-13 15:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239784', 'tblTempVendorCDR_20' ) end [2025-01-13 15:13:26] Production.INFO: ProcessCDR(1,14239784,1,1,2) [2025-01-13 15:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239784', 'tblTempUsageDetail_20' ) start [2025-01-13 15:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239784', 'tblTempUsageDetail_20' ) end [2025-01-13 15:13:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:13:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:13:31] Production.INFO: ==14403== Releasing lock... [2025-01-13 15:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:13:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:14:05 [end_date_ymd] => 2025-01-13 15:14:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:14:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:14:27] Production.INFO: count ==5828 [2025-01-13 15:14:29] Production.ERROR: pbx CDR StartTime 2025-01-13 12:14:05 - End Time 2025-01-13 15:14:05 [2025-01-13 15:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239789', 'tblTempUsageDetail_20' ) start [2025-01-13 15:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239789', 'tblTempUsageDetail_20' ) end [2025-01-13 15:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239789', 'tblTempVendorCDR_20' ) start [2025-01-13 15:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239789', 'tblTempVendorCDR_20' ) end [2025-01-13 15:14:29] Production.INFO: ProcessCDR(1,14239789,1,1,2) [2025-01-13 15:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:14:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:14:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:14:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239789', 'tblTempUsageDetail_20' ) start [2025-01-13 15:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239789', 'tblTempUsageDetail_20' ) end [2025-01-13 15:14:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:14:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:14:34] Production.INFO: ==14474== Releasing lock... [2025-01-13 15:14:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:14:34] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:15:04 [end_date_ymd] => 2025-01-13 15:15:04 [RateCDR] => 1 ) [2025-01-13 15:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:15:04' and `end` < '2025-01-13 15:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:15:24] Production.INFO: count ==5815 [2025-01-13 15:15:26] Production.ERROR: pbx CDR StartTime 2025-01-13 12:15:04 - End Time 2025-01-13 15:15:04 [2025-01-13 15:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239794', 'tblTempUsageDetail_20' ) start [2025-01-13 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239794', 'tblTempUsageDetail_20' ) end [2025-01-13 15:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239794', 'tblTempVendorCDR_20' ) start [2025-01-13 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239794', 'tblTempVendorCDR_20' ) end [2025-01-13 15:15:27] Production.INFO: ProcessCDR(1,14239794,1,1,2) [2025-01-13 15:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239794', 'tblTempUsageDetail_20' ) start [2025-01-13 15:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239794', 'tblTempUsageDetail_20' ) end [2025-01-13 15:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:15:31] Production.INFO: ==14623== Releasing lock... [2025-01-13 15:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:15:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:16:05 [end_date_ymd] => 2025-01-13 15:16:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:16:05' and `end` < '2025-01-13 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:16:23] Production.INFO: count ==5814 [2025-01-13 15:16:26] Production.ERROR: pbx CDR StartTime 2025-01-13 12:16:05 - End Time 2025-01-13 15:16:05 [2025-01-13 15:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239799', 'tblTempUsageDetail_20' ) start [2025-01-13 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239799', 'tblTempUsageDetail_20' ) end [2025-01-13 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239799', 'tblTempVendorCDR_20' ) start [2025-01-13 15:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239799', 'tblTempVendorCDR_20' ) end [2025-01-13 15:16:26] Production.INFO: ProcessCDR(1,14239799,1,1,2) [2025-01-13 15:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239799', 'tblTempUsageDetail_20' ) start [2025-01-13 15:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239799', 'tblTempUsageDetail_20' ) end [2025-01-13 15:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:16:31] Production.INFO: ==14694== Releasing lock... [2025-01-13 15:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:16:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:17:05 [end_date_ymd] => 2025-01-13 15:17:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:17:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:17:18] Production.INFO: count ==5828 [2025-01-13 15:17:21] Production.ERROR: pbx CDR StartTime 2025-01-13 12:17:05 - End Time 2025-01-13 15:17:05 [2025-01-13 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239804', 'tblTempUsageDetail_20' ) start [2025-01-13 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239804', 'tblTempUsageDetail_20' ) end [2025-01-13 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239804', 'tblTempVendorCDR_20' ) start [2025-01-13 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239804', 'tblTempVendorCDR_20' ) end [2025-01-13 15:17:21] Production.INFO: ProcessCDR(1,14239804,1,1,2) [2025-01-13 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239804', 'tblTempUsageDetail_20' ) start [2025-01-13 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239804', 'tblTempUsageDetail_20' ) end [2025-01-13 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:17:26] Production.INFO: ==14808== Releasing lock... [2025-01-13 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:17:26] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:18:05 [end_date_ymd] => 2025-01-13 15:18:05 [RateCDR] => 1 ) [2025-01-13 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:18:05' and `end` < '2025-01-13 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:18:25] Production.INFO: count ==5849 [2025-01-13 15:18:27] Production.ERROR: pbx CDR StartTime 2025-01-13 12:18:05 - End Time 2025-01-13 15:18:05 [2025-01-13 15:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239809', 'tblTempUsageDetail_20' ) start [2025-01-13 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239809', 'tblTempUsageDetail_20' ) end [2025-01-13 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239809', 'tblTempVendorCDR_20' ) start [2025-01-13 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239809', 'tblTempVendorCDR_20' ) end [2025-01-13 15:18:27] Production.INFO: ProcessCDR(1,14239809,1,1,2) [2025-01-13 15:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239809', 'tblTempUsageDetail_20' ) start [2025-01-13 15:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239809', 'tblTempUsageDetail_20' ) end [2025-01-13 15:18:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:18:32] Production.INFO: ==14878== Releasing lock... [2025-01-13 15:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:18:32] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:19:05 [end_date_ymd] => 2025-01-13 15:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:19:26] Production.INFO: count ==5851 [2025-01-13 15:19:29] Production.ERROR: pbx CDR StartTime 2025-01-13 12:19:05 - End Time 2025-01-13 15:19:05 [2025-01-13 15:19:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239814', 'tblTempUsageDetail_20' ) start [2025-01-13 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239814', 'tblTempUsageDetail_20' ) end [2025-01-13 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239814', 'tblTempVendorCDR_20' ) start [2025-01-13 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239814', 'tblTempVendorCDR_20' ) end [2025-01-13 15:19:29] Production.INFO: ProcessCDR(1,14239814,1,1,2) [2025-01-13 15:19:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:19:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:19:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:19:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239814', 'tblTempUsageDetail_20' ) start [2025-01-13 15:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239814', 'tblTempUsageDetail_20' ) end [2025-01-13 15:19:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:19:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:19:33] Production.INFO: ==14949== Releasing lock... [2025-01-13 15:19:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:19:33] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:20:05 [end_date_ymd] => 2025-01-13 15:20:05 [RateCDR] => 1 ) [2025-01-13 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:20:05' and `end` < '2025-01-13 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:20:26] Production.INFO: count ==5855 [2025-01-13 15:20:29] Production.ERROR: pbx CDR StartTime 2025-01-13 12:20:05 - End Time 2025-01-13 15:20:05 [2025-01-13 15:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239820', 'tblTempUsageDetail_20' ) start [2025-01-13 15:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239820', 'tblTempUsageDetail_20' ) end [2025-01-13 15:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239820', 'tblTempVendorCDR_20' ) start [2025-01-13 15:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239820', 'tblTempVendorCDR_20' ) end [2025-01-13 15:20:29] Production.INFO: ProcessCDR(1,14239820,1,1,2) [2025-01-13 15:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239820', 'tblTempUsageDetail_20' ) start [2025-01-13 15:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239820', 'tblTempUsageDetail_20' ) end [2025-01-13 15:20:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:20:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:20:34] Production.INFO: ==15022== Releasing lock... [2025-01-13 15:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:20:34] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:21:06 [end_date_ymd] => 2025-01-13 15:21:06 [RateCDR] => 1 ) [2025-01-13 15:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:21:06' and `end` < '2025-01-13 15:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:21:24] Production.INFO: count ==5847 [2025-01-13 15:21:27] Production.ERROR: pbx CDR StartTime 2025-01-13 12:21:06 - End Time 2025-01-13 15:21:06 [2025-01-13 15:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239825', 'tblTempUsageDetail_20' ) start [2025-01-13 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239825', 'tblTempUsageDetail_20' ) end [2025-01-13 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239825', 'tblTempVendorCDR_20' ) start [2025-01-13 15:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239825', 'tblTempVendorCDR_20' ) end [2025-01-13 15:21:27] Production.INFO: ProcessCDR(1,14239825,1,1,2) [2025-01-13 15:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239825', 'tblTempUsageDetail_20' ) start [2025-01-13 15:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239825', 'tblTempUsageDetail_20' ) end [2025-01-13 15:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:21:32] Production.INFO: ==15097== Releasing lock... [2025-01-13 15:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:21:32] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:22:05 [end_date_ymd] => 2025-01-13 15:22:05 [RateCDR] => 1 ) [2025-01-13 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:22:05' and `end` < '2025-01-13 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:22:18] Production.INFO: count ==5836 [2025-01-13 15:22:21] Production.ERROR: pbx CDR StartTime 2025-01-13 12:22:05 - End Time 2025-01-13 15:22:05 [2025-01-13 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239829', 'tblTempUsageDetail_20' ) start [2025-01-13 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239829', 'tblTempUsageDetail_20' ) end [2025-01-13 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239829', 'tblTempVendorCDR_20' ) start [2025-01-13 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239829', 'tblTempVendorCDR_20' ) end [2025-01-13 15:22:21] Production.INFO: ProcessCDR(1,14239829,1,1,2) [2025-01-13 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239829', 'tblTempUsageDetail_20' ) start [2025-01-13 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239829', 'tblTempUsageDetail_20' ) end [2025-01-13 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:22:26] Production.INFO: ==15166== Releasing lock... [2025-01-13 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:22:26] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:23:04 [end_date_ymd] => 2025-01-13 15:23:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:23:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:23:20] Production.INFO: count ==5849 [2025-01-13 15:23:23] Production.ERROR: pbx CDR StartTime 2025-01-13 12:23:04 - End Time 2025-01-13 15:23:04 [2025-01-13 15:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239835', 'tblTempUsageDetail_20' ) start [2025-01-13 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239835', 'tblTempUsageDetail_20' ) end [2025-01-13 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239835', 'tblTempVendorCDR_20' ) start [2025-01-13 15:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239835', 'tblTempVendorCDR_20' ) end [2025-01-13 15:23:23] Production.INFO: ProcessCDR(1,14239835,1,1,2) [2025-01-13 15:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239835', 'tblTempUsageDetail_20' ) start [2025-01-13 15:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239835', 'tblTempUsageDetail_20' ) end [2025-01-13 15:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:23:28] Production.INFO: ==15236== Releasing lock... [2025-01-13 15:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:23:28] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:24:05 [end_date_ymd] => 2025-01-13 15:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:24:18] Production.INFO: count ==5830 [2025-01-13 15:24:21] Production.ERROR: pbx CDR StartTime 2025-01-13 12:24:05 - End Time 2025-01-13 15:24:05 [2025-01-13 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239840', 'tblTempUsageDetail_20' ) start [2025-01-13 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239840', 'tblTempUsageDetail_20' ) end [2025-01-13 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239840', 'tblTempVendorCDR_20' ) start [2025-01-13 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239840', 'tblTempVendorCDR_20' ) end [2025-01-13 15:24:21] Production.INFO: ProcessCDR(1,14239840,1,1,2) [2025-01-13 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239840', 'tblTempUsageDetail_20' ) start [2025-01-13 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239840', 'tblTempUsageDetail_20' ) end [2025-01-13 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:24:26] Production.INFO: ==15307== Releasing lock... [2025-01-13 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:24:26] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:25:05 [end_date_ymd] => 2025-01-13 15:25:05 [RateCDR] => 1 ) [2025-01-13 15: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` >= '2025-01-13 12:25:05' and `end` < '2025-01-13 15: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 ,'') [2025-01-13 15:25:26] Production.INFO: count ==5825 [2025-01-13 15:25:28] Production.ERROR: pbx CDR StartTime 2025-01-13 12:25:05 - End Time 2025-01-13 15:25:05 [2025-01-13 15:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239845', 'tblTempUsageDetail_20' ) start [2025-01-13 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239845', 'tblTempUsageDetail_20' ) end [2025-01-13 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239845', 'tblTempVendorCDR_20' ) start [2025-01-13 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239845', 'tblTempVendorCDR_20' ) end [2025-01-13 15:25:29] Production.INFO: ProcessCDR(1,14239845,1,1,2) [2025-01-13 15:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239845', 'tblTempUsageDetail_20' ) start [2025-01-13 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239845', 'tblTempUsageDetail_20' ) end [2025-01-13 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:25:33] Production.INFO: ==15379== Releasing lock... [2025-01-13 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:25:33] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:26:05 [end_date_ymd] => 2025-01-13 15:26:05 [RateCDR] => 1 ) [2025-01-13 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:26:05' and `end` < '2025-01-13 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:26:19] Production.INFO: count ==5831 [2025-01-13 15:26:21] Production.ERROR: pbx CDR StartTime 2025-01-13 12:26:05 - End Time 2025-01-13 15:26:05 [2025-01-13 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239850', 'tblTempUsageDetail_20' ) start [2025-01-13 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239850', 'tblTempUsageDetail_20' ) end [2025-01-13 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239850', 'tblTempVendorCDR_20' ) start [2025-01-13 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239850', 'tblTempVendorCDR_20' ) end [2025-01-13 15:26:21] Production.INFO: ProcessCDR(1,14239850,1,1,2) [2025-01-13 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239850', 'tblTempUsageDetail_20' ) start [2025-01-13 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239850', 'tblTempUsageDetail_20' ) end [2025-01-13 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:26:26] Production.INFO: ==15451== Releasing lock... [2025-01-13 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:26:26] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:27:05 [end_date_ymd] => 2025-01-13 15:27:05 [RateCDR] => 1 ) [2025-01-13 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:27:05' and `end` < '2025-01-13 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:27:18] Production.INFO: count ==5838 [2025-01-13 15:27:21] Production.ERROR: pbx CDR StartTime 2025-01-13 12:27:05 - End Time 2025-01-13 15:27:05 [2025-01-13 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239855', 'tblTempUsageDetail_20' ) start [2025-01-13 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239855', 'tblTempUsageDetail_20' ) end [2025-01-13 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239855', 'tblTempVendorCDR_20' ) start [2025-01-13 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239855', 'tblTempVendorCDR_20' ) end [2025-01-13 15:27:21] Production.INFO: ProcessCDR(1,14239855,1,1,2) [2025-01-13 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239855', 'tblTempUsageDetail_20' ) start [2025-01-13 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239855', 'tblTempUsageDetail_20' ) end [2025-01-13 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:27:26] Production.INFO: ==15524== Releasing lock... [2025-01-13 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:27:26] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:28:05 [end_date_ymd] => 2025-01-13 15:28:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:28:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:28:20] Production.INFO: count ==5845 [2025-01-13 15:28:23] Production.ERROR: pbx CDR StartTime 2025-01-13 12:28:05 - End Time 2025-01-13 15:28:05 [2025-01-13 15:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239860', 'tblTempUsageDetail_20' ) start [2025-01-13 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239860', 'tblTempUsageDetail_20' ) end [2025-01-13 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239860', 'tblTempVendorCDR_20' ) start [2025-01-13 15:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239860', 'tblTempVendorCDR_20' ) end [2025-01-13 15:28:23] Production.INFO: ProcessCDR(1,14239860,1,1,2) [2025-01-13 15:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239860', 'tblTempUsageDetail_20' ) start [2025-01-13 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239860', 'tblTempUsageDetail_20' ) end [2025-01-13 15:28:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:28:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:28:28] Production.INFO: ==15597== Releasing lock... [2025-01-13 15:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:28:28] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:29:05 [end_date_ymd] => 2025-01-13 15:29:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:29:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:29:32] Production.INFO: count ==5863 [2025-01-13 15:29:34] Production.ERROR: pbx CDR StartTime 2025-01-13 12:29:05 - End Time 2025-01-13 15:29:05 [2025-01-13 15:29:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239865', 'tblTempUsageDetail_20' ) start [2025-01-13 15:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239865', 'tblTempUsageDetail_20' ) end [2025-01-13 15:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239865', 'tblTempVendorCDR_20' ) start [2025-01-13 15:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239865', 'tblTempVendorCDR_20' ) end [2025-01-13 15:29:34] Production.INFO: ProcessCDR(1,14239865,1,1,2) [2025-01-13 15:29:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:29:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:29:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:29:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:29:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239865', 'tblTempUsageDetail_20' ) start [2025-01-13 15:29:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239865', 'tblTempUsageDetail_20' ) end [2025-01-13 15:29:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:29:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:29:39] Production.INFO: ==15670== Releasing lock... [2025-01-13 15:29:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:29:39] Production.INFO: 72 MB #Memory Used# [2025-01-13 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:30:05 [end_date_ymd] => 2025-01-13 15:30:05 [RateCDR] => 1 ) [2025-01-13 15:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:30:05' and `end` < '2025-01-13 15:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:30:32] Production.INFO: count ==5856 [2025-01-13 15:30:34] Production.ERROR: pbx CDR StartTime 2025-01-13 12:30:05 - End Time 2025-01-13 15:30:05 [2025-01-13 15:30:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239871', 'tblTempUsageDetail_20' ) start [2025-01-13 15:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239871', 'tblTempUsageDetail_20' ) end [2025-01-13 15:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239871', 'tblTempVendorCDR_20' ) start [2025-01-13 15:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239871', 'tblTempVendorCDR_20' ) end [2025-01-13 15:30:34] Production.INFO: ProcessCDR(1,14239871,1,1,2) [2025-01-13 15:30:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:30:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:30:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:30:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239871', 'tblTempUsageDetail_20' ) start [2025-01-13 15:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239871', 'tblTempUsageDetail_20' ) end [2025-01-13 15:30:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:30:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:30:39] Production.INFO: ==15746== Releasing lock... [2025-01-13 15:30:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:30:39] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:31:04 [end_date_ymd] => 2025-01-13 15:31:04 [RateCDR] => 1 ) [2025-01-13 15:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:31:04' and `end` < '2025-01-13 15:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:31:25] Production.INFO: count ==5919 [2025-01-13 15:31:28] Production.ERROR: pbx CDR StartTime 2025-01-13 12:31:04 - End Time 2025-01-13 15:31:04 [2025-01-13 15:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239876', 'tblTempUsageDetail_20' ) start [2025-01-13 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239876', 'tblTempUsageDetail_20' ) end [2025-01-13 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239876', 'tblTempVendorCDR_20' ) start [2025-01-13 15:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239876', 'tblTempVendorCDR_20' ) end [2025-01-13 15:31:28] Production.INFO: ProcessCDR(1,14239876,1,1,2) [2025-01-13 15:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:31:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:31:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239876', 'tblTempUsageDetail_20' ) start [2025-01-13 15:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239876', 'tblTempUsageDetail_20' ) end [2025-01-13 15:31:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:31:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:31:33] Production.INFO: ==15819== Releasing lock... [2025-01-13 15:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:31:33] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:32:04 [end_date_ymd] => 2025-01-13 15:32:04 [RateCDR] => 1 ) [2025-01-13 15:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:32:04' and `end` < '2025-01-13 15:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:32:23] Production.INFO: count ==5934 [2025-01-13 15:32:25] Production.ERROR: pbx CDR StartTime 2025-01-13 12:32:04 - End Time 2025-01-13 15:32:04 [2025-01-13 15:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239881', 'tblTempUsageDetail_20' ) start [2025-01-13 15:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239881', 'tblTempUsageDetail_20' ) end [2025-01-13 15:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239881', 'tblTempVendorCDR_20' ) start [2025-01-13 15:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239881', 'tblTempVendorCDR_20' ) end [2025-01-13 15:32:25] Production.INFO: ProcessCDR(1,14239881,1,1,2) [2025-01-13 15:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239881', 'tblTempUsageDetail_20' ) start [2025-01-13 15:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239881', 'tblTempUsageDetail_20' ) end [2025-01-13 15:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:32:30] Production.INFO: ==15928== Releasing lock... [2025-01-13 15:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:32:30] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:33:05 [end_date_ymd] => 2025-01-13 15:33:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:33:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:33:30] Production.INFO: count ==5954 [2025-01-13 15:33:33] Production.ERROR: pbx CDR StartTime 2025-01-13 12:33:05 - End Time 2025-01-13 15:33:05 [2025-01-13 15:33:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239886', 'tblTempUsageDetail_20' ) start [2025-01-13 15:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239886', 'tblTempUsageDetail_20' ) end [2025-01-13 15:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239886', 'tblTempVendorCDR_20' ) start [2025-01-13 15:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239886', 'tblTempVendorCDR_20' ) end [2025-01-13 15:33:33] Production.INFO: ProcessCDR(1,14239886,1,1,2) [2025-01-13 15:33:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:33:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:33:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:33:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:33:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239886', 'tblTempUsageDetail_20' ) start [2025-01-13 15:33:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239886', 'tblTempUsageDetail_20' ) end [2025-01-13 15:33:38] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:33:38] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:33:38] Production.INFO: ==15999== Releasing lock... [2025-01-13 15:33:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:33:38] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:34:05 [end_date_ymd] => 2025-01-13 15:34:05 [RateCDR] => 1 ) [2025-01-13 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:34:05' and `end` < '2025-01-13 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:34:24] Production.INFO: count ==5958 [2025-01-13 15:34:27] Production.ERROR: pbx CDR StartTime 2025-01-13 12:34:05 - End Time 2025-01-13 15:34:05 [2025-01-13 15:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239891', 'tblTempUsageDetail_20' ) start [2025-01-13 15:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239891', 'tblTempUsageDetail_20' ) end [2025-01-13 15:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239891', 'tblTempVendorCDR_20' ) start [2025-01-13 15:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239891', 'tblTempVendorCDR_20' ) end [2025-01-13 15:34:27] Production.INFO: ProcessCDR(1,14239891,1,1,2) [2025-01-13 15:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239891', 'tblTempUsageDetail_20' ) start [2025-01-13 15:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239891', 'tblTempUsageDetail_20' ) end [2025-01-13 15:34:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:34:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:34:31] Production.INFO: ==16069== Releasing lock... [2025-01-13 15:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:34:31] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:35:04 [end_date_ymd] => 2025-01-13 15:35:04 [RateCDR] => 1 ) [2025-01-13 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:35:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:35:25] Production.INFO: count ==5951 [2025-01-13 15:35:28] Production.ERROR: pbx CDR StartTime 2025-01-13 12:35:04 - End Time 2025-01-13 15:35:04 [2025-01-13 15:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239896', 'tblTempUsageDetail_20' ) start [2025-01-13 15:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239896', 'tblTempUsageDetail_20' ) end [2025-01-13 15:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239896', 'tblTempVendorCDR_20' ) start [2025-01-13 15:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239896', 'tblTempVendorCDR_20' ) end [2025-01-13 15:35:28] Production.INFO: ProcessCDR(1,14239896,1,1,2) [2025-01-13 15:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239896', 'tblTempUsageDetail_20' ) start [2025-01-13 15:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239896', 'tblTempUsageDetail_20' ) end [2025-01-13 15:35:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:35:31] Production.INFO: ==16140== Releasing lock... [2025-01-13 15:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:35:31] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:36:05 [end_date_ymd] => 2025-01-13 15:36:05 [RateCDR] => 1 ) [2025-01-13 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:36:05' and `end` < '2025-01-13 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:36:31] Production.INFO: count ==5943 [2025-01-13 15:36:34] Production.ERROR: pbx CDR StartTime 2025-01-13 12:36:05 - End Time 2025-01-13 15:36:05 [2025-01-13 15:36:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239901', 'tblTempUsageDetail_20' ) start [2025-01-13 15:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239901', 'tblTempUsageDetail_20' ) end [2025-01-13 15:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239901', 'tblTempVendorCDR_20' ) start [2025-01-13 15:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239901', 'tblTempVendorCDR_20' ) end [2025-01-13 15:36:34] Production.INFO: ProcessCDR(1,14239901,1,1,2) [2025-01-13 15:36:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:36:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:36:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:36:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239901', 'tblTempUsageDetail_20' ) start [2025-01-13 15:36:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239901', 'tblTempUsageDetail_20' ) end [2025-01-13 15:36:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:36:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:36:39] Production.INFO: ==16212== Releasing lock... [2025-01-13 15:36:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:36:39] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:37:05 [end_date_ymd] => 2025-01-13 15:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:37:25] Production.INFO: count ==5936 [2025-01-13 15:37:27] Production.ERROR: pbx CDR StartTime 2025-01-13 12:37:05 - End Time 2025-01-13 15:37:05 [2025-01-13 15:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239906', 'tblTempUsageDetail_20' ) start [2025-01-13 15:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239906', 'tblTempUsageDetail_20' ) end [2025-01-13 15:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239906', 'tblTempVendorCDR_20' ) start [2025-01-13 15:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239906', 'tblTempVendorCDR_20' ) end [2025-01-13 15:37:27] Production.INFO: ProcessCDR(1,14239906,1,1,2) [2025-01-13 15:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:37:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:37:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239906', 'tblTempUsageDetail_20' ) start [2025-01-13 15:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239906', 'tblTempUsageDetail_20' ) end [2025-01-13 15:37:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:37:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:37:32] Production.INFO: ==16282== Releasing lock... [2025-01-13 15:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:37:32] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 15:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:38:04 [end_date_ymd] => 2025-01-13 15:38:04 [RateCDR] => 1 ) [2025-01-13 15: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` >= '2025-01-13 12:38:04' and `end` < '2025-01-13 15: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 ,'') [2025-01-13 15:38:22] Production.INFO: count ==5932 [2025-01-13 15:38:24] Production.ERROR: pbx CDR StartTime 2025-01-13 12:38:04 - End Time 2025-01-13 15:38:04 [2025-01-13 15:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239911', 'tblTempUsageDetail_20' ) start [2025-01-13 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239911', 'tblTempUsageDetail_20' ) end [2025-01-13 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239911', 'tblTempVendorCDR_20' ) start [2025-01-13 15:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239911', 'tblTempVendorCDR_20' ) end [2025-01-13 15:38:24] Production.INFO: ProcessCDR(1,14239911,1,1,2) [2025-01-13 15:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239911', 'tblTempUsageDetail_20' ) start [2025-01-13 15:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239911', 'tblTempUsageDetail_20' ) end [2025-01-13 15:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:38:29] Production.INFO: ==16355== Releasing lock... [2025-01-13 15:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:38:29] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:39:06 [end_date_ymd] => 2025-01-13 15:39:06 [RateCDR] => 1 ) [2025-01-13 15:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:39:06' and `end` < '2025-01-13 15:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:39:40] Production.INFO: count ==5979 [2025-01-13 15:39:42] Production.ERROR: pbx CDR StartTime 2025-01-13 12:39:06 - End Time 2025-01-13 15:39:06 [2025-01-13 15:39:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:39:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239916', 'tblTempUsageDetail_20' ) start [2025-01-13 15:39:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239916', 'tblTempUsageDetail_20' ) end [2025-01-13 15:39:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239916', 'tblTempVendorCDR_20' ) start [2025-01-13 15:39:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239916', 'tblTempVendorCDR_20' ) end [2025-01-13 15:39:42] Production.INFO: ProcessCDR(1,14239916,1,1,2) [2025-01-13 15:39:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:39:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:39:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:39:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:39:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239916', 'tblTempUsageDetail_20' ) start [2025-01-13 15:39:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239916', 'tblTempUsageDetail_20' ) end [2025-01-13 15:39:47] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:39:47] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:39:47] Production.INFO: ==16426== Releasing lock... [2025-01-13 15:39:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:39:47] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:40:05 [end_date_ymd] => 2025-01-13 15:40:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:40:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:40:28] Production.INFO: count ==5977 [2025-01-13 15:40:30] Production.ERROR: pbx CDR StartTime 2025-01-13 12:40:05 - End Time 2025-01-13 15:40:05 [2025-01-13 15:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239921', 'tblTempUsageDetail_20' ) start [2025-01-13 15:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239921', 'tblTempUsageDetail_20' ) end [2025-01-13 15:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239921', 'tblTempVendorCDR_20' ) start [2025-01-13 15:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239921', 'tblTempVendorCDR_20' ) end [2025-01-13 15:40:30] Production.INFO: ProcessCDR(1,14239921,1,1,2) [2025-01-13 15:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239921', 'tblTempUsageDetail_20' ) start [2025-01-13 15:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239921', 'tblTempUsageDetail_20' ) end [2025-01-13 15:40:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:40:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:40:35] Production.INFO: ==16498== Releasing lock... [2025-01-13 15:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:40:35] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:41:05 [end_date_ymd] => 2025-01-13 15:41:05 [RateCDR] => 1 ) [2025-01-13 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:41:05' and `end` < '2025-01-13 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:41:27] Production.INFO: count ==5975 [2025-01-13 15:41:29] Production.ERROR: pbx CDR StartTime 2025-01-13 12:41:05 - End Time 2025-01-13 15:41:05 [2025-01-13 15:41:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239927', 'tblTempUsageDetail_20' ) start [2025-01-13 15:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239927', 'tblTempUsageDetail_20' ) end [2025-01-13 15:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239927', 'tblTempVendorCDR_20' ) start [2025-01-13 15:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239927', 'tblTempVendorCDR_20' ) end [2025-01-13 15:41:29] Production.INFO: ProcessCDR(1,14239927,1,1,2) [2025-01-13 15:41:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:41:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:41:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:41:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239927', 'tblTempUsageDetail_20' ) start [2025-01-13 15:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239927', 'tblTempUsageDetail_20' ) end [2025-01-13 15:41:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:41:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:41:34] Production.INFO: ==16571== Releasing lock... [2025-01-13 15:41:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:41:34] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:42:05 [end_date_ymd] => 2025-01-13 15:42:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:42:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:42:27] Production.INFO: count ==5980 [2025-01-13 15:42:29] Production.ERROR: pbx CDR StartTime 2025-01-13 12:42:05 - End Time 2025-01-13 15:42:05 [2025-01-13 15:42:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239932', 'tblTempUsageDetail_20' ) start [2025-01-13 15:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239932', 'tblTempUsageDetail_20' ) end [2025-01-13 15:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239932', 'tblTempVendorCDR_20' ) start [2025-01-13 15:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239932', 'tblTempVendorCDR_20' ) end [2025-01-13 15:42:29] Production.INFO: ProcessCDR(1,14239932,1,1,2) [2025-01-13 15:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:42:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:42:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239932', 'tblTempUsageDetail_20' ) start [2025-01-13 15:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239932', 'tblTempUsageDetail_20' ) end [2025-01-13 15:42:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:42:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:42:34] Production.INFO: ==16645== Releasing lock... [2025-01-13 15:42:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:42:34] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:43:05 [end_date_ymd] => 2025-01-13 15:43:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:43:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:43:22] Production.INFO: count ==5969 [2025-01-13 15:43:24] Production.ERROR: pbx CDR StartTime 2025-01-13 12:43:05 - End Time 2025-01-13 15:43:05 [2025-01-13 15:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239937', 'tblTempUsageDetail_20' ) start [2025-01-13 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239937', 'tblTempUsageDetail_20' ) end [2025-01-13 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239937', 'tblTempVendorCDR_20' ) start [2025-01-13 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239937', 'tblTempVendorCDR_20' ) end [2025-01-13 15:43:24] Production.INFO: ProcessCDR(1,14239937,1,1,2) [2025-01-13 15:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239937', 'tblTempUsageDetail_20' ) start [2025-01-13 15:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239937', 'tblTempUsageDetail_20' ) end [2025-01-13 15:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:43:29] Production.INFO: ==16718== Releasing lock... [2025-01-13 15:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:43:29] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:44:05 [end_date_ymd] => 2025-01-13 15:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:44:19] Production.INFO: count ==5980 [2025-01-13 15:44:21] Production.ERROR: pbx CDR StartTime 2025-01-13 12:44:05 - End Time 2025-01-13 15:44:05 [2025-01-13 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239942', 'tblTempUsageDetail_20' ) start [2025-01-13 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239942', 'tblTempUsageDetail_20' ) end [2025-01-13 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239942', 'tblTempVendorCDR_20' ) start [2025-01-13 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239942', 'tblTempVendorCDR_20' ) end [2025-01-13 15:44:22] Production.INFO: ProcessCDR(1,14239942,1,1,2) [2025-01-13 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239942', 'tblTempUsageDetail_20' ) start [2025-01-13 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239942', 'tblTempUsageDetail_20' ) end [2025-01-13 15:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:44:26] Production.INFO: ==16792== Releasing lock... [2025-01-13 15:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:44:26] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:45:05 [end_date_ymd] => 2025-01-13 15:45:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:45:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:45:21] Production.INFO: count ==5978 [2025-01-13 15:45:24] Production.ERROR: pbx CDR StartTime 2025-01-13 12:45:05 - End Time 2025-01-13 15:45:05 [2025-01-13 15:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239947', 'tblTempUsageDetail_20' ) start [2025-01-13 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239947', 'tblTempUsageDetail_20' ) end [2025-01-13 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239947', 'tblTempVendorCDR_20' ) start [2025-01-13 15:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239947', 'tblTempVendorCDR_20' ) end [2025-01-13 15:45:24] Production.INFO: ProcessCDR(1,14239947,1,1,2) [2025-01-13 15:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239947', 'tblTempUsageDetail_20' ) start [2025-01-13 15:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239947', 'tblTempUsageDetail_20' ) end [2025-01-13 15:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:45:30] Production.INFO: ==16863== Releasing lock... [2025-01-13 15:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:45:30] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:46:05 [end_date_ymd] => 2025-01-13 15:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:46:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:46:19] Production.INFO: count ==5976 [2025-01-13 15:46:21] Production.ERROR: pbx CDR StartTime 2025-01-13 12:46:05 - End Time 2025-01-13 15:46:05 [2025-01-13 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239952', 'tblTempUsageDetail_20' ) start [2025-01-13 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239952', 'tblTempUsageDetail_20' ) end [2025-01-13 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239952', 'tblTempVendorCDR_20' ) start [2025-01-13 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239952', 'tblTempVendorCDR_20' ) end [2025-01-13 15:46:21] Production.INFO: ProcessCDR(1,14239952,1,1,2) [2025-01-13 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239952', 'tblTempUsageDetail_20' ) start [2025-01-13 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239952', 'tblTempUsageDetail_20' ) end [2025-01-13 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:46:26] Production.INFO: ==16932== Releasing lock... [2025-01-13 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:46:26] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:47:05 [end_date_ymd] => 2025-01-13 15:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:47:23] Production.INFO: count ==5960 [2025-01-13 15:47:26] Production.ERROR: pbx CDR StartTime 2025-01-13 12:47:05 - End Time 2025-01-13 15:47:05 [2025-01-13 15:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239957', 'tblTempUsageDetail_20' ) start [2025-01-13 15:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239957', 'tblTempUsageDetail_20' ) end [2025-01-13 15:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239957', 'tblTempVendorCDR_20' ) start [2025-01-13 15:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239957', 'tblTempVendorCDR_20' ) end [2025-01-13 15:47:26] Production.INFO: ProcessCDR(1,14239957,1,1,2) [2025-01-13 15:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239957', 'tblTempUsageDetail_20' ) start [2025-01-13 15:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239957', 'tblTempUsageDetail_20' ) end [2025-01-13 15:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:47:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:47:31] Production.INFO: ==17004== Releasing lock... [2025-01-13 15:47:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:47:31] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:48:05 [end_date_ymd] => 2025-01-13 15:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:48:24] Production.INFO: count ==5932 [2025-01-13 15:48:27] Production.ERROR: pbx CDR StartTime 2025-01-13 12:48:05 - End Time 2025-01-13 15:48:05 [2025-01-13 15:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239962', 'tblTempUsageDetail_20' ) start [2025-01-13 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239962', 'tblTempUsageDetail_20' ) end [2025-01-13 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239962', 'tblTempVendorCDR_20' ) start [2025-01-13 15:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239962', 'tblTempVendorCDR_20' ) end [2025-01-13 15:48:27] Production.INFO: ProcessCDR(1,14239962,1,1,2) [2025-01-13 15:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239962', 'tblTempUsageDetail_20' ) start [2025-01-13 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239962', 'tblTempUsageDetail_20' ) end [2025-01-13 15:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:48:30] Production.INFO: ==17114== Releasing lock... [2025-01-13 15:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:48:30] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:49:05 [end_date_ymd] => 2025-01-13 15:49:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:49:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:49:35] Production.INFO: count ==5897 [2025-01-13 15:49:38] Production.ERROR: pbx CDR StartTime 2025-01-13 12:49:05 - End Time 2025-01-13 15:49:05 [2025-01-13 15:49:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239967', 'tblTempUsageDetail_20' ) start [2025-01-13 15:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239967', 'tblTempUsageDetail_20' ) end [2025-01-13 15:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239967', 'tblTempVendorCDR_20' ) start [2025-01-13 15:49:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239967', 'tblTempVendorCDR_20' ) end [2025-01-13 15:49:38] Production.INFO: ProcessCDR(1,14239967,1,1,2) [2025-01-13 15:49:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:49:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:49:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:49:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:49:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239967', 'tblTempUsageDetail_20' ) start [2025-01-13 15:49:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239967', 'tblTempUsageDetail_20' ) end [2025-01-13 15:49:43] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:49:43] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:49:43] Production.INFO: ==17185== Releasing lock... [2025-01-13 15:49:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:49:43] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:50:05 [end_date_ymd] => 2025-01-13 15:50:05 [RateCDR] => 1 ) [2025-01-13 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:50:05' and `end` < '2025-01-13 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:50:26] Production.INFO: count ==5897 [2025-01-13 15:50:28] Production.ERROR: pbx CDR StartTime 2025-01-13 12:50:05 - End Time 2025-01-13 15:50:05 [2025-01-13 15:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239973', 'tblTempUsageDetail_20' ) start [2025-01-13 15:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239973', 'tblTempUsageDetail_20' ) end [2025-01-13 15:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239973', 'tblTempVendorCDR_20' ) start [2025-01-13 15:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239973', 'tblTempVendorCDR_20' ) end [2025-01-13 15:50:29] Production.INFO: ProcessCDR(1,14239973,1,1,2) [2025-01-13 15:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239973', 'tblTempUsageDetail_20' ) start [2025-01-13 15:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239973', 'tblTempUsageDetail_20' ) end [2025-01-13 15:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:50:33] Production.INFO: ==17259== Releasing lock... [2025-01-13 15:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:50:33] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:51:05 [end_date_ymd] => 2025-01-13 15:51:05 [RateCDR] => 1 ) [2025-01-13 15: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` >= '2025-01-13 12:51:05' and `end` < '2025-01-13 15: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 ,'') [2025-01-13 15:51:23] Production.INFO: count ==5887 [2025-01-13 15:51:26] Production.ERROR: pbx CDR StartTime 2025-01-13 12:51:05 - End Time 2025-01-13 15:51:05 [2025-01-13 15:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239978', 'tblTempUsageDetail_20' ) start [2025-01-13 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239978', 'tblTempUsageDetail_20' ) end [2025-01-13 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239978', 'tblTempVendorCDR_20' ) start [2025-01-13 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239978', 'tblTempVendorCDR_20' ) end [2025-01-13 15:51:26] Production.INFO: ProcessCDR(1,14239978,1,1,2) [2025-01-13 15:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239978', 'tblTempUsageDetail_20' ) start [2025-01-13 15:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239978', 'tblTempUsageDetail_20' ) end [2025-01-13 15:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:51:30] Production.INFO: ==17334== Releasing lock... [2025-01-13 15:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:51:30] Production.INFO: 72 MB #Memory Used# [2025-01-13 15:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:52:04 [end_date_ymd] => 2025-01-13 15:52:04 [RateCDR] => 1 ) [2025-01-13 15:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:52:04' and `end` < '2025-01-13 15:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:52:18] Production.INFO: count ==5904 [2025-01-13 15:52:21] Production.ERROR: pbx CDR StartTime 2025-01-13 12:52:04 - End Time 2025-01-13 15:52:04 [2025-01-13 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239983', 'tblTempUsageDetail_20' ) start [2025-01-13 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239983', 'tblTempUsageDetail_20' ) end [2025-01-13 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239983', 'tblTempVendorCDR_20' ) start [2025-01-13 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239983', 'tblTempVendorCDR_20' ) end [2025-01-13 15:52:21] Production.INFO: ProcessCDR(1,14239983,1,1,2) [2025-01-13 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239983', 'tblTempUsageDetail_20' ) start [2025-01-13 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239983', 'tblTempUsageDetail_20' ) end [2025-01-13 15:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:52:26] Production.INFO: ==17406== Releasing lock... [2025-01-13 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:52:26] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:53:05 [end_date_ymd] => 2025-01-13 15:53:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:53:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:53:20] Production.INFO: count ==5912 [2025-01-13 15:53:23] Production.ERROR: pbx CDR StartTime 2025-01-13 12:53:05 - End Time 2025-01-13 15:53:05 [2025-01-13 15:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239988', 'tblTempUsageDetail_20' ) start [2025-01-13 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239988', 'tblTempUsageDetail_20' ) end [2025-01-13 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239988', 'tblTempVendorCDR_20' ) start [2025-01-13 15:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239988', 'tblTempVendorCDR_20' ) end [2025-01-13 15:53:23] Production.INFO: ProcessCDR(1,14239988,1,1,2) [2025-01-13 15:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239988', 'tblTempUsageDetail_20' ) start [2025-01-13 15:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239988', 'tblTempUsageDetail_20' ) end [2025-01-13 15:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:53:28] Production.INFO: ==17475== Releasing lock... [2025-01-13 15:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:53:28] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 15:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:54:04 [end_date_ymd] => 2025-01-13 15:54:04 [RateCDR] => 1 ) [2025-01-13 15:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:54:04' and `end` < '2025-01-13 15:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:54:21] Production.INFO: count ==5907 [2025-01-13 15:54:24] Production.ERROR: pbx CDR StartTime 2025-01-13 12:54:04 - End Time 2025-01-13 15:54:04 [2025-01-13 15:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239993', 'tblTempUsageDetail_20' ) start [2025-01-13 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239993', 'tblTempUsageDetail_20' ) end [2025-01-13 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239993', 'tblTempVendorCDR_20' ) start [2025-01-13 15:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239993', 'tblTempVendorCDR_20' ) end [2025-01-13 15:54:24] Production.INFO: ProcessCDR(1,14239993,1,1,2) [2025-01-13 15:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239993', 'tblTempUsageDetail_20' ) start [2025-01-13 15:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239993', 'tblTempUsageDetail_20' ) end [2025-01-13 15:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:54:29] Production.INFO: ==17545== Releasing lock... [2025-01-13 15:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:54:29] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:55:05 [end_date_ymd] => 2025-01-13 15:55:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:55:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:55:18] Production.INFO: count ==5898 [2025-01-13 15:55:21] Production.ERROR: pbx CDR StartTime 2025-01-13 12:55:05 - End Time 2025-01-13 15:55:05 [2025-01-13 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239998', 'tblTempUsageDetail_20' ) start [2025-01-13 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14239998', 'tblTempUsageDetail_20' ) end [2025-01-13 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239998', 'tblTempVendorCDR_20' ) start [2025-01-13 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14239998', 'tblTempVendorCDR_20' ) end [2025-01-13 15:55:21] Production.INFO: ProcessCDR(1,14239998,1,1,2) [2025-01-13 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14239998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14239998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14239998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14239998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239998', 'tblTempUsageDetail_20' ) start [2025-01-13 15:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14239998', 'tblTempUsageDetail_20' ) end [2025-01-13 15:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:55:25] Production.INFO: ==17616== Releasing lock... [2025-01-13 15:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:55:25] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:56:06 [end_date_ymd] => 2025-01-13 15:56:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:56:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:56:27] Production.INFO: count ==5901 [2025-01-13 15:56:29] Production.ERROR: pbx CDR StartTime 2025-01-13 12:56:06 - End Time 2025-01-13 15:56:06 [2025-01-13 15:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240003', 'tblTempUsageDetail_20' ) start [2025-01-13 15:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240003', 'tblTempUsageDetail_20' ) end [2025-01-13 15:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240003', 'tblTempVendorCDR_20' ) start [2025-01-13 15:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240003', 'tblTempVendorCDR_20' ) end [2025-01-13 15:56:30] Production.INFO: ProcessCDR(1,14240003,1,1,2) [2025-01-13 15:56:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:56:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:56:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:56:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240003', 'tblTempUsageDetail_20' ) start [2025-01-13 15:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240003', 'tblTempUsageDetail_20' ) end [2025-01-13 15:56:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:56:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:56:34] Production.INFO: ==17689== Releasing lock... [2025-01-13 15:56:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:56:34] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:57:05 [end_date_ymd] => 2025-01-13 15:57:05 [RateCDR] => 1 ) [2025-01-13 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 12:57:05' and `end` < '2025-01-13 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 15:57:23] Production.INFO: count ==5910 [2025-01-13 15:57:26] Production.ERROR: pbx CDR StartTime 2025-01-13 12:57:05 - End Time 2025-01-13 15:57:05 [2025-01-13 15:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240008', 'tblTempUsageDetail_20' ) start [2025-01-13 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240008', 'tblTempUsageDetail_20' ) end [2025-01-13 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240008', 'tblTempVendorCDR_20' ) start [2025-01-13 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240008', 'tblTempVendorCDR_20' ) end [2025-01-13 15:57:26] Production.INFO: ProcessCDR(1,14240008,1,1,2) [2025-01-13 15:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240008', 'tblTempUsageDetail_20' ) start [2025-01-13 15:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240008', 'tblTempUsageDetail_20' ) end [2025-01-13 15:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:57:31] Production.INFO: ==17763== Releasing lock... [2025-01-13 15:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:57:31] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:58:05 [end_date_ymd] => 2025-01-13 15:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:58:25] Production.INFO: count ==5917 [2025-01-13 15:58:28] Production.ERROR: pbx CDR StartTime 2025-01-13 12:58:05 - End Time 2025-01-13 15:58:05 [2025-01-13 15:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240013', 'tblTempUsageDetail_20' ) start [2025-01-13 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240013', 'tblTempUsageDetail_20' ) end [2025-01-13 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240013', 'tblTempVendorCDR_20' ) start [2025-01-13 15:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240013', 'tblTempVendorCDR_20' ) end [2025-01-13 15:58:28] Production.INFO: ProcessCDR(1,14240013,1,1,2) [2025-01-13 15:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240013', 'tblTempUsageDetail_20' ) start [2025-01-13 15:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240013', 'tblTempUsageDetail_20' ) end [2025-01-13 15:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:58:33] Production.INFO: ==17838== Releasing lock... [2025-01-13 15:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:58:33] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 12:59:05 [end_date_ymd] => 2025-01-13 15:59:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 12:59:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 15:59:23] Production.INFO: count ==5922 [2025-01-13 15:59:25] Production.ERROR: pbx CDR StartTime 2025-01-13 12:59:05 - End Time 2025-01-13 15:59:05 [2025-01-13 15:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240018', 'tblTempUsageDetail_20' ) start [2025-01-13 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240018', 'tblTempUsageDetail_20' ) end [2025-01-13 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240018', 'tblTempVendorCDR_20' ) start [2025-01-13 15:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240018', 'tblTempVendorCDR_20' ) end [2025-01-13 15:59:25] Production.INFO: ProcessCDR(1,14240018,1,1,2) [2025-01-13 15:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 15:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 15:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240018', 'tblTempUsageDetail_20' ) start [2025-01-13 15:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240018', 'tblTempUsageDetail_20' ) end [2025-01-13 15:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 15:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 15:59:30] Production.INFO: ==17908== Releasing lock... [2025-01-13 15:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 15:59:30] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:00:06 [end_date_ymd] => 2025-01-13 16:00:06 [RateCDR] => 1 ) [2025-01-13 16: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` >= '2025-01-13 13:00:06' and `end` < '2025-01-13 16: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 ,'') [2025-01-13 16:00:31] Production.INFO: count ==5927 [2025-01-13 16:00:34] Production.ERROR: pbx CDR StartTime 2025-01-13 13:00:06 - End Time 2025-01-13 16:00:06 [2025-01-13 16:00:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240023', 'tblTempUsageDetail_20' ) start [2025-01-13 16:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240023', 'tblTempUsageDetail_20' ) end [2025-01-13 16:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240023', 'tblTempVendorCDR_20' ) start [2025-01-13 16:00:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240023', 'tblTempVendorCDR_20' ) end [2025-01-13 16:00:34] Production.INFO: ProcessCDR(1,14240023,1,1,2) [2025-01-13 16:00:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:00:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:00:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:00:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240023', 'tblTempUsageDetail_20' ) start [2025-01-13 16:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240023', 'tblTempUsageDetail_20' ) end [2025-01-13 16:00:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:00:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:00:39] Production.INFO: ==17982== Releasing lock... [2025-01-13 16:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:00:39] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:01:05 [end_date_ymd] => 2025-01-13 16:01:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:01:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:01:22] Production.INFO: count ==5955 [2025-01-13 16:01:24] Production.ERROR: pbx CDR StartTime 2025-01-13 13:01:05 - End Time 2025-01-13 16:01:05 [2025-01-13 16:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240029', 'tblTempUsageDetail_20' ) start [2025-01-13 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240029', 'tblTempUsageDetail_20' ) end [2025-01-13 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240029', 'tblTempVendorCDR_20' ) start [2025-01-13 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240029', 'tblTempVendorCDR_20' ) end [2025-01-13 16:01:25] Production.INFO: ProcessCDR(1,14240029,1,1,2) [2025-01-13 16:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240029', 'tblTempUsageDetail_20' ) start [2025-01-13 16:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240029', 'tblTempUsageDetail_20' ) end [2025-01-13 16:01:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:01:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:01:29] Production.INFO: ==18067== Releasing lock... [2025-01-13 16:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:01:29] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 16:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:02:04 [end_date_ymd] => 2025-01-13 16:02:04 [RateCDR] => 1 ) [2025-01-13 16:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:02:04' and `end` < '2025-01-13 16:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:02:21] Production.INFO: count ==5946 [2025-01-13 16:02:23] Production.ERROR: pbx CDR StartTime 2025-01-13 13:02:04 - End Time 2025-01-13 16:02:04 [2025-01-13 16:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240034', 'tblTempUsageDetail_20' ) start [2025-01-13 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240034', 'tblTempUsageDetail_20' ) end [2025-01-13 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240034', 'tblTempVendorCDR_20' ) start [2025-01-13 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240034', 'tblTempVendorCDR_20' ) end [2025-01-13 16:02:24] Production.INFO: ProcessCDR(1,14240034,1,1,2) [2025-01-13 16:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240034', 'tblTempUsageDetail_20' ) start [2025-01-13 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240034', 'tblTempUsageDetail_20' ) end [2025-01-13 16:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:02:28] Production.INFO: ==18137== Releasing lock... [2025-01-13 16:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:02:28] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:03:05 [end_date_ymd] => 2025-01-13 16:03:05 [RateCDR] => 1 ) [2025-01-13 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:03:05' and `end` < '2025-01-13 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:03:21] Production.INFO: count ==5936 [2025-01-13 16:03:24] Production.ERROR: pbx CDR StartTime 2025-01-13 13:03:05 - End Time 2025-01-13 16:03:05 [2025-01-13 16:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240039', 'tblTempUsageDetail_20' ) start [2025-01-13 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240039', 'tblTempUsageDetail_20' ) end [2025-01-13 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240039', 'tblTempVendorCDR_20' ) start [2025-01-13 16:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240039', 'tblTempVendorCDR_20' ) end [2025-01-13 16:03:24] Production.INFO: ProcessCDR(1,14240039,1,1,2) [2025-01-13 16:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240039', 'tblTempUsageDetail_20' ) start [2025-01-13 16:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240039', 'tblTempUsageDetail_20' ) end [2025-01-13 16:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:03:29] Production.INFO: ==18206== Releasing lock... [2025-01-13 16:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:03:29] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:04:05 [end_date_ymd] => 2025-01-13 16:04:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:04:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:04:21] Production.INFO: count ==5933 [2025-01-13 16:04:24] Production.ERROR: pbx CDR StartTime 2025-01-13 13:04:05 - End Time 2025-01-13 16:04:05 [2025-01-13 16:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240044', 'tblTempUsageDetail_20' ) start [2025-01-13 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240044', 'tblTempUsageDetail_20' ) end [2025-01-13 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240044', 'tblTempVendorCDR_20' ) start [2025-01-13 16:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240044', 'tblTempVendorCDR_20' ) end [2025-01-13 16:04:24] Production.INFO: ProcessCDR(1,14240044,1,1,2) [2025-01-13 16:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240044', 'tblTempUsageDetail_20' ) start [2025-01-13 16:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240044', 'tblTempUsageDetail_20' ) end [2025-01-13 16:04:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:04:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:04:29] Production.INFO: ==18316== Releasing lock... [2025-01-13 16:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:04:29] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:05:05 [end_date_ymd] => 2025-01-13 16:05:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:05:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:05:23] Production.INFO: count ==5945 [2025-01-13 16:05:25] Production.ERROR: pbx CDR StartTime 2025-01-13 13:05:05 - End Time 2025-01-13 16:05:05 [2025-01-13 16:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240049', 'tblTempUsageDetail_20' ) start [2025-01-13 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240049', 'tblTempUsageDetail_20' ) end [2025-01-13 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240049', 'tblTempVendorCDR_20' ) start [2025-01-13 16:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240049', 'tblTempVendorCDR_20' ) end [2025-01-13 16:05:25] Production.INFO: ProcessCDR(1,14240049,1,1,2) [2025-01-13 16:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240049', 'tblTempUsageDetail_20' ) start [2025-01-13 16:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240049', 'tblTempUsageDetail_20' ) end [2025-01-13 16:05:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:05:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:05:30] Production.INFO: ==18386== Releasing lock... [2025-01-13 16:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:05:30] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:06:05 [end_date_ymd] => 2025-01-13 16:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:06:19] Production.INFO: count ==5943 [2025-01-13 16:06:22] Production.ERROR: pbx CDR StartTime 2025-01-13 13:06:05 - End Time 2025-01-13 16:06:05 [2025-01-13 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240054', 'tblTempUsageDetail_20' ) start [2025-01-13 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240054', 'tblTempUsageDetail_20' ) end [2025-01-13 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240054', 'tblTempVendorCDR_20' ) start [2025-01-13 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240054', 'tblTempVendorCDR_20' ) end [2025-01-13 16:06:22] Production.INFO: ProcessCDR(1,14240054,1,1,2) [2025-01-13 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240054', 'tblTempUsageDetail_20' ) start [2025-01-13 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240054', 'tblTempUsageDetail_20' ) end [2025-01-13 16:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:06:26] Production.INFO: ==18457== Releasing lock... [2025-01-13 16:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:06:26] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:07:04 [end_date_ymd] => 2025-01-13 16:07:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:07:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:07:29] Production.INFO: count ==5986 [2025-01-13 16:07:32] Production.ERROR: pbx CDR StartTime 2025-01-13 13:07:04 - End Time 2025-01-13 16:07:04 [2025-01-13 16:07:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240059', 'tblTempUsageDetail_20' ) start [2025-01-13 16:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240059', 'tblTempUsageDetail_20' ) end [2025-01-13 16:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240059', 'tblTempVendorCDR_20' ) start [2025-01-13 16:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240059', 'tblTempVendorCDR_20' ) end [2025-01-13 16:07:32] Production.INFO: ProcessCDR(1,14240059,1,1,2) [2025-01-13 16:07:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:07:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:07:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:07:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:07:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240059', 'tblTempUsageDetail_20' ) start [2025-01-13 16:07:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240059', 'tblTempUsageDetail_20' ) end [2025-01-13 16:07:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:07:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:07:37] Production.INFO: ==18528== Releasing lock... [2025-01-13 16:07:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:07:37] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:08:05 [end_date_ymd] => 2025-01-13 16:08:05 [RateCDR] => 1 ) [2025-01-13 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:08:05' and `end` < '2025-01-13 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:08:35] Production.INFO: count ==6002 [2025-01-13 16:08:38] Production.ERROR: pbx CDR StartTime 2025-01-13 13:08:05 - End Time 2025-01-13 16:08:05 [2025-01-13 16:08:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240064', 'tblTempUsageDetail_20' ) start [2025-01-13 16:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240064', 'tblTempUsageDetail_20' ) end [2025-01-13 16:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240064', 'tblTempVendorCDR_20' ) start [2025-01-13 16:08:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240064', 'tblTempVendorCDR_20' ) end [2025-01-13 16:08:38] Production.INFO: ProcessCDR(1,14240064,1,1,2) [2025-01-13 16:08:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:08:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:08:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:08:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:08:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240064', 'tblTempUsageDetail_20' ) start [2025-01-13 16:08:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240064', 'tblTempUsageDetail_20' ) end [2025-01-13 16:08:42] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:08:43] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:08:43] Production.INFO: ==18601== Releasing lock... [2025-01-13 16:08:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:08:43] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:09:05 [end_date_ymd] => 2025-01-13 16:09:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:09:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:09:26] Production.INFO: count ==6024 [2025-01-13 16:09:29] Production.ERROR: pbx CDR StartTime 2025-01-13 13:09:05 - End Time 2025-01-13 16:09:05 [2025-01-13 16:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240069', 'tblTempUsageDetail_20' ) start [2025-01-13 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240069', 'tblTempUsageDetail_20' ) end [2025-01-13 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240069', 'tblTempVendorCDR_20' ) start [2025-01-13 16:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240069', 'tblTempVendorCDR_20' ) end [2025-01-13 16:09:29] Production.INFO: ProcessCDR(1,14240069,1,1,2) [2025-01-13 16:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:09:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:09:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240069', 'tblTempUsageDetail_20' ) start [2025-01-13 16:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240069', 'tblTempUsageDetail_20' ) end [2025-01-13 16:09:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:09:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:09:34] Production.INFO: ==18671== Releasing lock... [2025-01-13 16:09:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:09:34] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:10:06 [end_date_ymd] => 2025-01-13 16:10:06 [RateCDR] => 1 ) [2025-01-13 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:10:06' and `end` < '2025-01-13 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:10:29] Production.INFO: count ==6018 [2025-01-13 16:10:32] Production.ERROR: pbx CDR StartTime 2025-01-13 13:10:06 - End Time 2025-01-13 16:10:06 [2025-01-13 16:10:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240075', 'tblTempUsageDetail_20' ) start [2025-01-13 16:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240075', 'tblTempUsageDetail_20' ) end [2025-01-13 16:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240075', 'tblTempVendorCDR_20' ) start [2025-01-13 16:10:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240075', 'tblTempVendorCDR_20' ) end [2025-01-13 16:10:32] Production.INFO: ProcessCDR(1,14240075,1,1,2) [2025-01-13 16:10:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:10:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:10:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:10:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240075', 'tblTempUsageDetail_20' ) start [2025-01-13 16:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240075', 'tblTempUsageDetail_20' ) end [2025-01-13 16:10:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:10:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:10:36] Production.INFO: ==18747== Releasing lock... [2025-01-13 16:10:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:10:36] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:11:05 [end_date_ymd] => 2025-01-13 16:11:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:11:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:11:23] Production.INFO: count ==6011 [2025-01-13 16:11:25] Production.ERROR: pbx CDR StartTime 2025-01-13 13:11:05 - End Time 2025-01-13 16:11:05 [2025-01-13 16:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240080', 'tblTempUsageDetail_20' ) start [2025-01-13 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240080', 'tblTempUsageDetail_20' ) end [2025-01-13 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240080', 'tblTempVendorCDR_20' ) start [2025-01-13 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240080', 'tblTempVendorCDR_20' ) end [2025-01-13 16:11:26] Production.INFO: ProcessCDR(1,14240080,1,1,2) [2025-01-13 16:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240080', 'tblTempUsageDetail_20' ) start [2025-01-13 16:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240080', 'tblTempUsageDetail_20' ) end [2025-01-13 16:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:11:31] Production.INFO: ==18825== Releasing lock... [2025-01-13 16:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:11:31] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:12:05 [end_date_ymd] => 2025-01-13 16:12:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:12:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:12:21] Production.INFO: count ==6003 [2025-01-13 16:12:23] Production.ERROR: pbx CDR StartTime 2025-01-13 13:12:05 - End Time 2025-01-13 16:12:05 [2025-01-13 16:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240085', 'tblTempUsageDetail_20' ) start [2025-01-13 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240085', 'tblTempUsageDetail_20' ) end [2025-01-13 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240085', 'tblTempVendorCDR_20' ) start [2025-01-13 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240085', 'tblTempVendorCDR_20' ) end [2025-01-13 16:12:23] Production.INFO: ProcessCDR(1,14240085,1,1,2) [2025-01-13 16:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240085', 'tblTempUsageDetail_20' ) start [2025-01-13 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240085', 'tblTempUsageDetail_20' ) end [2025-01-13 16:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:12:28] Production.INFO: ==18898== Releasing lock... [2025-01-13 16:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:12:28] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:13:04 [end_date_ymd] => 2025-01-13 16:13:04 [RateCDR] => 1 ) [2025-01-13 16:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:13:04' and `end` < '2025-01-13 16:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:13:25] Production.INFO: count ==6028 [2025-01-13 16:13:27] Production.ERROR: pbx CDR StartTime 2025-01-13 13:13:04 - End Time 2025-01-13 16:13:04 [2025-01-13 16:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240090', 'tblTempUsageDetail_20' ) start [2025-01-13 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240090', 'tblTempUsageDetail_20' ) end [2025-01-13 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240090', 'tblTempVendorCDR_20' ) start [2025-01-13 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240090', 'tblTempVendorCDR_20' ) end [2025-01-13 16:13:27] Production.INFO: ProcessCDR(1,14240090,1,1,2) [2025-01-13 16:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240090', 'tblTempUsageDetail_20' ) start [2025-01-13 16:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240090', 'tblTempUsageDetail_20' ) end [2025-01-13 16:13:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:13:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:13:32] Production.INFO: ==18969== Releasing lock... [2025-01-13 16:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:13:32] Production.INFO: 73.25 MB #Memory Used# [2025-01-13 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:14:05 [end_date_ymd] => 2025-01-13 16:14:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:14:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:14:24] Production.INFO: count ==6014 [2025-01-13 16:14:27] Production.ERROR: pbx CDR StartTime 2025-01-13 13:14:05 - End Time 2025-01-13 16:14:05 [2025-01-13 16:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240095', 'tblTempUsageDetail_20' ) start [2025-01-13 16:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240095', 'tblTempUsageDetail_20' ) end [2025-01-13 16:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240095', 'tblTempVendorCDR_20' ) start [2025-01-13 16:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240095', 'tblTempVendorCDR_20' ) end [2025-01-13 16:14:27] Production.INFO: ProcessCDR(1,14240095,1,1,2) [2025-01-13 16:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240095', 'tblTempUsageDetail_20' ) start [2025-01-13 16:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240095', 'tblTempUsageDetail_20' ) end [2025-01-13 16:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:14:31] Production.INFO: ==19042== Releasing lock... [2025-01-13 16:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:14:31] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:15:04 [end_date_ymd] => 2025-01-13 16:15:04 [RateCDR] => 1 ) [2025-01-13 16:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:15:04' and `end` < '2025-01-13 16:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:15:25] Production.INFO: count ==6009 [2025-01-13 16:15:27] Production.ERROR: pbx CDR StartTime 2025-01-13 13:15:04 - End Time 2025-01-13 16:15:04 [2025-01-13 16:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240100', 'tblTempUsageDetail_20' ) start [2025-01-13 16:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240100', 'tblTempUsageDetail_20' ) end [2025-01-13 16:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240100', 'tblTempVendorCDR_20' ) start [2025-01-13 16:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240100', 'tblTempVendorCDR_20' ) end [2025-01-13 16:15:27] Production.INFO: ProcessCDR(1,14240100,1,1,2) [2025-01-13 16:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240100', 'tblTempUsageDetail_20' ) start [2025-01-13 16:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240100', 'tblTempUsageDetail_20' ) end [2025-01-13 16:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:15:31] Production.INFO: ==19112== Releasing lock... [2025-01-13 16:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:15:31] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:16:05 [end_date_ymd] => 2025-01-13 16:16:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:16:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:16:18] Production.INFO: count ==5994 [2025-01-13 16:16:21] Production.ERROR: pbx CDR StartTime 2025-01-13 13:16:05 - End Time 2025-01-13 16:16:05 [2025-01-13 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240105', 'tblTempUsageDetail_20' ) start [2025-01-13 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240105', 'tblTempUsageDetail_20' ) end [2025-01-13 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240105', 'tblTempVendorCDR_20' ) start [2025-01-13 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240105', 'tblTempVendorCDR_20' ) end [2025-01-13 16:16:21] Production.INFO: ProcessCDR(1,14240105,1,1,2) [2025-01-13 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240105', 'tblTempUsageDetail_20' ) start [2025-01-13 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240105', 'tblTempUsageDetail_20' ) end [2025-01-13 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:16:26] Production.INFO: ==19183== Releasing lock... [2025-01-13 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:16:26] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:17:06 [end_date_ymd] => 2025-01-13 16:17:06 [RateCDR] => 1 ) [2025-01-13 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:17:06' and `end` < '2025-01-13 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:17:36] Production.INFO: count ==5988 [2025-01-13 16:17:39] Production.ERROR: pbx CDR StartTime 2025-01-13 13:17:06 - End Time 2025-01-13 16:17:06 [2025-01-13 16:17:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:17:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240110', 'tblTempUsageDetail_20' ) start [2025-01-13 16:17:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240110', 'tblTempUsageDetail_20' ) end [2025-01-13 16:17:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240110', 'tblTempVendorCDR_20' ) start [2025-01-13 16:17:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240110', 'tblTempVendorCDR_20' ) end [2025-01-13 16:17:39] Production.INFO: ProcessCDR(1,14240110,1,1,2) [2025-01-13 16:17:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:17:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:17:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:17:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:17:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240110', 'tblTempUsageDetail_20' ) start [2025-01-13 16:17:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240110', 'tblTempUsageDetail_20' ) end [2025-01-13 16:17:44] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:17:44] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:17:44] Production.INFO: ==19254== Releasing lock... [2025-01-13 16:17:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:17:44] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:18:05 [end_date_ymd] => 2025-01-13 16:18:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:18:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:18:35] Production.INFO: count ==5995 [2025-01-13 16:18:37] Production.ERROR: pbx CDR StartTime 2025-01-13 13:18:05 - End Time 2025-01-13 16:18:05 [2025-01-13 16:18:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240115', 'tblTempUsageDetail_20' ) start [2025-01-13 16:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240115', 'tblTempUsageDetail_20' ) end [2025-01-13 16:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240115', 'tblTempVendorCDR_20' ) start [2025-01-13 16:18:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240115', 'tblTempVendorCDR_20' ) end [2025-01-13 16:18:37] Production.INFO: ProcessCDR(1,14240115,1,1,2) [2025-01-13 16:18:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:18:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:18:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:18:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:18:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240115', 'tblTempUsageDetail_20' ) start [2025-01-13 16:18:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240115', 'tblTempUsageDetail_20' ) end [2025-01-13 16:18:42] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:18:42] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:18:42] Production.INFO: ==19334== Releasing lock... [2025-01-13 16:18:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:18:42] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:19:05 [end_date_ymd] => 2025-01-13 16:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:19:23] Production.INFO: count ==5994 [2025-01-13 16:19:25] Production.ERROR: pbx CDR StartTime 2025-01-13 13:19:05 - End Time 2025-01-13 16:19:05 [2025-01-13 16:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240120', 'tblTempUsageDetail_20' ) start [2025-01-13 16:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240120', 'tblTempUsageDetail_20' ) end [2025-01-13 16:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240120', 'tblTempVendorCDR_20' ) start [2025-01-13 16:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240120', 'tblTempVendorCDR_20' ) end [2025-01-13 16:19:25] Production.INFO: ProcessCDR(1,14240120,1,1,2) [2025-01-13 16:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:19:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240120', 'tblTempUsageDetail_20' ) start [2025-01-13 16:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240120', 'tblTempUsageDetail_20' ) end [2025-01-13 16:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:19:30] Production.INFO: ==19444== Releasing lock... [2025-01-13 16:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:19:30] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:20:05 [end_date_ymd] => 2025-01-13 16:20:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:20:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:20:26] Production.INFO: count ==5994 [2025-01-13 16:20:29] Production.ERROR: pbx CDR StartTime 2025-01-13 13:20:05 - End Time 2025-01-13 16:20:05 [2025-01-13 16:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240126', 'tblTempUsageDetail_20' ) start [2025-01-13 16:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240126', 'tblTempUsageDetail_20' ) end [2025-01-13 16:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240126', 'tblTempVendorCDR_20' ) start [2025-01-13 16:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240126', 'tblTempVendorCDR_20' ) end [2025-01-13 16:20:29] Production.INFO: ProcessCDR(1,14240126,1,1,2) [2025-01-13 16:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240126', 'tblTempUsageDetail_20' ) start [2025-01-13 16:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240126', 'tblTempUsageDetail_20' ) end [2025-01-13 16:20:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:20:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:20:33] Production.INFO: ==19516== Releasing lock... [2025-01-13 16:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:20:33] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:21:05 [end_date_ymd] => 2025-01-13 16:21:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:21:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:21:25] Production.INFO: count ==5992 [2025-01-13 16:21:28] Production.ERROR: pbx CDR StartTime 2025-01-13 13:21:05 - End Time 2025-01-13 16:21:05 [2025-01-13 16:21:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240131', 'tblTempUsageDetail_20' ) start [2025-01-13 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240131', 'tblTempUsageDetail_20' ) end [2025-01-13 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240131', 'tblTempVendorCDR_20' ) start [2025-01-13 16:21:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240131', 'tblTempVendorCDR_20' ) end [2025-01-13 16:21:28] Production.INFO: ProcessCDR(1,14240131,1,1,2) [2025-01-13 16:21:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240131', 'tblTempUsageDetail_20' ) start [2025-01-13 16:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240131', 'tblTempUsageDetail_20' ) end [2025-01-13 16:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:21:32] Production.INFO: ==19592== Releasing lock... [2025-01-13 16:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:21:32] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:22:04 [end_date_ymd] => 2025-01-13 16:22:04 [RateCDR] => 1 ) [2025-01-13 16:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:22:04' and `end` < '2025-01-13 16:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:22:21] Production.INFO: count ==6002 [2025-01-13 16:22:23] Production.ERROR: pbx CDR StartTime 2025-01-13 13:22:04 - End Time 2025-01-13 16:22:04 [2025-01-13 16:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240136', 'tblTempUsageDetail_20' ) start [2025-01-13 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240136', 'tblTempUsageDetail_20' ) end [2025-01-13 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240136', 'tblTempVendorCDR_20' ) start [2025-01-13 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240136', 'tblTempVendorCDR_20' ) end [2025-01-13 16:22:24] Production.INFO: ProcessCDR(1,14240136,1,1,2) [2025-01-13 16:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240136', 'tblTempUsageDetail_20' ) start [2025-01-13 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240136', 'tblTempUsageDetail_20' ) end [2025-01-13 16:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:22:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:22:28] Production.INFO: ==19664== Releasing lock... [2025-01-13 16:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:22:28] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:23:05 [end_date_ymd] => 2025-01-13 16:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:23:20] Production.INFO: count ==6005 [2025-01-13 16:23:23] Production.ERROR: pbx CDR StartTime 2025-01-13 13:23:05 - End Time 2025-01-13 16:23:05 [2025-01-13 16:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240141', 'tblTempUsageDetail_20' ) start [2025-01-13 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240141', 'tblTempUsageDetail_20' ) end [2025-01-13 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240141', 'tblTempVendorCDR_20' ) start [2025-01-13 16:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240141', 'tblTempVendorCDR_20' ) end [2025-01-13 16:23:23] Production.INFO: ProcessCDR(1,14240141,1,1,2) [2025-01-13 16:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240141', 'tblTempUsageDetail_20' ) start [2025-01-13 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240141', 'tblTempUsageDetail_20' ) end [2025-01-13 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:23:27] Production.INFO: ==19734== Releasing lock... [2025-01-13 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:23:27] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:24:05 [end_date_ymd] => 2025-01-13 16:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:24:05' and `end` < '2025-01-13 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:24:24] Production.INFO: count ==5988 [2025-01-13 16:24:27] Production.ERROR: pbx CDR StartTime 2025-01-13 13:24:05 - End Time 2025-01-13 16:24:05 [2025-01-13 16:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240146', 'tblTempUsageDetail_20' ) start [2025-01-13 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240146', 'tblTempUsageDetail_20' ) end [2025-01-13 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240146', 'tblTempVendorCDR_20' ) start [2025-01-13 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240146', 'tblTempVendorCDR_20' ) end [2025-01-13 16:24:27] Production.INFO: ProcessCDR(1,14240146,1,1,2) [2025-01-13 16:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240146', 'tblTempUsageDetail_20' ) start [2025-01-13 16:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240146', 'tblTempUsageDetail_20' ) end [2025-01-13 16:24:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:24:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:24:32] Production.INFO: ==19809== Releasing lock... [2025-01-13 16:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:24:32] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:25:05 [end_date_ymd] => 2025-01-13 16:25:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:25:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:25:20] Production.INFO: count ==5977 [2025-01-13 16:25:23] Production.ERROR: pbx CDR StartTime 2025-01-13 13:25:05 - End Time 2025-01-13 16:25:05 [2025-01-13 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240151', 'tblTempUsageDetail_20' ) start [2025-01-13 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240151', 'tblTempUsageDetail_20' ) end [2025-01-13 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240151', 'tblTempVendorCDR_20' ) start [2025-01-13 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240151', 'tblTempVendorCDR_20' ) end [2025-01-13 16:25:23] Production.INFO: ProcessCDR(1,14240151,1,1,2) [2025-01-13 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240151', 'tblTempUsageDetail_20' ) start [2025-01-13 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240151', 'tblTempUsageDetail_20' ) end [2025-01-13 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:25:28] Production.INFO: ==19881== Releasing lock... [2025-01-13 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:25:28] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:26:05 [end_date_ymd] => 2025-01-13 16:26:05 [RateCDR] => 1 ) [2025-01-13 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:26:05' and `end` < '2025-01-13 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:26:24] Production.INFO: count ==5969 [2025-01-13 16:26:26] Production.ERROR: pbx CDR StartTime 2025-01-13 13:26:05 - End Time 2025-01-13 16:26:05 [2025-01-13 16:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240156', 'tblTempUsageDetail_20' ) start [2025-01-13 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240156', 'tblTempUsageDetail_20' ) end [2025-01-13 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240156', 'tblTempVendorCDR_20' ) start [2025-01-13 16:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240156', 'tblTempVendorCDR_20' ) end [2025-01-13 16:26:26] Production.INFO: ProcessCDR(1,14240156,1,1,2) [2025-01-13 16:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240156', 'tblTempUsageDetail_20' ) start [2025-01-13 16:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240156', 'tblTempUsageDetail_20' ) end [2025-01-13 16:26:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:26:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:26:31] Production.INFO: ==19952== Releasing lock... [2025-01-13 16:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:26:31] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:27:05 [end_date_ymd] => 2025-01-13 16:27:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:27:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:27:21] Production.INFO: count ==5972 [2025-01-13 16:27:24] Production.ERROR: pbx CDR StartTime 2025-01-13 13:27:05 - End Time 2025-01-13 16:27:05 [2025-01-13 16:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240161', 'tblTempUsageDetail_20' ) start [2025-01-13 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240161', 'tblTempUsageDetail_20' ) end [2025-01-13 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240161', 'tblTempVendorCDR_20' ) start [2025-01-13 16:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240161', 'tblTempVendorCDR_20' ) end [2025-01-13 16:27:24] Production.INFO: ProcessCDR(1,14240161,1,1,2) [2025-01-13 16:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240161', 'tblTempUsageDetail_20' ) start [2025-01-13 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240161', 'tblTempUsageDetail_20' ) end [2025-01-13 16:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:27:28] Production.INFO: ==20044== Releasing lock... [2025-01-13 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:27:28] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:28:05 [end_date_ymd] => 2025-01-13 16:28:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:28:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:28:36] Production.INFO: count ==6013 [2025-01-13 16:28:38] Production.ERROR: pbx CDR StartTime 2025-01-13 13:28:05 - End Time 2025-01-13 16:28:05 [2025-01-13 16:28:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240166', 'tblTempUsageDetail_20' ) start [2025-01-13 16:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240166', 'tblTempUsageDetail_20' ) end [2025-01-13 16:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240166', 'tblTempVendorCDR_20' ) start [2025-01-13 16:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240166', 'tblTempVendorCDR_20' ) end [2025-01-13 16:28:38] Production.INFO: ProcessCDR(1,14240166,1,1,2) [2025-01-13 16:28:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:28:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:28:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:28:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:28:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240166', 'tblTempUsageDetail_20' ) start [2025-01-13 16:28:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240166', 'tblTempUsageDetail_20' ) end [2025-01-13 16:28:43] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:28:43] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:28:43] Production.INFO: ==20115== Releasing lock... [2025-01-13 16:28:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:28:43] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:29:05 [end_date_ymd] => 2025-01-13 16:29:05 [RateCDR] => 1 ) [2025-01-13 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:29:05' and `end` < '2025-01-13 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:29:27] Production.INFO: count ==6006 [2025-01-13 16:29:29] Production.ERROR: pbx CDR StartTime 2025-01-13 13:29:05 - End Time 2025-01-13 16:29:05 [2025-01-13 16:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240171', 'tblTempUsageDetail_20' ) start [2025-01-13 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240171', 'tblTempUsageDetail_20' ) end [2025-01-13 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240171', 'tblTempVendorCDR_20' ) start [2025-01-13 16:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240171', 'tblTempVendorCDR_20' ) end [2025-01-13 16:29:29] Production.INFO: ProcessCDR(1,14240171,1,1,2) [2025-01-13 16:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:29:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:29:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240171', 'tblTempUsageDetail_20' ) start [2025-01-13 16:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240171', 'tblTempUsageDetail_20' ) end [2025-01-13 16:29:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:29:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:29:34] Production.INFO: ==20185== Releasing lock... [2025-01-13 16:29:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:29:34] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:30:06 [end_date_ymd] => 2025-01-13 16:30:06 [RateCDR] => 1 ) [2025-01-13 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:30:06' and `end` < '2025-01-13 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:30:31] Production.INFO: count ==6018 [2025-01-13 16:30:34] Production.ERROR: pbx CDR StartTime 2025-01-13 13:30:06 - End Time 2025-01-13 16:30:06 [2025-01-13 16:30:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240177', 'tblTempUsageDetail_20' ) start [2025-01-13 16:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240177', 'tblTempUsageDetail_20' ) end [2025-01-13 16:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240177', 'tblTempVendorCDR_20' ) start [2025-01-13 16:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240177', 'tblTempVendorCDR_20' ) end [2025-01-13 16:30:34] Production.INFO: ProcessCDR(1,14240177,1,1,2) [2025-01-13 16:30:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:30:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:30:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:30:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240177', 'tblTempUsageDetail_20' ) start [2025-01-13 16:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240177', 'tblTempUsageDetail_20' ) end [2025-01-13 16:30:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:30:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:30:39] Production.INFO: ==20257== Releasing lock... [2025-01-13 16:30:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:30:39] Production.INFO: 73 MB #Memory Used# [2025-01-13 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:31:04 [end_date_ymd] => 2025-01-13 16:31:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:31:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:31:27] Production.INFO: count ==6031 [2025-01-13 16:31:30] Production.ERROR: pbx CDR StartTime 2025-01-13 13:31:04 - End Time 2025-01-13 16:31:04 [2025-01-13 16:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240182', 'tblTempUsageDetail_20' ) start [2025-01-13 16:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240182', 'tblTempUsageDetail_20' ) end [2025-01-13 16:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240182', 'tblTempVendorCDR_20' ) start [2025-01-13 16:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240182', 'tblTempVendorCDR_20' ) end [2025-01-13 16:31:30] Production.INFO: ProcessCDR(1,14240182,1,1,2) [2025-01-13 16:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:31:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:31:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:31:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240182', 'tblTempUsageDetail_20' ) start [2025-01-13 16:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240182', 'tblTempUsageDetail_20' ) end [2025-01-13 16:31:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:31:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:31:35] Production.INFO: ==20328== Releasing lock... [2025-01-13 16:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:31:35] Production.INFO: 73.25 MB #Memory Used# [2025-01-13 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:32:05 [end_date_ymd] => 2025-01-13 16:32:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:32:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:32:23] Production.INFO: count ==5990 [2025-01-13 16:32:25] Production.ERROR: pbx CDR StartTime 2025-01-13 13:32:05 - End Time 2025-01-13 16:32:05 [2025-01-13 16:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240187', 'tblTempUsageDetail_20' ) start [2025-01-13 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240187', 'tblTempUsageDetail_20' ) end [2025-01-13 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240187', 'tblTempVendorCDR_20' ) start [2025-01-13 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240187', 'tblTempVendorCDR_20' ) end [2025-01-13 16:32:26] Production.INFO: ProcessCDR(1,14240187,1,1,2) [2025-01-13 16:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240187', 'tblTempUsageDetail_20' ) start [2025-01-13 16:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240187', 'tblTempUsageDetail_20' ) end [2025-01-13 16:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:32:30] Production.INFO: ==20400== Releasing lock... [2025-01-13 16:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:32:30] Production.INFO: 72.75 MB #Memory Used# [2025-01-13 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:33:05 [end_date_ymd] => 2025-01-13 16:33:05 [RateCDR] => 1 ) [2025-01-13 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:33:05' and `end` < '2025-01-13 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:33:35] Production.INFO: count ==5955 [2025-01-13 16:33:37] Production.ERROR: pbx CDR StartTime 2025-01-13 13:33:05 - End Time 2025-01-13 16:33:05 [2025-01-13 16:33:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:33:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240192', 'tblTempUsageDetail_20' ) start [2025-01-13 16:33:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240192', 'tblTempUsageDetail_20' ) end [2025-01-13 16:33:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240192', 'tblTempVendorCDR_20' ) start [2025-01-13 16:33:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240192', 'tblTempVendorCDR_20' ) end [2025-01-13 16:33:37] Production.INFO: ProcessCDR(1,14240192,1,1,2) [2025-01-13 16:33:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:33:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:33:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:33:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:33:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240192', 'tblTempUsageDetail_20' ) start [2025-01-13 16:33:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240192', 'tblTempUsageDetail_20' ) end [2025-01-13 16:33:42] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:33:42] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:33:42] Production.INFO: ==20471== Releasing lock... [2025-01-13 16:33:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:33:42] Production.INFO: 72.5 MB #Memory Used# [2025-01-13 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:34:05 [end_date_ymd] => 2025-01-13 16:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:34:26] Production.INFO: count ==5900 [2025-01-13 16:34:29] Production.ERROR: pbx CDR StartTime 2025-01-13 13:34:05 - End Time 2025-01-13 16:34:05 [2025-01-13 16:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240197', 'tblTempUsageDetail_20' ) start [2025-01-13 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240197', 'tblTempUsageDetail_20' ) end [2025-01-13 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240197', 'tblTempVendorCDR_20' ) start [2025-01-13 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240197', 'tblTempVendorCDR_20' ) end [2025-01-13 16:34:29] Production.INFO: ProcessCDR(1,14240197,1,1,2) [2025-01-13 16:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240197', 'tblTempUsageDetail_20' ) start [2025-01-13 16:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240197', 'tblTempUsageDetail_20' ) end [2025-01-13 16:34:34] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:34:34] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:34:34] Production.INFO: ==20541== Releasing lock... [2025-01-13 16:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:34:34] Production.INFO: 72.25 MB #Memory Used# [2025-01-13 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:35:05 [end_date_ymd] => 2025-01-13 16:35:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:35:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:35:30] Production.INFO: count ==5842 [2025-01-13 16:35:33] Production.ERROR: pbx CDR StartTime 2025-01-13 13:35:05 - End Time 2025-01-13 16:35:05 [2025-01-13 16:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240202', 'tblTempUsageDetail_20' ) start [2025-01-13 16:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240202', 'tblTempUsageDetail_20' ) end [2025-01-13 16:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240202', 'tblTempVendorCDR_20' ) start [2025-01-13 16:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240202', 'tblTempVendorCDR_20' ) end [2025-01-13 16:35:33] Production.INFO: ProcessCDR(1,14240202,1,1,2) [2025-01-13 16:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:35:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240202', 'tblTempUsageDetail_20' ) start [2025-01-13 16:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240202', 'tblTempUsageDetail_20' ) end [2025-01-13 16:35:38] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:35:38] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:35:38] Production.INFO: ==20657== Releasing lock... [2025-01-13 16:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:35:38] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:36:05 [end_date_ymd] => 2025-01-13 16:36:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:36:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:36:23] Production.INFO: count ==5808 [2025-01-13 16:36:25] Production.ERROR: pbx CDR StartTime 2025-01-13 13:36:05 - End Time 2025-01-13 16:36:05 [2025-01-13 16:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240207', 'tblTempUsageDetail_20' ) start [2025-01-13 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240207', 'tblTempUsageDetail_20' ) end [2025-01-13 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240207', 'tblTempVendorCDR_20' ) start [2025-01-13 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240207', 'tblTempVendorCDR_20' ) end [2025-01-13 16:36:26] Production.INFO: ProcessCDR(1,14240207,1,1,2) [2025-01-13 16:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240207', 'tblTempUsageDetail_20' ) start [2025-01-13 16:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240207', 'tblTempUsageDetail_20' ) end [2025-01-13 16:36:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:36:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:36:30] Production.INFO: ==20728== Releasing lock... [2025-01-13 16:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:36:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:37:05 [end_date_ymd] => 2025-01-13 16:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:37:19] Production.INFO: count ==5771 [2025-01-13 16:37:22] Production.ERROR: pbx CDR StartTime 2025-01-13 13:37:05 - End Time 2025-01-13 16:37:05 [2025-01-13 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240212', 'tblTempUsageDetail_20' ) start [2025-01-13 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240212', 'tblTempUsageDetail_20' ) end [2025-01-13 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240212', 'tblTempVendorCDR_20' ) start [2025-01-13 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240212', 'tblTempVendorCDR_20' ) end [2025-01-13 16:37:22] Production.INFO: ProcessCDR(1,14240212,1,1,2) [2025-01-13 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240212', 'tblTempUsageDetail_20' ) start [2025-01-13 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240212', 'tblTempUsageDetail_20' ) end [2025-01-13 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:37:26] Production.INFO: ==20803== Releasing lock... [2025-01-13 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:37:26] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:38:05 [end_date_ymd] => 2025-01-13 16:38:05 [RateCDR] => 1 ) [2025-01-13 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:38:05' and `end` < '2025-01-13 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:38:36] Production.INFO: count ==5770 [2025-01-13 16:38:38] Production.ERROR: pbx CDR StartTime 2025-01-13 13:38:05 - End Time 2025-01-13 16:38:05 [2025-01-13 16:38:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240217', 'tblTempUsageDetail_20' ) start [2025-01-13 16:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240217', 'tblTempUsageDetail_20' ) end [2025-01-13 16:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240217', 'tblTempVendorCDR_20' ) start [2025-01-13 16:38:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240217', 'tblTempVendorCDR_20' ) end [2025-01-13 16:38:38] Production.INFO: ProcessCDR(1,14240217,1,1,2) [2025-01-13 16:38:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:38:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:38:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:38:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:38:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240217', 'tblTempUsageDetail_20' ) start [2025-01-13 16:38:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240217', 'tblTempUsageDetail_20' ) end [2025-01-13 16:38:42] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:38:42] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:38:42] Production.INFO: ==20875== Releasing lock... [2025-01-13 16:38:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:38:42] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:39:05 [end_date_ymd] => 2025-01-13 16:39:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:39:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:39:26] Production.INFO: count ==5837 [2025-01-13 16:39:28] Production.ERROR: pbx CDR StartTime 2025-01-13 13:39:05 - End Time 2025-01-13 16:39:05 [2025-01-13 16:39:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240222', 'tblTempUsageDetail_20' ) start [2025-01-13 16:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240222', 'tblTempUsageDetail_20' ) end [2025-01-13 16:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240222', 'tblTempVendorCDR_20' ) start [2025-01-13 16:39:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240222', 'tblTempVendorCDR_20' ) end [2025-01-13 16:39:28] Production.INFO: ProcessCDR(1,14240222,1,1,2) [2025-01-13 16:39:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:39:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:39:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:39:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240222', 'tblTempUsageDetail_20' ) start [2025-01-13 16:39:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240222', 'tblTempUsageDetail_20' ) end [2025-01-13 16:39:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:39:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:39:33] Production.INFO: ==20946== Releasing lock... [2025-01-13 16:39:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:39:33] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:40:05 [end_date_ymd] => 2025-01-13 16:40:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:40:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:40:25] Production.INFO: count ==5818 [2025-01-13 16:40:28] Production.ERROR: pbx CDR StartTime 2025-01-13 13:40:05 - End Time 2025-01-13 16:40:05 [2025-01-13 16:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240228', 'tblTempUsageDetail_20' ) start [2025-01-13 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240228', 'tblTempUsageDetail_20' ) end [2025-01-13 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240228', 'tblTempVendorCDR_20' ) start [2025-01-13 16:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240228', 'tblTempVendorCDR_20' ) end [2025-01-13 16:40:28] Production.INFO: ProcessCDR(1,14240228,1,1,2) [2025-01-13 16:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240228', 'tblTempUsageDetail_20' ) start [2025-01-13 16:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240228', 'tblTempUsageDetail_20' ) end [2025-01-13 16:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:40:32] Production.INFO: ==21018== Releasing lock... [2025-01-13 16:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:40:32] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:41:05 [end_date_ymd] => 2025-01-13 16:41:05 [RateCDR] => 1 ) [2025-01-13 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:41:05' and `end` < '2025-01-13 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:41:23] Production.INFO: count ==5809 [2025-01-13 16:41:26] Production.ERROR: pbx CDR StartTime 2025-01-13 13:41:05 - End Time 2025-01-13 16:41:05 [2025-01-13 16:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240233', 'tblTempUsageDetail_20' ) start [2025-01-13 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240233', 'tblTempUsageDetail_20' ) end [2025-01-13 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240233', 'tblTempVendorCDR_20' ) start [2025-01-13 16:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240233', 'tblTempVendorCDR_20' ) end [2025-01-13 16:41:26] Production.INFO: ProcessCDR(1,14240233,1,1,2) [2025-01-13 16:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240233', 'tblTempUsageDetail_20' ) start [2025-01-13 16:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240233', 'tblTempUsageDetail_20' ) end [2025-01-13 16:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:41:31] Production.INFO: ==21091== Releasing lock... [2025-01-13 16:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:41:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 16:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:42:04 [end_date_ymd] => 2025-01-13 16:42:04 [RateCDR] => 1 ) [2025-01-13 16:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:42:04' and `end` < '2025-01-13 16:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:42:18] Production.INFO: count ==5809 [2025-01-13 16:42:20] Production.ERROR: pbx CDR StartTime 2025-01-13 13:42:04 - End Time 2025-01-13 16:42:04 [2025-01-13 16:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240238', 'tblTempUsageDetail_20' ) start [2025-01-13 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240238', 'tblTempUsageDetail_20' ) end [2025-01-13 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240238', 'tblTempVendorCDR_20' ) start [2025-01-13 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240238', 'tblTempVendorCDR_20' ) end [2025-01-13 16:42:21] Production.INFO: ProcessCDR(1,14240238,1,1,2) [2025-01-13 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240238', 'tblTempUsageDetail_20' ) start [2025-01-13 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240238', 'tblTempUsageDetail_20' ) end [2025-01-13 16:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:42:25] Production.INFO: ==21160== Releasing lock... [2025-01-13 16:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:42:25] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:43:05 [end_date_ymd] => 2025-01-13 16:43:05 [RateCDR] => 1 ) [2025-01-13 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:43:05' and `end` < '2025-01-13 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:43:27] Production.INFO: count ==5790 [2025-01-13 16:43:30] Production.ERROR: pbx CDR StartTime 2025-01-13 13:43:05 - End Time 2025-01-13 16:43:05 [2025-01-13 16:43:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240243', 'tblTempUsageDetail_20' ) start [2025-01-13 16:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240243', 'tblTempUsageDetail_20' ) end [2025-01-13 16:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240243', 'tblTempVendorCDR_20' ) start [2025-01-13 16:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240243', 'tblTempVendorCDR_20' ) end [2025-01-13 16:43:30] Production.INFO: ProcessCDR(1,14240243,1,1,2) [2025-01-13 16:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:43:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:43:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:43:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240243', 'tblTempUsageDetail_20' ) start [2025-01-13 16:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240243', 'tblTempUsageDetail_20' ) end [2025-01-13 16:43:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:43:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:43:35] Production.INFO: ==21230== Releasing lock... [2025-01-13 16:43:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:43:35] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:44:05 [end_date_ymd] => 2025-01-13 16:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:44:22] Production.INFO: count ==5801 [2025-01-13 16:44:24] Production.ERROR: pbx CDR StartTime 2025-01-13 13:44:05 - End Time 2025-01-13 16:44:05 [2025-01-13 16:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240248', 'tblTempUsageDetail_20' ) start [2025-01-13 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240248', 'tblTempUsageDetail_20' ) end [2025-01-13 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240248', 'tblTempVendorCDR_20' ) start [2025-01-13 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240248', 'tblTempVendorCDR_20' ) end [2025-01-13 16:44:24] Production.INFO: ProcessCDR(1,14240248,1,1,2) [2025-01-13 16:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240248', 'tblTempUsageDetail_20' ) start [2025-01-13 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240248', 'tblTempUsageDetail_20' ) end [2025-01-13 16:44:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:44:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:44:29] Production.INFO: ==21303== Releasing lock... [2025-01-13 16:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:44:29] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:45:05 [end_date_ymd] => 2025-01-13 16:45:05 [RateCDR] => 1 ) [2025-01-13 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:45:05' and `end` < '2025-01-13 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:45:20] Production.INFO: count ==5793 [2025-01-13 16:45:22] Production.ERROR: pbx CDR StartTime 2025-01-13 13:45:05 - End Time 2025-01-13 16:45:05 [2025-01-13 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240253', 'tblTempUsageDetail_20' ) start [2025-01-13 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240253', 'tblTempUsageDetail_20' ) end [2025-01-13 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240253', 'tblTempVendorCDR_20' ) start [2025-01-13 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240253', 'tblTempVendorCDR_20' ) end [2025-01-13 16:45:22] Production.INFO: ProcessCDR(1,14240253,1,1,2) [2025-01-13 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240253', 'tblTempUsageDetail_20' ) start [2025-01-13 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240253', 'tblTempUsageDetail_20' ) end [2025-01-13 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:45:27] Production.INFO: ==21374== Releasing lock... [2025-01-13 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:45:27] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:46:05 [end_date_ymd] => 2025-01-13 16:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:46:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:46:24] Production.INFO: count ==5815 [2025-01-13 16:46:26] Production.ERROR: pbx CDR StartTime 2025-01-13 13:46:05 - End Time 2025-01-13 16:46:05 [2025-01-13 16:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240258', 'tblTempUsageDetail_20' ) start [2025-01-13 16:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240258', 'tblTempUsageDetail_20' ) end [2025-01-13 16:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240258', 'tblTempVendorCDR_20' ) start [2025-01-13 16:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240258', 'tblTempVendorCDR_20' ) end [2025-01-13 16:46:26] Production.INFO: ProcessCDR(1,14240258,1,1,2) [2025-01-13 16:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240258', 'tblTempUsageDetail_20' ) start [2025-01-13 16:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240258', 'tblTempUsageDetail_20' ) end [2025-01-13 16:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:46:31] Production.INFO: ==21447== Releasing lock... [2025-01-13 16:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:46:31] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:47:05 [end_date_ymd] => 2025-01-13 16:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:47:18] Production.INFO: count ==5828 [2025-01-13 16:47:20] Production.ERROR: pbx CDR StartTime 2025-01-13 13:47:05 - End Time 2025-01-13 16:47:05 [2025-01-13 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240263', 'tblTempUsageDetail_20' ) start [2025-01-13 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240263', 'tblTempUsageDetail_20' ) end [2025-01-13 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240263', 'tblTempVendorCDR_20' ) start [2025-01-13 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240263', 'tblTempVendorCDR_20' ) end [2025-01-13 16:47:21] Production.INFO: ProcessCDR(1,14240263,1,1,2) [2025-01-13 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240263', 'tblTempUsageDetail_20' ) start [2025-01-13 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240263', 'tblTempUsageDetail_20' ) end [2025-01-13 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:47:25] Production.INFO: ==21519== Releasing lock... [2025-01-13 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:47:25] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:48:05 [end_date_ymd] => 2025-01-13 16:48:05 [RateCDR] => 1 ) [2025-01-13 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:48:05' and `end` < '2025-01-13 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:48:23] Production.INFO: count ==5823 [2025-01-13 16:48:25] Production.ERROR: pbx CDR StartTime 2025-01-13 13:48:05 - End Time 2025-01-13 16:48:05 [2025-01-13 16:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240268', 'tblTempUsageDetail_20' ) start [2025-01-13 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240268', 'tblTempUsageDetail_20' ) end [2025-01-13 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240268', 'tblTempVendorCDR_20' ) start [2025-01-13 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240268', 'tblTempVendorCDR_20' ) end [2025-01-13 16:48:25] Production.INFO: ProcessCDR(1,14240268,1,1,2) [2025-01-13 16:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240268', 'tblTempUsageDetail_20' ) start [2025-01-13 16:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240268', 'tblTempUsageDetail_20' ) end [2025-01-13 16:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:48:30] Production.INFO: ==21591== Releasing lock... [2025-01-13 16:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:48:30] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:49:05 [end_date_ymd] => 2025-01-13 16:49:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:49:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:49:18] Production.INFO: count ==5826 [2025-01-13 16:49:21] Production.ERROR: pbx CDR StartTime 2025-01-13 13:49:05 - End Time 2025-01-13 16:49:05 [2025-01-13 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240273', 'tblTempUsageDetail_20' ) start [2025-01-13 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240273', 'tblTempUsageDetail_20' ) end [2025-01-13 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240273', 'tblTempVendorCDR_20' ) start [2025-01-13 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240273', 'tblTempVendorCDR_20' ) end [2025-01-13 16:49:21] Production.INFO: ProcessCDR(1,14240273,1,1,2) [2025-01-13 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240273', 'tblTempUsageDetail_20' ) start [2025-01-13 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240273', 'tblTempUsageDetail_20' ) end [2025-01-13 16:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:49:25] Production.INFO: ==21660== Releasing lock... [2025-01-13 16:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:49:25] Production.INFO: 71.5 MB #Memory Used# [2025-01-13 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:50:06 [end_date_ymd] => 2025-01-13 16:50:06 [RateCDR] => 1 ) [2025-01-13 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:50:06' and `end` < '2025-01-13 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:50:21] Production.INFO: count ==5837 [2025-01-13 16:50:23] Production.ERROR: pbx CDR StartTime 2025-01-13 13:50:06 - End Time 2025-01-13 16:50:06 [2025-01-13 16:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240279', 'tblTempUsageDetail_20' ) start [2025-01-13 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240279', 'tblTempUsageDetail_20' ) end [2025-01-13 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240279', 'tblTempVendorCDR_20' ) start [2025-01-13 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240279', 'tblTempVendorCDR_20' ) end [2025-01-13 16:50:23] Production.INFO: ProcessCDR(1,14240279,1,1,2) [2025-01-13 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240279', 'tblTempUsageDetail_20' ) start [2025-01-13 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240279', 'tblTempUsageDetail_20' ) end [2025-01-13 16:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:50:26] Production.INFO: ==21773== Releasing lock... [2025-01-13 16:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:50:26] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:51:04 [end_date_ymd] => 2025-01-13 16:51:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:51:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:51:22] Production.INFO: count ==5845 [2025-01-13 16:51:24] Production.ERROR: pbx CDR StartTime 2025-01-13 13:51:04 - End Time 2025-01-13 16:51:04 [2025-01-13 16:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240284', 'tblTempUsageDetail_20' ) start [2025-01-13 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240284', 'tblTempUsageDetail_20' ) end [2025-01-13 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240284', 'tblTempVendorCDR_20' ) start [2025-01-13 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240284', 'tblTempVendorCDR_20' ) end [2025-01-13 16:51:24] Production.INFO: ProcessCDR(1,14240284,1,1,2) [2025-01-13 16:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240284', 'tblTempUsageDetail_20' ) start [2025-01-13 16:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240284', 'tblTempUsageDetail_20' ) end [2025-01-13 16:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:51:29] Production.INFO: ==21848== Releasing lock... [2025-01-13 16:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:51:29] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:52:05 [end_date_ymd] => 2025-01-13 16:52:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:52:19] Production.INFO: count ==5844 [2025-01-13 16:52:22] Production.ERROR: pbx CDR StartTime 2025-01-13 13:52:05 - End Time 2025-01-13 16:52:05 [2025-01-13 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240289', 'tblTempUsageDetail_20' ) start [2025-01-13 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240289', 'tblTempUsageDetail_20' ) end [2025-01-13 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240289', 'tblTempVendorCDR_20' ) start [2025-01-13 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240289', 'tblTempVendorCDR_20' ) end [2025-01-13 16:52:22] Production.INFO: ProcessCDR(1,14240289,1,1,2) [2025-01-13 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240289', 'tblTempUsageDetail_20' ) start [2025-01-13 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240289', 'tblTempUsageDetail_20' ) end [2025-01-13 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:52:27] Production.INFO: ==21920== Releasing lock... [2025-01-13 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:52:27] Production.INFO: 71.75 MB #Memory Used# [2025-01-13 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:53:05 [end_date_ymd] => 2025-01-13 16:53:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:53:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:53:23] Production.INFO: count ==5791 [2025-01-13 16:53:25] Production.ERROR: pbx CDR StartTime 2025-01-13 13:53:05 - End Time 2025-01-13 16:53:05 [2025-01-13 16:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240294', 'tblTempUsageDetail_20' ) start [2025-01-13 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240294', 'tblTempUsageDetail_20' ) end [2025-01-13 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240294', 'tblTempVendorCDR_20' ) start [2025-01-13 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240294', 'tblTempVendorCDR_20' ) end [2025-01-13 16:53:25] Production.INFO: ProcessCDR(1,14240294,1,1,2) [2025-01-13 16:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240294', 'tblTempUsageDetail_20' ) start [2025-01-13 16:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240294', 'tblTempUsageDetail_20' ) end [2025-01-13 16:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:53:30] Production.INFO: ==21990== Releasing lock... [2025-01-13 16:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:53:30] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:54:05 [end_date_ymd] => 2025-01-13 16:54:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:54:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:54:25] Production.INFO: count ==5787 [2025-01-13 16:54:27] Production.ERROR: pbx CDR StartTime 2025-01-13 13:54:05 - End Time 2025-01-13 16:54:05 [2025-01-13 16:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240299', 'tblTempUsageDetail_20' ) start [2025-01-13 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240299', 'tblTempUsageDetail_20' ) end [2025-01-13 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240299', 'tblTempVendorCDR_20' ) start [2025-01-13 16:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240299', 'tblTempVendorCDR_20' ) end [2025-01-13 16:54:28] Production.INFO: ProcessCDR(1,14240299,1,1,2) [2025-01-13 16:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240299', 'tblTempUsageDetail_20' ) start [2025-01-13 16:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240299', 'tblTempUsageDetail_20' ) end [2025-01-13 16:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:54:33] Production.INFO: ==22059== Releasing lock... [2025-01-13 16:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:54:33] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:55:05 [end_date_ymd] => 2025-01-13 16:55:05 [RateCDR] => 1 ) [2025-01-13 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:55:05' and `end` < '2025-01-13 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:55:19] Production.INFO: count ==5746 [2025-01-13 16:55:22] Production.ERROR: pbx CDR StartTime 2025-01-13 13:55:05 - End Time 2025-01-13 16:55:05 [2025-01-13 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240304', 'tblTempUsageDetail_20' ) start [2025-01-13 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240304', 'tblTempUsageDetail_20' ) end [2025-01-13 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240304', 'tblTempVendorCDR_20' ) start [2025-01-13 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240304', 'tblTempVendorCDR_20' ) end [2025-01-13 16:55:22] Production.INFO: ProcessCDR(1,14240304,1,1,2) [2025-01-13 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240304', 'tblTempUsageDetail_20' ) start [2025-01-13 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240304', 'tblTempUsageDetail_20' ) end [2025-01-13 16:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:55:27] Production.INFO: ==22129== Releasing lock... [2025-01-13 16:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:55:27] Production.INFO: 71 MB #Memory Used# [2025-01-13 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:56:06 [end_date_ymd] => 2025-01-13 16:56:06 [RateCDR] => 1 ) [2025-01-13 16: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` >= '2025-01-13 13:56:06' and `end` < '2025-01-13 16: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 ,'') [2025-01-13 16:56:24] Production.INFO: count ==5726 [2025-01-13 16:56:27] Production.ERROR: pbx CDR StartTime 2025-01-13 13:56:06 - End Time 2025-01-13 16:56:06 [2025-01-13 16:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240309', 'tblTempUsageDetail_20' ) start [2025-01-13 16:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240309', 'tblTempUsageDetail_20' ) end [2025-01-13 16:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240309', 'tblTempVendorCDR_20' ) start [2025-01-13 16:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240309', 'tblTempVendorCDR_20' ) end [2025-01-13 16:56:27] Production.INFO: ProcessCDR(1,14240309,1,1,2) [2025-01-13 16:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240309', 'tblTempUsageDetail_20' ) start [2025-01-13 16:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240309', 'tblTempUsageDetail_20' ) end [2025-01-13 16:56:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:56:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:56:32] Production.INFO: ==22200== Releasing lock... [2025-01-13 16:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:56:32] Production.INFO: 71.25 MB #Memory Used# [2025-01-13 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:57:06 [end_date_ymd] => 2025-01-13 16:57:06 [RateCDR] => 1 ) [2025-01-13 16:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 13:57:06' and `end` < '2025-01-13 16:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 16:57:25] Production.INFO: count ==5721 [2025-01-13 16:57:27] Production.ERROR: pbx CDR StartTime 2025-01-13 13:57:06 - End Time 2025-01-13 16:57:06 [2025-01-13 16:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240314', 'tblTempUsageDetail_20' ) start [2025-01-13 16:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240314', 'tblTempUsageDetail_20' ) end [2025-01-13 16:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240314', 'tblTempVendorCDR_20' ) start [2025-01-13 16:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240314', 'tblTempVendorCDR_20' ) end [2025-01-13 16:57:28] Production.INFO: ProcessCDR(1,14240314,1,1,2) [2025-01-13 16:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240314', 'tblTempUsageDetail_20' ) start [2025-01-13 16:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240314', 'tblTempUsageDetail_20' ) end [2025-01-13 16:57:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:57:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:57:32] Production.INFO: ==22270== Releasing lock... [2025-01-13 16:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:57:32] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:58:05 [end_date_ymd] => 2025-01-13 16:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:58:30] Production.INFO: count ==5696 [2025-01-13 16:58:33] Production.ERROR: pbx CDR StartTime 2025-01-13 13:58:05 - End Time 2025-01-13 16:58:05 [2025-01-13 16:58:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240319', 'tblTempUsageDetail_20' ) start [2025-01-13 16:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240319', 'tblTempUsageDetail_20' ) end [2025-01-13 16:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240319', 'tblTempVendorCDR_20' ) start [2025-01-13 16:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240319', 'tblTempVendorCDR_20' ) end [2025-01-13 16:58:33] Production.INFO: ProcessCDR(1,14240319,1,1,2) [2025-01-13 16:58:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:58:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:58:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:58:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:58:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240319', 'tblTempUsageDetail_20' ) start [2025-01-13 16:58:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240319', 'tblTempUsageDetail_20' ) end [2025-01-13 16:58:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:58:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:58:39] Production.INFO: ==22342== Releasing lock... [2025-01-13 16:58:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:58:39] Production.INFO: 70.75 MB #Memory Used# [2025-01-13 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 13:59:05 [end_date_ymd] => 2025-01-13 16:59:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 13:59:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 16:59:24] Production.INFO: count ==5672 [2025-01-13 16:59:26] Production.ERROR: pbx CDR StartTime 2025-01-13 13:59:05 - End Time 2025-01-13 16:59:05 [2025-01-13 16:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240324', 'tblTempUsageDetail_20' ) start [2025-01-13 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240324', 'tblTempUsageDetail_20' ) end [2025-01-13 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240324', 'tblTempVendorCDR_20' ) start [2025-01-13 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240324', 'tblTempVendorCDR_20' ) end [2025-01-13 16:59:26] Production.INFO: ProcessCDR(1,14240324,1,1,2) [2025-01-13 16:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 16:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 16:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240324', 'tblTempUsageDetail_20' ) start [2025-01-13 16:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240324', 'tblTempUsageDetail_20' ) end [2025-01-13 16:59:31] Production.ERROR: pbx prc_insertCDR start [2025-01-13 16:59:31] Production.ERROR: pbx prc_insertCDR end [2025-01-13 16:59:31] Production.INFO: ==22412== Releasing lock... [2025-01-13 16:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 16:59:31] Production.INFO: 70.5 MB #Memory Used# [2025-01-13 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:00:05 [end_date_ymd] => 2025-01-13 17:00:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:00:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:00:28] Production.INFO: count ==5667 [2025-01-13 17:00:30] Production.ERROR: pbx CDR StartTime 2025-01-13 14:00:05 - End Time 2025-01-13 17:00:05 [2025-01-13 17:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240330', 'tblTempUsageDetail_20' ) start [2025-01-13 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240330', 'tblTempUsageDetail_20' ) end [2025-01-13 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240330', 'tblTempVendorCDR_20' ) start [2025-01-13 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240330', 'tblTempVendorCDR_20' ) end [2025-01-13 17:00:31] Production.INFO: ProcessCDR(1,14240330,1,1,2) [2025-01-13 17:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240330', 'tblTempUsageDetail_20' ) start [2025-01-13 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240330', 'tblTempUsageDetail_20' ) end [2025-01-13 17:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:00:36] Production.INFO: ==22486== Releasing lock... [2025-01-13 17:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:00:36] Production.INFO: 70.5 MB #Memory Used# [2025-01-13 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:01:05 [end_date_ymd] => 2025-01-13 17:01:05 [RateCDR] => 1 ) [2025-01-13 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:01:05' and `end` < '2025-01-13 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:01:19] Production.INFO: count ==5622 [2025-01-13 17:01:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:01:05 - End Time 2025-01-13 17:01:05 [2025-01-13 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240335', 'tblTempUsageDetail_20' ) start [2025-01-13 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240335', 'tblTempUsageDetail_20' ) end [2025-01-13 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240335', 'tblTempVendorCDR_20' ) start [2025-01-13 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240335', 'tblTempVendorCDR_20' ) end [2025-01-13 17:01:21] Production.INFO: ProcessCDR(1,14240335,1,1,2) [2025-01-13 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240335', 'tblTempUsageDetail_20' ) start [2025-01-13 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240335', 'tblTempUsageDetail_20' ) end [2025-01-13 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:01:26] Production.INFO: ==22573== Releasing lock... [2025-01-13 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:01:26] Production.INFO: 70 MB #Memory Used# [2025-01-13 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:02:05 [end_date_ymd] => 2025-01-13 17:02:05 [RateCDR] => 1 ) [2025-01-13 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:02:05' and `end` < '2025-01-13 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:02:18] Production.INFO: count ==5570 [2025-01-13 17:02:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:02:05 - End Time 2025-01-13 17:02:05 [2025-01-13 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240340', 'tblTempUsageDetail_20' ) start [2025-01-13 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240340', 'tblTempUsageDetail_20' ) end [2025-01-13 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240340', 'tblTempVendorCDR_20' ) start [2025-01-13 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240340', 'tblTempVendorCDR_20' ) end [2025-01-13 17:02:21] Production.INFO: ProcessCDR(1,14240340,1,1,2) [2025-01-13 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240340', 'tblTempUsageDetail_20' ) start [2025-01-13 17:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240340', 'tblTempUsageDetail_20' ) end [2025-01-13 17:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:02:24] Production.INFO: ==22643== Releasing lock... [2025-01-13 17:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:02:24] Production.INFO: 69.75 MB #Memory Used# [2025-01-13 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:03:05 [end_date_ymd] => 2025-01-13 17:03:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:03:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:03:22] Production.INFO: count ==5551 [2025-01-13 17:03:25] Production.ERROR: pbx CDR StartTime 2025-01-13 14:03:05 - End Time 2025-01-13 17:03:05 [2025-01-13 17:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240345', 'tblTempUsageDetail_20' ) start [2025-01-13 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240345', 'tblTempUsageDetail_20' ) end [2025-01-13 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240345', 'tblTempVendorCDR_20' ) start [2025-01-13 17:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240345', 'tblTempVendorCDR_20' ) end [2025-01-13 17:03:25] Production.INFO: ProcessCDR(1,14240345,1,1,2) [2025-01-13 17:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240345', 'tblTempUsageDetail_20' ) start [2025-01-13 17:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240345', 'tblTempUsageDetail_20' ) end [2025-01-13 17:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:03:30] Production.INFO: ==22715== Releasing lock... [2025-01-13 17:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:03:30] Production.INFO: 69.5 MB #Memory Used# [2025-01-13 17:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:04:04 [end_date_ymd] => 2025-01-13 17:04:04 [RateCDR] => 1 ) [2025-01-13 17:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:04:04' and `end` < '2025-01-13 17:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:04:27] Production.INFO: count ==5556 [2025-01-13 17:04:30] Production.ERROR: pbx CDR StartTime 2025-01-13 14:04:04 - End Time 2025-01-13 17:04:04 [2025-01-13 17:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240350', 'tblTempUsageDetail_20' ) start [2025-01-13 17:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240350', 'tblTempUsageDetail_20' ) end [2025-01-13 17:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240350', 'tblTempVendorCDR_20' ) start [2025-01-13 17:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240350', 'tblTempVendorCDR_20' ) end [2025-01-13 17:04:30] Production.INFO: ProcessCDR(1,14240350,1,1,2) [2025-01-13 17:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240350', 'tblTempUsageDetail_20' ) start [2025-01-13 17:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240350', 'tblTempUsageDetail_20' ) end [2025-01-13 17:04:35] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:04:35] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:04:35] Production.INFO: ==22791== Releasing lock... [2025-01-13 17:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:04:35] Production.INFO: 69.5 MB #Memory Used# [2025-01-13 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:05:05 [end_date_ymd] => 2025-01-13 17:05:05 [RateCDR] => 1 ) [2025-01-13 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:05:05' and `end` < '2025-01-13 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:05:29] Production.INFO: count ==5550 [2025-01-13 17:05:32] Production.ERROR: pbx CDR StartTime 2025-01-13 14:05:05 - End Time 2025-01-13 17:05:05 [2025-01-13 17:05:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240355', 'tblTempUsageDetail_20' ) start [2025-01-13 17:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240355', 'tblTempUsageDetail_20' ) end [2025-01-13 17:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240355', 'tblTempVendorCDR_20' ) start [2025-01-13 17:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240355', 'tblTempVendorCDR_20' ) end [2025-01-13 17:05:32] Production.INFO: ProcessCDR(1,14240355,1,1,2) [2025-01-13 17:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240355', 'tblTempUsageDetail_20' ) start [2025-01-13 17:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240355', 'tblTempUsageDetail_20' ) end [2025-01-13 17:05:37] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:05:37] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:05:37] Production.INFO: ==22864== Releasing lock... [2025-01-13 17:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:05:37] Production.INFO: 69.5 MB #Memory Used# [2025-01-13 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:06:05 [end_date_ymd] => 2025-01-13 17:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:06:31] Production.INFO: count ==5550 [2025-01-13 17:06:34] Production.ERROR: pbx CDR StartTime 2025-01-13 14:06:05 - End Time 2025-01-13 17:06:05 [2025-01-13 17:06:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240360', 'tblTempUsageDetail_20' ) start [2025-01-13 17:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240360', 'tblTempUsageDetail_20' ) end [2025-01-13 17:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240360', 'tblTempVendorCDR_20' ) start [2025-01-13 17:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240360', 'tblTempVendorCDR_20' ) end [2025-01-13 17:06:34] Production.INFO: ProcessCDR(1,14240360,1,1,2) [2025-01-13 17:06:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:06:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:06:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:06:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240360', 'tblTempUsageDetail_20' ) start [2025-01-13 17:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240360', 'tblTempUsageDetail_20' ) end [2025-01-13 17:06:39] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:06:39] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:06:39] Production.INFO: ==22973== Releasing lock... [2025-01-13 17:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:06:39] Production.INFO: 69.5 MB #Memory Used# [2025-01-13 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:07:05 [end_date_ymd] => 2025-01-13 17:07:05 [RateCDR] => 1 ) [2025-01-13 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:07:05' and `end` < '2025-01-13 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:07:22] Production.INFO: count ==5540 [2025-01-13 17:07:25] Production.ERROR: pbx CDR StartTime 2025-01-13 14:07:05 - End Time 2025-01-13 17:07:05 [2025-01-13 17:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240365', 'tblTempUsageDetail_20' ) start [2025-01-13 17:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240365', 'tblTempUsageDetail_20' ) end [2025-01-13 17:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240365', 'tblTempVendorCDR_20' ) start [2025-01-13 17:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240365', 'tblTempVendorCDR_20' ) end [2025-01-13 17:07:25] Production.INFO: ProcessCDR(1,14240365,1,1,2) [2025-01-13 17:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240365', 'tblTempUsageDetail_20' ) start [2025-01-13 17:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240365', 'tblTempUsageDetail_20' ) end [2025-01-13 17:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:07:30] Production.INFO: ==23044== Releasing lock... [2025-01-13 17:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:07:30] Production.INFO: 69.5 MB #Memory Used# [2025-01-13 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:08:05 [end_date_ymd] => 2025-01-13 17:08:05 [RateCDR] => 1 ) [2025-01-13 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:08:05' and `end` < '2025-01-13 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:08:25] Production.INFO: count ==5543 [2025-01-13 17:08:27] Production.ERROR: pbx CDR StartTime 2025-01-13 14:08:05 - End Time 2025-01-13 17:08:05 [2025-01-13 17:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240370', 'tblTempUsageDetail_20' ) start [2025-01-13 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240370', 'tblTempUsageDetail_20' ) end [2025-01-13 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240370', 'tblTempVendorCDR_20' ) start [2025-01-13 17:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240370', 'tblTempVendorCDR_20' ) end [2025-01-13 17:08:27] Production.INFO: ProcessCDR(1,14240370,1,1,2) [2025-01-13 17:08:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240370', 'tblTempUsageDetail_20' ) start [2025-01-13 17:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240370', 'tblTempUsageDetail_20' ) end [2025-01-13 17:08:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:08:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:08:32] Production.INFO: ==23114== Releasing lock... [2025-01-13 17:08:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:08:32] Production.INFO: 69.5 MB #Memory Used# [2025-01-13 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:09:05 [end_date_ymd] => 2025-01-13 17:09:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:09:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:09:22] Production.INFO: count ==5547 [2025-01-13 17:09:24] Production.ERROR: pbx CDR StartTime 2025-01-13 14:09:05 - End Time 2025-01-13 17:09:05 [2025-01-13 17:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240375', 'tblTempUsageDetail_20' ) start [2025-01-13 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240375', 'tblTempUsageDetail_20' ) end [2025-01-13 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240375', 'tblTempVendorCDR_20' ) start [2025-01-13 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240375', 'tblTempVendorCDR_20' ) end [2025-01-13 17:09:24] Production.INFO: ProcessCDR(1,14240375,1,1,2) [2025-01-13 17:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240375', 'tblTempUsageDetail_20' ) start [2025-01-13 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240375', 'tblTempUsageDetail_20' ) end [2025-01-13 17:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:09:29] Production.INFO: ==23185== Releasing lock... [2025-01-13 17:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:09:29] Production.INFO: 69.5 MB #Memory Used# [2025-01-13 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:10:06 [end_date_ymd] => 2025-01-13 17:10:06 [RateCDR] => 1 ) [2025-01-13 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:10:06' and `end` < '2025-01-13 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:10:21] Production.INFO: count ==5539 [2025-01-13 17:10:23] Production.ERROR: pbx CDR StartTime 2025-01-13 14:10:06 - End Time 2025-01-13 17:10:06 [2025-01-13 17:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240380', 'tblTempUsageDetail_20' ) start [2025-01-13 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240380', 'tblTempUsageDetail_20' ) end [2025-01-13 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240380', 'tblTempVendorCDR_20' ) start [2025-01-13 17:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240380', 'tblTempVendorCDR_20' ) end [2025-01-13 17:10:24] Production.INFO: ProcessCDR(1,14240380,1,1,2) [2025-01-13 17:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240380', 'tblTempUsageDetail_20' ) start [2025-01-13 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240380', 'tblTempUsageDetail_20' ) end [2025-01-13 17:10:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:10:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:10:28] Production.INFO: ==23269== Releasing lock... [2025-01-13 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:10:28] Production.INFO: 69.5 MB #Memory Used# [2025-01-13 17:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:11:04 [end_date_ymd] => 2025-01-13 17:11:04 [RateCDR] => 1 ) [2025-01-13 17:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:11:04' and `end` < '2025-01-13 17:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:11:21] Production.INFO: count ==5519 [2025-01-13 17:11:23] Production.ERROR: pbx CDR StartTime 2025-01-13 14:11:04 - End Time 2025-01-13 17:11:04 [2025-01-13 17:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240386', 'tblTempUsageDetail_20' ) start [2025-01-13 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240386', 'tblTempUsageDetail_20' ) end [2025-01-13 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240386', 'tblTempVendorCDR_20' ) start [2025-01-13 17:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240386', 'tblTempVendorCDR_20' ) end [2025-01-13 17:11:23] Production.INFO: ProcessCDR(1,14240386,1,1,2) [2025-01-13 17:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240386', 'tblTempUsageDetail_20' ) start [2025-01-13 17:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240386', 'tblTempUsageDetail_20' ) end [2025-01-13 17:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:11:28] Production.INFO: ==23356== Releasing lock... [2025-01-13 17:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:11:28] Production.INFO: 69.25 MB #Memory Used# [2025-01-13 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:12:05 [end_date_ymd] => 2025-01-13 17:12:05 [RateCDR] => 1 ) [2025-01-13 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:12:05' and `end` < '2025-01-13 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:12:22] Production.INFO: count ==5508 [2025-01-13 17:12:24] Production.ERROR: pbx CDR StartTime 2025-01-13 14:12:05 - End Time 2025-01-13 17:12:05 [2025-01-13 17:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240391', 'tblTempUsageDetail_20' ) start [2025-01-13 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240391', 'tblTempUsageDetail_20' ) end [2025-01-13 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240391', 'tblTempVendorCDR_20' ) start [2025-01-13 17:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240391', 'tblTempVendorCDR_20' ) end [2025-01-13 17:12:24] Production.INFO: ProcessCDR(1,14240391,1,1,2) [2025-01-13 17:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240391', 'tblTempUsageDetail_20' ) start [2025-01-13 17:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240391', 'tblTempUsageDetail_20' ) end [2025-01-13 17:12:29] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:12:29] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:12:29] Production.INFO: ==23440== Releasing lock... [2025-01-13 17:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:12:29] Production.INFO: 69.25 MB #Memory Used# [2025-01-13 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:13:05 [end_date_ymd] => 2025-01-13 17:13:05 [RateCDR] => 1 ) [2025-01-13 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:13:05' and `end` < '2025-01-13 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:13:19] Production.INFO: count ==5502 [2025-01-13 17:13:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:13:05 - End Time 2025-01-13 17:13:05 [2025-01-13 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240396', 'tblTempUsageDetail_20' ) start [2025-01-13 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240396', 'tblTempUsageDetail_20' ) end [2025-01-13 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240396', 'tblTempVendorCDR_20' ) start [2025-01-13 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240396', 'tblTempVendorCDR_20' ) end [2025-01-13 17:13:21] Production.INFO: ProcessCDR(1,14240396,1,1,2) [2025-01-13 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240396', 'tblTempUsageDetail_20' ) start [2025-01-13 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240396', 'tblTempUsageDetail_20' ) end [2025-01-13 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:13:26] Production.INFO: ==23522== Releasing lock... [2025-01-13 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:13:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-13 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:14:05 [end_date_ymd] => 2025-01-13 17:14:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:14:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:14:19] Production.INFO: count ==5461 [2025-01-13 17:14:22] Production.ERROR: pbx CDR StartTime 2025-01-13 14:14:05 - End Time 2025-01-13 17:14:05 [2025-01-13 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240401', 'tblTempUsageDetail_20' ) start [2025-01-13 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240401', 'tblTempUsageDetail_20' ) end [2025-01-13 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240401', 'tblTempVendorCDR_20' ) start [2025-01-13 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240401', 'tblTempVendorCDR_20' ) end [2025-01-13 17:14:22] Production.INFO: ProcessCDR(1,14240401,1,1,2) [2025-01-13 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240401', 'tblTempUsageDetail_20' ) start [2025-01-13 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240401', 'tblTempUsageDetail_20' ) end [2025-01-13 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:14:27] Production.INFO: ==23607== Releasing lock... [2025-01-13 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:14:27] Production.INFO: 69 MB #Memory Used# [2025-01-13 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:15:05 [end_date_ymd] => 2025-01-13 17:15:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:15:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:15:19] Production.INFO: count ==5439 [2025-01-13 17:15:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:15:05 - End Time 2025-01-13 17:15:05 [2025-01-13 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240406', 'tblTempUsageDetail_20' ) start [2025-01-13 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240406', 'tblTempUsageDetail_20' ) end [2025-01-13 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240406', 'tblTempVendorCDR_20' ) start [2025-01-13 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240406', 'tblTempVendorCDR_20' ) end [2025-01-13 17:15:21] Production.INFO: ProcessCDR(1,14240406,1,1,2) [2025-01-13 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240406', 'tblTempUsageDetail_20' ) start [2025-01-13 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240406', 'tblTempUsageDetail_20' ) end [2025-01-13 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:15:26] Production.INFO: ==23691== Releasing lock... [2025-01-13 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:15:26] Production.INFO: 68.75 MB #Memory Used# [2025-01-13 17:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:16:04 [end_date_ymd] => 2025-01-13 17:16:04 [RateCDR] => 1 ) [2025-01-13 17:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:16:04' and `end` < '2025-01-13 17:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:16:25] Production.INFO: count ==5403 [2025-01-13 17:16:27] Production.ERROR: pbx CDR StartTime 2025-01-13 14:16:04 - End Time 2025-01-13 17:16:04 [2025-01-13 17:16:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240411', 'tblTempUsageDetail_20' ) start [2025-01-13 17:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240411', 'tblTempUsageDetail_20' ) end [2025-01-13 17:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240411', 'tblTempVendorCDR_20' ) start [2025-01-13 17:16:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240411', 'tblTempVendorCDR_20' ) end [2025-01-13 17:16:27] Production.INFO: ProcessCDR(1,14240411,1,1,2) [2025-01-13 17:16:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:16:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:16:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:16:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240411', 'tblTempUsageDetail_20' ) start [2025-01-13 17:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240411', 'tblTempUsageDetail_20' ) end [2025-01-13 17:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:16:32] Production.INFO: ==23775== Releasing lock... [2025-01-13 17:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:16:32] Production.INFO: 68.5 MB #Memory Used# [2025-01-13 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:17:05 [end_date_ymd] => 2025-01-13 17:17:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:17:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:17:22] Production.INFO: count ==5379 [2025-01-13 17:17:25] Production.ERROR: pbx CDR StartTime 2025-01-13 14:17:05 - End Time 2025-01-13 17:17:05 [2025-01-13 17:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240416', 'tblTempUsageDetail_20' ) start [2025-01-13 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240416', 'tblTempUsageDetail_20' ) end [2025-01-13 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240416', 'tblTempVendorCDR_20' ) start [2025-01-13 17:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240416', 'tblTempVendorCDR_20' ) end [2025-01-13 17:17:25] Production.INFO: ProcessCDR(1,14240416,1,1,2) [2025-01-13 17:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240416', 'tblTempUsageDetail_20' ) start [2025-01-13 17:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240416', 'tblTempUsageDetail_20' ) end [2025-01-13 17:17:30] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:17:30] Production.INFO: ==23863== Releasing lock... [2025-01-13 17:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:17:30] Production.INFO: 68.25 MB #Memory Used# [2025-01-13 17:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:18:04 [end_date_ymd] => 2025-01-13 17:18:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:18:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:18:19] Production.INFO: count ==5375 [2025-01-13 17:18:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:18:04 - End Time 2025-01-13 17:18:04 [2025-01-13 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240421', 'tblTempUsageDetail_20' ) start [2025-01-13 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240421', 'tblTempUsageDetail_20' ) end [2025-01-13 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240421', 'tblTempVendorCDR_20' ) start [2025-01-13 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240421', 'tblTempVendorCDR_20' ) end [2025-01-13 17:18:21] Production.INFO: ProcessCDR(1,14240421,1,1,2) [2025-01-13 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240421', 'tblTempUsageDetail_20' ) start [2025-01-13 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240421', 'tblTempUsageDetail_20' ) end [2025-01-13 17:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:18:24] Production.INFO: ==23948== Releasing lock... [2025-01-13 17:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:18:24] Production.INFO: 68.25 MB #Memory Used# [2025-01-13 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:19:05 [end_date_ymd] => 2025-01-13 17:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:19:19] Production.INFO: count ==5332 [2025-01-13 17:19:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:19:05 - End Time 2025-01-13 17:19:05 [2025-01-13 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240426', 'tblTempUsageDetail_20' ) start [2025-01-13 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240426', 'tblTempUsageDetail_20' ) end [2025-01-13 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240426', 'tblTempVendorCDR_20' ) start [2025-01-13 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240426', 'tblTempVendorCDR_20' ) end [2025-01-13 17:19:21] Production.INFO: ProcessCDR(1,14240426,1,1,2) [2025-01-13 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240426', 'tblTempUsageDetail_20' ) start [2025-01-13 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240426', 'tblTempUsageDetail_20' ) end [2025-01-13 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:19:26] Production.INFO: ==24034== Releasing lock... [2025-01-13 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:19:26] Production.INFO: 68 MB #Memory Used# [2025-01-13 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:20:06 [end_date_ymd] => 2025-01-13 17:20:06 [RateCDR] => 1 ) [2025-01-13 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:20:06' and `end` < '2025-01-13 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:20:20] Production.INFO: count ==5313 [2025-01-13 17:20:22] Production.ERROR: pbx CDR StartTime 2025-01-13 14:20:06 - End Time 2025-01-13 17:20:06 [2025-01-13 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240431', 'tblTempUsageDetail_20' ) start [2025-01-13 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240431', 'tblTempUsageDetail_20' ) end [2025-01-13 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240431', 'tblTempVendorCDR_20' ) start [2025-01-13 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240431', 'tblTempVendorCDR_20' ) end [2025-01-13 17:20:22] Production.INFO: ProcessCDR(1,14240431,1,1,2) [2025-01-13 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240431', 'tblTempUsageDetail_20' ) start [2025-01-13 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240431', 'tblTempUsageDetail_20' ) end [2025-01-13 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:20:26] Production.INFO: ==24121== Releasing lock... [2025-01-13 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:20:26] Production.INFO: 67.75 MB #Memory Used# [2025-01-13 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:21:05 [end_date_ymd] => 2025-01-13 17:21:05 [RateCDR] => 1 ) [2025-01-13 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:21:05' and `end` < '2025-01-13 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:21:18] Production.INFO: count ==5243 [2025-01-13 17:21:20] Production.ERROR: pbx CDR StartTime 2025-01-13 14:21:05 - End Time 2025-01-13 17:21:05 [2025-01-13 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240437', 'tblTempUsageDetail_20' ) start [2025-01-13 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240437', 'tblTempUsageDetail_20' ) end [2025-01-13 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240437', 'tblTempVendorCDR_20' ) start [2025-01-13 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240437', 'tblTempVendorCDR_20' ) end [2025-01-13 17:21:20] Production.INFO: ProcessCDR(1,14240437,1,1,2) [2025-01-13 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240437', 'tblTempUsageDetail_20' ) start [2025-01-13 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240437', 'tblTempUsageDetail_20' ) end [2025-01-13 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:21:25] Production.INFO: ==24204== Releasing lock... [2025-01-13 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:21:25] Production.INFO: 67.25 MB #Memory Used# [2025-01-13 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:22:05 [end_date_ymd] => 2025-01-13 17:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:22:19] Production.INFO: count ==5210 [2025-01-13 17:22:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:22:05 - End Time 2025-01-13 17:22:05 [2025-01-13 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240442', 'tblTempUsageDetail_20' ) start [2025-01-13 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240442', 'tblTempUsageDetail_20' ) end [2025-01-13 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240442', 'tblTempVendorCDR_20' ) start [2025-01-13 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240442', 'tblTempVendorCDR_20' ) end [2025-01-13 17:22:21] Production.INFO: ProcessCDR(1,14240442,1,1,2) [2025-01-13 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240442', 'tblTempUsageDetail_20' ) start [2025-01-13 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240442', 'tblTempUsageDetail_20' ) end [2025-01-13 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:22:25] Production.INFO: ==24331== Releasing lock... [2025-01-13 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:22:25] Production.INFO: 67 MB #Memory Used# [2025-01-13 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:23:04 [end_date_ymd] => 2025-01-13 17:23:04 [RateCDR] => 1 ) [2025-01-13 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:23:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:23:18] Production.INFO: count ==5199 [2025-01-13 17:23:20] Production.ERROR: pbx CDR StartTime 2025-01-13 14:23:04 - End Time 2025-01-13 17:23:04 [2025-01-13 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240447', 'tblTempUsageDetail_20' ) start [2025-01-13 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240447', 'tblTempUsageDetail_20' ) end [2025-01-13 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240447', 'tblTempVendorCDR_20' ) start [2025-01-13 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240447', 'tblTempVendorCDR_20' ) end [2025-01-13 17:23:20] Production.INFO: ProcessCDR(1,14240447,1,1,2) [2025-01-13 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240447', 'tblTempUsageDetail_20' ) start [2025-01-13 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240447', 'tblTempUsageDetail_20' ) end [2025-01-13 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:23:25] Production.INFO: ==24418== Releasing lock... [2025-01-13 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:23:25] Production.INFO: 67 MB #Memory Used# [2025-01-13 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:24:05 [end_date_ymd] => 2025-01-13 17:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:24:20] Production.INFO: count ==5193 [2025-01-13 17:24:22] Production.ERROR: pbx CDR StartTime 2025-01-13 14:24:05 - End Time 2025-01-13 17:24:05 [2025-01-13 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240452', 'tblTempUsageDetail_20' ) start [2025-01-13 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240452', 'tblTempUsageDetail_20' ) end [2025-01-13 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240452', 'tblTempVendorCDR_20' ) start [2025-01-13 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240452', 'tblTempVendorCDR_20' ) end [2025-01-13 17:24:22] Production.INFO: ProcessCDR(1,14240452,1,1,2) [2025-01-13 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240452', 'tblTempUsageDetail_20' ) start [2025-01-13 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240452', 'tblTempUsageDetail_20' ) end [2025-01-13 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:24:27] Production.INFO: ==24502== Releasing lock... [2025-01-13 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:24:27] Production.INFO: 67 MB #Memory Used# [2025-01-13 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:25:04 [end_date_ymd] => 2025-01-13 17:25:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:25:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:25:21] Production.INFO: count ==5183 [2025-01-13 17:25:23] Production.ERROR: pbx CDR StartTime 2025-01-13 14:25:04 - End Time 2025-01-13 17:25:04 [2025-01-13 17:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240457', 'tblTempUsageDetail_20' ) start [2025-01-13 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240457', 'tblTempUsageDetail_20' ) end [2025-01-13 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240457', 'tblTempVendorCDR_20' ) start [2025-01-13 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240457', 'tblTempVendorCDR_20' ) end [2025-01-13 17:25:23] Production.INFO: ProcessCDR(1,14240457,1,1,2) [2025-01-13 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240457', 'tblTempUsageDetail_20' ) start [2025-01-13 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240457', 'tblTempUsageDetail_20' ) end [2025-01-13 17:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:25:28] Production.INFO: ==24586== Releasing lock... [2025-01-13 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:25:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-13 17:26:20] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:26:18 [end_date_ymd] => 2025-01-13 17:26:18 [RateCDR] => 1 ) [2025-01-13 17:26:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:26:18' and `end` < '2025-01-13 17:26:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:26:33] Production.INFO: count ==5169 [2025-01-13 17:27:28] Production.ERROR: pbx CDR StartTime 2025-01-13 14:26:18 - End Time 2025-01-13 17:26:18 [2025-01-13 17:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240462', 'tblTempUsageDetail_20' ) start [2025-01-13 17:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240462', 'tblTempUsageDetail_20' ) end [2025-01-13 17:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240462', 'tblTempVendorCDR_20' ) start [2025-01-13 17:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240462', 'tblTempVendorCDR_20' ) end [2025-01-13 17:27:33] Production.INFO: ProcessCDR(1,14240462,1,1,2) [2025-01-13 17:27:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:27:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:27:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:28:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:28:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240462', 'tblTempUsageDetail_20' ) start [2025-01-13 17:28:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240462', 'tblTempUsageDetail_20' ) end [2025-01-13 17:28:12] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:28:12] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:28:16] Production.INFO: ==24669== Releasing lock... [2025-01-13 17:28:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:28:16] Production.INFO: 66.75 MB #Memory Used# [2025-01-13 17:29:16] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:29:15 [end_date_ymd] => 2025-01-13 17:29:15 [RateCDR] => 1 ) [2025-01-13 17:29: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` >= '2025-01-13 14:29:15' and `end` < '2025-01-13 17:29: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 ,'') [2025-01-13 17:29:30] Production.INFO: count ==5112 [2025-01-13 17:29:58] Production.ERROR: pbx CDR StartTime 2025-01-13 14:29:15 - End Time 2025-01-13 17:29:15 [2025-01-13 17:29:58] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:29:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240473', 'tblTempUsageDetail_20' ) start [2025-01-13 17:29:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240473', 'tblTempUsageDetail_20' ) end [2025-01-13 17:29:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240473', 'tblTempVendorCDR_20' ) start [2025-01-13 17:30:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240473', 'tblTempVendorCDR_20' ) end [2025-01-13 17:30:00] Production.INFO: ProcessCDR(1,14240473,1,1,2) [2025-01-13 17:30:00] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:30:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:30:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:30:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:30:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240473', 'tblTempUsageDetail_20' ) start [2025-01-13 17:30:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240473', 'tblTempUsageDetail_20' ) end [2025-01-13 17:30:50] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:30:50] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:30:54] Production.INFO: ==24911== Releasing lock... [2025-01-13 17:30:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:30:54] Production.INFO: 66.25 MB #Memory Used# [2025-01-13 17:31:12] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:31:12 [end_date_ymd] => 2025-01-13 17:31:12 [RateCDR] => 1 ) [2025-01-13 17:31:12] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:31:12' and `end` < '2025-01-13 17:31:12' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:31:27] Production.INFO: count ==5021 [2025-01-13 17:31:39] Production.ERROR: pbx CDR StartTime 2025-01-13 14:31:12 - End Time 2025-01-13 17:31:12 [2025-01-13 17:31:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240482', 'tblTempUsageDetail_20' ) start [2025-01-13 17:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240482', 'tblTempUsageDetail_20' ) end [2025-01-13 17:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240482', 'tblTempVendorCDR_20' ) start [2025-01-13 17:31:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240482', 'tblTempVendorCDR_20' ) end [2025-01-13 17:31:39] Production.INFO: ProcessCDR(1,14240482,1,1,2) [2025-01-13 17:31:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:31:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:31:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:31:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:31:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240482', 'tblTempUsageDetail_20' ) start [2025-01-13 17:31:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240482', 'tblTempUsageDetail_20' ) end [2025-01-13 17:31:45] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:31:45] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:31:45] Production.INFO: ==25077== Releasing lock... [2025-01-13 17:31:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:31:45] Production.INFO: 65.5 MB #Memory Used# [2025-01-13 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:32:05 [end_date_ymd] => 2025-01-13 17:32:05 [RateCDR] => 1 ) [2025-01-13 17: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` >= '2025-01-13 14:32:05' and `end` < '2025-01-13 17: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 ,'') [2025-01-13 17:32:19] Production.INFO: count ==4997 [2025-01-13 17:32:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:32:05 - End Time 2025-01-13 17:32:05 [2025-01-13 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240487', 'tblTempUsageDetail_20' ) start [2025-01-13 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240487', 'tblTempUsageDetail_20' ) end [2025-01-13 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240487', 'tblTempVendorCDR_20' ) start [2025-01-13 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240487', 'tblTempVendorCDR_20' ) end [2025-01-13 17:32:21] Production.INFO: ProcessCDR(1,14240487,1,1,2) [2025-01-13 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240487', 'tblTempUsageDetail_20' ) start [2025-01-13 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240487', 'tblTempUsageDetail_20' ) end [2025-01-13 17:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:32:26] Production.INFO: ==25165== Releasing lock... [2025-01-13 17:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:32:26] Production.INFO: 65.5 MB #Memory Used# [2025-01-13 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:33:05 [end_date_ymd] => 2025-01-13 17:33:05 [RateCDR] => 1 ) [2025-01-13 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:33:05' and `end` < '2025-01-13 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:33:18] Production.INFO: count ==4985 [2025-01-13 17:33:20] Production.ERROR: pbx CDR StartTime 2025-01-13 14:33:05 - End Time 2025-01-13 17:33:05 [2025-01-13 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240492', 'tblTempUsageDetail_20' ) start [2025-01-13 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240492', 'tblTempUsageDetail_20' ) end [2025-01-13 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240492', 'tblTempVendorCDR_20' ) start [2025-01-13 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240492', 'tblTempVendorCDR_20' ) end [2025-01-13 17:33:21] Production.INFO: ProcessCDR(1,14240492,1,1,2) [2025-01-13 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240492', 'tblTempUsageDetail_20' ) start [2025-01-13 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240492', 'tblTempUsageDetail_20' ) end [2025-01-13 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:33:25] Production.INFO: ==25247== Releasing lock... [2025-01-13 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:33:25] Production.INFO: 65.25 MB #Memory Used# [2025-01-13 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:34:05 [end_date_ymd] => 2025-01-13 17:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:34:20] Production.INFO: count ==4981 [2025-01-13 17:34:22] Production.ERROR: pbx CDR StartTime 2025-01-13 14:34:05 - End Time 2025-01-13 17:34:05 [2025-01-13 17:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240497', 'tblTempUsageDetail_20' ) start [2025-01-13 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240497', 'tblTempUsageDetail_20' ) end [2025-01-13 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240497', 'tblTempVendorCDR_20' ) start [2025-01-13 17:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240497', 'tblTempVendorCDR_20' ) end [2025-01-13 17:34:22] Production.INFO: ProcessCDR(1,14240497,1,1,2) [2025-01-13 17:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240497', 'tblTempUsageDetail_20' ) start [2025-01-13 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240497', 'tblTempUsageDetail_20' ) end [2025-01-13 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:34:27] Production.INFO: ==25328== Releasing lock... [2025-01-13 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:34:27] Production.INFO: 65.25 MB #Memory Used# [2025-01-13 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:35:05 [end_date_ymd] => 2025-01-13 17:35:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:35:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:35:19] Production.INFO: count ==4980 [2025-01-13 17:35:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:35:05 - End Time 2025-01-13 17:35:05 [2025-01-13 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240502', 'tblTempUsageDetail_20' ) start [2025-01-13 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240502', 'tblTempUsageDetail_20' ) end [2025-01-13 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240502', 'tblTempVendorCDR_20' ) start [2025-01-13 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240502', 'tblTempVendorCDR_20' ) end [2025-01-13 17:35:21] Production.INFO: ProcessCDR(1,14240502,1,1,2) [2025-01-13 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240502', 'tblTempUsageDetail_20' ) start [2025-01-13 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240502', 'tblTempUsageDetail_20' ) end [2025-01-13 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:35:26] Production.INFO: ==25410== Releasing lock... [2025-01-13 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:35:26] Production.INFO: 65.25 MB #Memory Used# [2025-01-13 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:36:05 [end_date_ymd] => 2025-01-13 17:36:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:36:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:36:20] Production.INFO: count ==4962 [2025-01-13 17:36:23] Production.ERROR: pbx CDR StartTime 2025-01-13 14:36:05 - End Time 2025-01-13 17:36:05 [2025-01-13 17:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240507', 'tblTempUsageDetail_20' ) start [2025-01-13 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240507', 'tblTempUsageDetail_20' ) end [2025-01-13 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240507', 'tblTempVendorCDR_20' ) start [2025-01-13 17:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240507', 'tblTempVendorCDR_20' ) end [2025-01-13 17:36:23] Production.INFO: ProcessCDR(1,14240507,1,1,2) [2025-01-13 17:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240507', 'tblTempUsageDetail_20' ) start [2025-01-13 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240507', 'tblTempUsageDetail_20' ) end [2025-01-13 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:36:27] Production.INFO: ==25486== Releasing lock... [2025-01-13 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:36:27] Production.INFO: 65.25 MB #Memory Used# [2025-01-13 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:37:05 [end_date_ymd] => 2025-01-13 17:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:37:18] Production.INFO: count ==4945 [2025-01-13 17:37:20] Production.ERROR: pbx CDR StartTime 2025-01-13 14:37:05 - End Time 2025-01-13 17:37:05 [2025-01-13 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240512', 'tblTempUsageDetail_20' ) start [2025-01-13 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240512', 'tblTempUsageDetail_20' ) end [2025-01-13 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240512', 'tblTempVendorCDR_20' ) start [2025-01-13 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240512', 'tblTempVendorCDR_20' ) end [2025-01-13 17:37:20] Production.INFO: ProcessCDR(1,14240512,1,1,2) [2025-01-13 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240512', 'tblTempUsageDetail_20' ) start [2025-01-13 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240512', 'tblTempUsageDetail_20' ) end [2025-01-13 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:37:25] Production.INFO: ==25595== Releasing lock... [2025-01-13 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:37:25] Production.INFO: 65 MB #Memory Used# [2025-01-13 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:38:05 [end_date_ymd] => 2025-01-13 17:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:38:19] Production.INFO: count ==4919 [2025-01-13 17:38:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:38:05 - End Time 2025-01-13 17:38:05 [2025-01-13 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240517', 'tblTempUsageDetail_20' ) start [2025-01-13 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240517', 'tblTempUsageDetail_20' ) end [2025-01-13 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240517', 'tblTempVendorCDR_20' ) start [2025-01-13 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240517', 'tblTempVendorCDR_20' ) end [2025-01-13 17:38:21] Production.INFO: ProcessCDR(1,14240517,1,1,2) [2025-01-13 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240517', 'tblTempUsageDetail_20' ) start [2025-01-13 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240517', 'tblTempUsageDetail_20' ) end [2025-01-13 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:38:25] Production.INFO: ==25667== Releasing lock... [2025-01-13 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:38:25] Production.INFO: 64.75 MB #Memory Used# [2025-01-13 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:39:04 [end_date_ymd] => 2025-01-13 17:39:04 [RateCDR] => 1 ) [2025-01-13 17: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` >= '2025-01-13 14:39:04' and `end` < '2025-01-13 17: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 ,'') [2025-01-13 17:39:18] Production.INFO: count ==4891 [2025-01-13 17:39:20] Production.ERROR: pbx CDR StartTime 2025-01-13 14:39:04 - End Time 2025-01-13 17:39:04 [2025-01-13 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240522', 'tblTempUsageDetail_20' ) start [2025-01-13 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240522', 'tblTempUsageDetail_20' ) end [2025-01-13 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240522', 'tblTempVendorCDR_20' ) start [2025-01-13 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240522', 'tblTempVendorCDR_20' ) end [2025-01-13 17:39:20] Production.INFO: ProcessCDR(1,14240522,1,1,2) [2025-01-13 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240522', 'tblTempUsageDetail_20' ) start [2025-01-13 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240522', 'tblTempUsageDetail_20' ) end [2025-01-13 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:39:25] Production.INFO: ==25738== Releasing lock... [2025-01-13 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:39:25] Production.INFO: 64.5 MB #Memory Used# [2025-01-13 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:40:05 [end_date_ymd] => 2025-01-13 17:40:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:40:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:40:19] Production.INFO: count ==4872 [2025-01-13 17:40:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:40:05 - End Time 2025-01-13 17:40:05 [2025-01-13 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240528', 'tblTempUsageDetail_20' ) start [2025-01-13 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240528', 'tblTempUsageDetail_20' ) end [2025-01-13 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240528', 'tblTempVendorCDR_20' ) start [2025-01-13 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240528', 'tblTempVendorCDR_20' ) end [2025-01-13 17:40:21] Production.INFO: ProcessCDR(1,14240528,1,1,2) [2025-01-13 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240528', 'tblTempUsageDetail_20' ) start [2025-01-13 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240528', 'tblTempUsageDetail_20' ) end [2025-01-13 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:40:25] Production.INFO: ==25811== Releasing lock... [2025-01-13 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:40:25] Production.INFO: 64.5 MB #Memory Used# [2025-01-13 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:41:05 [end_date_ymd] => 2025-01-13 17:41:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:41:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:41:22] Production.INFO: count ==4822 [2025-01-13 17:41:24] Production.ERROR: pbx CDR StartTime 2025-01-13 14:41:05 - End Time 2025-01-13 17:41:05 [2025-01-13 17:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240533', 'tblTempUsageDetail_20' ) start [2025-01-13 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240533', 'tblTempUsageDetail_20' ) end [2025-01-13 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240533', 'tblTempVendorCDR_20' ) start [2025-01-13 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240533', 'tblTempVendorCDR_20' ) end [2025-01-13 17:41:24] Production.INFO: ProcessCDR(1,14240533,1,1,2) [2025-01-13 17:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240533', 'tblTempUsageDetail_20' ) start [2025-01-13 17:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240533', 'tblTempUsageDetail_20' ) end [2025-01-13 17:41:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:41:28] Production.INFO: ==25884== Releasing lock... [2025-01-13 17:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:41:28] Production.INFO: 64 MB #Memory Used# [2025-01-13 17:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:42:04 [end_date_ymd] => 2025-01-13 17:42:04 [RateCDR] => 1 ) [2025-01-13 17:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:42:04' and `end` < '2025-01-13 17:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:42:19] Production.INFO: count ==4819 [2025-01-13 17:42:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:42:04 - End Time 2025-01-13 17:42:04 [2025-01-13 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240538', 'tblTempUsageDetail_20' ) start [2025-01-13 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240538', 'tblTempUsageDetail_20' ) end [2025-01-13 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240538', 'tblTempVendorCDR_20' ) start [2025-01-13 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240538', 'tblTempVendorCDR_20' ) end [2025-01-13 17:42:21] Production.INFO: ProcessCDR(1,14240538,1,1,2) [2025-01-13 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240538', 'tblTempUsageDetail_20' ) start [2025-01-13 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240538', 'tblTempUsageDetail_20' ) end [2025-01-13 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:42:25] Production.INFO: ==25954== Releasing lock... [2025-01-13 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:42:25] Production.INFO: 64 MB #Memory Used# [2025-01-13 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:43:06 [end_date_ymd] => 2025-01-13 17:43:06 [RateCDR] => 1 ) [2025-01-13 17: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` >= '2025-01-13 14:43:06' and `end` < '2025-01-13 17: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 ,'') [2025-01-13 17:43:20] Production.INFO: count ==4814 [2025-01-13 17:43:22] Production.ERROR: pbx CDR StartTime 2025-01-13 14:43:06 - End Time 2025-01-13 17:43:06 [2025-01-13 17:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240543', 'tblTempUsageDetail_20' ) start [2025-01-13 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240543', 'tblTempUsageDetail_20' ) end [2025-01-13 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240543', 'tblTempVendorCDR_20' ) start [2025-01-13 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240543', 'tblTempVendorCDR_20' ) end [2025-01-13 17:43:22] Production.INFO: ProcessCDR(1,14240543,1,1,2) [2025-01-13 17:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240543', 'tblTempUsageDetail_20' ) start [2025-01-13 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240543', 'tblTempUsageDetail_20' ) end [2025-01-13 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:43:27] Production.INFO: ==26024== Releasing lock... [2025-01-13 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:43:27] Production.INFO: 64 MB #Memory Used# [2025-01-13 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:44:05 [end_date_ymd] => 2025-01-13 17:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:44:20] Production.INFO: count ==4808 [2025-01-13 17:44:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:44:05 - End Time 2025-01-13 17:44:05 [2025-01-13 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240548', 'tblTempUsageDetail_20' ) start [2025-01-13 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240548', 'tblTempUsageDetail_20' ) end [2025-01-13 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240548', 'tblTempVendorCDR_20' ) start [2025-01-13 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240548', 'tblTempVendorCDR_20' ) end [2025-01-13 17:44:22] Production.INFO: ProcessCDR(1,14240548,1,1,2) [2025-01-13 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240548', 'tblTempUsageDetail_20' ) start [2025-01-13 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240548', 'tblTempUsageDetail_20' ) end [2025-01-13 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:44:27] Production.INFO: ==26097== Releasing lock... [2025-01-13 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:44:27] Production.INFO: 64 MB #Memory Used# [2025-01-13 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:45:05 [end_date_ymd] => 2025-01-13 17:45:05 [RateCDR] => 1 ) [2025-01-13 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:45:05' and `end` < '2025-01-13 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:45:19] Production.INFO: count ==4780 [2025-01-13 17:45:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:45:05 - End Time 2025-01-13 17:45:05 [2025-01-13 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240553', 'tblTempUsageDetail_20' ) start [2025-01-13 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240553', 'tblTempUsageDetail_20' ) end [2025-01-13 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240553', 'tblTempVendorCDR_20' ) start [2025-01-13 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240553', 'tblTempVendorCDR_20' ) end [2025-01-13 17:45:21] Production.INFO: ProcessCDR(1,14240553,1,1,2) [2025-01-13 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240553', 'tblTempUsageDetail_20' ) start [2025-01-13 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240553', 'tblTempUsageDetail_20' ) end [2025-01-13 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:45:26] Production.INFO: ==26170== Releasing lock... [2025-01-13 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:45:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-13 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:46:05 [end_date_ymd] => 2025-01-13 17:46:05 [RateCDR] => 1 ) [2025-01-13 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:46:05' and `end` < '2025-01-13 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:46:18] Production.INFO: count ==4762 [2025-01-13 17:46:20] Production.ERROR: pbx CDR StartTime 2025-01-13 14:46:05 - End Time 2025-01-13 17:46:05 [2025-01-13 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240558', 'tblTempUsageDetail_20' ) start [2025-01-13 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240558', 'tblTempUsageDetail_20' ) end [2025-01-13 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240558', 'tblTempVendorCDR_20' ) start [2025-01-13 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240558', 'tblTempVendorCDR_20' ) end [2025-01-13 17:46:20] Production.INFO: ProcessCDR(1,14240558,1,1,2) [2025-01-13 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240558', 'tblTempUsageDetail_20' ) start [2025-01-13 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240558', 'tblTempUsageDetail_20' ) end [2025-01-13 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:46:24] Production.INFO: ==26241== Releasing lock... [2025-01-13 17:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:46:24] Production.INFO: 63.75 MB #Memory Used# [2025-01-13 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:47:05 [end_date_ymd] => 2025-01-13 17:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:47:19] Production.INFO: count ==4751 [2025-01-13 17:47:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:47:05 - End Time 2025-01-13 17:47:05 [2025-01-13 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240563', 'tblTempUsageDetail_20' ) start [2025-01-13 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240563', 'tblTempUsageDetail_20' ) end [2025-01-13 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240563', 'tblTempVendorCDR_20' ) start [2025-01-13 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240563', 'tblTempVendorCDR_20' ) end [2025-01-13 17:47:21] Production.INFO: ProcessCDR(1,14240563,1,1,2) [2025-01-13 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240563', 'tblTempUsageDetail_20' ) start [2025-01-13 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240563', 'tblTempUsageDetail_20' ) end [2025-01-13 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:47:26] Production.INFO: ==26313== Releasing lock... [2025-01-13 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:47:26] Production.INFO: 63.5 MB #Memory Used# [2025-01-13 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:48:05 [end_date_ymd] => 2025-01-13 17:48:05 [RateCDR] => 1 ) [2025-01-13 17:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:48:05' and `end` < '2025-01-13 17:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:48:20] Production.INFO: count ==4727 [2025-01-13 17:48:22] Production.ERROR: pbx CDR StartTime 2025-01-13 14:48:05 - End Time 2025-01-13 17:48:05 [2025-01-13 17:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240568', 'tblTempUsageDetail_20' ) start [2025-01-13 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240568', 'tblTempUsageDetail_20' ) end [2025-01-13 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240568', 'tblTempVendorCDR_20' ) start [2025-01-13 17:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240568', 'tblTempVendorCDR_20' ) end [2025-01-13 17:48:22] Production.INFO: ProcessCDR(1,14240568,1,1,2) [2025-01-13 17:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240568', 'tblTempUsageDetail_20' ) start [2025-01-13 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240568', 'tblTempUsageDetail_20' ) end [2025-01-13 17:48:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:48:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:48:27] Production.INFO: ==26384== Releasing lock... [2025-01-13 17:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:48:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-13 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:49:05 [end_date_ymd] => 2025-01-13 17:49:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:49:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:49:20] Production.INFO: count ==4715 [2025-01-13 17:49:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:49:05 - End Time 2025-01-13 17:49:05 [2025-01-13 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240573', 'tblTempUsageDetail_20' ) start [2025-01-13 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240573', 'tblTempUsageDetail_20' ) end [2025-01-13 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240573', 'tblTempVendorCDR_20' ) start [2025-01-13 17:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240573', 'tblTempVendorCDR_20' ) end [2025-01-13 17:49:22] Production.INFO: ProcessCDR(1,14240573,1,1,2) [2025-01-13 17:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240573', 'tblTempUsageDetail_20' ) start [2025-01-13 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240573', 'tblTempUsageDetail_20' ) end [2025-01-13 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:49:27] Production.INFO: ==26457== Releasing lock... [2025-01-13 17:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:49:27] Production.INFO: 63.25 MB #Memory Used# [2025-01-13 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:50:05 [end_date_ymd] => 2025-01-13 17:50:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:50:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:50:19] Production.INFO: count ==4689 [2025-01-13 17:50:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:50:05 - End Time 2025-01-13 17:50:05 [2025-01-13 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240578', 'tblTempUsageDetail_20' ) start [2025-01-13 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240578', 'tblTempUsageDetail_20' ) end [2025-01-13 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240578', 'tblTempVendorCDR_20' ) start [2025-01-13 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240578', 'tblTempVendorCDR_20' ) end [2025-01-13 17:50:21] Production.INFO: ProcessCDR(1,14240578,1,1,2) [2025-01-13 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240578', 'tblTempUsageDetail_20' ) start [2025-01-13 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240578', 'tblTempUsageDetail_20' ) end [2025-01-13 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:50:24] Production.INFO: ==26530== Releasing lock... [2025-01-13 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:50:24] Production.INFO: 63 MB #Memory Used# [2025-01-13 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:51:05 [end_date_ymd] => 2025-01-13 17:51:05 [RateCDR] => 1 ) [2025-01-13 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:51:05' and `end` < '2025-01-13 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:51:18] Production.INFO: count ==4687 [2025-01-13 17:51:20] Production.ERROR: pbx CDR StartTime 2025-01-13 14:51:05 - End Time 2025-01-13 17:51:05 [2025-01-13 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240584', 'tblTempUsageDetail_20' ) start [2025-01-13 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240584', 'tblTempUsageDetail_20' ) end [2025-01-13 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240584', 'tblTempVendorCDR_20' ) start [2025-01-13 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240584', 'tblTempVendorCDR_20' ) end [2025-01-13 17:51:20] Production.INFO: ProcessCDR(1,14240584,1,1,2) [2025-01-13 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240584', 'tblTempUsageDetail_20' ) start [2025-01-13 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240584', 'tblTempUsageDetail_20' ) end [2025-01-13 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:51:25] Production.INFO: ==26604== Releasing lock... [2025-01-13 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:51:25] Production.INFO: 63 MB #Memory Used# [2025-01-13 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:52:05 [end_date_ymd] => 2025-01-13 17:52:05 [RateCDR] => 1 ) [2025-01-13 17:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:52:19] Production.INFO: count ==4685 [2025-01-13 17:52:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:52:05 - End Time 2025-01-13 17:52:05 [2025-01-13 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240589', 'tblTempUsageDetail_20' ) start [2025-01-13 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240589', 'tblTempUsageDetail_20' ) end [2025-01-13 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240589', 'tblTempVendorCDR_20' ) start [2025-01-13 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240589', 'tblTempVendorCDR_20' ) end [2025-01-13 17:52:21] Production.INFO: ProcessCDR(1,14240589,1,1,2) [2025-01-13 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240589', 'tblTempUsageDetail_20' ) start [2025-01-13 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240589', 'tblTempUsageDetail_20' ) end [2025-01-13 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:52:26] Production.INFO: ==26674== Releasing lock... [2025-01-13 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:52:26] Production.INFO: 63 MB #Memory Used# [2025-01-13 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:53:05 [end_date_ymd] => 2025-01-13 17:53:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:53:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:53:18] Production.INFO: count ==4667 [2025-01-13 17:53:20] Production.ERROR: pbx CDR StartTime 2025-01-13 14:53:05 - End Time 2025-01-13 17:53:05 [2025-01-13 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240594', 'tblTempUsageDetail_20' ) start [2025-01-13 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240594', 'tblTempUsageDetail_20' ) end [2025-01-13 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240594', 'tblTempVendorCDR_20' ) start [2025-01-13 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240594', 'tblTempVendorCDR_20' ) end [2025-01-13 17:53:20] Production.INFO: ProcessCDR(1,14240594,1,1,2) [2025-01-13 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240594', 'tblTempUsageDetail_20' ) start [2025-01-13 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240594', 'tblTempUsageDetail_20' ) end [2025-01-13 17:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:53:25] Production.INFO: ==26782== Releasing lock... [2025-01-13 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:53:25] Production.INFO: 63 MB #Memory Used# [2025-01-13 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:54:05 [end_date_ymd] => 2025-01-13 17:54:05 [RateCDR] => 1 ) [2025-01-13 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 14:54:05' and `end` < '2025-01-13 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 17:54:18] Production.INFO: count ==4646 [2025-01-13 17:54:20] Production.ERROR: pbx CDR StartTime 2025-01-13 14:54:05 - End Time 2025-01-13 17:54:05 [2025-01-13 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240599', 'tblTempUsageDetail_20' ) start [2025-01-13 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240599', 'tblTempUsageDetail_20' ) end [2025-01-13 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240599', 'tblTempVendorCDR_20' ) start [2025-01-13 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240599', 'tblTempVendorCDR_20' ) end [2025-01-13 17:54:20] Production.INFO: ProcessCDR(1,14240599,1,1,2) [2025-01-13 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240599', 'tblTempUsageDetail_20' ) start [2025-01-13 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240599', 'tblTempUsageDetail_20' ) end [2025-01-13 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:54:25] Production.INFO: ==26856== Releasing lock... [2025-01-13 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:54:25] Production.INFO: 62.75 MB #Memory Used# [2025-01-13 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:55:05 [end_date_ymd] => 2025-01-13 17:55:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:55:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:55:18] Production.INFO: count ==4622 [2025-01-13 17:55:20] Production.ERROR: pbx CDR StartTime 2025-01-13 14:55:05 - End Time 2025-01-13 17:55:05 [2025-01-13 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240604', 'tblTempUsageDetail_20' ) start [2025-01-13 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240604', 'tblTempUsageDetail_20' ) end [2025-01-13 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240604', 'tblTempVendorCDR_20' ) start [2025-01-13 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240604', 'tblTempVendorCDR_20' ) end [2025-01-13 17:55:20] Production.INFO: ProcessCDR(1,14240604,1,1,2) [2025-01-13 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240604', 'tblTempUsageDetail_20' ) start [2025-01-13 17:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240604', 'tblTempUsageDetail_20' ) end [2025-01-13 17:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:55:23] Production.INFO: ==26930== Releasing lock... [2025-01-13 17:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:55:23] Production.INFO: 62.5 MB #Memory Used# [2025-01-13 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:56:05 [end_date_ymd] => 2025-01-13 17:56:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:56:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:56:19] Production.INFO: count ==4625 [2025-01-13 17:56:21] Production.ERROR: pbx CDR StartTime 2025-01-13 14:56:05 - End Time 2025-01-13 17:56:05 [2025-01-13 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240609', 'tblTempUsageDetail_20' ) start [2025-01-13 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240609', 'tblTempUsageDetail_20' ) end [2025-01-13 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240609', 'tblTempVendorCDR_20' ) start [2025-01-13 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240609', 'tblTempVendorCDR_20' ) end [2025-01-13 17:56:21] Production.INFO: ProcessCDR(1,14240609,1,1,2) [2025-01-13 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240609', 'tblTempUsageDetail_20' ) start [2025-01-13 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240609', 'tblTempUsageDetail_20' ) end [2025-01-13 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:56:26] Production.INFO: ==27001== Releasing lock... [2025-01-13 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:56:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-13 17:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:57:04 [end_date_ymd] => 2025-01-13 17:57:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:57:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:57:18] Production.INFO: count ==4608 [2025-01-13 17:57:19] Production.ERROR: pbx CDR StartTime 2025-01-13 14:57:04 - End Time 2025-01-13 17:57:04 [2025-01-13 17:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240614', 'tblTempUsageDetail_20' ) start [2025-01-13 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240614', 'tblTempUsageDetail_20' ) end [2025-01-13 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240614', 'tblTempVendorCDR_20' ) start [2025-01-13 17:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240614', 'tblTempVendorCDR_20' ) end [2025-01-13 17:57:19] Production.INFO: ProcessCDR(1,14240614,1,1,2) [2025-01-13 17:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240614', 'tblTempUsageDetail_20' ) start [2025-01-13 17:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240614', 'tblTempUsageDetail_20' ) end [2025-01-13 17:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:57:24] Production.INFO: ==27070== Releasing lock... [2025-01-13 17:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:57:24] Production.INFO: 62.5 MB #Memory Used# [2025-01-13 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:58:05 [end_date_ymd] => 2025-01-13 17:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:58:18] Production.INFO: count ==4597 [2025-01-13 17:58:20] Production.ERROR: pbx CDR StartTime 2025-01-13 14:58:05 - End Time 2025-01-13 17:58:05 [2025-01-13 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240619', 'tblTempUsageDetail_20' ) start [2025-01-13 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240619', 'tblTempUsageDetail_20' ) end [2025-01-13 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240619', 'tblTempVendorCDR_20' ) start [2025-01-13 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240619', 'tblTempVendorCDR_20' ) end [2025-01-13 17:58:20] Production.INFO: ProcessCDR(1,14240619,1,1,2) [2025-01-13 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240619', 'tblTempUsageDetail_20' ) start [2025-01-13 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240619', 'tblTempUsageDetail_20' ) end [2025-01-13 17:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:58:24] Production.INFO: ==27144== Releasing lock... [2025-01-13 17:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:58:24] Production.INFO: 62.5 MB #Memory Used# [2025-01-13 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 14:59:05 [end_date_ymd] => 2025-01-13 17:59:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 14:59:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 17:59:18] Production.INFO: count ==4572 [2025-01-13 17:59:20] Production.ERROR: pbx CDR StartTime 2025-01-13 14:59:05 - End Time 2025-01-13 17:59:05 [2025-01-13 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240624', 'tblTempUsageDetail_20' ) start [2025-01-13 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240624', 'tblTempUsageDetail_20' ) end [2025-01-13 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240624', 'tblTempVendorCDR_20' ) start [2025-01-13 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240624', 'tblTempVendorCDR_20' ) end [2025-01-13 17:59:20] Production.INFO: ProcessCDR(1,14240624,1,1,2) [2025-01-13 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 17:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240624', 'tblTempUsageDetail_20' ) start [2025-01-13 17:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240624', 'tblTempUsageDetail_20' ) end [2025-01-13 17:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 17:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 17:59:23] Production.INFO: ==27218== Releasing lock... [2025-01-13 17:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 17:59:23] Production.INFO: 62.25 MB #Memory Used# [2025-01-13 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:00:05 [end_date_ymd] => 2025-01-13 18:00:05 [RateCDR] => 1 ) [2025-01-13 18:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:00:05' and `end` < '2025-01-13 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:00:19] Production.INFO: count ==4564 [2025-01-13 18:00:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:00:05 - End Time 2025-01-13 18:00:05 [2025-01-13 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240629', 'tblTempUsageDetail_20' ) start [2025-01-13 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240629', 'tblTempUsageDetail_20' ) end [2025-01-13 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240629', 'tblTempVendorCDR_20' ) start [2025-01-13 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240629', 'tblTempVendorCDR_20' ) end [2025-01-13 18:00:21] Production.INFO: ProcessCDR(1,14240629,1,1,2) [2025-01-13 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240629', 'tblTempUsageDetail_20' ) start [2025-01-13 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240629', 'tblTempUsageDetail_20' ) end [2025-01-13 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:00:25] Production.INFO: ==27291== Releasing lock... [2025-01-13 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:00:25] Production.INFO: 62.25 MB #Memory Used# [2025-01-13 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:01:05 [end_date_ymd] => 2025-01-13 18:01:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:01:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:01:18] Production.INFO: count ==4485 [2025-01-13 18:01:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:01:05 - End Time 2025-01-13 18:01:05 [2025-01-13 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240635', 'tblTempUsageDetail_20' ) start [2025-01-13 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240635', 'tblTempUsageDetail_20' ) end [2025-01-13 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240635', 'tblTempVendorCDR_20' ) start [2025-01-13 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240635', 'tblTempVendorCDR_20' ) end [2025-01-13 18:01:20] Production.INFO: ProcessCDR(1,14240635,1,1,2) [2025-01-13 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240635', 'tblTempUsageDetail_20' ) start [2025-01-13 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240635', 'tblTempUsageDetail_20' ) end [2025-01-13 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:01:24] Production.INFO: ==27376== Releasing lock... [2025-01-13 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:01:24] Production.INFO: 61.5 MB #Memory Used# [2025-01-13 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:02:05 [end_date_ymd] => 2025-01-13 18:02:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:02:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:02:19] Production.INFO: count ==4468 [2025-01-13 18:02:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:02:05 - End Time 2025-01-13 18:02:05 [2025-01-13 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240640', 'tblTempUsageDetail_20' ) start [2025-01-13 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240640', 'tblTempUsageDetail_20' ) end [2025-01-13 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240640', 'tblTempVendorCDR_20' ) start [2025-01-13 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240640', 'tblTempVendorCDR_20' ) end [2025-01-13 18:02:20] Production.INFO: ProcessCDR(1,14240640,1,1,2) [2025-01-13 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240640', 'tblTempUsageDetail_20' ) start [2025-01-13 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240640', 'tblTempUsageDetail_20' ) end [2025-01-13 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:02:25] Production.INFO: ==27447== Releasing lock... [2025-01-13 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:02:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-13 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:03:05 [end_date_ymd] => 2025-01-13 18:03:05 [RateCDR] => 1 ) [2025-01-13 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:03:05' and `end` < '2025-01-13 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:03:21] Production.INFO: count ==4466 [2025-01-13 18:03:22] Production.ERROR: pbx CDR StartTime 2025-01-13 15:03:05 - End Time 2025-01-13 18:03:05 [2025-01-13 18:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240645', 'tblTempUsageDetail_20' ) start [2025-01-13 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240645', 'tblTempUsageDetail_20' ) end [2025-01-13 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240645', 'tblTempVendorCDR_20' ) start [2025-01-13 18:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240645', 'tblTempVendorCDR_20' ) end [2025-01-13 18:03:22] Production.INFO: ProcessCDR(1,14240645,1,1,2) [2025-01-13 18:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240645', 'tblTempUsageDetail_20' ) start [2025-01-13 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240645', 'tblTempUsageDetail_20' ) end [2025-01-13 18:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:03:27] Production.INFO: ==27517== Releasing lock... [2025-01-13 18:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:03:27] Production.INFO: 61.5 MB #Memory Used# [2025-01-13 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:04:04 [end_date_ymd] => 2025-01-13 18:04:04 [RateCDR] => 1 ) [2025-01-13 18:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:04:04' and `end` < '2025-01-13 18:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:04:18] Production.INFO: count ==4440 [2025-01-13 18:04:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:04:04 - End Time 2025-01-13 18:04:04 [2025-01-13 18:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240650', 'tblTempUsageDetail_20' ) start [2025-01-13 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240650', 'tblTempUsageDetail_20' ) end [2025-01-13 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240650', 'tblTempVendorCDR_20' ) start [2025-01-13 18:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240650', 'tblTempVendorCDR_20' ) end [2025-01-13 18:04:19] Production.INFO: ProcessCDR(1,14240650,1,1,2) [2025-01-13 18:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240650', 'tblTempUsageDetail_20' ) start [2025-01-13 18:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240650', 'tblTempUsageDetail_20' ) end [2025-01-13 18:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:04:22] Production.INFO: ==27587== Releasing lock... [2025-01-13 18:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:04:22] Production.INFO: 61.25 MB #Memory Used# [2025-01-13 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:05:05 [end_date_ymd] => 2025-01-13 18:05:05 [RateCDR] => 1 ) [2025-01-13 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:05:05' and `end` < '2025-01-13 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:05:18] Production.INFO: count ==4416 [2025-01-13 18:05:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:05:05 - End Time 2025-01-13 18:05:05 [2025-01-13 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240655', 'tblTempUsageDetail_20' ) start [2025-01-13 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240655', 'tblTempUsageDetail_20' ) end [2025-01-13 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240655', 'tblTempVendorCDR_20' ) start [2025-01-13 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240655', 'tblTempVendorCDR_20' ) end [2025-01-13 18:05:20] Production.INFO: ProcessCDR(1,14240655,1,1,2) [2025-01-13 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240655', 'tblTempUsageDetail_20' ) start [2025-01-13 18:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240655', 'tblTempUsageDetail_20' ) end [2025-01-13 18:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:05:25] Production.INFO: ==27658== Releasing lock... [2025-01-13 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:05:25] Production.INFO: 61 MB #Memory Used# [2025-01-13 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:06:05 [end_date_ymd] => 2025-01-13 18:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:06:18] Production.INFO: count ==4408 [2025-01-13 18:06:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:06:05 - End Time 2025-01-13 18:06:05 [2025-01-13 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240660', 'tblTempUsageDetail_20' ) start [2025-01-13 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240660', 'tblTempUsageDetail_20' ) end [2025-01-13 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240660', 'tblTempVendorCDR_20' ) start [2025-01-13 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240660', 'tblTempVendorCDR_20' ) end [2025-01-13 18:06:20] Production.INFO: ProcessCDR(1,14240660,1,1,2) [2025-01-13 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240660', 'tblTempUsageDetail_20' ) start [2025-01-13 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240660', 'tblTempUsageDetail_20' ) end [2025-01-13 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:06:23] Production.INFO: ==27729== Releasing lock... [2025-01-13 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:06:23] Production.INFO: 61 MB #Memory Used# [2025-01-13 18:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:07:04 [end_date_ymd] => 2025-01-13 18:07:04 [RateCDR] => 1 ) [2025-01-13 18: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` >= '2025-01-13 15:07:04' and `end` < '2025-01-13 18: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 ,'') [2025-01-13 18:07:18] Production.INFO: count ==4397 [2025-01-13 18:07:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:07:04 - End Time 2025-01-13 18:07:04 [2025-01-13 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240665', 'tblTempUsageDetail_20' ) start [2025-01-13 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240665', 'tblTempUsageDetail_20' ) end [2025-01-13 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240665', 'tblTempVendorCDR_20' ) start [2025-01-13 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240665', 'tblTempVendorCDR_20' ) end [2025-01-13 18:07:19] Production.INFO: ProcessCDR(1,14240665,1,1,2) [2025-01-13 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240665', 'tblTempUsageDetail_20' ) start [2025-01-13 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240665', 'tblTempUsageDetail_20' ) end [2025-01-13 18:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:07:23] Production.INFO: ==27798== Releasing lock... [2025-01-13 18:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:07:23] Production.INFO: 61 MB #Memory Used# [2025-01-13 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:08:05 [end_date_ymd] => 2025-01-13 18:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:08:19] Production.INFO: count ==4400 [2025-01-13 18:08:21] Production.ERROR: pbx CDR StartTime 2025-01-13 15:08:05 - End Time 2025-01-13 18:08:05 [2025-01-13 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240670', 'tblTempUsageDetail_20' ) start [2025-01-13 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240670', 'tblTempUsageDetail_20' ) end [2025-01-13 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240670', 'tblTempVendorCDR_20' ) start [2025-01-13 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240670', 'tblTempVendorCDR_20' ) end [2025-01-13 18:08:21] Production.INFO: ProcessCDR(1,14240670,1,1,2) [2025-01-13 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240670', 'tblTempUsageDetail_20' ) start [2025-01-13 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240670', 'tblTempUsageDetail_20' ) end [2025-01-13 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:08:25] Production.INFO: ==27908== Releasing lock... [2025-01-13 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:08:25] Production.INFO: 61 MB #Memory Used# [2025-01-13 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:09:05 [end_date_ymd] => 2025-01-13 18:09:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:09:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:09:18] Production.INFO: count ==4389 [2025-01-13 18:09:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:09:05 - End Time 2025-01-13 18:09:05 [2025-01-13 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240675', 'tblTempUsageDetail_20' ) start [2025-01-13 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240675', 'tblTempUsageDetail_20' ) end [2025-01-13 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240675', 'tblTempVendorCDR_20' ) start [2025-01-13 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240675', 'tblTempVendorCDR_20' ) end [2025-01-13 18:09:20] Production.INFO: ProcessCDR(1,14240675,1,1,2) [2025-01-13 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240675', 'tblTempUsageDetail_20' ) start [2025-01-13 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240675', 'tblTempUsageDetail_20' ) end [2025-01-13 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:09:24] Production.INFO: ==27980== Releasing lock... [2025-01-13 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:09:24] Production.INFO: 60.75 MB #Memory Used# [2025-01-13 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:10:05 [end_date_ymd] => 2025-01-13 18:10:05 [RateCDR] => 1 ) [2025-01-13 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:10:05' and `end` < '2025-01-13 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:10:18] Production.INFO: count ==4378 [2025-01-13 18:10:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:10:05 - End Time 2025-01-13 18:10:05 [2025-01-13 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240680', 'tblTempUsageDetail_20' ) start [2025-01-13 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240680', 'tblTempUsageDetail_20' ) end [2025-01-13 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240680', 'tblTempVendorCDR_20' ) start [2025-01-13 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240680', 'tblTempVendorCDR_20' ) end [2025-01-13 18:10:20] Production.INFO: ProcessCDR(1,14240680,1,1,2) [2025-01-13 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240680', 'tblTempUsageDetail_20' ) start [2025-01-13 18:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240680', 'tblTempUsageDetail_20' ) end [2025-01-13 18:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:10:23] Production.INFO: ==28052== Releasing lock... [2025-01-13 18:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:10:23] Production.INFO: 60.75 MB #Memory Used# [2025-01-13 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:11:05 [end_date_ymd] => 2025-01-13 18:11:05 [RateCDR] => 1 ) [2025-01-13 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:11:05' and `end` < '2025-01-13 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:11:18] Production.INFO: count ==4320 [2025-01-13 18:11:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:11:05 - End Time 2025-01-13 18:11:05 [2025-01-13 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240686', 'tblTempUsageDetail_20' ) start [2025-01-13 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240686', 'tblTempUsageDetail_20' ) end [2025-01-13 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240686', 'tblTempVendorCDR_20' ) start [2025-01-13 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240686', 'tblTempVendorCDR_20' ) end [2025-01-13 18:11:20] Production.INFO: ProcessCDR(1,14240686,1,1,2) [2025-01-13 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240686', 'tblTempUsageDetail_20' ) start [2025-01-13 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240686', 'tblTempUsageDetail_20' ) end [2025-01-13 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:11:23] Production.INFO: ==28128== Releasing lock... [2025-01-13 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:11:23] Production.INFO: 60.25 MB #Memory Used# [2025-01-13 18:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:12:04 [end_date_ymd] => 2025-01-13 18:12:04 [RateCDR] => 1 ) [2025-01-13 18:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:12:04' and `end` < '2025-01-13 18:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:12:18] Production.INFO: count ==4300 [2025-01-13 18:12:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:12:04 - End Time 2025-01-13 18:12:04 [2025-01-13 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240691', 'tblTempUsageDetail_20' ) start [2025-01-13 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240691', 'tblTempUsageDetail_20' ) end [2025-01-13 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240691', 'tblTempVendorCDR_20' ) start [2025-01-13 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240691', 'tblTempVendorCDR_20' ) end [2025-01-13 18:12:20] Production.INFO: ProcessCDR(1,14240691,1,1,2) [2025-01-13 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240691', 'tblTempUsageDetail_20' ) start [2025-01-13 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240691', 'tblTempUsageDetail_20' ) end [2025-01-13 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:12:23] Production.INFO: ==28204== Releasing lock... [2025-01-13 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:12:23] Production.INFO: 60.25 MB #Memory Used# [2025-01-13 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:13:05 [end_date_ymd] => 2025-01-13 18:13:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:13:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:13:18] Production.INFO: count ==4272 [2025-01-13 18:13:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:13:05 - End Time 2025-01-13 18:13:05 [2025-01-13 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240696', 'tblTempUsageDetail_20' ) start [2025-01-13 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240696', 'tblTempUsageDetail_20' ) end [2025-01-13 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240696', 'tblTempVendorCDR_20' ) start [2025-01-13 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240696', 'tblTempVendorCDR_20' ) end [2025-01-13 18:13:20] Production.INFO: ProcessCDR(1,14240696,1,1,2) [2025-01-13 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240696', 'tblTempUsageDetail_20' ) start [2025-01-13 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240696', 'tblTempUsageDetail_20' ) end [2025-01-13 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:13:24] Production.INFO: ==28275== Releasing lock... [2025-01-13 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:13:24] Production.INFO: 60 MB #Memory Used# [2025-01-13 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:14:06 [end_date_ymd] => 2025-01-13 18:14:06 [RateCDR] => 1 ) [2025-01-13 18: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` >= '2025-01-13 15:14:06' and `end` < '2025-01-13 18: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 ,'') [2025-01-13 18:14:19] Production.INFO: count ==4252 [2025-01-13 18:14:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:14:06 - End Time 2025-01-13 18:14:06 [2025-01-13 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240701', 'tblTempUsageDetail_20' ) start [2025-01-13 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240701', 'tblTempUsageDetail_20' ) end [2025-01-13 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240701', 'tblTempVendorCDR_20' ) start [2025-01-13 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240701', 'tblTempVendorCDR_20' ) end [2025-01-13 18:14:21] Production.INFO: ProcessCDR(1,14240701,1,1,2) [2025-01-13 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240701', 'tblTempUsageDetail_20' ) start [2025-01-13 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240701', 'tblTempUsageDetail_20' ) end [2025-01-13 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:14:25] Production.INFO: ==28351== Releasing lock... [2025-01-13 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:14:25] Production.INFO: 59.75 MB #Memory Used# [2025-01-13 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:15:05 [end_date_ymd] => 2025-01-13 18:15:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:15:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:15:18] Production.INFO: count ==4235 [2025-01-13 18:15:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:15:05 - End Time 2025-01-13 18:15:05 [2025-01-13 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240706', 'tblTempUsageDetail_20' ) start [2025-01-13 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240706', 'tblTempUsageDetail_20' ) end [2025-01-13 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240706', 'tblTempVendorCDR_20' ) start [2025-01-13 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240706', 'tblTempVendorCDR_20' ) end [2025-01-13 18:15:19] Production.INFO: ProcessCDR(1,14240706,1,1,2) [2025-01-13 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240706', 'tblTempUsageDetail_20' ) start [2025-01-13 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240706', 'tblTempUsageDetail_20' ) end [2025-01-13 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:15:24] Production.INFO: ==28423== Releasing lock... [2025-01-13 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:15:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-13 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:16:05 [end_date_ymd] => 2025-01-13 18:16:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:16:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:16:18] Production.INFO: count ==4205 [2025-01-13 18:16:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:16:05 - End Time 2025-01-13 18:16:05 [2025-01-13 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240711', 'tblTempUsageDetail_20' ) start [2025-01-13 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240711', 'tblTempUsageDetail_20' ) end [2025-01-13 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240711', 'tblTempVendorCDR_20' ) start [2025-01-13 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240711', 'tblTempVendorCDR_20' ) end [2025-01-13 18:16:20] Production.INFO: ProcessCDR(1,14240711,1,1,2) [2025-01-13 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240711', 'tblTempUsageDetail_20' ) start [2025-01-13 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240711', 'tblTempUsageDetail_20' ) end [2025-01-13 18:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:16:23] Production.INFO: ==28494== Releasing lock... [2025-01-13 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:16:23] Production.INFO: 59.5 MB #Memory Used# [2025-01-13 18:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:17:04 [end_date_ymd] => 2025-01-13 18:17:04 [RateCDR] => 1 ) [2025-01-13 18:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:17:04' and `end` < '2025-01-13 18:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:17:27] Production.INFO: count ==4180 [2025-01-13 18:17:29] Production.ERROR: pbx CDR StartTime 2025-01-13 15:17:04 - End Time 2025-01-13 18:17:04 [2025-01-13 18:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240716', 'tblTempUsageDetail_20' ) start [2025-01-13 18:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240716', 'tblTempUsageDetail_20' ) end [2025-01-13 18:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240716', 'tblTempVendorCDR_20' ) start [2025-01-13 18:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240716', 'tblTempVendorCDR_20' ) end [2025-01-13 18:17:29] Production.INFO: ProcessCDR(1,14240716,1,1,2) [2025-01-13 18:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240716', 'tblTempUsageDetail_20' ) start [2025-01-13 18:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240716', 'tblTempUsageDetail_20' ) end [2025-01-13 18:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:17:33] Production.INFO: ==28563== Releasing lock... [2025-01-13 18:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:17:33] Production.INFO: 59.25 MB #Memory Used# [2025-01-13 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:18:05 [end_date_ymd] => 2025-01-13 18:18:05 [RateCDR] => 1 ) [2025-01-13 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:18:05' and `end` < '2025-01-13 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:18:19] Production.INFO: count ==4160 [2025-01-13 18:18:21] Production.ERROR: pbx CDR StartTime 2025-01-13 15:18:05 - End Time 2025-01-13 18:18:05 [2025-01-13 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240721', 'tblTempUsageDetail_20' ) start [2025-01-13 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240721', 'tblTempUsageDetail_20' ) end [2025-01-13 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240721', 'tblTempVendorCDR_20' ) start [2025-01-13 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240721', 'tblTempVendorCDR_20' ) end [2025-01-13 18:18:21] Production.INFO: ProcessCDR(1,14240721,1,1,2) [2025-01-13 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240721', 'tblTempUsageDetail_20' ) start [2025-01-13 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240721', 'tblTempUsageDetail_20' ) end [2025-01-13 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:18:24] Production.INFO: ==28634== Releasing lock... [2025-01-13 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:18:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-13 18:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:19:04 [end_date_ymd] => 2025-01-13 18:19:04 [RateCDR] => 1 ) [2025-01-13 18:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:19:04' and `end` < '2025-01-13 18:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:19:19] Production.INFO: count ==4138 [2025-01-13 18:19:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:19:04 - End Time 2025-01-13 18:19:04 [2025-01-13 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240726', 'tblTempUsageDetail_20' ) start [2025-01-13 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240726', 'tblTempUsageDetail_20' ) end [2025-01-13 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240726', 'tblTempVendorCDR_20' ) start [2025-01-13 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240726', 'tblTempVendorCDR_20' ) end [2025-01-13 18:19:20] Production.INFO: ProcessCDR(1,14240726,1,1,2) [2025-01-13 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240726', 'tblTempUsageDetail_20' ) start [2025-01-13 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240726', 'tblTempUsageDetail_20' ) end [2025-01-13 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:19:24] Production.INFO: ==28707== Releasing lock... [2025-01-13 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:19:24] Production.INFO: 59 MB #Memory Used# [2025-01-13 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:20:06 [end_date_ymd] => 2025-01-13 18:20:06 [RateCDR] => 1 ) [2025-01-13 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:20:06' and `end` < '2025-01-13 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:20:19] Production.INFO: count ==4126 [2025-01-13 18:20:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:20:06 - End Time 2025-01-13 18:20:06 [2025-01-13 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240732', 'tblTempUsageDetail_20' ) start [2025-01-13 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240732', 'tblTempUsageDetail_20' ) end [2025-01-13 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240732', 'tblTempVendorCDR_20' ) start [2025-01-13 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240732', 'tblTempVendorCDR_20' ) end [2025-01-13 18:20:21] Production.INFO: ProcessCDR(1,14240732,1,1,2) [2025-01-13 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240732', 'tblTempUsageDetail_20' ) start [2025-01-13 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240732', 'tblTempUsageDetail_20' ) end [2025-01-13 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:20:25] Production.INFO: ==28784== Releasing lock... [2025-01-13 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:20:25] Production.INFO: 59 MB #Memory Used# [2025-01-13 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:21:05 [end_date_ymd] => 2025-01-13 18:21:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:21:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:21:18] Production.INFO: count ==4052 [2025-01-13 18:21:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:21:05 - End Time 2025-01-13 18:21:05 [2025-01-13 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240737', 'tblTempUsageDetail_20' ) start [2025-01-13 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240737', 'tblTempUsageDetail_20' ) end [2025-01-13 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240737', 'tblTempVendorCDR_20' ) start [2025-01-13 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240737', 'tblTempVendorCDR_20' ) end [2025-01-13 18:21:19] Production.INFO: ProcessCDR(1,14240737,1,1,2) [2025-01-13 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240737', 'tblTempUsageDetail_20' ) start [2025-01-13 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240737', 'tblTempUsageDetail_20' ) end [2025-01-13 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:21:24] Production.INFO: ==28857== Releasing lock... [2025-01-13 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:21:24] Production.INFO: 58.25 MB #Memory Used# [2025-01-13 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:22:05 [end_date_ymd] => 2025-01-13 18:22:05 [RateCDR] => 1 ) [2025-01-13 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:22:05' and `end` < '2025-01-13 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:22:19] Production.INFO: count ==4032 [2025-01-13 18:22:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:22:05 - End Time 2025-01-13 18:22:05 [2025-01-13 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240742', 'tblTempUsageDetail_20' ) start [2025-01-13 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240742', 'tblTempUsageDetail_20' ) end [2025-01-13 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240742', 'tblTempVendorCDR_20' ) start [2025-01-13 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240742', 'tblTempVendorCDR_20' ) end [2025-01-13 18:22:20] Production.INFO: ProcessCDR(1,14240742,1,1,2) [2025-01-13 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240742', 'tblTempUsageDetail_20' ) start [2025-01-13 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240742', 'tblTempUsageDetail_20' ) end [2025-01-13 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:22:25] Production.INFO: ==28927== Releasing lock... [2025-01-13 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:22:25] Production.INFO: 58 MB #Memory Used# [2025-01-13 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:23:05 [end_date_ymd] => 2025-01-13 18:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:23:19] Production.INFO: count ==4017 [2025-01-13 18:23:21] Production.ERROR: pbx CDR StartTime 2025-01-13 15:23:05 - End Time 2025-01-13 18:23:05 [2025-01-13 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240747', 'tblTempUsageDetail_20' ) start [2025-01-13 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240747', 'tblTempUsageDetail_20' ) end [2025-01-13 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240747', 'tblTempVendorCDR_20' ) start [2025-01-13 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240747', 'tblTempVendorCDR_20' ) end [2025-01-13 18:23:21] Production.INFO: ProcessCDR(1,14240747,1,1,2) [2025-01-13 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240747', 'tblTempUsageDetail_20' ) start [2025-01-13 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240747', 'tblTempUsageDetail_20' ) end [2025-01-13 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:23:25] Production.INFO: ==28999== Releasing lock... [2025-01-13 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:23:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-13 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:24:05 [end_date_ymd] => 2025-01-13 18:24:05 [RateCDR] => 1 ) [2025-01-13 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:24:05' and `end` < '2025-01-13 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:24:18] Production.INFO: count ==4009 [2025-01-13 18:24:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:24:05 - End Time 2025-01-13 18:24:05 [2025-01-13 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240752', 'tblTempUsageDetail_20' ) start [2025-01-13 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240752', 'tblTempUsageDetail_20' ) end [2025-01-13 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240752', 'tblTempVendorCDR_20' ) start [2025-01-13 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240752', 'tblTempVendorCDR_20' ) end [2025-01-13 18:24:19] Production.INFO: ProcessCDR(1,14240752,1,1,2) [2025-01-13 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240752', 'tblTempUsageDetail_20' ) start [2025-01-13 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240752', 'tblTempUsageDetail_20' ) end [2025-01-13 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:24:24] Production.INFO: ==29108== Releasing lock... [2025-01-13 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:24:24] Production.INFO: 58.25 MB #Memory Used# [2025-01-13 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:25:05 [end_date_ymd] => 2025-01-13 18:25:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:25:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:25:19] Production.INFO: count ==3994 [2025-01-13 18:25:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:25:05 - End Time 2025-01-13 18:25:05 [2025-01-13 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240757', 'tblTempUsageDetail_20' ) start [2025-01-13 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240757', 'tblTempUsageDetail_20' ) end [2025-01-13 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240757', 'tblTempVendorCDR_20' ) start [2025-01-13 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240757', 'tblTempVendorCDR_20' ) end [2025-01-13 18:25:20] Production.INFO: ProcessCDR(1,14240757,1,1,2) [2025-01-13 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240757', 'tblTempUsageDetail_20' ) start [2025-01-13 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240757', 'tblTempUsageDetail_20' ) end [2025-01-13 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:25:25] Production.INFO: ==29185== Releasing lock... [2025-01-13 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:25:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-13 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:26:05 [end_date_ymd] => 2025-01-13 18:26:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:26:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:26:18] Production.INFO: count ==3973 [2025-01-13 18:26:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:26:05 - End Time 2025-01-13 18:26:05 [2025-01-13 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240762', 'tblTempUsageDetail_20' ) start [2025-01-13 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240762', 'tblTempUsageDetail_20' ) end [2025-01-13 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240762', 'tblTempVendorCDR_20' ) start [2025-01-13 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240762', 'tblTempVendorCDR_20' ) end [2025-01-13 18:26:19] Production.INFO: ProcessCDR(1,14240762,1,1,2) [2025-01-13 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240762', 'tblTempUsageDetail_20' ) start [2025-01-13 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240762', 'tblTempUsageDetail_20' ) end [2025-01-13 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:26:24] Production.INFO: ==29256== Releasing lock... [2025-01-13 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:26:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-13 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:27:05 [end_date_ymd] => 2025-01-13 18:27:05 [RateCDR] => 1 ) [2025-01-13 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:27:05' and `end` < '2025-01-13 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:27:18] Production.INFO: count ==3968 [2025-01-13 18:27:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:27:05 - End Time 2025-01-13 18:27:05 [2025-01-13 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240767', 'tblTempUsageDetail_20' ) start [2025-01-13 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240767', 'tblTempUsageDetail_20' ) end [2025-01-13 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240767', 'tblTempVendorCDR_20' ) start [2025-01-13 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240767', 'tblTempVendorCDR_20' ) end [2025-01-13 18:27:19] Production.INFO: ProcessCDR(1,14240767,1,1,2) [2025-01-13 18:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240767', 'tblTempUsageDetail_20' ) start [2025-01-13 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240767', 'tblTempUsageDetail_20' ) end [2025-01-13 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:27:24] Production.INFO: ==29326== Releasing lock... [2025-01-13 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:27:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-13 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:28:05 [end_date_ymd] => 2025-01-13 18:28:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:28:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:28:19] Production.INFO: count ==3932 [2025-01-13 18:28:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:28:05 - End Time 2025-01-13 18:28:05 [2025-01-13 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240772', 'tblTempUsageDetail_20' ) start [2025-01-13 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240772', 'tblTempUsageDetail_20' ) end [2025-01-13 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240772', 'tblTempVendorCDR_20' ) start [2025-01-13 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240772', 'tblTempVendorCDR_20' ) end [2025-01-13 18:28:20] Production.INFO: ProcessCDR(1,14240772,1,1,2) [2025-01-13 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240772', 'tblTempUsageDetail_20' ) start [2025-01-13 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240772', 'tblTempUsageDetail_20' ) end [2025-01-13 18:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:28:25] Production.INFO: ==29400== Releasing lock... [2025-01-13 18:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:28:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-13 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:29:05 [end_date_ymd] => 2025-01-13 18:29:05 [RateCDR] => 1 ) [2025-01-13 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:29:05' and `end` < '2025-01-13 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:29:19] Production.INFO: count ==3916 [2025-01-13 18:29:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:29:05 - End Time 2025-01-13 18:29:05 [2025-01-13 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240777', 'tblTempUsageDetail_20' ) start [2025-01-13 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240777', 'tblTempUsageDetail_20' ) end [2025-01-13 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240777', 'tblTempVendorCDR_20' ) start [2025-01-13 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240777', 'tblTempVendorCDR_20' ) end [2025-01-13 18:29:20] Production.INFO: ProcessCDR(1,14240777,1,1,2) [2025-01-13 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240777', 'tblTempUsageDetail_20' ) start [2025-01-13 18:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240777', 'tblTempUsageDetail_20' ) end [2025-01-13 18:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:29:25] Production.INFO: ==29475== Releasing lock... [2025-01-13 18:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:29:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-13 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:30:05 [end_date_ymd] => 2025-01-13 18:30:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:30:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:30:18] Production.INFO: count ==3908 [2025-01-13 18:30:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:30:05 - End Time 2025-01-13 18:30:05 [2025-01-13 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240782', 'tblTempUsageDetail_20' ) start [2025-01-13 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240782', 'tblTempUsageDetail_20' ) end [2025-01-13 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240782', 'tblTempVendorCDR_20' ) start [2025-01-13 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240782', 'tblTempVendorCDR_20' ) end [2025-01-13 18:30:20] Production.INFO: ProcessCDR(1,14240782,1,1,2) [2025-01-13 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240782', 'tblTempUsageDetail_20' ) start [2025-01-13 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240782', 'tblTempUsageDetail_20' ) end [2025-01-13 18:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:30:24] Production.INFO: ==29548== Releasing lock... [2025-01-13 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:30:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-13 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:31:05 [end_date_ymd] => 2025-01-13 18:31:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:31:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:31:23] Production.INFO: count ==3848 [2025-01-13 18:31:24] Production.ERROR: pbx CDR StartTime 2025-01-13 15:31:05 - End Time 2025-01-13 18:31:05 [2025-01-13 18:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240788', 'tblTempUsageDetail_20' ) start [2025-01-13 18:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240788', 'tblTempUsageDetail_20' ) end [2025-01-13 18:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240788', 'tblTempVendorCDR_20' ) start [2025-01-13 18:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240788', 'tblTempVendorCDR_20' ) end [2025-01-13 18:31:24] Production.INFO: ProcessCDR(1,14240788,1,1,2) [2025-01-13 18:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240788', 'tblTempUsageDetail_20' ) start [2025-01-13 18:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240788', 'tblTempUsageDetail_20' ) end [2025-01-13 18:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:31:28] Production.INFO: ==29622== Releasing lock... [2025-01-13 18:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:31:28] Production.INFO: 56.75 MB #Memory Used# [2025-01-13 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:32:05 [end_date_ymd] => 2025-01-13 18:32:05 [RateCDR] => 1 ) [2025-01-13 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:32:05' and `end` < '2025-01-13 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:32:18] Production.INFO: count ==3828 [2025-01-13 18:32:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:32:05 - End Time 2025-01-13 18:32:05 [2025-01-13 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240793', 'tblTempUsageDetail_20' ) start [2025-01-13 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240793', 'tblTempUsageDetail_20' ) end [2025-01-13 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240793', 'tblTempVendorCDR_20' ) start [2025-01-13 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240793', 'tblTempVendorCDR_20' ) end [2025-01-13 18:32:20] Production.INFO: ProcessCDR(1,14240793,1,1,2) [2025-01-13 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240793', 'tblTempUsageDetail_20' ) start [2025-01-13 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240793', 'tblTempUsageDetail_20' ) end [2025-01-13 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:32:24] Production.INFO: ==29704== Releasing lock... [2025-01-13 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:32:24] Production.INFO: 56.75 MB #Memory Used# [2025-01-13 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:33:05 [end_date_ymd] => 2025-01-13 18:33:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:33:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:33:18] Production.INFO: count ==3807 [2025-01-13 18:33:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:33:05 - End Time 2025-01-13 18:33:05 [2025-01-13 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240798', 'tblTempUsageDetail_20' ) start [2025-01-13 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240798', 'tblTempUsageDetail_20' ) end [2025-01-13 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240798', 'tblTempVendorCDR_20' ) start [2025-01-13 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240798', 'tblTempVendorCDR_20' ) end [2025-01-13 18:33:19] Production.INFO: ProcessCDR(1,14240798,1,1,2) [2025-01-13 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240798', 'tblTempUsageDetail_20' ) start [2025-01-13 18:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240798', 'tblTempUsageDetail_20' ) end [2025-01-13 18:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:33:22] Production.INFO: ==29796== Releasing lock... [2025-01-13 18:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:33:22] Production.INFO: 56.5 MB #Memory Used# [2025-01-13 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:34:05 [end_date_ymd] => 2025-01-13 18:34:05 [RateCDR] => 1 ) [2025-01-13 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:34:05' and `end` < '2025-01-13 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:34:18] Production.INFO: count ==3796 [2025-01-13 18:34:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:34:05 - End Time 2025-01-13 18:34:05 [2025-01-13 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240803', 'tblTempUsageDetail_20' ) start [2025-01-13 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240803', 'tblTempUsageDetail_20' ) end [2025-01-13 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240803', 'tblTempVendorCDR_20' ) start [2025-01-13 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240803', 'tblTempVendorCDR_20' ) end [2025-01-13 18:34:19] Production.INFO: ProcessCDR(1,14240803,1,1,2) [2025-01-13 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240803', 'tblTempUsageDetail_20' ) start [2025-01-13 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240803', 'tblTempUsageDetail_20' ) end [2025-01-13 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:34:23] Production.INFO: ==29891== Releasing lock... [2025-01-13 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:34:23] Production.INFO: 56.25 MB #Memory Used# [2025-01-13 18:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:35:04 [end_date_ymd] => 2025-01-13 18:35:04 [RateCDR] => 1 ) [2025-01-13 18: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` >= '2025-01-13 15:35:04' and `end` < '2025-01-13 18: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 ,'') [2025-01-13 18:35:18] Production.INFO: count ==3796 [2025-01-13 18:35:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:35:04 - End Time 2025-01-13 18:35:04 [2025-01-13 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240808', 'tblTempUsageDetail_20' ) start [2025-01-13 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240808', 'tblTempUsageDetail_20' ) end [2025-01-13 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240808', 'tblTempVendorCDR_20' ) start [2025-01-13 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240808', 'tblTempVendorCDR_20' ) end [2025-01-13 18:35:19] Production.INFO: ProcessCDR(1,14240808,1,1,2) [2025-01-13 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240808', 'tblTempUsageDetail_20' ) start [2025-01-13 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240808', 'tblTempUsageDetail_20' ) end [2025-01-13 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:35:24] Production.INFO: ==29983== Releasing lock... [2025-01-13 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:35:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-13 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:36:05 [end_date_ymd] => 2025-01-13 18:36:05 [RateCDR] => 1 ) [2025-01-13 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:36:05' and `end` < '2025-01-13 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:36:20] Production.INFO: count ==3755 [2025-01-13 18:36:21] Production.ERROR: pbx CDR StartTime 2025-01-13 15:36:05 - End Time 2025-01-13 18:36:05 [2025-01-13 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240813', 'tblTempUsageDetail_20' ) start [2025-01-13 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240813', 'tblTempUsageDetail_20' ) end [2025-01-13 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240813', 'tblTempVendorCDR_20' ) start [2025-01-13 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240813', 'tblTempVendorCDR_20' ) end [2025-01-13 18:36:21] Production.INFO: ProcessCDR(1,14240813,1,1,2) [2025-01-13 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240813', 'tblTempUsageDetail_20' ) start [2025-01-13 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240813', 'tblTempUsageDetail_20' ) end [2025-01-13 18:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:36:26] Production.INFO: ==30077== Releasing lock... [2025-01-13 18:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:36:26] Production.INFO: 56.25 MB #Memory Used# [2025-01-13 18:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:37:04 [end_date_ymd] => 2025-01-13 18:37:04 [RateCDR] => 1 ) [2025-01-13 18:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:37:04' and `end` < '2025-01-13 18:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:37:17] Production.INFO: count ==3735 [2025-01-13 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:37:04 - End Time 2025-01-13 18:37:04 [2025-01-13 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240818', 'tblTempUsageDetail_20' ) start [2025-01-13 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240818', 'tblTempUsageDetail_20' ) end [2025-01-13 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240818', 'tblTempVendorCDR_20' ) start [2025-01-13 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240818', 'tblTempVendorCDR_20' ) end [2025-01-13 18:37:19] Production.INFO: ProcessCDR(1,14240818,1,1,2) [2025-01-13 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240818', 'tblTempUsageDetail_20' ) start [2025-01-13 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240818', 'tblTempUsageDetail_20' ) end [2025-01-13 18:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:37:22] Production.INFO: ==30170== Releasing lock... [2025-01-13 18:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:37:22] Production.INFO: 56.5 MB #Memory Used# [2025-01-13 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:38:05 [end_date_ymd] => 2025-01-13 18:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:38:18] Production.INFO: count ==3709 [2025-01-13 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:38:05 - End Time 2025-01-13 18:38:05 [2025-01-13 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240823', 'tblTempUsageDetail_20' ) start [2025-01-13 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240823', 'tblTempUsageDetail_20' ) end [2025-01-13 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240823', 'tblTempVendorCDR_20' ) start [2025-01-13 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240823', 'tblTempVendorCDR_20' ) end [2025-01-13 18:38:20] Production.INFO: ProcessCDR(1,14240823,1,1,2) [2025-01-13 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240823', 'tblTempUsageDetail_20' ) start [2025-01-13 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240823', 'tblTempUsageDetail_20' ) end [2025-01-13 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:38:23] Production.INFO: ==30270== Releasing lock... [2025-01-13 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:38:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-13 18:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:39:04 [end_date_ymd] => 2025-01-13 18:39:04 [RateCDR] => 1 ) [2025-01-13 18:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:39:04' and `end` < '2025-01-13 18:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:39:17] Production.INFO: count ==3657 [2025-01-13 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:39:04 - End Time 2025-01-13 18:39:04 [2025-01-13 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240828', 'tblTempUsageDetail_20' ) start [2025-01-13 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240828', 'tblTempUsageDetail_20' ) end [2025-01-13 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240828', 'tblTempVendorCDR_20' ) start [2025-01-13 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240828', 'tblTempVendorCDR_20' ) end [2025-01-13 18:39:19] Production.INFO: ProcessCDR(1,14240828,1,1,2) [2025-01-13 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240828', 'tblTempUsageDetail_20' ) start [2025-01-13 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240828', 'tblTempUsageDetail_20' ) end [2025-01-13 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:39:22] Production.INFO: ==30362== Releasing lock... [2025-01-13 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:39:22] Production.INFO: 55.5 MB #Memory Used# [2025-01-13 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:40:05 [end_date_ymd] => 2025-01-13 18:40:05 [RateCDR] => 1 ) [2025-01-13 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:40:05' and `end` < '2025-01-13 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:40:22] Production.INFO: count ==3642 [2025-01-13 18:40:23] Production.ERROR: pbx CDR StartTime 2025-01-13 15:40:05 - End Time 2025-01-13 18:40:05 [2025-01-13 18:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240833', 'tblTempUsageDetail_20' ) start [2025-01-13 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240833', 'tblTempUsageDetail_20' ) end [2025-01-13 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240833', 'tblTempVendorCDR_20' ) start [2025-01-13 18:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240833', 'tblTempVendorCDR_20' ) end [2025-01-13 18:40:23] Production.INFO: ProcessCDR(1,14240833,1,1,2) [2025-01-13 18:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240833', 'tblTempUsageDetail_20' ) start [2025-01-13 18:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240833', 'tblTempUsageDetail_20' ) end [2025-01-13 18:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:40:28] Production.INFO: ==30494== Releasing lock... [2025-01-13 18:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:40:28] Production.INFO: 55.5 MB #Memory Used# [2025-01-13 18:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:41:04 [end_date_ymd] => 2025-01-13 18:41:04 [RateCDR] => 1 ) [2025-01-13 18:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:41:04' and `end` < '2025-01-13 18:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:41:19] Production.INFO: count ==3606 [2025-01-13 18:41:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:41:04 - End Time 2025-01-13 18:41:04 [2025-01-13 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240839', 'tblTempUsageDetail_20' ) start [2025-01-13 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240839', 'tblTempUsageDetail_20' ) end [2025-01-13 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240839', 'tblTempVendorCDR_20' ) start [2025-01-13 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240839', 'tblTempVendorCDR_20' ) end [2025-01-13 18:41:21] Production.INFO: ProcessCDR(1,14240839,1,1,2) [2025-01-13 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240839', 'tblTempUsageDetail_20' ) start [2025-01-13 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240839', 'tblTempUsageDetail_20' ) end [2025-01-13 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:41:25] Production.INFO: ==30590== Releasing lock... [2025-01-13 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:41:25] Production.INFO: 55 MB #Memory Used# [2025-01-13 18:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:42:04 [end_date_ymd] => 2025-01-13 18:42:04 [RateCDR] => 1 ) [2025-01-13 18: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` >= '2025-01-13 15:42:04' and `end` < '2025-01-13 18: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 ,'') [2025-01-13 18:42:19] Production.INFO: count ==3601 [2025-01-13 18:42:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:42:04 - End Time 2025-01-13 18:42:04 [2025-01-13 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240844', 'tblTempUsageDetail_20' ) start [2025-01-13 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240844', 'tblTempUsageDetail_20' ) end [2025-01-13 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240844', 'tblTempVendorCDR_20' ) start [2025-01-13 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240844', 'tblTempVendorCDR_20' ) end [2025-01-13 18:42:20] Production.INFO: ProcessCDR(1,14240844,1,1,2) [2025-01-13 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240844', 'tblTempUsageDetail_20' ) start [2025-01-13 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240844', 'tblTempUsageDetail_20' ) end [2025-01-13 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:42:25] Production.INFO: ==30686== Releasing lock... [2025-01-13 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:42:25] Production.INFO: 55.75 MB #Memory Used# [2025-01-13 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:43:05 [end_date_ymd] => 2025-01-13 18:43:05 [RateCDR] => 1 ) [2025-01-13 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:43:05' and `end` < '2025-01-13 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:43:19] Production.INFO: count ==3592 [2025-01-13 18:43:20] Production.ERROR: pbx CDR StartTime 2025-01-13 15:43:05 - End Time 2025-01-13 18:43:05 [2025-01-13 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240849', 'tblTempUsageDetail_20' ) start [2025-01-13 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240849', 'tblTempUsageDetail_20' ) end [2025-01-13 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240849', 'tblTempVendorCDR_20' ) start [2025-01-13 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240849', 'tblTempVendorCDR_20' ) end [2025-01-13 18:43:20] Production.INFO: ProcessCDR(1,14240849,1,1,2) [2025-01-13 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240849', 'tblTempUsageDetail_20' ) start [2025-01-13 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240849', 'tblTempUsageDetail_20' ) end [2025-01-13 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:43:25] Production.INFO: ==30783== Releasing lock... [2025-01-13 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:43:25] Production.INFO: 54.75 MB #Memory Used# [2025-01-13 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:44:05 [end_date_ymd] => 2025-01-13 18:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:44:20] Production.INFO: count ==3565 [2025-01-13 18:44:21] Production.ERROR: pbx CDR StartTime 2025-01-13 15:44:05 - End Time 2025-01-13 18:44:05 [2025-01-13 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240854', 'tblTempUsageDetail_20' ) start [2025-01-13 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240854', 'tblTempUsageDetail_20' ) end [2025-01-13 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240854', 'tblTempVendorCDR_20' ) start [2025-01-13 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240854', 'tblTempVendorCDR_20' ) end [2025-01-13 18:44:21] Production.INFO: ProcessCDR(1,14240854,1,1,2) [2025-01-13 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240854', 'tblTempUsageDetail_20' ) start [2025-01-13 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240854', 'tblTempUsageDetail_20' ) end [2025-01-13 18:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:44:26] Production.INFO: ==30876== Releasing lock... [2025-01-13 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:44:26] Production.INFO: 55 MB #Memory Used# [2025-01-13 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:45:05 [end_date_ymd] => 2025-01-13 18:45:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:45:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:45:20] Production.INFO: count ==3548 [2025-01-13 18:45:22] Production.ERROR: pbx CDR StartTime 2025-01-13 15:45:05 - End Time 2025-01-13 18:45:05 [2025-01-13 18:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240859', 'tblTempUsageDetail_20' ) start [2025-01-13 18:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240859', 'tblTempUsageDetail_20' ) end [2025-01-13 18:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240859', 'tblTempVendorCDR_20' ) start [2025-01-13 18:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240859', 'tblTempVendorCDR_20' ) end [2025-01-13 18:45:22] Production.INFO: ProcessCDR(1,14240859,1,1,2) [2025-01-13 18:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240859', 'tblTempUsageDetail_20' ) start [2025-01-13 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240859', 'tblTempUsageDetail_20' ) end [2025-01-13 18:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:45:26] Production.INFO: ==30964== Releasing lock... [2025-01-13 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:45:26] Production.INFO: 55 MB #Memory Used# [2025-01-13 18:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:46:04 [end_date_ymd] => 2025-01-13 18:46:04 [RateCDR] => 1 ) [2025-01-13 18:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:46:04' and `end` < '2025-01-13 18:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:46:18] Production.INFO: count ==3539 [2025-01-13 18:46:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:46:04 - End Time 2025-01-13 18:46:04 [2025-01-13 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240864', 'tblTempUsageDetail_20' ) start [2025-01-13 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240864', 'tblTempUsageDetail_20' ) end [2025-01-13 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240864', 'tblTempVendorCDR_20' ) start [2025-01-13 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240864', 'tblTempVendorCDR_20' ) end [2025-01-13 18:46:20] Production.INFO: ProcessCDR(1,14240864,1,1,2) [2025-01-13 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240864', 'tblTempUsageDetail_20' ) start [2025-01-13 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240864', 'tblTempUsageDetail_20' ) end [2025-01-13 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:46:24] Production.INFO: ==31058== Releasing lock... [2025-01-13 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:46:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-13 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:47:05 [end_date_ymd] => 2025-01-13 18:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:47:18] Production.INFO: count ==3525 [2025-01-13 18:47:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:47:05 - End Time 2025-01-13 18:47:05 [2025-01-13 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240869', 'tblTempUsageDetail_20' ) start [2025-01-13 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240869', 'tblTempUsageDetail_20' ) end [2025-01-13 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240869', 'tblTempVendorCDR_20' ) start [2025-01-13 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240869', 'tblTempVendorCDR_20' ) end [2025-01-13 18:47:19] Production.INFO: ProcessCDR(1,14240869,1,1,2) [2025-01-13 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240869', 'tblTempUsageDetail_20' ) start [2025-01-13 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240869', 'tblTempUsageDetail_20' ) end [2025-01-13 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:47:23] Production.INFO: ==31145== Releasing lock... [2025-01-13 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:47:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-13 18:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:48:04 [end_date_ymd] => 2025-01-13 18:48:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:48:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:48:17] Production.INFO: count ==3523 [2025-01-13 18:48:18] Production.ERROR: pbx CDR StartTime 2025-01-13 15:48:04 - End Time 2025-01-13 18:48:04 [2025-01-13 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240874', 'tblTempUsageDetail_20' ) start [2025-01-13 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240874', 'tblTempUsageDetail_20' ) end [2025-01-13 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240874', 'tblTempVendorCDR_20' ) start [2025-01-13 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240874', 'tblTempVendorCDR_20' ) end [2025-01-13 18:48:19] Production.INFO: ProcessCDR(1,14240874,1,1,2) [2025-01-13 18:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240874', 'tblTempUsageDetail_20' ) start [2025-01-13 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240874', 'tblTempUsageDetail_20' ) end [2025-01-13 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:48:23] Production.INFO: ==31224== Releasing lock... [2025-01-13 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:48:23] Production.INFO: 54.25 MB #Memory Used# [2025-01-13 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:49:05 [end_date_ymd] => 2025-01-13 18:49:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:49:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:49:18] Production.INFO: count ==3510 [2025-01-13 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:49:05 - End Time 2025-01-13 18:49:05 [2025-01-13 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240879', 'tblTempUsageDetail_20' ) start [2025-01-13 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240879', 'tblTempUsageDetail_20' ) end [2025-01-13 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240879', 'tblTempVendorCDR_20' ) start [2025-01-13 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240879', 'tblTempVendorCDR_20' ) end [2025-01-13 18:49:19] Production.INFO: ProcessCDR(1,14240879,1,1,2) [2025-01-13 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240879', 'tblTempUsageDetail_20' ) start [2025-01-13 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240879', 'tblTempUsageDetail_20' ) end [2025-01-13 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:49:22] Production.INFO: ==31304== Releasing lock... [2025-01-13 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:49:22] Production.INFO: 54.75 MB #Memory Used# [2025-01-13 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:50:06 [end_date_ymd] => 2025-01-13 18:50:06 [RateCDR] => 1 ) [2025-01-13 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:50:06' and `end` < '2025-01-13 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:50:20] Production.INFO: count ==3493 [2025-01-13 18:50:21] Production.ERROR: pbx CDR StartTime 2025-01-13 15:50:06 - End Time 2025-01-13 18:50:06 [2025-01-13 18:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240885', 'tblTempUsageDetail_20' ) start [2025-01-13 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240885', 'tblTempUsageDetail_20' ) end [2025-01-13 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240885', 'tblTempVendorCDR_20' ) start [2025-01-13 18:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240885', 'tblTempVendorCDR_20' ) end [2025-01-13 18:50:21] Production.INFO: ProcessCDR(1,14240885,1,1,2) [2025-01-13 18:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240885', 'tblTempUsageDetail_20' ) start [2025-01-13 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240885', 'tblTempUsageDetail_20' ) end [2025-01-13 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:50:26] Production.INFO: ==31383== Releasing lock... [2025-01-13 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:50:26] Production.INFO: 54.25 MB #Memory Used# [2025-01-13 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:51:04 [end_date_ymd] => 2025-01-13 18:51:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:51:04' and `end` < '2025-01-13 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:51:18] Production.INFO: count ==3431 [2025-01-13 18:51:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:51:04 - End Time 2025-01-13 18:51:04 [2025-01-13 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240890', 'tblTempUsageDetail_20' ) start [2025-01-13 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240890', 'tblTempUsageDetail_20' ) end [2025-01-13 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240890', 'tblTempVendorCDR_20' ) start [2025-01-13 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240890', 'tblTempVendorCDR_20' ) end [2025-01-13 18:51:19] Production.INFO: ProcessCDR(1,14240890,1,1,2) [2025-01-13 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240890', 'tblTempUsageDetail_20' ) start [2025-01-13 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240890', 'tblTempUsageDetail_20' ) end [2025-01-13 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:51:23] Production.INFO: ==31459== Releasing lock... [2025-01-13 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:51:23] Production.INFO: 54 MB #Memory Used# [2025-01-13 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:52:05 [end_date_ymd] => 2025-01-13 18:52:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:52:18] Production.INFO: count ==3406 [2025-01-13 18:52:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:52:05 - End Time 2025-01-13 18:52:05 [2025-01-13 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240895', 'tblTempUsageDetail_20' ) start [2025-01-13 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240895', 'tblTempUsageDetail_20' ) end [2025-01-13 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240895', 'tblTempVendorCDR_20' ) start [2025-01-13 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240895', 'tblTempVendorCDR_20' ) end [2025-01-13 18:52:19] Production.INFO: ProcessCDR(1,14240895,1,1,2) [2025-01-13 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240895', 'tblTempUsageDetail_20' ) start [2025-01-13 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240895', 'tblTempUsageDetail_20' ) end [2025-01-13 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:52:22] Production.INFO: ==31535== Releasing lock... [2025-01-13 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:52:22] Production.INFO: 54 MB #Memory Used# [2025-01-13 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:53:04 [end_date_ymd] => 2025-01-13 18:53:04 [RateCDR] => 1 ) [2025-01-13 18:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:53:04' and `end` < '2025-01-13 18:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:53:17] Production.INFO: count ==3376 [2025-01-13 18:53:18] Production.ERROR: pbx CDR StartTime 2025-01-13 15:53:04 - End Time 2025-01-13 18:53:04 [2025-01-13 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240900', 'tblTempUsageDetail_20' ) start [2025-01-13 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240900', 'tblTempUsageDetail_20' ) end [2025-01-13 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240900', 'tblTempVendorCDR_20' ) start [2025-01-13 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240900', 'tblTempVendorCDR_20' ) end [2025-01-13 18:53:18] Production.INFO: ProcessCDR(1,14240900,1,1,2) [2025-01-13 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240900', 'tblTempUsageDetail_20' ) start [2025-01-13 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240900', 'tblTempUsageDetail_20' ) end [2025-01-13 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:53:23] Production.INFO: ==31609== Releasing lock... [2025-01-13 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:53:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-13 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:54:05 [end_date_ymd] => 2025-01-13 18:54:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:54:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:54:18] Production.INFO: count ==3357 [2025-01-13 18:54:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:54:05 - End Time 2025-01-13 18:54:05 [2025-01-13 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240905', 'tblTempUsageDetail_20' ) start [2025-01-13 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240905', 'tblTempUsageDetail_20' ) end [2025-01-13 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240905', 'tblTempVendorCDR_20' ) start [2025-01-13 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240905', 'tblTempVendorCDR_20' ) end [2025-01-13 18:54:19] Production.INFO: ProcessCDR(1,14240905,1,1,2) [2025-01-13 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240905', 'tblTempUsageDetail_20' ) start [2025-01-13 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240905', 'tblTempUsageDetail_20' ) end [2025-01-13 18:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:54:22] Production.INFO: ==31682== Releasing lock... [2025-01-13 18:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:54:22] Production.INFO: 53 MB #Memory Used# [2025-01-13 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:55:04 [end_date_ymd] => 2025-01-13 18:55:04 [RateCDR] => 1 ) [2025-01-13 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:55:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:55:17] Production.INFO: count ==3334 [2025-01-13 18:55:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:55:04 - End Time 2025-01-13 18:55:04 [2025-01-13 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240910', 'tblTempUsageDetail_20' ) start [2025-01-13 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240910', 'tblTempUsageDetail_20' ) end [2025-01-13 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240910', 'tblTempVendorCDR_20' ) start [2025-01-13 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240910', 'tblTempVendorCDR_20' ) end [2025-01-13 18:55:19] Production.INFO: ProcessCDR(1,14240910,1,1,2) [2025-01-13 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240910', 'tblTempUsageDetail_20' ) start [2025-01-13 18:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240910', 'tblTempUsageDetail_20' ) end [2025-01-13 18:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:55:23] Production.INFO: ==31794== Releasing lock... [2025-01-13 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:55:23] Production.INFO: 53 MB #Memory Used# [2025-01-13 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:56:06 [end_date_ymd] => 2025-01-13 18:56:06 [RateCDR] => 1 ) [2025-01-13 18: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` >= '2025-01-13 15:56:06' and `end` < '2025-01-13 18: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 ,'') [2025-01-13 18:56:21] Production.INFO: count ==3316 [2025-01-13 18:56:22] Production.ERROR: pbx CDR StartTime 2025-01-13 15:56:06 - End Time 2025-01-13 18:56:06 [2025-01-13 18:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240915', 'tblTempUsageDetail_20' ) start [2025-01-13 18:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240915', 'tblTempUsageDetail_20' ) end [2025-01-13 18:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240915', 'tblTempVendorCDR_20' ) start [2025-01-13 18:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240915', 'tblTempVendorCDR_20' ) end [2025-01-13 18:56:22] Production.INFO: ProcessCDR(1,14240915,1,1,2) [2025-01-13 18:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240915', 'tblTempUsageDetail_20' ) start [2025-01-13 18:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240915', 'tblTempUsageDetail_20' ) end [2025-01-13 18:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:56:27] Production.INFO: ==31865== Releasing lock... [2025-01-13 18:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:56:27] Production.INFO: 53.75 MB #Memory Used# [2025-01-13 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:57:05 [end_date_ymd] => 2025-01-13 18:57:05 [RateCDR] => 1 ) [2025-01-13 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 15:57:05' and `end` < '2025-01-13 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 18:57:17] Production.INFO: count ==3306 [2025-01-13 18:57:18] Production.ERROR: pbx CDR StartTime 2025-01-13 15:57:05 - End Time 2025-01-13 18:57:05 [2025-01-13 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240920', 'tblTempUsageDetail_20' ) start [2025-01-13 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240920', 'tblTempUsageDetail_20' ) end [2025-01-13 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240920', 'tblTempVendorCDR_20' ) start [2025-01-13 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240920', 'tblTempVendorCDR_20' ) end [2025-01-13 18:57:19] Production.INFO: ProcessCDR(1,14240920,1,1,2) [2025-01-13 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240920', 'tblTempUsageDetail_20' ) start [2025-01-13 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240920', 'tblTempUsageDetail_20' ) end [2025-01-13 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:57:22] Production.INFO: ==31935== Releasing lock... [2025-01-13 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:57:22] Production.INFO: 53 MB #Memory Used# [2025-01-13 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:58:05 [end_date_ymd] => 2025-01-13 18:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 15:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 18:58:18] Production.INFO: count ==3282 [2025-01-13 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-13 15:58:05 - End Time 2025-01-13 18:58:05 [2025-01-13 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240925', 'tblTempUsageDetail_20' ) start [2025-01-13 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240925', 'tblTempUsageDetail_20' ) end [2025-01-13 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240925', 'tblTempVendorCDR_20' ) start [2025-01-13 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240925', 'tblTempVendorCDR_20' ) end [2025-01-13 18:58:19] Production.INFO: ProcessCDR(1,14240925,1,1,2) [2025-01-13 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240925', 'tblTempUsageDetail_20' ) start [2025-01-13 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240925', 'tblTempUsageDetail_20' ) end [2025-01-13 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:58:22] Production.INFO: ==32009== Releasing lock... [2025-01-13 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:58:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-13 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 15:59:04 [end_date_ymd] => 2025-01-13 18:59:04 [RateCDR] => 1 ) [2025-01-13 18: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` >= '2025-01-13 15:59:04' and `end` < '2025-01-13 18: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 ,'') [2025-01-13 18:59:17] Production.INFO: count ==3261 [2025-01-13 18:59:18] Production.ERROR: pbx CDR StartTime 2025-01-13 15:59:04 - End Time 2025-01-13 18:59:04 [2025-01-13 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240930', 'tblTempUsageDetail_20' ) start [2025-01-13 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240930', 'tblTempUsageDetail_20' ) end [2025-01-13 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240930', 'tblTempVendorCDR_20' ) start [2025-01-13 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240930', 'tblTempVendorCDR_20' ) end [2025-01-13 18:59:18] Production.INFO: ProcessCDR(1,14240930,1,1,2) [2025-01-13 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240930', 'tblTempUsageDetail_20' ) start [2025-01-13 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240930', 'tblTempUsageDetail_20' ) end [2025-01-13 18:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 18:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 18:59:21] Production.INFO: ==32082== Releasing lock... [2025-01-13 18:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 18:59:21] Production.INFO: 52.75 MB #Memory Used# [2025-01-13 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:00:05 [end_date_ymd] => 2025-01-13 19:00:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:00:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:00:18] Production.INFO: count ==3255 [2025-01-13 19:00:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:00:05 - End Time 2025-01-13 19:00:05 [2025-01-13 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240936', 'tblTempUsageDetail_20' ) start [2025-01-13 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240936', 'tblTempUsageDetail_20' ) end [2025-01-13 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240936', 'tblTempVendorCDR_20' ) start [2025-01-13 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240936', 'tblTempVendorCDR_20' ) end [2025-01-13 19:00:20] Production.INFO: ProcessCDR(1,14240936,1,1,2) [2025-01-13 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240936', 'tblTempUsageDetail_20' ) start [2025-01-13 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240936', 'tblTempUsageDetail_20' ) end [2025-01-13 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:00:24] Production.INFO: ==32158== Releasing lock... [2025-01-13 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:00:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-13 19:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:01:04 [end_date_ymd] => 2025-01-13 19:01:04 [RateCDR] => 1 ) [2025-01-13 19:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:01:04' and `end` < '2025-01-13 19:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:01:18] Production.INFO: count ==3186 [2025-01-13 19:01:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:01:04 - End Time 2025-01-13 19:01:04 [2025-01-13 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240941', 'tblTempUsageDetail_20' ) start [2025-01-13 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240941', 'tblTempUsageDetail_20' ) end [2025-01-13 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240941', 'tblTempVendorCDR_20' ) start [2025-01-13 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240941', 'tblTempVendorCDR_20' ) end [2025-01-13 19:01:19] Production.INFO: ProcessCDR(1,14240941,1,1,2) [2025-01-13 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240941', 'tblTempUsageDetail_20' ) start [2025-01-13 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240941', 'tblTempUsageDetail_20' ) end [2025-01-13 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:01:23] Production.INFO: ==32247== Releasing lock... [2025-01-13 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:01:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-13 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:02:05 [end_date_ymd] => 2025-01-13 19:02:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:02:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:02:17] Production.INFO: count ==3177 [2025-01-13 19:02:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:02:05 - End Time 2025-01-13 19:02:05 [2025-01-13 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240946', 'tblTempUsageDetail_20' ) start [2025-01-13 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240946', 'tblTempUsageDetail_20' ) end [2025-01-13 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240946', 'tblTempVendorCDR_20' ) start [2025-01-13 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240946', 'tblTempVendorCDR_20' ) end [2025-01-13 19:02:18] Production.INFO: ProcessCDR(1,14240946,1,1,2) [2025-01-13 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240946', 'tblTempUsageDetail_20' ) start [2025-01-13 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240946', 'tblTempUsageDetail_20' ) end [2025-01-13 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:02:23] Production.INFO: ==32397== Releasing lock... [2025-01-13 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:02:23] Production.INFO: 52 MB #Memory Used# [2025-01-13 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:03:05 [end_date_ymd] => 2025-01-13 19:03:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:03:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:03:17] Production.INFO: count ==3134 [2025-01-13 19:03:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:03:05 - End Time 2025-01-13 19:03:05 [2025-01-13 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240951', 'tblTempUsageDetail_20' ) start [2025-01-13 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240951', 'tblTempUsageDetail_20' ) end [2025-01-13 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240951', 'tblTempVendorCDR_20' ) start [2025-01-13 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240951', 'tblTempVendorCDR_20' ) end [2025-01-13 19:03:18] Production.INFO: ProcessCDR(1,14240951,1,1,2) [2025-01-13 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240951', 'tblTempUsageDetail_20' ) start [2025-01-13 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240951', 'tblTempUsageDetail_20' ) end [2025-01-13 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:03:23] Production.INFO: ==32469== Releasing lock... [2025-01-13 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:03:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-13 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:04:05 [end_date_ymd] => 2025-01-13 19:04:05 [RateCDR] => 1 ) [2025-01-13 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:04:05' and `end` < '2025-01-13 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:04:18] Production.INFO: count ==3126 [2025-01-13 19:04:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:04:05 - End Time 2025-01-13 19:04:05 [2025-01-13 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240956', 'tblTempUsageDetail_20' ) start [2025-01-13 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240956', 'tblTempUsageDetail_20' ) end [2025-01-13 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240956', 'tblTempVendorCDR_20' ) start [2025-01-13 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240956', 'tblTempVendorCDR_20' ) end [2025-01-13 19:04:19] Production.INFO: ProcessCDR(1,14240956,1,1,2) [2025-01-13 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240956', 'tblTempUsageDetail_20' ) start [2025-01-13 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240956', 'tblTempUsageDetail_20' ) end [2025-01-13 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:04:22] Production.INFO: ==32540== Releasing lock... [2025-01-13 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:04:22] Production.INFO: 51.25 MB #Memory Used# [2025-01-13 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:05:05 [end_date_ymd] => 2025-01-13 19:05:05 [RateCDR] => 1 ) [2025-01-13 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:05:05' and `end` < '2025-01-13 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:05:18] Production.INFO: count ==3105 [2025-01-13 19:05:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:05:05 - End Time 2025-01-13 19:05:05 [2025-01-13 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240961', 'tblTempUsageDetail_20' ) start [2025-01-13 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240961', 'tblTempUsageDetail_20' ) end [2025-01-13 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240961', 'tblTempVendorCDR_20' ) start [2025-01-13 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240961', 'tblTempVendorCDR_20' ) end [2025-01-13 19:05:19] Production.INFO: ProcessCDR(1,14240961,1,1,2) [2025-01-13 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240961', 'tblTempUsageDetail_20' ) start [2025-01-13 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240961', 'tblTempUsageDetail_20' ) end [2025-01-13 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:05:23] Production.INFO: ==32695== Releasing lock... [2025-01-13 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:05:23] Production.INFO: 51.25 MB #Memory Used# [2025-01-13 19:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:06:04 [end_date_ymd] => 2025-01-13 19:06:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:06:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:06:17] Production.INFO: count ==3095 [2025-01-13 19:06:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:06:04 - End Time 2025-01-13 19:06:04 [2025-01-13 19:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240966', 'tblTempUsageDetail_20' ) start [2025-01-13 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240966', 'tblTempUsageDetail_20' ) end [2025-01-13 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240966', 'tblTempVendorCDR_20' ) start [2025-01-13 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240966', 'tblTempVendorCDR_20' ) end [2025-01-13 19:06:18] Production.INFO: ProcessCDR(1,14240966,1,1,2) [2025-01-13 19:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240966', 'tblTempUsageDetail_20' ) start [2025-01-13 19:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240966', 'tblTempUsageDetail_20' ) end [2025-01-13 19:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:06:21] Production.INFO: ==302== Releasing lock... [2025-01-13 19:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:06:21] Production.INFO: 51 MB #Memory Used# [2025-01-13 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:07:05 [end_date_ymd] => 2025-01-13 19:07:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:07:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:07:18] Production.INFO: count ==3069 [2025-01-13 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:07:05 - End Time 2025-01-13 19:07:05 [2025-01-13 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240971', 'tblTempUsageDetail_20' ) start [2025-01-13 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240971', 'tblTempUsageDetail_20' ) end [2025-01-13 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240971', 'tblTempVendorCDR_20' ) start [2025-01-13 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240971', 'tblTempVendorCDR_20' ) end [2025-01-13 19:07:19] Production.INFO: ProcessCDR(1,14240971,1,1,2) [2025-01-13 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240971', 'tblTempUsageDetail_20' ) start [2025-01-13 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240971', 'tblTempUsageDetail_20' ) end [2025-01-13 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:07:22] Production.INFO: ==391== Releasing lock... [2025-01-13 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:07:22] Production.INFO: 51 MB #Memory Used# [2025-01-13 19:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:08:04 [end_date_ymd] => 2025-01-13 19:08:04 [RateCDR] => 1 ) [2025-01-13 19: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` >= '2025-01-13 16:08:04' and `end` < '2025-01-13 19: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 ,'') [2025-01-13 19:08:17] Production.INFO: count ==3049 [2025-01-13 19:08:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:08:04 - End Time 2025-01-13 19:08:04 [2025-01-13 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240976', 'tblTempUsageDetail_20' ) start [2025-01-13 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240976', 'tblTempUsageDetail_20' ) end [2025-01-13 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240976', 'tblTempVendorCDR_20' ) start [2025-01-13 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240976', 'tblTempVendorCDR_20' ) end [2025-01-13 19:08:18] Production.INFO: ProcessCDR(1,14240976,1,1,2) [2025-01-13 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240976', 'tblTempUsageDetail_20' ) start [2025-01-13 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240976', 'tblTempUsageDetail_20' ) end [2025-01-13 19:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:08:21] Production.INFO: ==479== Releasing lock... [2025-01-13 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:08:21] Production.INFO: 51 MB #Memory Used# [2025-01-13 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:09:05 [end_date_ymd] => 2025-01-13 19:09:05 [RateCDR] => 1 ) [2025-01-13 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:09:05' and `end` < '2025-01-13 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:09:18] Production.INFO: count ==3027 [2025-01-13 19:09:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:09:05 - End Time 2025-01-13 19:09:05 [2025-01-13 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240981', 'tblTempUsageDetail_20' ) start [2025-01-13 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240981', 'tblTempUsageDetail_20' ) end [2025-01-13 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240981', 'tblTempVendorCDR_20' ) start [2025-01-13 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240981', 'tblTempVendorCDR_20' ) end [2025-01-13 19:09:18] Production.INFO: ProcessCDR(1,14240981,1,1,2) [2025-01-13 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240981', 'tblTempUsageDetail_20' ) start [2025-01-13 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240981', 'tblTempUsageDetail_20' ) end [2025-01-13 19:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:09:21] Production.INFO: ==624== Releasing lock... [2025-01-13 19:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:09:21] Production.INFO: 50.5 MB #Memory Used# [2025-01-13 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:10:05 [end_date_ymd] => 2025-01-13 19:10:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:10:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:10:18] Production.INFO: count ==3007 [2025-01-13 19:10:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:10:05 - End Time 2025-01-13 19:10:05 [2025-01-13 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240987', 'tblTempUsageDetail_20' ) start [2025-01-13 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240987', 'tblTempUsageDetail_20' ) end [2025-01-13 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240987', 'tblTempVendorCDR_20' ) start [2025-01-13 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240987', 'tblTempVendorCDR_20' ) end [2025-01-13 19:10:19] Production.INFO: ProcessCDR(1,14240987,1,1,2) [2025-01-13 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240987', 'tblTempUsageDetail_20' ) start [2025-01-13 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240987', 'tblTempUsageDetail_20' ) end [2025-01-13 19:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:10:22] Production.INFO: ==724== Releasing lock... [2025-01-13 19:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:10:22] Production.INFO: 50.5 MB #Memory Used# [2025-01-13 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:11:05 [end_date_ymd] => 2025-01-13 19:11:05 [RateCDR] => 1 ) [2025-01-13 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:11:05' and `end` < '2025-01-13 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:11:18] Production.INFO: count ==2937 [2025-01-13 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:11:05 - End Time 2025-01-13 19:11:05 [2025-01-13 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240992', 'tblTempUsageDetail_20' ) start [2025-01-13 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240992', 'tblTempUsageDetail_20' ) end [2025-01-13 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240992', 'tblTempVendorCDR_20' ) start [2025-01-13 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240992', 'tblTempVendorCDR_20' ) end [2025-01-13 19:11:19] Production.INFO: ProcessCDR(1,14240992,1,1,2) [2025-01-13 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240992', 'tblTempUsageDetail_20' ) start [2025-01-13 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240992', 'tblTempUsageDetail_20' ) end [2025-01-13 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:11:23] Production.INFO: ==842== Releasing lock... [2025-01-13 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:11:23] Production.INFO: 50.25 MB #Memory Used# [2025-01-13 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:12:05 [end_date_ymd] => 2025-01-13 19:12:05 [RateCDR] => 1 ) [2025-01-13 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:12:05' and `end` < '2025-01-13 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:12:18] Production.INFO: count ==2926 [2025-01-13 19:12:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:12:05 - End Time 2025-01-13 19:12:05 [2025-01-13 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240997', 'tblTempUsageDetail_20' ) start [2025-01-13 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14240997', 'tblTempUsageDetail_20' ) end [2025-01-13 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240997', 'tblTempVendorCDR_20' ) start [2025-01-13 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14240997', 'tblTempVendorCDR_20' ) end [2025-01-13 19:12:19] Production.INFO: ProcessCDR(1,14240997,1,1,2) [2025-01-13 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14240997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14240997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14240997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14240997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240997', 'tblTempUsageDetail_20' ) start [2025-01-13 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14240997', 'tblTempUsageDetail_20' ) end [2025-01-13 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:12:24] Production.INFO: ==995== Releasing lock... [2025-01-13 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:12:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-13 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:13:05 [end_date_ymd] => 2025-01-13 19:13:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:13:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:13:18] Production.INFO: count ==2903 [2025-01-13 19:13:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:13:05 - End Time 2025-01-13 19:13:05 [2025-01-13 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241002', 'tblTempUsageDetail_20' ) start [2025-01-13 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241002', 'tblTempUsageDetail_20' ) end [2025-01-13 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241002', 'tblTempVendorCDR_20' ) start [2025-01-13 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241002', 'tblTempVendorCDR_20' ) end [2025-01-13 19:13:19] Production.INFO: ProcessCDR(1,14241002,1,1,2) [2025-01-13 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241002', 'tblTempUsageDetail_20' ) start [2025-01-13 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241002', 'tblTempUsageDetail_20' ) end [2025-01-13 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:13:23] Production.INFO: ==1064== Releasing lock... [2025-01-13 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:13:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-13 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:14:05 [end_date_ymd] => 2025-01-13 19:14:05 [RateCDR] => 1 ) [2025-01-13 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:14:05' and `end` < '2025-01-13 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:14:18] Production.INFO: count ==2888 [2025-01-13 19:14:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:14:05 - End Time 2025-01-13 19:14:05 [2025-01-13 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241007', 'tblTempUsageDetail_20' ) start [2025-01-13 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241007', 'tblTempUsageDetail_20' ) end [2025-01-13 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241007', 'tblTempVendorCDR_20' ) start [2025-01-13 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241007', 'tblTempVendorCDR_20' ) end [2025-01-13 19:14:18] Production.INFO: ProcessCDR(1,14241007,1,1,2) [2025-01-13 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241007', 'tblTempUsageDetail_20' ) start [2025-01-13 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241007', 'tblTempUsageDetail_20' ) end [2025-01-13 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:14:22] Production.INFO: ==1140== Releasing lock... [2025-01-13 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:14:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-13 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:15:04 [end_date_ymd] => 2025-01-13 19:15:04 [RateCDR] => 1 ) [2025-01-13 19:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:15:04' and `end` < '2025-01-13 19:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:15:17] Production.INFO: count ==2871 [2025-01-13 19:15:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:15:04 - End Time 2025-01-13 19:15:04 [2025-01-13 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241012', 'tblTempUsageDetail_20' ) start [2025-01-13 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241012', 'tblTempUsageDetail_20' ) end [2025-01-13 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241012', 'tblTempVendorCDR_20' ) start [2025-01-13 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241012', 'tblTempVendorCDR_20' ) end [2025-01-13 19:15:18] Production.INFO: ProcessCDR(1,14241012,1,1,2) [2025-01-13 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241012', 'tblTempUsageDetail_20' ) start [2025-01-13 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241012', 'tblTempUsageDetail_20' ) end [2025-01-13 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:15:23] Production.INFO: ==1264== Releasing lock... [2025-01-13 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:15:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-13 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:16:05 [end_date_ymd] => 2025-01-13 19:16:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:16:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:16:18] Production.INFO: count ==2867 [2025-01-13 19:16:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:16:05 - End Time 2025-01-13 19:16:05 [2025-01-13 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241017', 'tblTempUsageDetail_20' ) start [2025-01-13 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241017', 'tblTempUsageDetail_20' ) end [2025-01-13 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241017', 'tblTempVendorCDR_20' ) start [2025-01-13 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241017', 'tblTempVendorCDR_20' ) end [2025-01-13 19:16:18] Production.INFO: ProcessCDR(1,14241017,1,1,2) [2025-01-13 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241017', 'tblTempUsageDetail_20' ) start [2025-01-13 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241017', 'tblTempUsageDetail_20' ) end [2025-01-13 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:16:23] Production.INFO: ==1373== Releasing lock... [2025-01-13 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:16:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-13 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:17:05 [end_date_ymd] => 2025-01-13 19:17:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:17:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:17:18] Production.INFO: count ==2845 [2025-01-13 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:17:05 - End Time 2025-01-13 19:17:05 [2025-01-13 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241022', 'tblTempUsageDetail_20' ) start [2025-01-13 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241022', 'tblTempUsageDetail_20' ) end [2025-01-13 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241022', 'tblTempVendorCDR_20' ) start [2025-01-13 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241022', 'tblTempVendorCDR_20' ) end [2025-01-13 19:17:19] Production.INFO: ProcessCDR(1,14241022,1,1,2) [2025-01-13 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241022', 'tblTempUsageDetail_20' ) start [2025-01-13 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241022', 'tblTempUsageDetail_20' ) end [2025-01-13 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:17:22] Production.INFO: ==1443== Releasing lock... [2025-01-13 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:17:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-13 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:18:05 [end_date_ymd] => 2025-01-13 19:18:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:18:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:18:17] Production.INFO: count ==2828 [2025-01-13 19:18:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:18:05 - End Time 2025-01-13 19:18:05 [2025-01-13 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241027', 'tblTempUsageDetail_20' ) start [2025-01-13 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241027', 'tblTempUsageDetail_20' ) end [2025-01-13 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241027', 'tblTempVendorCDR_20' ) start [2025-01-13 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241027', 'tblTempVendorCDR_20' ) end [2025-01-13 19:18:18] Production.INFO: ProcessCDR(1,14241027,1,1,2) [2025-01-13 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241027', 'tblTempUsageDetail_20' ) start [2025-01-13 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241027', 'tblTempUsageDetail_20' ) end [2025-01-13 19:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:18:21] Production.INFO: ==1544== Releasing lock... [2025-01-13 19:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:18:21] Production.INFO: 49.25 MB #Memory Used# [2025-01-13 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:19:05 [end_date_ymd] => 2025-01-13 19:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:19:18] Production.INFO: count ==2806 [2025-01-13 19:19:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:19:05 - End Time 2025-01-13 19:19:05 [2025-01-13 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241032', 'tblTempUsageDetail_20' ) start [2025-01-13 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241032', 'tblTempUsageDetail_20' ) end [2025-01-13 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241032', 'tblTempVendorCDR_20' ) start [2025-01-13 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241032', 'tblTempVendorCDR_20' ) end [2025-01-13 19:19:18] Production.INFO: ProcessCDR(1,14241032,1,1,2) [2025-01-13 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241032', 'tblTempUsageDetail_20' ) start [2025-01-13 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241032', 'tblTempUsageDetail_20' ) end [2025-01-13 19:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:19:21] Production.INFO: ==1631== Releasing lock... [2025-01-13 19:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:19:21] Production.INFO: 49 MB #Memory Used# [2025-01-13 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:20:05 [end_date_ymd] => 2025-01-13 19:20:05 [RateCDR] => 1 ) [2025-01-13 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:20:05' and `end` < '2025-01-13 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:20:18] Production.INFO: count ==2799 [2025-01-13 19:20:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:20:05 - End Time 2025-01-13 19:20:05 [2025-01-13 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241038', 'tblTempUsageDetail_20' ) start [2025-01-13 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241038', 'tblTempUsageDetail_20' ) end [2025-01-13 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241038', 'tblTempVendorCDR_20' ) start [2025-01-13 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241038', 'tblTempVendorCDR_20' ) end [2025-01-13 19:20:19] Production.INFO: ProcessCDR(1,14241038,1,1,2) [2025-01-13 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241038', 'tblTempUsageDetail_20' ) start [2025-01-13 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241038', 'tblTempUsageDetail_20' ) end [2025-01-13 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:20:22] Production.INFO: ==1704== Releasing lock... [2025-01-13 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:20:22] Production.INFO: 49 MB #Memory Used# [2025-01-13 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:21:05 [end_date_ymd] => 2025-01-13 19:21:05 [RateCDR] => 1 ) [2025-01-13 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:21:05' and `end` < '2025-01-13 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:21:18] Production.INFO: count ==2715 [2025-01-13 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:21:05 - End Time 2025-01-13 19:21:05 [2025-01-13 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241043', 'tblTempUsageDetail_20' ) start [2025-01-13 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241043', 'tblTempUsageDetail_20' ) end [2025-01-13 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241043', 'tblTempVendorCDR_20' ) start [2025-01-13 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241043', 'tblTempVendorCDR_20' ) end [2025-01-13 19:21:19] Production.INFO: ProcessCDR(1,14241043,1,1,2) [2025-01-13 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241043', 'tblTempUsageDetail_20' ) start [2025-01-13 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241043', 'tblTempUsageDetail_20' ) end [2025-01-13 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:21:23] Production.INFO: ==1777== Releasing lock... [2025-01-13 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:21:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-13 19:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:22:04 [end_date_ymd] => 2025-01-13 19:22:04 [RateCDR] => 1 ) [2025-01-13 19: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` >= '2025-01-13 16:22:04' and `end` < '2025-01-13 19: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 ,'') [2025-01-13 19:22:18] Production.INFO: count ==2717 [2025-01-13 19:22:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:22:04 - End Time 2025-01-13 19:22:04 [2025-01-13 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241048', 'tblTempUsageDetail_20' ) start [2025-01-13 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241048', 'tblTempUsageDetail_20' ) end [2025-01-13 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241048', 'tblTempVendorCDR_20' ) start [2025-01-13 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241048', 'tblTempVendorCDR_20' ) end [2025-01-13 19:22:19] Production.INFO: ProcessCDR(1,14241048,1,1,2) [2025-01-13 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241048', 'tblTempUsageDetail_20' ) start [2025-01-13 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241048', 'tblTempUsageDetail_20' ) end [2025-01-13 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:22:24] Production.INFO: ==1852== Releasing lock... [2025-01-13 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:22:24] Production.INFO: 48.5 MB #Memory Used# [2025-01-13 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:23:04 [end_date_ymd] => 2025-01-13 19:23:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:23:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:23:17] Production.INFO: count ==2703 [2025-01-13 19:23:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:23:04 - End Time 2025-01-13 19:23:04 [2025-01-13 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241051', 'tblTempUsageDetail_20' ) start [2025-01-13 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241051', 'tblTempUsageDetail_20' ) end [2025-01-13 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241051', 'tblTempVendorCDR_20' ) start [2025-01-13 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241051', 'tblTempVendorCDR_20' ) end [2025-01-13 19:23:18] Production.INFO: ProcessCDR(1,14241051,1,1,2) [2025-01-13 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241051', 'tblTempUsageDetail_20' ) start [2025-01-13 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241051', 'tblTempUsageDetail_20' ) end [2025-01-13 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:23:22] Production.INFO: ==1923== Releasing lock... [2025-01-13 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:23:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-13 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:24:05 [end_date_ymd] => 2025-01-13 19:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:24:20] Production.INFO: count ==2697 [2025-01-13 19:24:21] Production.ERROR: pbx CDR StartTime 2025-01-13 16:24:05 - End Time 2025-01-13 19:24:05 [2025-01-13 19:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241058', 'tblTempUsageDetail_20' ) start [2025-01-13 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241058', 'tblTempUsageDetail_20' ) end [2025-01-13 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241058', 'tblTempVendorCDR_20' ) start [2025-01-13 19:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241058', 'tblTempVendorCDR_20' ) end [2025-01-13 19:24:21] Production.INFO: ProcessCDR(1,14241058,1,1,2) [2025-01-13 19:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241058', 'tblTempUsageDetail_20' ) start [2025-01-13 19:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241058', 'tblTempUsageDetail_20' ) end [2025-01-13 19:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:24:26] Production.INFO: ==1994== Releasing lock... [2025-01-13 19:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:24:26] Production.INFO: 48.25 MB #Memory Used# [2025-01-13 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:25:05 [end_date_ymd] => 2025-01-13 19:25:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:25:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:25:18] Production.INFO: count ==2680 [2025-01-13 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:25:05 - End Time 2025-01-13 19:25:05 [2025-01-13 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241063', 'tblTempUsageDetail_20' ) start [2025-01-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241063', 'tblTempUsageDetail_20' ) end [2025-01-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241063', 'tblTempVendorCDR_20' ) start [2025-01-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241063', 'tblTempVendorCDR_20' ) end [2025-01-13 19:25:19] Production.INFO: ProcessCDR(1,14241063,1,1,2) [2025-01-13 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241063', 'tblTempUsageDetail_20' ) start [2025-01-13 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241063', 'tblTempUsageDetail_20' ) end [2025-01-13 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:25:22] Production.INFO: ==2065== Releasing lock... [2025-01-13 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:25:22] Production.INFO: 48.25 MB #Memory Used# [2025-01-13 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:26:05 [end_date_ymd] => 2025-01-13 19:26:05 [RateCDR] => 1 ) [2025-01-13 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:26:05' and `end` < '2025-01-13 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:26:18] Production.INFO: count ==2663 [2025-01-13 19:26:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:26:05 - End Time 2025-01-13 19:26:05 [2025-01-13 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241068', 'tblTempUsageDetail_20' ) start [2025-01-13 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241068', 'tblTempUsageDetail_20' ) end [2025-01-13 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241068', 'tblTempVendorCDR_20' ) start [2025-01-13 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241068', 'tblTempVendorCDR_20' ) end [2025-01-13 19:26:19] Production.INFO: ProcessCDR(1,14241068,1,1,2) [2025-01-13 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241068', 'tblTempUsageDetail_20' ) start [2025-01-13 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241068', 'tblTempUsageDetail_20' ) end [2025-01-13 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:26:22] Production.INFO: ==2135== Releasing lock... [2025-01-13 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:26:22] Production.INFO: 48 MB #Memory Used# [2025-01-13 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:27:05 [end_date_ymd] => 2025-01-13 19:27:05 [RateCDR] => 1 ) [2025-01-13 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:27:05' and `end` < '2025-01-13 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:27:18] Production.INFO: count ==2631 [2025-01-13 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:27:05 - End Time 2025-01-13 19:27:05 [2025-01-13 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241073', 'tblTempUsageDetail_20' ) start [2025-01-13 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241073', 'tblTempUsageDetail_20' ) end [2025-01-13 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241073', 'tblTempVendorCDR_20' ) start [2025-01-13 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241073', 'tblTempVendorCDR_20' ) end [2025-01-13 19:27:19] Production.INFO: ProcessCDR(1,14241073,1,1,2) [2025-01-13 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241073', 'tblTempUsageDetail_20' ) start [2025-01-13 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241073', 'tblTempUsageDetail_20' ) end [2025-01-13 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:27:22] Production.INFO: ==2246== Releasing lock... [2025-01-13 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:27:22] Production.INFO: 48 MB #Memory Used# [2025-01-13 19:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:28:04 [end_date_ymd] => 2025-01-13 19:28:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:28:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:28:17] Production.INFO: count ==2591 [2025-01-13 19:28:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:28:04 - End Time 2025-01-13 19:28:04 [2025-01-13 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241078', 'tblTempUsageDetail_20' ) start [2025-01-13 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241078', 'tblTempUsageDetail_20' ) end [2025-01-13 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241078', 'tblTempVendorCDR_20' ) start [2025-01-13 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241078', 'tblTempVendorCDR_20' ) end [2025-01-13 19:28:18] Production.INFO: ProcessCDR(1,14241078,1,1,2) [2025-01-13 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241078', 'tblTempUsageDetail_20' ) start [2025-01-13 19:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241078', 'tblTempUsageDetail_20' ) end [2025-01-13 19:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:28:21] Production.INFO: ==2316== Releasing lock... [2025-01-13 19:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:28:21] Production.INFO: 47.5 MB #Memory Used# [2025-01-13 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:29:05 [end_date_ymd] => 2025-01-13 19:29:05 [RateCDR] => 1 ) [2025-01-13 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:29:05' and `end` < '2025-01-13 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:29:18] Production.INFO: count ==2560 [2025-01-13 19:29:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:29:05 - End Time 2025-01-13 19:29:05 [2025-01-13 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241083', 'tblTempUsageDetail_20' ) start [2025-01-13 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241083', 'tblTempUsageDetail_20' ) end [2025-01-13 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241083', 'tblTempVendorCDR_20' ) start [2025-01-13 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241083', 'tblTempVendorCDR_20' ) end [2025-01-13 19:29:19] Production.INFO: ProcessCDR(1,14241083,1,1,2) [2025-01-13 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241083', 'tblTempUsageDetail_20' ) start [2025-01-13 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241083', 'tblTempUsageDetail_20' ) end [2025-01-13 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:29:23] Production.INFO: ==2388== Releasing lock... [2025-01-13 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:29:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-13 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:30:05 [end_date_ymd] => 2025-01-13 19:30:05 [RateCDR] => 1 ) [2025-01-13 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:30:05' and `end` < '2025-01-13 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:30:18] Production.INFO: count ==2543 [2025-01-13 19:30:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:30:05 - End Time 2025-01-13 19:30:05 [2025-01-13 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241088', 'tblTempUsageDetail_20' ) start [2025-01-13 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241088', 'tblTempUsageDetail_20' ) end [2025-01-13 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241088', 'tblTempVendorCDR_20' ) start [2025-01-13 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241088', 'tblTempVendorCDR_20' ) end [2025-01-13 19:30:19] Production.INFO: ProcessCDR(1,14241088,1,1,2) [2025-01-13 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241088', 'tblTempUsageDetail_20' ) start [2025-01-13 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241088', 'tblTempUsageDetail_20' ) end [2025-01-13 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:30:23] Production.INFO: ==2460== Releasing lock... [2025-01-13 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:30:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-13 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:31:05 [end_date_ymd] => 2025-01-13 19:31:05 [RateCDR] => 1 ) [2025-01-13 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:31:05' and `end` < '2025-01-13 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:31:18] Production.INFO: count ==2464 [2025-01-13 19:31:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:31:05 - End Time 2025-01-13 19:31:05 [2025-01-13 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241094', 'tblTempUsageDetail_20' ) start [2025-01-13 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241094', 'tblTempUsageDetail_20' ) end [2025-01-13 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241094', 'tblTempVendorCDR_20' ) start [2025-01-13 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241094', 'tblTempVendorCDR_20' ) end [2025-01-13 19:31:19] Production.INFO: ProcessCDR(1,14241094,1,1,2) [2025-01-13 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241094', 'tblTempUsageDetail_20' ) start [2025-01-13 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241094', 'tblTempUsageDetail_20' ) end [2025-01-13 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:31:23] Production.INFO: ==2534== Releasing lock... [2025-01-13 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:31:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-13 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:32:05 [end_date_ymd] => 2025-01-13 19:32:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:32:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:32:17] Production.INFO: count ==2454 [2025-01-13 19:32:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:32:05 - End Time 2025-01-13 19:32:05 [2025-01-13 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241099', 'tblTempUsageDetail_20' ) start [2025-01-13 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241099', 'tblTempUsageDetail_20' ) end [2025-01-13 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241099', 'tblTempVendorCDR_20' ) start [2025-01-13 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241099', 'tblTempVendorCDR_20' ) end [2025-01-13 19:32:18] Production.INFO: ProcessCDR(1,14241099,1,1,2) [2025-01-13 19:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241099', 'tblTempUsageDetail_20' ) start [2025-01-13 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241099', 'tblTempUsageDetail_20' ) end [2025-01-13 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:32:23] Production.INFO: ==2608== Releasing lock... [2025-01-13 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:32:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-13 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:33:05 [end_date_ymd] => 2025-01-13 19:33:05 [RateCDR] => 1 ) [2025-01-13 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:33:05' and `end` < '2025-01-13 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:33:18] Production.INFO: count ==2445 [2025-01-13 19:33:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:33:05 - End Time 2025-01-13 19:33:05 [2025-01-13 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241104', 'tblTempUsageDetail_20' ) start [2025-01-13 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241104', 'tblTempUsageDetail_20' ) end [2025-01-13 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241104', 'tblTempVendorCDR_20' ) start [2025-01-13 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241104', 'tblTempVendorCDR_20' ) end [2025-01-13 19:33:19] Production.INFO: ProcessCDR(1,14241104,1,1,2) [2025-01-13 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241104', 'tblTempUsageDetail_20' ) start [2025-01-13 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241104', 'tblTempUsageDetail_20' ) end [2025-01-13 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:33:23] Production.INFO: ==2682== Releasing lock... [2025-01-13 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:33:23] Production.INFO: 46.5 MB #Memory Used# [2025-01-13 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:34:05 [end_date_ymd] => 2025-01-13 19:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:34:18] Production.INFO: count ==2437 [2025-01-13 19:34:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:34:05 - End Time 2025-01-13 19:34:05 [2025-01-13 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241109', 'tblTempUsageDetail_20' ) start [2025-01-13 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241109', 'tblTempUsageDetail_20' ) end [2025-01-13 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241109', 'tblTempVendorCDR_20' ) start [2025-01-13 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241109', 'tblTempVendorCDR_20' ) end [2025-01-13 19:34:18] Production.INFO: ProcessCDR(1,14241109,1,1,2) [2025-01-13 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241109', 'tblTempUsageDetail_20' ) start [2025-01-13 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241109', 'tblTempUsageDetail_20' ) end [2025-01-13 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:34:22] Production.INFO: ==2750== Releasing lock... [2025-01-13 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:34:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-13 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:35:05 [end_date_ymd] => 2025-01-13 19:35:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:35:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:35:18] Production.INFO: count ==2422 [2025-01-13 19:35:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:35:05 - End Time 2025-01-13 19:35:05 [2025-01-13 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241114', 'tblTempUsageDetail_20' ) start [2025-01-13 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241114', 'tblTempUsageDetail_20' ) end [2025-01-13 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241114', 'tblTempVendorCDR_20' ) start [2025-01-13 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241114', 'tblTempVendorCDR_20' ) end [2025-01-13 19:35:19] Production.INFO: ProcessCDR(1,14241114,1,1,2) [2025-01-13 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241114', 'tblTempUsageDetail_20' ) start [2025-01-13 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241114', 'tblTempUsageDetail_20' ) end [2025-01-13 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:35:23] Production.INFO: ==2822== Releasing lock... [2025-01-13 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:35:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-13 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:36:05 [end_date_ymd] => 2025-01-13 19:36:05 [RateCDR] => 1 ) [2025-01-13 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:36:05' and `end` < '2025-01-13 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:36:18] Production.INFO: count ==2397 [2025-01-13 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:36:05 - End Time 2025-01-13 19:36:05 [2025-01-13 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241119', 'tblTempUsageDetail_20' ) start [2025-01-13 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241119', 'tblTempUsageDetail_20' ) end [2025-01-13 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241119', 'tblTempVendorCDR_20' ) start [2025-01-13 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241119', 'tblTempVendorCDR_20' ) end [2025-01-13 19:36:19] Production.INFO: ProcessCDR(1,14241119,1,1,2) [2025-01-13 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241119', 'tblTempUsageDetail_20' ) start [2025-01-13 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241119', 'tblTempUsageDetail_20' ) end [2025-01-13 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:36:23] Production.INFO: ==2892== Releasing lock... [2025-01-13 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:36:23] Production.INFO: 46 MB #Memory Used# [2025-01-13 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:37:05 [end_date_ymd] => 2025-01-13 19:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:37:18] Production.INFO: count ==2358 [2025-01-13 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:37:05 - End Time 2025-01-13 19:37:05 [2025-01-13 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241124', 'tblTempUsageDetail_20' ) start [2025-01-13 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241124', 'tblTempUsageDetail_20' ) end [2025-01-13 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241124', 'tblTempVendorCDR_20' ) start [2025-01-13 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241124', 'tblTempVendorCDR_20' ) end [2025-01-13 19:37:19] Production.INFO: ProcessCDR(1,14241124,1,1,2) [2025-01-13 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241124', 'tblTempUsageDetail_20' ) start [2025-01-13 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241124', 'tblTempUsageDetail_20' ) end [2025-01-13 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:37:24] Production.INFO: ==2964== Releasing lock... [2025-01-13 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:37:24] Production.INFO: 45.75 MB #Memory Used# [2025-01-13 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:38:05 [end_date_ymd] => 2025-01-13 19:38:05 [RateCDR] => 1 ) [2025-01-13 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:38:05' and `end` < '2025-01-13 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:38:18] Production.INFO: count ==2275 [2025-01-13 19:38:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:38:05 - End Time 2025-01-13 19:38:05 [2025-01-13 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241129', 'tblTempUsageDetail_20' ) start [2025-01-13 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241129', 'tblTempUsageDetail_20' ) end [2025-01-13 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241129', 'tblTempVendorCDR_20' ) start [2025-01-13 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241129', 'tblTempVendorCDR_20' ) end [2025-01-13 19:38:19] Production.INFO: ProcessCDR(1,14241129,1,1,2) [2025-01-13 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241129', 'tblTempUsageDetail_20' ) start [2025-01-13 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241129', 'tblTempUsageDetail_20' ) end [2025-01-13 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:38:23] Production.INFO: ==3032== Releasing lock... [2025-01-13 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:38:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-13 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:39:05 [end_date_ymd] => 2025-01-13 19:39:05 [RateCDR] => 1 ) [2025-01-13 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:39:05' and `end` < '2025-01-13 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:39:18] Production.INFO: count ==2262 [2025-01-13 19:39:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:39:05 - End Time 2025-01-13 19:39:05 [2025-01-13 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241134', 'tblTempUsageDetail_20' ) start [2025-01-13 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241134', 'tblTempUsageDetail_20' ) end [2025-01-13 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241134', 'tblTempVendorCDR_20' ) start [2025-01-13 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241134', 'tblTempVendorCDR_20' ) end [2025-01-13 19:39:19] Production.INFO: ProcessCDR(1,14241134,1,1,2) [2025-01-13 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241134', 'tblTempUsageDetail_20' ) start [2025-01-13 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241134', 'tblTempUsageDetail_20' ) end [2025-01-13 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:39:23] Production.INFO: ==3106== Releasing lock... [2025-01-13 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:39:23] Production.INFO: 45 MB #Memory Used# [2025-01-13 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:40:05 [end_date_ymd] => 2025-01-13 19:40:05 [RateCDR] => 1 ) [2025-01-13 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:40:05' and `end` < '2025-01-13 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:40:18] Production.INFO: count ==2255 [2025-01-13 19:40:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:40:05 - End Time 2025-01-13 19:40:05 [2025-01-13 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241139', 'tblTempUsageDetail_20' ) start [2025-01-13 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241139', 'tblTempUsageDetail_20' ) end [2025-01-13 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241139', 'tblTempVendorCDR_20' ) start [2025-01-13 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241139', 'tblTempVendorCDR_20' ) end [2025-01-13 19:40:19] Production.INFO: ProcessCDR(1,14241139,1,1,2) [2025-01-13 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241139', 'tblTempUsageDetail_20' ) start [2025-01-13 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241139', 'tblTempUsageDetail_20' ) end [2025-01-13 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:40:24] Production.INFO: ==3181== Releasing lock... [2025-01-13 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:40:24] Production.INFO: 45 MB #Memory Used# [2025-01-13 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:41:05 [end_date_ymd] => 2025-01-13 19:41:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:41:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:41:17] Production.INFO: count ==2187 [2025-01-13 19:41:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:41:05 - End Time 2025-01-13 19:41:05 [2025-01-13 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241145', 'tblTempUsageDetail_20' ) start [2025-01-13 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241145', 'tblTempUsageDetail_20' ) end [2025-01-13 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241145', 'tblTempVendorCDR_20' ) start [2025-01-13 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241145', 'tblTempVendorCDR_20' ) end [2025-01-13 19:41:18] Production.INFO: ProcessCDR(1,14241145,1,1,2) [2025-01-13 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241145', 'tblTempUsageDetail_20' ) start [2025-01-13 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241145', 'tblTempUsageDetail_20' ) end [2025-01-13 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:41:23] Production.INFO: ==3253== Releasing lock... [2025-01-13 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:41:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-13 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:42:05 [end_date_ymd] => 2025-01-13 19:42:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:42:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:42:18] Production.INFO: count ==2176 [2025-01-13 19:42:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:42:05 - End Time 2025-01-13 19:42:05 [2025-01-13 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241150', 'tblTempUsageDetail_20' ) start [2025-01-13 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241150', 'tblTempUsageDetail_20' ) end [2025-01-13 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241150', 'tblTempVendorCDR_20' ) start [2025-01-13 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241150', 'tblTempVendorCDR_20' ) end [2025-01-13 19:42:19] Production.INFO: ProcessCDR(1,14241150,1,1,2) [2025-01-13 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241150', 'tblTempUsageDetail_20' ) start [2025-01-13 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241150', 'tblTempUsageDetail_20' ) end [2025-01-13 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:42:22] Production.INFO: ==3363== Releasing lock... [2025-01-13 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:42:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-13 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:43:05 [end_date_ymd] => 2025-01-13 19:43:05 [RateCDR] => 1 ) [2025-01-13 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:43:05' and `end` < '2025-01-13 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:43:17] Production.INFO: count ==2169 [2025-01-13 19:43:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:43:05 - End Time 2025-01-13 19:43:05 [2025-01-13 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241155', 'tblTempUsageDetail_20' ) start [2025-01-13 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241155', 'tblTempUsageDetail_20' ) end [2025-01-13 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241155', 'tblTempVendorCDR_20' ) start [2025-01-13 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241155', 'tblTempVendorCDR_20' ) end [2025-01-13 19:43:18] Production.INFO: ProcessCDR(1,14241155,1,1,2) [2025-01-13 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241155', 'tblTempUsageDetail_20' ) start [2025-01-13 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241155', 'tblTempUsageDetail_20' ) end [2025-01-13 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:43:23] Production.INFO: ==3434== Releasing lock... [2025-01-13 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:43:23] Production.INFO: 44.25 MB #Memory Used# [2025-01-13 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:44:05 [end_date_ymd] => 2025-01-13 19:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:44:18] Production.INFO: count ==2160 [2025-01-13 19:44:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:44:05 - End Time 2025-01-13 19:44:05 [2025-01-13 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241160', 'tblTempUsageDetail_20' ) start [2025-01-13 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241160', 'tblTempUsageDetail_20' ) end [2025-01-13 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241160', 'tblTempVendorCDR_20' ) start [2025-01-13 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241160', 'tblTempVendorCDR_20' ) end [2025-01-13 19:44:18] Production.INFO: ProcessCDR(1,14241160,1,1,2) [2025-01-13 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241160', 'tblTempUsageDetail_20' ) start [2025-01-13 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241160', 'tblTempUsageDetail_20' ) end [2025-01-13 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:44:22] Production.INFO: ==3506== Releasing lock... [2025-01-13 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:44:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-13 19:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:45:04 [end_date_ymd] => 2025-01-13 19:45:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:45:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:45:17] Production.INFO: count ==2146 [2025-01-13 19:45:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:45:04 - End Time 2025-01-13 19:45:04 [2025-01-13 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241165', 'tblTempUsageDetail_20' ) start [2025-01-13 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241165', 'tblTempUsageDetail_20' ) end [2025-01-13 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241165', 'tblTempVendorCDR_20' ) start [2025-01-13 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241165', 'tblTempVendorCDR_20' ) end [2025-01-13 19:45:18] Production.INFO: ProcessCDR(1,14241165,1,1,2) [2025-01-13 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241165', 'tblTempUsageDetail_20' ) start [2025-01-13 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241165', 'tblTempUsageDetail_20' ) end [2025-01-13 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:45:22] Production.INFO: ==3574== Releasing lock... [2025-01-13 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:45:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-13 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:46:05 [end_date_ymd] => 2025-01-13 19:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:46:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:46:19] Production.INFO: count ==2122 [2025-01-13 19:46:20] Production.ERROR: pbx CDR StartTime 2025-01-13 16:46:05 - End Time 2025-01-13 19:46:05 [2025-01-13 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241170', 'tblTempUsageDetail_20' ) start [2025-01-13 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241170', 'tblTempUsageDetail_20' ) end [2025-01-13 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241170', 'tblTempVendorCDR_20' ) start [2025-01-13 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241170', 'tblTempVendorCDR_20' ) end [2025-01-13 19:46:20] Production.INFO: ProcessCDR(1,14241170,1,1,2) [2025-01-13 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241170', 'tblTempUsageDetail_20' ) start [2025-01-13 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241170', 'tblTempUsageDetail_20' ) end [2025-01-13 19:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:46:25] Production.INFO: ==3654== Releasing lock... [2025-01-13 19:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:46:25] Production.INFO: 44.5 MB #Memory Used# [2025-01-13 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:47:05 [end_date_ymd] => 2025-01-13 19:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:47:18] Production.INFO: count ==2086 [2025-01-13 19:47:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:47:05 - End Time 2025-01-13 19:47:05 [2025-01-13 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241175', 'tblTempUsageDetail_20' ) start [2025-01-13 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241175', 'tblTempUsageDetail_20' ) end [2025-01-13 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241175', 'tblTempVendorCDR_20' ) start [2025-01-13 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241175', 'tblTempVendorCDR_20' ) end [2025-01-13 19:47:18] Production.INFO: ProcessCDR(1,14241175,1,1,2) [2025-01-13 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241175', 'tblTempUsageDetail_20' ) start [2025-01-13 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241175', 'tblTempUsageDetail_20' ) end [2025-01-13 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:47:23] Production.INFO: ==3725== Releasing lock... [2025-01-13 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:47:23] Production.INFO: 43.75 MB #Memory Used# [2025-01-13 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:48:05 [end_date_ymd] => 2025-01-13 19:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:48:18] Production.INFO: count ==2055 [2025-01-13 19:48:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:48:05 - End Time 2025-01-13 19:48:05 [2025-01-13 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241180', 'tblTempUsageDetail_20' ) start [2025-01-13 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241180', 'tblTempUsageDetail_20' ) end [2025-01-13 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241180', 'tblTempVendorCDR_20' ) start [2025-01-13 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241180', 'tblTempVendorCDR_20' ) end [2025-01-13 19:48:18] Production.INFO: ProcessCDR(1,14241180,1,1,2) [2025-01-13 19:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241180', 'tblTempUsageDetail_20' ) start [2025-01-13 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241180', 'tblTempUsageDetail_20' ) end [2025-01-13 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:48:23] Production.INFO: ==3795== Releasing lock... [2025-01-13 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:48:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-13 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:49:05 [end_date_ymd] => 2025-01-13 19:49:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:49:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:49:18] Production.INFO: count ==2022 [2025-01-13 19:49:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:49:05 - End Time 2025-01-13 19:49:05 [2025-01-13 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241185', 'tblTempUsageDetail_20' ) start [2025-01-13 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241185', 'tblTempUsageDetail_20' ) end [2025-01-13 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241185', 'tblTempVendorCDR_20' ) start [2025-01-13 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241185', 'tblTempVendorCDR_20' ) end [2025-01-13 19:49:18] Production.INFO: ProcessCDR(1,14241185,1,1,2) [2025-01-13 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241185', 'tblTempUsageDetail_20' ) start [2025-01-13 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241185', 'tblTempUsageDetail_20' ) end [2025-01-13 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:49:22] Production.INFO: ==3866== Releasing lock... [2025-01-13 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:49:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-13 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:50:05 [end_date_ymd] => 2025-01-13 19:50:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:50:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:50:19] Production.INFO: count ==2007 [2025-01-13 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:50:05 - End Time 2025-01-13 19:50:05 [2025-01-13 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241190', 'tblTempUsageDetail_20' ) start [2025-01-13 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241190', 'tblTempUsageDetail_20' ) end [2025-01-13 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241190', 'tblTempVendorCDR_20' ) start [2025-01-13 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241190', 'tblTempVendorCDR_20' ) end [2025-01-13 19:50:19] Production.INFO: ProcessCDR(1,14241190,1,1,2) [2025-01-13 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241190', 'tblTempUsageDetail_20' ) start [2025-01-13 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241190', 'tblTempUsageDetail_20' ) end [2025-01-13 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:50:24] Production.INFO: ==3943== Releasing lock... [2025-01-13 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:50:24] Production.INFO: 43 MB #Memory Used# [2025-01-13 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:51:05 [end_date_ymd] => 2025-01-13 19:51:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:51:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:51:18] Production.INFO: count ==1908 [2025-01-13 19:51:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:51:05 - End Time 2025-01-13 19:51:05 [2025-01-13 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241196', 'tblTempUsageDetail_20' ) start [2025-01-13 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241196', 'tblTempUsageDetail_20' ) end [2025-01-13 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241196', 'tblTempVendorCDR_20' ) start [2025-01-13 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241196', 'tblTempVendorCDR_20' ) end [2025-01-13 19:51:19] Production.INFO: ProcessCDR(1,14241196,1,1,2) [2025-01-13 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241196', 'tblTempUsageDetail_20' ) start [2025-01-13 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241196', 'tblTempUsageDetail_20' ) end [2025-01-13 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:51:23] Production.INFO: ==4015== Releasing lock... [2025-01-13 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:51:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-13 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:52:05 [end_date_ymd] => 2025-01-13 19:52:05 [RateCDR] => 1 ) [2025-01-13 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:52:05' and `end` < '2025-01-13 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:52:17] Production.INFO: count ==1899 [2025-01-13 19:52:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:52:05 - End Time 2025-01-13 19:52:05 [2025-01-13 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241201', 'tblTempUsageDetail_20' ) start [2025-01-13 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241201', 'tblTempUsageDetail_20' ) end [2025-01-13 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241201', 'tblTempVendorCDR_20' ) start [2025-01-13 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241201', 'tblTempVendorCDR_20' ) end [2025-01-13 19:52:18] Production.INFO: ProcessCDR(1,14241201,1,1,2) [2025-01-13 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241201', 'tblTempUsageDetail_20' ) start [2025-01-13 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241201', 'tblTempUsageDetail_20' ) end [2025-01-13 19:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:52:21] Production.INFO: ==4094== Releasing lock... [2025-01-13 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:52:21] Production.INFO: 42 MB #Memory Used# [2025-01-13 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:53:06 [end_date_ymd] => 2025-01-13 19:53:06 [RateCDR] => 1 ) [2025-01-13 19:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:53:06' and `end` < '2025-01-13 19:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:53:18] Production.INFO: count ==1887 [2025-01-13 19:53:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:53:06 - End Time 2025-01-13 19:53:06 [2025-01-13 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241206', 'tblTempUsageDetail_20' ) start [2025-01-13 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241206', 'tblTempUsageDetail_20' ) end [2025-01-13 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241206', 'tblTempVendorCDR_20' ) start [2025-01-13 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241206', 'tblTempVendorCDR_20' ) end [2025-01-13 19:53:19] Production.INFO: ProcessCDR(1,14241206,1,1,2) [2025-01-13 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241206', 'tblTempUsageDetail_20' ) start [2025-01-13 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241206', 'tblTempUsageDetail_20' ) end [2025-01-13 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:53:22] Production.INFO: ==4199== Releasing lock... [2025-01-13 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:53:22] Production.INFO: 42 MB #Memory Used# [2025-01-13 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:54:05 [end_date_ymd] => 2025-01-13 19:54:05 [RateCDR] => 1 ) [2025-01-13 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:54:05' and `end` < '2025-01-13 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:54:18] Production.INFO: count ==1867 [2025-01-13 19:54:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:54:05 - End Time 2025-01-13 19:54:05 [2025-01-13 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241211', 'tblTempUsageDetail_20' ) start [2025-01-13 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241211', 'tblTempUsageDetail_20' ) end [2025-01-13 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241211', 'tblTempVendorCDR_20' ) start [2025-01-13 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241211', 'tblTempVendorCDR_20' ) end [2025-01-13 19:54:18] Production.INFO: ProcessCDR(1,14241211,1,1,2) [2025-01-13 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241211', 'tblTempUsageDetail_20' ) start [2025-01-13 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241211', 'tblTempUsageDetail_20' ) end [2025-01-13 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:54:22] Production.INFO: ==4300== Releasing lock... [2025-01-13 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:54:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-13 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:55:05 [end_date_ymd] => 2025-01-13 19:55:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:55:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:55:18] Production.INFO: count ==1864 [2025-01-13 19:55:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:55:05 - End Time 2025-01-13 19:55:05 [2025-01-13 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241216', 'tblTempUsageDetail_20' ) start [2025-01-13 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241216', 'tblTempUsageDetail_20' ) end [2025-01-13 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241216', 'tblTempVendorCDR_20' ) start [2025-01-13 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241216', 'tblTempVendorCDR_20' ) end [2025-01-13 19:55:19] Production.INFO: ProcessCDR(1,14241216,1,1,2) [2025-01-13 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241216', 'tblTempUsageDetail_20' ) start [2025-01-13 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241216', 'tblTempUsageDetail_20' ) end [2025-01-13 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:55:24] Production.INFO: ==4413== Releasing lock... [2025-01-13 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:55:24] Production.INFO: 41.75 MB #Memory Used# [2025-01-13 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:56:05 [end_date_ymd] => 2025-01-13 19:56:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:56:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:56:17] Production.INFO: count ==1852 [2025-01-13 19:56:18] Production.ERROR: pbx CDR StartTime 2025-01-13 16:56:05 - End Time 2025-01-13 19:56:05 [2025-01-13 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241221', 'tblTempUsageDetail_20' ) start [2025-01-13 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241221', 'tblTempUsageDetail_20' ) end [2025-01-13 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241221', 'tblTempVendorCDR_20' ) start [2025-01-13 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241221', 'tblTempVendorCDR_20' ) end [2025-01-13 19:56:18] Production.INFO: ProcessCDR(1,14241221,1,1,2) [2025-01-13 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241221', 'tblTempUsageDetail_20' ) start [2025-01-13 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241221', 'tblTempUsageDetail_20' ) end [2025-01-13 19:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:56:21] Production.INFO: ==4515== Releasing lock... [2025-01-13 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:56:21] Production.INFO: 42 MB #Memory Used# [2025-01-13 19:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:57:06 [end_date_ymd] => 2025-01-13 19:57:06 [RateCDR] => 1 ) [2025-01-13 19:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 16:57:06' and `end` < '2025-01-13 19:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 19:57:19] Production.INFO: count ==1839 [2025-01-13 19:57:20] Production.ERROR: pbx CDR StartTime 2025-01-13 16:57:06 - End Time 2025-01-13 19:57:06 [2025-01-13 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241226', 'tblTempUsageDetail_20' ) start [2025-01-13 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241226', 'tblTempUsageDetail_20' ) end [2025-01-13 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241226', 'tblTempVendorCDR_20' ) start [2025-01-13 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241226', 'tblTempVendorCDR_20' ) end [2025-01-13 19:57:20] Production.INFO: ProcessCDR(1,14241226,1,1,2) [2025-01-13 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241226', 'tblTempUsageDetail_20' ) start [2025-01-13 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241226', 'tblTempUsageDetail_20' ) end [2025-01-13 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:57:23] Production.INFO: ==4628== Releasing lock... [2025-01-13 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:57:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-13 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:58:05 [end_date_ymd] => 2025-01-13 19:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:58:19] Production.INFO: count ==1821 [2025-01-13 19:58:19] Production.ERROR: pbx CDR StartTime 2025-01-13 16:58:05 - End Time 2025-01-13 19:58:05 [2025-01-13 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241231', 'tblTempUsageDetail_20' ) start [2025-01-13 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241231', 'tblTempUsageDetail_20' ) end [2025-01-13 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241231', 'tblTempVendorCDR_20' ) start [2025-01-13 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241231', 'tblTempVendorCDR_20' ) end [2025-01-13 19:58:19] Production.INFO: ProcessCDR(1,14241231,1,1,2) [2025-01-13 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241231', 'tblTempUsageDetail_20' ) start [2025-01-13 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241231', 'tblTempUsageDetail_20' ) end [2025-01-13 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:58:23] Production.INFO: ==4772== Releasing lock... [2025-01-13 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:58:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-13 19:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 16:59:04 [end_date_ymd] => 2025-01-13 19:59:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 16:59:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 19:59:17] Production.INFO: count ==1816 [2025-01-13 19:59:17] Production.ERROR: pbx CDR StartTime 2025-01-13 16:59:04 - End Time 2025-01-13 19:59:04 [2025-01-13 19:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241236', 'tblTempUsageDetail_20' ) start [2025-01-13 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241236', 'tblTempUsageDetail_20' ) end [2025-01-13 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241236', 'tblTempVendorCDR_20' ) start [2025-01-13 19:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241236', 'tblTempVendorCDR_20' ) end [2025-01-13 19:59:17] Production.INFO: ProcessCDR(1,14241236,1,1,2) [2025-01-13 19:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241236', 'tblTempUsageDetail_20' ) start [2025-01-13 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241236', 'tblTempUsageDetail_20' ) end [2025-01-13 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 19:59:21] Production.INFO: ==4878== Releasing lock... [2025-01-13 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 19:59:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-13 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:00:06 [end_date_ymd] => 2025-01-13 20:00:06 [RateCDR] => 1 ) [2025-01-13 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:00:06' and `end` < '2025-01-13 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:00:19] Production.INFO: count ==1800 [2025-01-13 20:00:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:00:06 - End Time 2025-01-13 20:00:06 [2025-01-13 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241242', 'tblTempUsageDetail_20' ) start [2025-01-13 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241242', 'tblTempUsageDetail_20' ) end [2025-01-13 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241242', 'tblTempVendorCDR_20' ) start [2025-01-13 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241242', 'tblTempVendorCDR_20' ) end [2025-01-13 20:00:19] Production.INFO: ProcessCDR(1,14241242,1,1,2) [2025-01-13 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241242', 'tblTempUsageDetail_20' ) start [2025-01-13 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241242', 'tblTempUsageDetail_20' ) end [2025-01-13 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:00:23] Production.INFO: ==4986== Releasing lock... [2025-01-13 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:00:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-13 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:01:05 [end_date_ymd] => 2025-01-13 20:01:05 [RateCDR] => 1 ) [2025-01-13 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:01:05' and `end` < '2025-01-13 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:01:17] Production.INFO: count ==1773 [2025-01-13 20:01:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:01:05 - End Time 2025-01-13 20:01:05 [2025-01-13 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241247', 'tblTempUsageDetail_20' ) start [2025-01-13 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241247', 'tblTempUsageDetail_20' ) end [2025-01-13 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241247', 'tblTempVendorCDR_20' ) start [2025-01-13 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241247', 'tblTempVendorCDR_20' ) end [2025-01-13 20:01:18] Production.INFO: ProcessCDR(1,14241247,1,1,2) [2025-01-13 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241247', 'tblTempUsageDetail_20' ) start [2025-01-13 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241247', 'tblTempUsageDetail_20' ) end [2025-01-13 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:01:21] Production.INFO: ==5144== Releasing lock... [2025-01-13 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:01:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-13 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:02:05 [end_date_ymd] => 2025-01-13 20:02:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:02:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:02:18] Production.INFO: count ==1780 [2025-01-13 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:02:05 - End Time 2025-01-13 20:02:05 [2025-01-13 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241252', 'tblTempUsageDetail_20' ) start [2025-01-13 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241252', 'tblTempUsageDetail_20' ) end [2025-01-13 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241252', 'tblTempVendorCDR_20' ) start [2025-01-13 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241252', 'tblTempVendorCDR_20' ) end [2025-01-13 20:02:18] Production.INFO: ProcessCDR(1,14241252,1,1,2) [2025-01-13 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241252', 'tblTempUsageDetail_20' ) start [2025-01-13 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241252', 'tblTempUsageDetail_20' ) end [2025-01-13 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:02:23] Production.INFO: ==5248== Releasing lock... [2025-01-13 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:02:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-13 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:03:05 [end_date_ymd] => 2025-01-13 20:03:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:03:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:03:18] Production.INFO: count ==1787 [2025-01-13 20:03:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:03:05 - End Time 2025-01-13 20:03:05 [2025-01-13 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241257', 'tblTempUsageDetail_20' ) start [2025-01-13 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241257', 'tblTempUsageDetail_20' ) end [2025-01-13 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241257', 'tblTempVendorCDR_20' ) start [2025-01-13 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241257', 'tblTempVendorCDR_20' ) end [2025-01-13 20:03:18] Production.INFO: ProcessCDR(1,14241257,1,1,2) [2025-01-13 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241257', 'tblTempUsageDetail_20' ) start [2025-01-13 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241257', 'tblTempUsageDetail_20' ) end [2025-01-13 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:03:22] Production.INFO: ==5351== Releasing lock... [2025-01-13 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:03:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-13 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:04:05 [end_date_ymd] => 2025-01-13 20:04:05 [RateCDR] => 1 ) [2025-01-13 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:04:05' and `end` < '2025-01-13 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:04:20] Production.INFO: count ==1778 [2025-01-13 20:04:20] Production.ERROR: pbx CDR StartTime 2025-01-13 17:04:05 - End Time 2025-01-13 20:04:05 [2025-01-13 20:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241262', 'tblTempUsageDetail_20' ) start [2025-01-13 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241262', 'tblTempUsageDetail_20' ) end [2025-01-13 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241262', 'tblTempVendorCDR_20' ) start [2025-01-13 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241262', 'tblTempVendorCDR_20' ) end [2025-01-13 20:04:20] Production.INFO: ProcessCDR(1,14241262,1,1,2) [2025-01-13 20:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241262', 'tblTempUsageDetail_20' ) start [2025-01-13 20:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241262', 'tblTempUsageDetail_20' ) end [2025-01-13 20:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:04:24] Production.INFO: ==5454== Releasing lock... [2025-01-13 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:04:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-13 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:05:06 [end_date_ymd] => 2025-01-13 20:05:06 [RateCDR] => 1 ) [2025-01-13 20:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:05:06' and `end` < '2025-01-13 20:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:05:18] Production.INFO: count ==1776 [2025-01-13 20:05:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:05:06 - End Time 2025-01-13 20:05:06 [2025-01-13 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241267', 'tblTempUsageDetail_20' ) start [2025-01-13 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241267', 'tblTempUsageDetail_20' ) end [2025-01-13 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241267', 'tblTempVendorCDR_20' ) start [2025-01-13 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241267', 'tblTempVendorCDR_20' ) end [2025-01-13 20:05:19] Production.INFO: ProcessCDR(1,14241267,1,1,2) [2025-01-13 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241267', 'tblTempUsageDetail_20' ) start [2025-01-13 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241267', 'tblTempUsageDetail_20' ) end [2025-01-13 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:05:22] Production.INFO: ==5563== Releasing lock... [2025-01-13 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:05:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-13 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:06:05 [end_date_ymd] => 2025-01-13 20:06:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:06:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:06:18] Production.INFO: count ==1756 [2025-01-13 20:06:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:06:05 - End Time 2025-01-13 20:06:05 [2025-01-13 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241272', 'tblTempUsageDetail_20' ) start [2025-01-13 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241272', 'tblTempUsageDetail_20' ) end [2025-01-13 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241272', 'tblTempVendorCDR_20' ) start [2025-01-13 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241272', 'tblTempVendorCDR_20' ) end [2025-01-13 20:06:19] Production.INFO: ProcessCDR(1,14241272,1,1,2) [2025-01-13 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241272', 'tblTempUsageDetail_20' ) start [2025-01-13 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241272', 'tblTempUsageDetail_20' ) end [2025-01-13 20:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:06:24] Production.INFO: ==5665== Releasing lock... [2025-01-13 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:06:24] Production.INFO: 41 MB #Memory Used# [2025-01-13 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:07:05 [end_date_ymd] => 2025-01-13 20:07:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:07:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:07:19] Production.INFO: count ==1755 [2025-01-13 20:07:20] Production.ERROR: pbx CDR StartTime 2025-01-13 17:07:05 - End Time 2025-01-13 20:07:05 [2025-01-13 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241277', 'tblTempUsageDetail_20' ) start [2025-01-13 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241277', 'tblTempUsageDetail_20' ) end [2025-01-13 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241277', 'tblTempVendorCDR_20' ) start [2025-01-13 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241277', 'tblTempVendorCDR_20' ) end [2025-01-13 20:07:20] Production.INFO: ProcessCDR(1,14241277,1,1,2) [2025-01-13 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241277', 'tblTempUsageDetail_20' ) start [2025-01-13 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241277', 'tblTempUsageDetail_20' ) end [2025-01-13 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:07:25] Production.INFO: ==5769== Releasing lock... [2025-01-13 20:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:07:25] Production.INFO: 41.25 MB #Memory Used# [2025-01-13 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:08:05 [end_date_ymd] => 2025-01-13 20:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:08:18] Production.INFO: count ==1754 [2025-01-13 20:08:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:08:05 - End Time 2025-01-13 20:08:05 [2025-01-13 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241282', 'tblTempUsageDetail_20' ) start [2025-01-13 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241282', 'tblTempUsageDetail_20' ) end [2025-01-13 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241282', 'tblTempVendorCDR_20' ) start [2025-01-13 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241282', 'tblTempVendorCDR_20' ) end [2025-01-13 20:08:18] Production.INFO: ProcessCDR(1,14241282,1,1,2) [2025-01-13 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241282', 'tblTempUsageDetail_20' ) start [2025-01-13 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241282', 'tblTempUsageDetail_20' ) end [2025-01-13 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:08:22] Production.INFO: ==5847== Releasing lock... [2025-01-13 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:08:22] Production.INFO: 41 MB #Memory Used# [2025-01-13 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:09:06 [end_date_ymd] => 2025-01-13 20:09:06 [RateCDR] => 1 ) [2025-01-13 20:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:09:06' and `end` < '2025-01-13 20:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:09:19] Production.INFO: count ==1748 [2025-01-13 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:09:06 - End Time 2025-01-13 20:09:06 [2025-01-13 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241287', 'tblTempUsageDetail_20' ) start [2025-01-13 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241287', 'tblTempUsageDetail_20' ) end [2025-01-13 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241287', 'tblTempVendorCDR_20' ) start [2025-01-13 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241287', 'tblTempVendorCDR_20' ) end [2025-01-13 20:09:19] Production.INFO: ProcessCDR(1,14241287,1,1,2) [2025-01-13 20:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241287', 'tblTempUsageDetail_20' ) start [2025-01-13 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241287', 'tblTempUsageDetail_20' ) end [2025-01-13 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:09:23] Production.INFO: ==5917== Releasing lock... [2025-01-13 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:09:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-13 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:10:06 [end_date_ymd] => 2025-01-13 20:10:06 [RateCDR] => 1 ) [2025-01-13 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:10:06' and `end` < '2025-01-13 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:10:19] Production.INFO: count ==1743 [2025-01-13 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:10:06 - End Time 2025-01-13 20:10:06 [2025-01-13 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241293', 'tblTempUsageDetail_20' ) start [2025-01-13 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241293', 'tblTempUsageDetail_20' ) end [2025-01-13 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241293', 'tblTempVendorCDR_20' ) start [2025-01-13 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241293', 'tblTempVendorCDR_20' ) end [2025-01-13 20:10:19] Production.INFO: ProcessCDR(1,14241293,1,1,2) [2025-01-13 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241293', 'tblTempUsageDetail_20' ) start [2025-01-13 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241293', 'tblTempUsageDetail_20' ) end [2025-01-13 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:10:22] Production.INFO: ==5992== Releasing lock... [2025-01-13 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:10:22] Production.INFO: 41 MB #Memory Used# [2025-01-13 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:11:04 [end_date_ymd] => 2025-01-13 20:11:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:11:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:11:17] Production.INFO: count ==1702 [2025-01-13 20:11:17] Production.ERROR: pbx CDR StartTime 2025-01-13 17:11:04 - End Time 2025-01-13 20:11:04 [2025-01-13 20:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241298', 'tblTempUsageDetail_20' ) start [2025-01-13 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241298', 'tblTempUsageDetail_20' ) end [2025-01-13 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241298', 'tblTempVendorCDR_20' ) start [2025-01-13 20:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241298', 'tblTempVendorCDR_20' ) end [2025-01-13 20:11:17] Production.INFO: ProcessCDR(1,14241298,1,1,2) [2025-01-13 20:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241298', 'tblTempUsageDetail_20' ) start [2025-01-13 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241298', 'tblTempUsageDetail_20' ) end [2025-01-13 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:11:22] Production.INFO: ==6066== Releasing lock... [2025-01-13 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:11:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-13 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:12:05 [end_date_ymd] => 2025-01-13 20:12:05 [RateCDR] => 1 ) [2025-01-13 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:12:05' and `end` < '2025-01-13 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:12:18] Production.INFO: count ==1698 [2025-01-13 20:12:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:12:05 - End Time 2025-01-13 20:12:05 [2025-01-13 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241303', 'tblTempUsageDetail_20' ) start [2025-01-13 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241303', 'tblTempUsageDetail_20' ) end [2025-01-13 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241303', 'tblTempVendorCDR_20' ) start [2025-01-13 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241303', 'tblTempVendorCDR_20' ) end [2025-01-13 20:12:18] Production.INFO: ProcessCDR(1,14241303,1,1,2) [2025-01-13 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241303', 'tblTempUsageDetail_20' ) start [2025-01-13 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241303', 'tblTempUsageDetail_20' ) end [2025-01-13 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:12:22] Production.INFO: ==6138== Releasing lock... [2025-01-13 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:12:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-13 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:13:04 [end_date_ymd] => 2025-01-13 20:13:04 [RateCDR] => 1 ) [2025-01-13 20:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:13:04' and `end` < '2025-01-13 20:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:13:17] Production.INFO: count ==1697 [2025-01-13 20:13:17] Production.ERROR: pbx CDR StartTime 2025-01-13 17:13:04 - End Time 2025-01-13 20:13:04 [2025-01-13 20:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241308', 'tblTempUsageDetail_20' ) start [2025-01-13 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241308', 'tblTempUsageDetail_20' ) end [2025-01-13 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241308', 'tblTempVendorCDR_20' ) start [2025-01-13 20:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241308', 'tblTempVendorCDR_20' ) end [2025-01-13 20:13:17] Production.INFO: ProcessCDR(1,14241308,1,1,2) [2025-01-13 20:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241308', 'tblTempUsageDetail_20' ) start [2025-01-13 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241308', 'tblTempUsageDetail_20' ) end [2025-01-13 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:13:22] Production.INFO: ==6251== Releasing lock... [2025-01-13 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:13:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-13 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:14:05 [end_date_ymd] => 2025-01-13 20:14:05 [RateCDR] => 1 ) [2025-01-13 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:14:05' and `end` < '2025-01-13 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:14:19] Production.INFO: count ==1693 [2025-01-13 20:14:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:14:05 - End Time 2025-01-13 20:14:05 [2025-01-13 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241313', 'tblTempUsageDetail_20' ) start [2025-01-13 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241313', 'tblTempUsageDetail_20' ) end [2025-01-13 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241313', 'tblTempVendorCDR_20' ) start [2025-01-13 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241313', 'tblTempVendorCDR_20' ) end [2025-01-13 20:14:19] Production.INFO: ProcessCDR(1,14241313,1,1,2) [2025-01-13 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241313', 'tblTempUsageDetail_20' ) start [2025-01-13 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241313', 'tblTempUsageDetail_20' ) end [2025-01-13 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:14:23] Production.INFO: ==6321== Releasing lock... [2025-01-13 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:14:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-13 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:15:05 [end_date_ymd] => 2025-01-13 20:15:05 [RateCDR] => 1 ) [2025-01-13 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:15:05' and `end` < '2025-01-13 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:15:18] Production.INFO: count ==1686 [2025-01-13 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:15:05 - End Time 2025-01-13 20:15:05 [2025-01-13 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241318', 'tblTempUsageDetail_20' ) start [2025-01-13 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241318', 'tblTempUsageDetail_20' ) end [2025-01-13 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241318', 'tblTempVendorCDR_20' ) start [2025-01-13 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241318', 'tblTempVendorCDR_20' ) end [2025-01-13 20:15:18] Production.INFO: ProcessCDR(1,14241318,1,1,2) [2025-01-13 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241318', 'tblTempUsageDetail_20' ) start [2025-01-13 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241318', 'tblTempUsageDetail_20' ) end [2025-01-13 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:15:22] Production.INFO: ==6392== Releasing lock... [2025-01-13 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:15:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-13 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:16:06 [end_date_ymd] => 2025-01-13 20:16:06 [RateCDR] => 1 ) [2025-01-13 20:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:16:06' and `end` < '2025-01-13 20:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:16:18] Production.INFO: count ==1688 [2025-01-13 20:16:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:16:06 - End Time 2025-01-13 20:16:06 [2025-01-13 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241323', 'tblTempUsageDetail_20' ) start [2025-01-13 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241323', 'tblTempUsageDetail_20' ) end [2025-01-13 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241323', 'tblTempVendorCDR_20' ) start [2025-01-13 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241323', 'tblTempVendorCDR_20' ) end [2025-01-13 20:16:19] Production.INFO: ProcessCDR(1,14241323,1,1,2) [2025-01-13 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241323', 'tblTempUsageDetail_20' ) start [2025-01-13 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241323', 'tblTempUsageDetail_20' ) end [2025-01-13 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:16:24] Production.INFO: ==6463== Releasing lock... [2025-01-13 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:16:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-13 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:17:05 [end_date_ymd] => 2025-01-13 20:17:05 [RateCDR] => 1 ) [2025-01-13 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:17:05' and `end` < '2025-01-13 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:17:17] Production.INFO: count ==1687 [2025-01-13 20:17:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:17:05 - End Time 2025-01-13 20:17:05 [2025-01-13 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241328', 'tblTempUsageDetail_20' ) start [2025-01-13 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241328', 'tblTempUsageDetail_20' ) end [2025-01-13 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241328', 'tblTempVendorCDR_20' ) start [2025-01-13 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241328', 'tblTempVendorCDR_20' ) end [2025-01-13 20:17:18] Production.INFO: ProcessCDR(1,14241328,1,1,2) [2025-01-13 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241328', 'tblTempUsageDetail_20' ) start [2025-01-13 20:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241328', 'tblTempUsageDetail_20' ) end [2025-01-13 20:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:17:21] Production.INFO: ==6533== Releasing lock... [2025-01-13 20:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:17:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-13 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:18:05 [end_date_ymd] => 2025-01-13 20:18:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:18:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:18:18] Production.INFO: count ==1682 [2025-01-13 20:18:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:18:05 - End Time 2025-01-13 20:18:05 [2025-01-13 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241333', 'tblTempUsageDetail_20' ) start [2025-01-13 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241333', 'tblTempUsageDetail_20' ) end [2025-01-13 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241333', 'tblTempVendorCDR_20' ) start [2025-01-13 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241333', 'tblTempVendorCDR_20' ) end [2025-01-13 20:18:18] Production.INFO: ProcessCDR(1,14241333,1,1,2) [2025-01-13 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241333', 'tblTempUsageDetail_20' ) start [2025-01-13 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241333', 'tblTempUsageDetail_20' ) end [2025-01-13 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:18:23] Production.INFO: ==6615== Releasing lock... [2025-01-13 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:18:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-13 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:19:05 [end_date_ymd] => 2025-01-13 20:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:19:17] Production.INFO: count ==1679 [2025-01-13 20:19:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:19:05 - End Time 2025-01-13 20:19:05 [2025-01-13 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241338', 'tblTempUsageDetail_20' ) start [2025-01-13 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241338', 'tblTempUsageDetail_20' ) end [2025-01-13 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241338', 'tblTempVendorCDR_20' ) start [2025-01-13 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241338', 'tblTempVendorCDR_20' ) end [2025-01-13 20:19:18] Production.INFO: ProcessCDR(1,14241338,1,1,2) [2025-01-13 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241338', 'tblTempUsageDetail_20' ) start [2025-01-13 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241338', 'tblTempUsageDetail_20' ) end [2025-01-13 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:19:21] Production.INFO: ==6685== Releasing lock... [2025-01-13 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:19:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-13 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:20:06 [end_date_ymd] => 2025-01-13 20:20:06 [RateCDR] => 1 ) [2025-01-13 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:20:06' and `end` < '2025-01-13 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:20:19] Production.INFO: count ==1664 [2025-01-13 20:20:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:20:06 - End Time 2025-01-13 20:20:06 [2025-01-13 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241344', 'tblTempUsageDetail_20' ) start [2025-01-13 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241344', 'tblTempUsageDetail_20' ) end [2025-01-13 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241344', 'tblTempVendorCDR_20' ) start [2025-01-13 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241344', 'tblTempVendorCDR_20' ) end [2025-01-13 20:20:19] Production.INFO: ProcessCDR(1,14241344,1,1,2) [2025-01-13 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241344', 'tblTempUsageDetail_20' ) start [2025-01-13 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241344', 'tblTempUsageDetail_20' ) end [2025-01-13 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:20:22] Production.INFO: ==6758== Releasing lock... [2025-01-13 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:20:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-13 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:21:05 [end_date_ymd] => 2025-01-13 20:21:05 [RateCDR] => 1 ) [2025-01-13 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:21:05' and `end` < '2025-01-13 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:21:18] Production.INFO: count ==1618 [2025-01-13 20:21:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:21:05 - End Time 2025-01-13 20:21:05 [2025-01-13 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241349', 'tblTempUsageDetail_20' ) start [2025-01-13 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241349', 'tblTempUsageDetail_20' ) end [2025-01-13 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241349', 'tblTempVendorCDR_20' ) start [2025-01-13 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241349', 'tblTempVendorCDR_20' ) end [2025-01-13 20:21:18] Production.INFO: ProcessCDR(1,14241349,1,1,2) [2025-01-13 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241349', 'tblTempUsageDetail_20' ) start [2025-01-13 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241349', 'tblTempUsageDetail_20' ) end [2025-01-13 20:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:21:21] Production.INFO: ==6833== Releasing lock... [2025-01-13 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:21:21] Production.INFO: 40 MB #Memory Used# [2025-01-13 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:22:05 [end_date_ymd] => 2025-01-13 20:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:22:18] Production.INFO: count ==1611 [2025-01-13 20:22:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:22:05 - End Time 2025-01-13 20:22:05 [2025-01-13 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241354', 'tblTempUsageDetail_20' ) start [2025-01-13 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241354', 'tblTempUsageDetail_20' ) end [2025-01-13 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241354', 'tblTempVendorCDR_20' ) start [2025-01-13 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241354', 'tblTempVendorCDR_20' ) end [2025-01-13 20:22:19] Production.INFO: ProcessCDR(1,14241354,1,1,2) [2025-01-13 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241354', 'tblTempUsageDetail_20' ) start [2025-01-13 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241354', 'tblTempUsageDetail_20' ) end [2025-01-13 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:22:22] Production.INFO: ==6906== Releasing lock... [2025-01-13 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:22:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-13 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:23:05 [end_date_ymd] => 2025-01-13 20:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:23:18] Production.INFO: count ==1608 [2025-01-13 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:23:05 - End Time 2025-01-13 20:23:05 [2025-01-13 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241359', 'tblTempUsageDetail_20' ) start [2025-01-13 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241359', 'tblTempUsageDetail_20' ) end [2025-01-13 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241359', 'tblTempVendorCDR_20' ) start [2025-01-13 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241359', 'tblTempVendorCDR_20' ) end [2025-01-13 20:23:18] Production.INFO: ProcessCDR(1,14241359,1,1,2) [2025-01-13 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241359', 'tblTempUsageDetail_20' ) start [2025-01-13 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241359', 'tblTempUsageDetail_20' ) end [2025-01-13 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:23:22] Production.INFO: ==6975== Releasing lock... [2025-01-13 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:23:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-13 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:24:05 [end_date_ymd] => 2025-01-13 20:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:24:18] Production.INFO: count ==1594 [2025-01-13 20:24:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:24:05 - End Time 2025-01-13 20:24:05 [2025-01-13 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241364', 'tblTempUsageDetail_20' ) start [2025-01-13 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241364', 'tblTempUsageDetail_20' ) end [2025-01-13 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241364', 'tblTempVendorCDR_20' ) start [2025-01-13 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241364', 'tblTempVendorCDR_20' ) end [2025-01-13 20:24:18] Production.INFO: ProcessCDR(1,14241364,1,1,2) [2025-01-13 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241364', 'tblTempUsageDetail_20' ) start [2025-01-13 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241364', 'tblTempUsageDetail_20' ) end [2025-01-13 20:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:24:21] Production.INFO: ==7045== Releasing lock... [2025-01-13 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:24:21] Production.INFO: 40 MB #Memory Used# [2025-01-13 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:25:05 [end_date_ymd] => 2025-01-13 20:25:05 [RateCDR] => 1 ) [2025-01-13 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:25:05' and `end` < '2025-01-13 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:25:18] Production.INFO: count ==1588 [2025-01-13 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:25:05 - End Time 2025-01-13 20:25:05 [2025-01-13 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241369', 'tblTempUsageDetail_20' ) start [2025-01-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241369', 'tblTempUsageDetail_20' ) end [2025-01-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241369', 'tblTempVendorCDR_20' ) start [2025-01-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241369', 'tblTempVendorCDR_20' ) end [2025-01-13 20:25:18] Production.INFO: ProcessCDR(1,14241369,1,1,2) [2025-01-13 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241369', 'tblTempUsageDetail_20' ) start [2025-01-13 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241369', 'tblTempUsageDetail_20' ) end [2025-01-13 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:25:22] Production.INFO: ==7115== Releasing lock... [2025-01-13 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:25:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-13 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:26:05 [end_date_ymd] => 2025-01-13 20:26:05 [RateCDR] => 1 ) [2025-01-13 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:26:05' and `end` < '2025-01-13 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:26:18] Production.INFO: count ==1584 [2025-01-13 20:26:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:26:05 - End Time 2025-01-13 20:26:05 [2025-01-13 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241374', 'tblTempUsageDetail_20' ) start [2025-01-13 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241374', 'tblTempUsageDetail_20' ) end [2025-01-13 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241374', 'tblTempVendorCDR_20' ) start [2025-01-13 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241374', 'tblTempVendorCDR_20' ) end [2025-01-13 20:26:18] Production.INFO: ProcessCDR(1,14241374,1,1,2) [2025-01-13 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241374', 'tblTempUsageDetail_20' ) start [2025-01-13 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241374', 'tblTempUsageDetail_20' ) end [2025-01-13 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:26:21] Production.INFO: ==7193== Releasing lock... [2025-01-13 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:26:21] Production.INFO: 40 MB #Memory Used# [2025-01-13 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:27:06 [end_date_ymd] => 2025-01-13 20:27:06 [RateCDR] => 1 ) [2025-01-13 20:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:27:06' and `end` < '2025-01-13 20:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:27:19] Production.INFO: count ==1572 [2025-01-13 20:27:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:27:06 - End Time 2025-01-13 20:27:06 [2025-01-13 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241379', 'tblTempUsageDetail_20' ) start [2025-01-13 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241379', 'tblTempUsageDetail_20' ) end [2025-01-13 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241379', 'tblTempVendorCDR_20' ) start [2025-01-13 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241379', 'tblTempVendorCDR_20' ) end [2025-01-13 20:27:19] Production.INFO: ProcessCDR(1,14241379,1,1,2) [2025-01-13 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241379', 'tblTempUsageDetail_20' ) start [2025-01-13 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241379', 'tblTempUsageDetail_20' ) end [2025-01-13 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:27:22] Production.INFO: ==7263== Releasing lock... [2025-01-13 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:27:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-13 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:28:05 [end_date_ymd] => 2025-01-13 20:28:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:28:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:28:18] Production.INFO: count ==1578 [2025-01-13 20:28:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:28:05 - End Time 2025-01-13 20:28:05 [2025-01-13 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241384', 'tblTempUsageDetail_20' ) start [2025-01-13 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241384', 'tblTempUsageDetail_20' ) end [2025-01-13 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241384', 'tblTempVendorCDR_20' ) start [2025-01-13 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241384', 'tblTempVendorCDR_20' ) end [2025-01-13 20:28:18] Production.INFO: ProcessCDR(1,14241384,1,1,2) [2025-01-13 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241384', 'tblTempUsageDetail_20' ) start [2025-01-13 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241384', 'tblTempUsageDetail_20' ) end [2025-01-13 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:28:23] Production.INFO: ==7335== Releasing lock... [2025-01-13 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:28:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-13 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:29:05 [end_date_ymd] => 2025-01-13 20:29:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:29:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:29:18] Production.INFO: count ==1579 [2025-01-13 20:29:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:29:05 - End Time 2025-01-13 20:29:05 [2025-01-13 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241389', 'tblTempUsageDetail_20' ) start [2025-01-13 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241389', 'tblTempUsageDetail_20' ) end [2025-01-13 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241389', 'tblTempVendorCDR_20' ) start [2025-01-13 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241389', 'tblTempVendorCDR_20' ) end [2025-01-13 20:29:18] Production.INFO: ProcessCDR(1,14241389,1,1,2) [2025-01-13 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241389', 'tblTempUsageDetail_20' ) start [2025-01-13 20:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241389', 'tblTempUsageDetail_20' ) end [2025-01-13 20:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:29:23] Production.INFO: ==7443== Releasing lock... [2025-01-13 20:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:29:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-13 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:30:05 [end_date_ymd] => 2025-01-13 20:30:05 [RateCDR] => 1 ) [2025-01-13 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:30:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:30:18] Production.INFO: count ==1577 [2025-01-13 20:30:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:30:05 - End Time 2025-01-13 20:30:05 [2025-01-13 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241395', 'tblTempUsageDetail_20' ) start [2025-01-13 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241395', 'tblTempUsageDetail_20' ) end [2025-01-13 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241395', 'tblTempVendorCDR_20' ) start [2025-01-13 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241395', 'tblTempVendorCDR_20' ) end [2025-01-13 20:30:19] Production.INFO: ProcessCDR(1,14241395,1,1,2) [2025-01-13 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241395', 'tblTempUsageDetail_20' ) start [2025-01-13 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241395', 'tblTempUsageDetail_20' ) end [2025-01-13 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:30:22] Production.INFO: ==7527== Releasing lock... [2025-01-13 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:30:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-13 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:31:05 [end_date_ymd] => 2025-01-13 20:31:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:31:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:31:18] Production.INFO: count ==1555 [2025-01-13 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:31:05 - End Time 2025-01-13 20:31:05 [2025-01-13 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241400', 'tblTempUsageDetail_20' ) start [2025-01-13 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241400', 'tblTempUsageDetail_20' ) end [2025-01-13 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241400', 'tblTempVendorCDR_20' ) start [2025-01-13 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241400', 'tblTempVendorCDR_20' ) end [2025-01-13 20:31:18] Production.INFO: ProcessCDR(1,14241400,1,1,2) [2025-01-13 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241400', 'tblTempUsageDetail_20' ) start [2025-01-13 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241400', 'tblTempUsageDetail_20' ) end [2025-01-13 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:31:22] Production.INFO: ==7632== Releasing lock... [2025-01-13 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:31:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-13 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:32:05 [end_date_ymd] => 2025-01-13 20:32:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:32:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:32:18] Production.INFO: count ==1550 [2025-01-13 20:32:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:32:05 - End Time 2025-01-13 20:32:05 [2025-01-13 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241405', 'tblTempUsageDetail_20' ) start [2025-01-13 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241405', 'tblTempUsageDetail_20' ) end [2025-01-13 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241405', 'tblTempVendorCDR_20' ) start [2025-01-13 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241405', 'tblTempVendorCDR_20' ) end [2025-01-13 20:32:19] Production.INFO: ProcessCDR(1,14241405,1,1,2) [2025-01-13 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241405', 'tblTempUsageDetail_20' ) start [2025-01-13 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241405', 'tblTempUsageDetail_20' ) end [2025-01-13 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:32:22] Production.INFO: ==7733== Releasing lock... [2025-01-13 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:32:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-13 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:33:06 [end_date_ymd] => 2025-01-13 20:33:06 [RateCDR] => 1 ) [2025-01-13 20:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:33:06' and `end` < '2025-01-13 20:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:33:18] Production.INFO: count ==1549 [2025-01-13 20:33:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:33:06 - End Time 2025-01-13 20:33:06 [2025-01-13 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241410', 'tblTempUsageDetail_20' ) start [2025-01-13 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241410', 'tblTempUsageDetail_20' ) end [2025-01-13 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241410', 'tblTempVendorCDR_20' ) start [2025-01-13 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241410', 'tblTempVendorCDR_20' ) end [2025-01-13 20:33:18] Production.INFO: ProcessCDR(1,14241410,1,1,2) [2025-01-13 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241410', 'tblTempUsageDetail_20' ) start [2025-01-13 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241410', 'tblTempUsageDetail_20' ) end [2025-01-13 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:33:22] Production.INFO: ==7838== Releasing lock... [2025-01-13 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-13 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:34:05 [end_date_ymd] => 2025-01-13 20:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:34:17] Production.INFO: count ==1544 [2025-01-13 20:34:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:34:05 - End Time 2025-01-13 20:34:05 [2025-01-13 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241415', 'tblTempUsageDetail_20' ) start [2025-01-13 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241415', 'tblTempUsageDetail_20' ) end [2025-01-13 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241415', 'tblTempVendorCDR_20' ) start [2025-01-13 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241415', 'tblTempVendorCDR_20' ) end [2025-01-13 20:34:18] Production.INFO: ProcessCDR(1,14241415,1,1,2) [2025-01-13 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241415', 'tblTempUsageDetail_20' ) start [2025-01-13 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241415', 'tblTempUsageDetail_20' ) end [2025-01-13 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:34:23] Production.INFO: ==7939== Releasing lock... [2025-01-13 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:34:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-13 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:35:05 [end_date_ymd] => 2025-01-13 20:35:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:35:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:35:17] Production.INFO: count ==1539 [2025-01-13 20:35:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:35:05 - End Time 2025-01-13 20:35:05 [2025-01-13 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241420', 'tblTempUsageDetail_20' ) start [2025-01-13 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241420', 'tblTempUsageDetail_20' ) end [2025-01-13 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241420', 'tblTempVendorCDR_20' ) start [2025-01-13 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241420', 'tblTempVendorCDR_20' ) end [2025-01-13 20:35:18] Production.INFO: ProcessCDR(1,14241420,1,1,2) [2025-01-13 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241420', 'tblTempUsageDetail_20' ) start [2025-01-13 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241420', 'tblTempUsageDetail_20' ) end [2025-01-13 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:35:21] Production.INFO: ==8050== Releasing lock... [2025-01-13 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:35:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-13 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:36:05 [end_date_ymd] => 2025-01-13 20:36:05 [RateCDR] => 1 ) [2025-01-13 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:36:05' and `end` < '2025-01-13 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:36:17] Production.INFO: count ==1536 [2025-01-13 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:36:05 - End Time 2025-01-13 20:36:05 [2025-01-13 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241425', 'tblTempUsageDetail_20' ) start [2025-01-13 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241425', 'tblTempUsageDetail_20' ) end [2025-01-13 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241425', 'tblTempVendorCDR_20' ) start [2025-01-13 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241425', 'tblTempVendorCDR_20' ) end [2025-01-13 20:36:18] Production.INFO: ProcessCDR(1,14241425,1,1,2) [2025-01-13 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241425', 'tblTempUsageDetail_20' ) start [2025-01-13 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241425', 'tblTempUsageDetail_20' ) end [2025-01-13 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:36:21] Production.INFO: ==8153== Releasing lock... [2025-01-13 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:36:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-13 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:37:05 [end_date_ymd] => 2025-01-13 20:37:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:37:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:37:18] Production.INFO: count ==1533 [2025-01-13 20:37:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:37:05 - End Time 2025-01-13 20:37:05 [2025-01-13 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241430', 'tblTempUsageDetail_20' ) start [2025-01-13 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241430', 'tblTempUsageDetail_20' ) end [2025-01-13 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241430', 'tblTempVendorCDR_20' ) start [2025-01-13 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241430', 'tblTempVendorCDR_20' ) end [2025-01-13 20:37:18] Production.INFO: ProcessCDR(1,14241430,1,1,2) [2025-01-13 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241430', 'tblTempUsageDetail_20' ) start [2025-01-13 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241430', 'tblTempUsageDetail_20' ) end [2025-01-13 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:37:22] Production.INFO: ==8262== Releasing lock... [2025-01-13 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:37:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-13 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:38:05 [end_date_ymd] => 2025-01-13 20:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:38:17] Production.INFO: count ==1529 [2025-01-13 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:38:05 - End Time 2025-01-13 20:38:05 [2025-01-13 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241435', 'tblTempUsageDetail_20' ) start [2025-01-13 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241435', 'tblTempUsageDetail_20' ) end [2025-01-13 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241435', 'tblTempVendorCDR_20' ) start [2025-01-13 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241435', 'tblTempVendorCDR_20' ) end [2025-01-13 20:38:18] Production.INFO: ProcessCDR(1,14241435,1,1,2) [2025-01-13 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241435', 'tblTempUsageDetail_20' ) start [2025-01-13 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241435', 'tblTempUsageDetail_20' ) end [2025-01-13 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:38:21] Production.INFO: ==8369== Releasing lock... [2025-01-13 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:38:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-13 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:39:05 [end_date_ymd] => 2025-01-13 20:39:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:39:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:39:17] Production.INFO: count ==1532 [2025-01-13 20:39:17] Production.ERROR: pbx CDR StartTime 2025-01-13 17:39:05 - End Time 2025-01-13 20:39:05 [2025-01-13 20:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241440', 'tblTempUsageDetail_20' ) start [2025-01-13 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241440', 'tblTempUsageDetail_20' ) end [2025-01-13 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241440', 'tblTempVendorCDR_20' ) start [2025-01-13 20:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241440', 'tblTempVendorCDR_20' ) end [2025-01-13 20:39:17] Production.INFO: ProcessCDR(1,14241440,1,1,2) [2025-01-13 20:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241440', 'tblTempUsageDetail_20' ) start [2025-01-13 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241440', 'tblTempUsageDetail_20' ) end [2025-01-13 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:39:23] Production.INFO: ==8475== Releasing lock... [2025-01-13 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:39:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-13 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:40:05 [end_date_ymd] => 2025-01-13 20:40:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:40:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:40:18] Production.INFO: count ==1533 [2025-01-13 20:40:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:40:05 - End Time 2025-01-13 20:40:05 [2025-01-13 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241445', 'tblTempUsageDetail_20' ) start [2025-01-13 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241445', 'tblTempUsageDetail_20' ) end [2025-01-13 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241445', 'tblTempVendorCDR_20' ) start [2025-01-13 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241445', 'tblTempVendorCDR_20' ) end [2025-01-13 20:40:18] Production.INFO: ProcessCDR(1,14241445,1,1,2) [2025-01-13 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241445', 'tblTempUsageDetail_20' ) start [2025-01-13 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241445', 'tblTempUsageDetail_20' ) end [2025-01-13 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:40:22] Production.INFO: ==8588== Releasing lock... [2025-01-13 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:40:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-13 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:41:05 [end_date_ymd] => 2025-01-13 20:41:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:41:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:41:18] Production.INFO: count ==1518 [2025-01-13 20:41:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:41:05 - End Time 2025-01-13 20:41:05 [2025-01-13 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241451', 'tblTempUsageDetail_20' ) start [2025-01-13 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241451', 'tblTempUsageDetail_20' ) end [2025-01-13 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241451', 'tblTempVendorCDR_20' ) start [2025-01-13 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241451', 'tblTempVendorCDR_20' ) end [2025-01-13 20:41:18] Production.INFO: ProcessCDR(1,14241451,1,1,2) [2025-01-13 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241451', 'tblTempUsageDetail_20' ) start [2025-01-13 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241451', 'tblTempUsageDetail_20' ) end [2025-01-13 20:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:41:24] Production.INFO: ==8698== Releasing lock... [2025-01-13 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:41:24] Production.INFO: 39.25 MB #Memory Used# [2025-01-13 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:42:05 [end_date_ymd] => 2025-01-13 20:42:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:42:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:42:18] Production.INFO: count ==1518 [2025-01-13 20:42:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:42:05 - End Time 2025-01-13 20:42:05 [2025-01-13 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241456', 'tblTempUsageDetail_20' ) start [2025-01-13 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241456', 'tblTempUsageDetail_20' ) end [2025-01-13 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241456', 'tblTempVendorCDR_20' ) start [2025-01-13 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241456', 'tblTempVendorCDR_20' ) end [2025-01-13 20:42:19] Production.INFO: ProcessCDR(1,14241456,1,1,2) [2025-01-13 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241456', 'tblTempUsageDetail_20' ) start [2025-01-13 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241456', 'tblTempUsageDetail_20' ) end [2025-01-13 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:42:22] Production.INFO: ==8805== Releasing lock... [2025-01-13 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:42:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-13 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:43:05 [end_date_ymd] => 2025-01-13 20:43:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:43:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:43:18] Production.INFO: count ==1516 [2025-01-13 20:43:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:43:05 - End Time 2025-01-13 20:43:05 [2025-01-13 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241461', 'tblTempUsageDetail_20' ) start [2025-01-13 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241461', 'tblTempUsageDetail_20' ) end [2025-01-13 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241461', 'tblTempVendorCDR_20' ) start [2025-01-13 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241461', 'tblTempVendorCDR_20' ) end [2025-01-13 20:43:18] Production.INFO: ProcessCDR(1,14241461,1,1,2) [2025-01-13 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241461', 'tblTempUsageDetail_20' ) start [2025-01-13 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241461', 'tblTempUsageDetail_20' ) end [2025-01-13 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:43:22] Production.INFO: ==8920== Releasing lock... [2025-01-13 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:43:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-13 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:44:05 [end_date_ymd] => 2025-01-13 20:44:05 [RateCDR] => 1 ) [2025-01-13 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:44:05' and `end` < '2025-01-13 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:44:18] Production.INFO: count ==1509 [2025-01-13 20:44:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:44:05 - End Time 2025-01-13 20:44:05 [2025-01-13 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241466', 'tblTempUsageDetail_20' ) start [2025-01-13 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241466', 'tblTempUsageDetail_20' ) end [2025-01-13 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241466', 'tblTempVendorCDR_20' ) start [2025-01-13 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241466', 'tblTempVendorCDR_20' ) end [2025-01-13 20:44:18] Production.INFO: ProcessCDR(1,14241466,1,1,2) [2025-01-13 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241466', 'tblTempUsageDetail_20' ) start [2025-01-13 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241466', 'tblTempUsageDetail_20' ) end [2025-01-13 20:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:44:24] Production.INFO: ==9030== Releasing lock... [2025-01-13 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:44:24] Production.INFO: 39 MB #Memory Used# [2025-01-13 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:45:05 [end_date_ymd] => 2025-01-13 20:45:05 [RateCDR] => 1 ) [2025-01-13 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:45:05' and `end` < '2025-01-13 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:45:18] Production.INFO: count ==1505 [2025-01-13 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:45:05 - End Time 2025-01-13 20:45:05 [2025-01-13 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241471', 'tblTempUsageDetail_20' ) start [2025-01-13 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241471', 'tblTempUsageDetail_20' ) end [2025-01-13 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241471', 'tblTempVendorCDR_20' ) start [2025-01-13 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241471', 'tblTempVendorCDR_20' ) end [2025-01-13 20:45:18] Production.INFO: ProcessCDR(1,14241471,1,1,2) [2025-01-13 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241471', 'tblTempUsageDetail_20' ) start [2025-01-13 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241471', 'tblTempUsageDetail_20' ) end [2025-01-13 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:45:23] Production.INFO: ==9176== Releasing lock... [2025-01-13 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:45:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-13 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:46:05 [end_date_ymd] => 2025-01-13 20:46:05 [RateCDR] => 1 ) [2025-01-13 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:46:05' and `end` < '2025-01-13 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:46:18] Production.INFO: count ==1505 [2025-01-13 20:46:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:46:05 - End Time 2025-01-13 20:46:05 [2025-01-13 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241476', 'tblTempUsageDetail_20' ) start [2025-01-13 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241476', 'tblTempUsageDetail_20' ) end [2025-01-13 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241476', 'tblTempVendorCDR_20' ) start [2025-01-13 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241476', 'tblTempVendorCDR_20' ) end [2025-01-13 20:46:18] Production.INFO: ProcessCDR(1,14241476,1,1,2) [2025-01-13 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241476', 'tblTempUsageDetail_20' ) start [2025-01-13 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241476', 'tblTempUsageDetail_20' ) end [2025-01-13 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:46:22] Production.INFO: ==9276== Releasing lock... [2025-01-13 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:46:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-13 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:47:05 [end_date_ymd] => 2025-01-13 20:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:47:17] Production.INFO: count ==1494 [2025-01-13 20:47:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:47:05 - End Time 2025-01-13 20:47:05 [2025-01-13 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241481', 'tblTempUsageDetail_20' ) start [2025-01-13 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241481', 'tblTempUsageDetail_20' ) end [2025-01-13 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241481', 'tblTempVendorCDR_20' ) start [2025-01-13 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241481', 'tblTempVendorCDR_20' ) end [2025-01-13 20:47:18] Production.INFO: ProcessCDR(1,14241481,1,1,2) [2025-01-13 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241481', 'tblTempUsageDetail_20' ) start [2025-01-13 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241481', 'tblTempUsageDetail_20' ) end [2025-01-13 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:47:21] Production.INFO: ==9351== Releasing lock... [2025-01-13 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:47:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-13 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:48:06 [end_date_ymd] => 2025-01-13 20:48:06 [RateCDR] => 1 ) [2025-01-13 20:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:48:06' and `end` < '2025-01-13 20:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:48:19] Production.INFO: count ==1490 [2025-01-13 20:48:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:48:06 - End Time 2025-01-13 20:48:06 [2025-01-13 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241486', 'tblTempUsageDetail_20' ) start [2025-01-13 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241486', 'tblTempUsageDetail_20' ) end [2025-01-13 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241486', 'tblTempVendorCDR_20' ) start [2025-01-13 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241486', 'tblTempVendorCDR_20' ) end [2025-01-13 20:48:19] Production.INFO: ProcessCDR(1,14241486,1,1,2) [2025-01-13 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241486', 'tblTempUsageDetail_20' ) start [2025-01-13 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241486', 'tblTempUsageDetail_20' ) end [2025-01-13 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:48:23] Production.INFO: ==9429== Releasing lock... [2025-01-13 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:48:23] Production.INFO: 39 MB #Memory Used# [2025-01-13 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:49:05 [end_date_ymd] => 2025-01-13 20:49:05 [RateCDR] => 1 ) [2025-01-13 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:49:05' and `end` < '2025-01-13 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:49:18] Production.INFO: count ==1476 [2025-01-13 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:49:05 - End Time 2025-01-13 20:49:05 [2025-01-13 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241491', 'tblTempUsageDetail_20' ) start [2025-01-13 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241491', 'tblTempUsageDetail_20' ) end [2025-01-13 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241491', 'tblTempVendorCDR_20' ) start [2025-01-13 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241491', 'tblTempVendorCDR_20' ) end [2025-01-13 20:49:18] Production.INFO: ProcessCDR(1,14241491,1,1,2) [2025-01-13 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241491', 'tblTempUsageDetail_20' ) start [2025-01-13 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241491', 'tblTempUsageDetail_20' ) end [2025-01-13 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:49:22] Production.INFO: ==9498== Releasing lock... [2025-01-13 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:49:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-13 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:50:06 [end_date_ymd] => 2025-01-13 20:50:06 [RateCDR] => 1 ) [2025-01-13 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:50:06' and `end` < '2025-01-13 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:50:19] Production.INFO: count ==1478 [2025-01-13 20:50:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:50:06 - End Time 2025-01-13 20:50:06 [2025-01-13 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241496', 'tblTempUsageDetail_20' ) start [2025-01-13 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241496', 'tblTempUsageDetail_20' ) end [2025-01-13 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241496', 'tblTempVendorCDR_20' ) start [2025-01-13 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241496', 'tblTempVendorCDR_20' ) end [2025-01-13 20:50:19] Production.INFO: ProcessCDR(1,14241496,1,1,2) [2025-01-13 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241496', 'tblTempUsageDetail_20' ) start [2025-01-13 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241496', 'tblTempUsageDetail_20' ) end [2025-01-13 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:50:24] Production.INFO: ==9571== Releasing lock... [2025-01-13 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:50:24] Production.INFO: 39 MB #Memory Used# [2025-01-13 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:51:05 [end_date_ymd] => 2025-01-13 20:51:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:51:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:51:18] Production.INFO: count ==1394 [2025-01-13 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:51:05 - End Time 2025-01-13 20:51:05 [2025-01-13 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241502', 'tblTempUsageDetail_20' ) start [2025-01-13 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241502', 'tblTempUsageDetail_20' ) end [2025-01-13 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241502', 'tblTempVendorCDR_20' ) start [2025-01-13 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241502', 'tblTempVendorCDR_20' ) end [2025-01-13 20:51:18] Production.INFO: ProcessCDR(1,14241502,1,1,2) [2025-01-13 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241502', 'tblTempUsageDetail_20' ) start [2025-01-13 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241502', 'tblTempUsageDetail_20' ) end [2025-01-13 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:51:22] Production.INFO: ==9645== Releasing lock... [2025-01-13 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:51:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-13 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:52:04 [end_date_ymd] => 2025-01-13 20:52:04 [RateCDR] => 1 ) [2025-01-13 20:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:52:04' and `end` < '2025-01-13 20:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:52:17] Production.INFO: count ==1392 [2025-01-13 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:52:04 - End Time 2025-01-13 20:52:04 [2025-01-13 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241503', 'tblTempUsageDetail_20' ) start [2025-01-13 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241503', 'tblTempUsageDetail_20' ) end [2025-01-13 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241503', 'tblTempVendorCDR_20' ) start [2025-01-13 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241503', 'tblTempVendorCDR_20' ) end [2025-01-13 20:52:18] Production.INFO: ProcessCDR(1,14241503,1,1,2) [2025-01-13 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241503', 'tblTempUsageDetail_20' ) start [2025-01-13 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241503', 'tblTempUsageDetail_20' ) end [2025-01-13 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:52:21] Production.INFO: ==9716== Releasing lock... [2025-01-13 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:52:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-13 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:53:06 [end_date_ymd] => 2025-01-13 20:53:06 [RateCDR] => 1 ) [2025-01-13 20:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:53:06' and `end` < '2025-01-13 20:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:53:18] Production.INFO: count ==1384 [2025-01-13 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:53:06 - End Time 2025-01-13 20:53:06 [2025-01-13 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241512', 'tblTempUsageDetail_20' ) start [2025-01-13 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241512', 'tblTempUsageDetail_20' ) end [2025-01-13 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241512', 'tblTempVendorCDR_20' ) start [2025-01-13 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241512', 'tblTempVendorCDR_20' ) end [2025-01-13 20:53:19] Production.INFO: ProcessCDR(1,14241512,1,1,2) [2025-01-13 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241512', 'tblTempUsageDetail_20' ) start [2025-01-13 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241512', 'tblTempUsageDetail_20' ) end [2025-01-13 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:53:22] Production.INFO: ==9793== Releasing lock... [2025-01-13 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:53:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-13 20:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:54:04 [end_date_ymd] => 2025-01-13 20:54:04 [RateCDR] => 1 ) [2025-01-13 20:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:54:04' and `end` < '2025-01-13 20:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:54:17] Production.INFO: count ==1384 [2025-01-13 20:54:17] Production.ERROR: pbx CDR StartTime 2025-01-13 17:54:04 - End Time 2025-01-13 20:54:04 [2025-01-13 20:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241517', 'tblTempUsageDetail_20' ) start [2025-01-13 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241517', 'tblTempUsageDetail_20' ) end [2025-01-13 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241517', 'tblTempVendorCDR_20' ) start [2025-01-13 20:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241517', 'tblTempVendorCDR_20' ) end [2025-01-13 20:54:17] Production.INFO: ProcessCDR(1,14241517,1,1,2) [2025-01-13 20:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241517', 'tblTempUsageDetail_20' ) start [2025-01-13 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241517', 'tblTempUsageDetail_20' ) end [2025-01-13 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:54:22] Production.INFO: ==9865== Releasing lock... [2025-01-13 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:54:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-13 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:55:05 [end_date_ymd] => 2025-01-13 20:55:05 [RateCDR] => 1 ) [2025-01-13 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:55:05' and `end` < '2025-01-13 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:55:18] Production.INFO: count ==1383 [2025-01-13 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:55:05 - End Time 2025-01-13 20:55:05 [2025-01-13 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241522', 'tblTempUsageDetail_20' ) start [2025-01-13 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241522', 'tblTempUsageDetail_20' ) end [2025-01-13 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241522', 'tblTempVendorCDR_20' ) start [2025-01-13 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241522', 'tblTempVendorCDR_20' ) end [2025-01-13 20:55:18] Production.INFO: ProcessCDR(1,14241522,1,1,2) [2025-01-13 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241522', 'tblTempUsageDetail_20' ) start [2025-01-13 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241522', 'tblTempUsageDetail_20' ) end [2025-01-13 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:55:22] Production.INFO: ==9934== Releasing lock... [2025-01-13 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:55:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-13 20:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:56:04 [end_date_ymd] => 2025-01-13 20:56:04 [RateCDR] => 1 ) [2025-01-13 20:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:56:04' and `end` < '2025-01-13 20:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:56:17] Production.INFO: count ==1379 [2025-01-13 20:56:17] Production.ERROR: pbx CDR StartTime 2025-01-13 17:56:04 - End Time 2025-01-13 20:56:04 [2025-01-13 20:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241527', 'tblTempUsageDetail_20' ) start [2025-01-13 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241527', 'tblTempUsageDetail_20' ) end [2025-01-13 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241527', 'tblTempVendorCDR_20' ) start [2025-01-13 20:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241527', 'tblTempVendorCDR_20' ) end [2025-01-13 20:56:17] Production.INFO: ProcessCDR(1,14241527,1,1,2) [2025-01-13 20:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241527', 'tblTempUsageDetail_20' ) start [2025-01-13 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241527', 'tblTempUsageDetail_20' ) end [2025-01-13 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:56:21] Production.INFO: ==10004== Releasing lock... [2025-01-13 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:56:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-13 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:57:05 [end_date_ymd] => 2025-01-13 20:57:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 17:57:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 20:57:18] Production.INFO: count ==1378 [2025-01-13 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-13 17:57:05 - End Time 2025-01-13 20:57:05 [2025-01-13 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241532', 'tblTempUsageDetail_20' ) start [2025-01-13 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241532', 'tblTempUsageDetail_20' ) end [2025-01-13 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241532', 'tblTempVendorCDR_20' ) start [2025-01-13 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241532', 'tblTempVendorCDR_20' ) end [2025-01-13 20:57:18] Production.INFO: ProcessCDR(1,14241532,1,1,2) [2025-01-13 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241532', 'tblTempUsageDetail_20' ) start [2025-01-13 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241532', 'tblTempUsageDetail_20' ) end [2025-01-13 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:57:24] Production.INFO: ==10075== Releasing lock... [2025-01-13 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:57:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-13 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:58:05 [end_date_ymd] => 2025-01-13 20:58:05 [RateCDR] => 1 ) [2025-01-13 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:58:05' and `end` < '2025-01-13 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:58:19] Production.INFO: count ==1379 [2025-01-13 20:58:19] Production.ERROR: pbx CDR StartTime 2025-01-13 17:58:05 - End Time 2025-01-13 20:58:05 [2025-01-13 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241537', 'tblTempUsageDetail_20' ) start [2025-01-13 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241537', 'tblTempUsageDetail_20' ) end [2025-01-13 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241537', 'tblTempVendorCDR_20' ) start [2025-01-13 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241537', 'tblTempVendorCDR_20' ) end [2025-01-13 20:58:19] Production.INFO: ProcessCDR(1,14241537,1,1,2) [2025-01-13 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241537', 'tblTempUsageDetail_20' ) start [2025-01-13 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241537', 'tblTempUsageDetail_20' ) end [2025-01-13 20:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:58:24] Production.INFO: ==10146== Releasing lock... [2025-01-13 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:58:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-13 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 17:59:05 [end_date_ymd] => 2025-01-13 20:59:05 [RateCDR] => 1 ) [2025-01-13 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 17:59:05' and `end` < '2025-01-13 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 20:59:17] Production.INFO: count ==1379 [2025-01-13 20:59:17] Production.ERROR: pbx CDR StartTime 2025-01-13 17:59:05 - End Time 2025-01-13 20:59:05 [2025-01-13 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241542', 'tblTempUsageDetail_20' ) start [2025-01-13 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241542', 'tblTempUsageDetail_20' ) end [2025-01-13 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241542', 'tblTempVendorCDR_20' ) start [2025-01-13 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241542', 'tblTempVendorCDR_20' ) end [2025-01-13 20:59:18] Production.INFO: ProcessCDR(1,14241542,1,1,2) [2025-01-13 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241542', 'tblTempUsageDetail_20' ) start [2025-01-13 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241542', 'tblTempUsageDetail_20' ) end [2025-01-13 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 20:59:21] Production.INFO: ==10218== Releasing lock... [2025-01-13 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 20:59:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-13 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:00:07 [end_date_ymd] => 2025-01-13 21:00:07 [RateCDR] => 1 ) [2025-01-13 21:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:00:07' and `end` < '2025-01-13 21:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:00:19] Production.INFO: count ==1379 [2025-01-13 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-13 18:00:07 - End Time 2025-01-13 21:00:07 [2025-01-13 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241547', 'tblTempUsageDetail_20' ) start [2025-01-13 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241547', 'tblTempUsageDetail_20' ) end [2025-01-13 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241547', 'tblTempVendorCDR_20' ) start [2025-01-13 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241547', 'tblTempVendorCDR_20' ) end [2025-01-13 21:00:20] Production.INFO: ProcessCDR(1,14241547,1,1,2) [2025-01-13 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241547', 'tblTempUsageDetail_20' ) start [2025-01-13 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241547', 'tblTempUsageDetail_20' ) end [2025-01-13 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:00:25] Production.INFO: ==10331== Releasing lock... [2025-01-13 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:00:25] Production.INFO: 38.25 MB #Memory Used# [2025-01-13 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:01:05 [end_date_ymd] => 2025-01-13 21:01:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:01:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:01:17] Production.INFO: count ==1325 [2025-01-13 21:01:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:01:05 - End Time 2025-01-13 21:01:05 [2025-01-13 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241553', 'tblTempUsageDetail_20' ) start [2025-01-13 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241553', 'tblTempUsageDetail_20' ) end [2025-01-13 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241553', 'tblTempVendorCDR_20' ) start [2025-01-13 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241553', 'tblTempVendorCDR_20' ) end [2025-01-13 21:01:18] Production.INFO: ProcessCDR(1,14241553,1,1,2) [2025-01-13 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241553', 'tblTempUsageDetail_20' ) start [2025-01-13 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241553', 'tblTempUsageDetail_20' ) end [2025-01-13 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:01:23] Production.INFO: ==10414== Releasing lock... [2025-01-13 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:01:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-13 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:02:05 [end_date_ymd] => 2025-01-13 21:02:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:02:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:02:19] Production.INFO: count ==1316 [2025-01-13 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-13 18:02:05 - End Time 2025-01-13 21:02:05 [2025-01-13 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241558', 'tblTempUsageDetail_20' ) start [2025-01-13 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241558', 'tblTempUsageDetail_20' ) end [2025-01-13 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241558', 'tblTempVendorCDR_20' ) start [2025-01-13 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241558', 'tblTempVendorCDR_20' ) end [2025-01-13 21:02:19] Production.INFO: ProcessCDR(1,14241558,1,1,2) [2025-01-13 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241558', 'tblTempUsageDetail_20' ) start [2025-01-13 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241558', 'tblTempUsageDetail_20' ) end [2025-01-13 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:02:23] Production.INFO: ==10486== Releasing lock... [2025-01-13 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:02:23] Production.INFO: 38 MB #Memory Used# [2025-01-13 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:03:05 [end_date_ymd] => 2025-01-13 21:03:05 [RateCDR] => 1 ) [2025-01-13 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:03:05' and `end` < '2025-01-13 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:03:19] Production.INFO: count ==1309 [2025-01-13 21:03:19] Production.ERROR: pbx CDR StartTime 2025-01-13 18:03:05 - End Time 2025-01-13 21:03:05 [2025-01-13 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241563', 'tblTempUsageDetail_20' ) start [2025-01-13 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241563', 'tblTempUsageDetail_20' ) end [2025-01-13 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241563', 'tblTempVendorCDR_20' ) start [2025-01-13 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241563', 'tblTempVendorCDR_20' ) end [2025-01-13 21:03:19] Production.INFO: ProcessCDR(1,14241563,1,1,2) [2025-01-13 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241563', 'tblTempUsageDetail_20' ) start [2025-01-13 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241563', 'tblTempUsageDetail_20' ) end [2025-01-13 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:03:23] Production.INFO: ==10556== Releasing lock... [2025-01-13 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:03:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-13 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:04:05 [end_date_ymd] => 2025-01-13 21:04:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:04:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:04:18] Production.INFO: count ==1311 [2025-01-13 21:04:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:04:05 - End Time 2025-01-13 21:04:05 [2025-01-13 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241568', 'tblTempUsageDetail_20' ) start [2025-01-13 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241568', 'tblTempUsageDetail_20' ) end [2025-01-13 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241568', 'tblTempVendorCDR_20' ) start [2025-01-13 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241568', 'tblTempVendorCDR_20' ) end [2025-01-13 21:04:18] Production.INFO: ProcessCDR(1,14241568,1,1,2) [2025-01-13 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241568', 'tblTempUsageDetail_20' ) start [2025-01-13 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241568', 'tblTempUsageDetail_20' ) end [2025-01-13 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:04:22] Production.INFO: ==10627== Releasing lock... [2025-01-13 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:04:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-13 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:05:05 [end_date_ymd] => 2025-01-13 21:05:05 [RateCDR] => 1 ) [2025-01-13 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:05:05' and `end` < '2025-01-13 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:05:18] Production.INFO: count ==1305 [2025-01-13 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:05:05 - End Time 2025-01-13 21:05:05 [2025-01-13 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241573', 'tblTempUsageDetail_20' ) start [2025-01-13 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241573', 'tblTempUsageDetail_20' ) end [2025-01-13 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241573', 'tblTempVendorCDR_20' ) start [2025-01-13 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241573', 'tblTempVendorCDR_20' ) end [2025-01-13 21:05:18] Production.INFO: ProcessCDR(1,14241573,1,1,2) [2025-01-13 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241573', 'tblTempUsageDetail_20' ) start [2025-01-13 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241573', 'tblTempUsageDetail_20' ) end [2025-01-13 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:05:21] Production.INFO: ==10697== Releasing lock... [2025-01-13 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:05:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-13 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:06:04 [end_date_ymd] => 2025-01-13 21:06:04 [RateCDR] => 1 ) [2025-01-13 21:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:06:04' and `end` < '2025-01-13 21:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:06:17] Production.INFO: count ==1305 [2025-01-13 21:06:17] Production.ERROR: pbx CDR StartTime 2025-01-13 18:06:04 - End Time 2025-01-13 21:06:04 [2025-01-13 21:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241578', 'tblTempUsageDetail_20' ) start [2025-01-13 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241578', 'tblTempUsageDetail_20' ) end [2025-01-13 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241578', 'tblTempVendorCDR_20' ) start [2025-01-13 21:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241578', 'tblTempVendorCDR_20' ) end [2025-01-13 21:06:17] Production.INFO: ProcessCDR(1,14241578,1,1,2) [2025-01-13 21:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241578', 'tblTempUsageDetail_20' ) start [2025-01-13 21:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241578', 'tblTempUsageDetail_20' ) end [2025-01-13 21:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:06:20] Production.INFO: ==10773== Releasing lock... [2025-01-13 21:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:06:20] Production.INFO: 37.75 MB #Memory Used# [2025-01-13 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:07:05 [end_date_ymd] => 2025-01-13 21:07:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:07:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:07:18] Production.INFO: count ==1302 [2025-01-13 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:07:05 - End Time 2025-01-13 21:07:05 [2025-01-13 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241583', 'tblTempUsageDetail_20' ) start [2025-01-13 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241583', 'tblTempUsageDetail_20' ) end [2025-01-13 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241583', 'tblTempVendorCDR_20' ) start [2025-01-13 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241583', 'tblTempVendorCDR_20' ) end [2025-01-13 21:07:18] Production.INFO: ProcessCDR(1,14241583,1,1,2) [2025-01-13 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241583', 'tblTempUsageDetail_20' ) start [2025-01-13 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241583', 'tblTempUsageDetail_20' ) end [2025-01-13 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:07:21] Production.INFO: ==10845== Releasing lock... [2025-01-13 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:07:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-13 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:08:05 [end_date_ymd] => 2025-01-13 21:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:08:18] Production.INFO: count ==1288 [2025-01-13 21:08:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:08:05 - End Time 2025-01-13 21:08:05 [2025-01-13 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241588', 'tblTempUsageDetail_20' ) start [2025-01-13 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241588', 'tblTempUsageDetail_20' ) end [2025-01-13 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241588', 'tblTempVendorCDR_20' ) start [2025-01-13 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241588', 'tblTempVendorCDR_20' ) end [2025-01-13 21:08:18] Production.INFO: ProcessCDR(1,14241588,1,1,2) [2025-01-13 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241588', 'tblTempUsageDetail_20' ) start [2025-01-13 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241588', 'tblTempUsageDetail_20' ) end [2025-01-13 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:08:21] Production.INFO: ==10915== Releasing lock... [2025-01-13 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:08:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-13 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:09:05 [end_date_ymd] => 2025-01-13 21:09:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:09:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:09:17] Production.INFO: count ==1281 [2025-01-13 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:09:05 - End Time 2025-01-13 21:09:05 [2025-01-13 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241593', 'tblTempUsageDetail_20' ) start [2025-01-13 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241593', 'tblTempUsageDetail_20' ) end [2025-01-13 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241593', 'tblTempVendorCDR_20' ) start [2025-01-13 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241593', 'tblTempVendorCDR_20' ) end [2025-01-13 21:09:18] Production.INFO: ProcessCDR(1,14241593,1,1,2) [2025-01-13 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241593', 'tblTempUsageDetail_20' ) start [2025-01-13 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241593', 'tblTempUsageDetail_20' ) end [2025-01-13 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:09:21] Production.INFO: ==10985== Releasing lock... [2025-01-13 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:09:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-13 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:10:05 [end_date_ymd] => 2025-01-13 21:10:05 [RateCDR] => 1 ) [2025-01-13 21:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:10:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:10:18] Production.INFO: count ==1253 [2025-01-13 21:10:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:10:05 - End Time 2025-01-13 21:10:05 [2025-01-13 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241599', 'tblTempUsageDetail_20' ) start [2025-01-13 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241599', 'tblTempUsageDetail_20' ) end [2025-01-13 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241599', 'tblTempVendorCDR_20' ) start [2025-01-13 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241599', 'tblTempVendorCDR_20' ) end [2025-01-13 21:10:18] Production.INFO: ProcessCDR(1,14241599,1,1,2) [2025-01-13 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241599', 'tblTempUsageDetail_20' ) start [2025-01-13 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241599', 'tblTempUsageDetail_20' ) end [2025-01-13 21:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:10:21] Production.INFO: ==11057== Releasing lock... [2025-01-13 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:10:21] Production.INFO: 37 MB #Memory Used# [2025-01-13 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:11:05 [end_date_ymd] => 2025-01-13 21:11:05 [RateCDR] => 1 ) [2025-01-13 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:11:05' and `end` < '2025-01-13 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:11:18] Production.INFO: count ==1197 [2025-01-13 21:11:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:11:05 - End Time 2025-01-13 21:11:05 [2025-01-13 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241604', 'tblTempUsageDetail_20' ) start [2025-01-13 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241604', 'tblTempUsageDetail_20' ) end [2025-01-13 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241604', 'tblTempVendorCDR_20' ) start [2025-01-13 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241604', 'tblTempVendorCDR_20' ) end [2025-01-13 21:11:18] Production.INFO: ProcessCDR(1,14241604,1,1,2) [2025-01-13 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241604', 'tblTempUsageDetail_20' ) start [2025-01-13 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241604', 'tblTempUsageDetail_20' ) end [2025-01-13 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:11:21] Production.INFO: ==11130== Releasing lock... [2025-01-13 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:11:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-13 21:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:12:04 [end_date_ymd] => 2025-01-13 21:12:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:12:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:12:17] Production.INFO: count ==1194 [2025-01-13 21:12:17] Production.ERROR: pbx CDR StartTime 2025-01-13 18:12:04 - End Time 2025-01-13 21:12:04 [2025-01-13 21:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241609', 'tblTempUsageDetail_20' ) start [2025-01-13 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241609', 'tblTempUsageDetail_20' ) end [2025-01-13 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241609', 'tblTempVendorCDR_20' ) start [2025-01-13 21:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241609', 'tblTempVendorCDR_20' ) end [2025-01-13 21:12:17] Production.INFO: ProcessCDR(1,14241609,1,1,2) [2025-01-13 21:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241609', 'tblTempUsageDetail_20' ) start [2025-01-13 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241609', 'tblTempUsageDetail_20' ) end [2025-01-13 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:12:21] Production.INFO: ==11202== Releasing lock... [2025-01-13 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:12:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-13 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:13:05 [end_date_ymd] => 2025-01-13 21:13:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:13:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:13:19] Production.INFO: count ==1192 [2025-01-13 21:13:19] Production.ERROR: pbx CDR StartTime 2025-01-13 18:13:05 - End Time 2025-01-13 21:13:05 [2025-01-13 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241614', 'tblTempUsageDetail_20' ) start [2025-01-13 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241614', 'tblTempUsageDetail_20' ) end [2025-01-13 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241614', 'tblTempVendorCDR_20' ) start [2025-01-13 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241614', 'tblTempVendorCDR_20' ) end [2025-01-13 21:13:19] Production.INFO: ProcessCDR(1,14241614,1,1,2) [2025-01-13 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241614', 'tblTempUsageDetail_20' ) start [2025-01-13 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241614', 'tblTempUsageDetail_20' ) end [2025-01-13 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:13:24] Production.INFO: ==11275== Releasing lock... [2025-01-13 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:13:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-13 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:14:05 [end_date_ymd] => 2025-01-13 21:14:05 [RateCDR] => 1 ) [2025-01-13 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:14:05' and `end` < '2025-01-13 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:14:18] Production.INFO: count ==1187 [2025-01-13 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:14:05 - End Time 2025-01-13 21:14:05 [2025-01-13 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241619', 'tblTempUsageDetail_20' ) start [2025-01-13 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241619', 'tblTempUsageDetail_20' ) end [2025-01-13 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241619', 'tblTempVendorCDR_20' ) start [2025-01-13 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241619', 'tblTempVendorCDR_20' ) end [2025-01-13 21:14:18] Production.INFO: ProcessCDR(1,14241619,1,1,2) [2025-01-13 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241619', 'tblTempUsageDetail_20' ) start [2025-01-13 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241619', 'tblTempUsageDetail_20' ) end [2025-01-13 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:14:21] Production.INFO: ==11347== Releasing lock... [2025-01-13 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:14:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-13 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:15:04 [end_date_ymd] => 2025-01-13 21:15:04 [RateCDR] => 1 ) [2025-01-13 21:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:15:04' and `end` < '2025-01-13 21:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:15:17] Production.INFO: count ==1182 [2025-01-13 21:15:17] Production.ERROR: pbx CDR StartTime 2025-01-13 18:15:04 - End Time 2025-01-13 21:15:04 [2025-01-13 21:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241624', 'tblTempUsageDetail_20' ) start [2025-01-13 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241624', 'tblTempUsageDetail_20' ) end [2025-01-13 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241624', 'tblTempVendorCDR_20' ) start [2025-01-13 21:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241624', 'tblTempVendorCDR_20' ) end [2025-01-13 21:15:17] Production.INFO: ProcessCDR(1,14241624,1,1,2) [2025-01-13 21:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241624', 'tblTempUsageDetail_20' ) start [2025-01-13 21:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241624', 'tblTempUsageDetail_20' ) end [2025-01-13 21:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:15:20] Production.INFO: ==11417== Releasing lock... [2025-01-13 21:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:15:20] Production.INFO: 36.75 MB #Memory Used# [2025-01-13 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:16:05 [end_date_ymd] => 2025-01-13 21:16:05 [RateCDR] => 1 ) [2025-01-13 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:16:05' and `end` < '2025-01-13 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:16:18] Production.INFO: count ==1184 [2025-01-13 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:16:05 - End Time 2025-01-13 21:16:05 [2025-01-13 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241629', 'tblTempUsageDetail_20' ) start [2025-01-13 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241629', 'tblTempUsageDetail_20' ) end [2025-01-13 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241629', 'tblTempVendorCDR_20' ) start [2025-01-13 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241629', 'tblTempVendorCDR_20' ) end [2025-01-13 21:16:18] Production.INFO: ProcessCDR(1,14241629,1,1,2) [2025-01-13 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241629', 'tblTempUsageDetail_20' ) start [2025-01-13 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241629', 'tblTempUsageDetail_20' ) end [2025-01-13 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:16:21] Production.INFO: ==11529== Releasing lock... [2025-01-13 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:16:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-13 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:17:05 [end_date_ymd] => 2025-01-13 21:17:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:17:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:17:18] Production.INFO: count ==1182 [2025-01-13 21:17:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:17:05 - End Time 2025-01-13 21:17:05 [2025-01-13 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241634', 'tblTempUsageDetail_20' ) start [2025-01-13 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241634', 'tblTempUsageDetail_20' ) end [2025-01-13 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241634', 'tblTempVendorCDR_20' ) start [2025-01-13 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241634', 'tblTempVendorCDR_20' ) end [2025-01-13 21:17:18] Production.INFO: ProcessCDR(1,14241634,1,1,2) [2025-01-13 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241634', 'tblTempUsageDetail_20' ) start [2025-01-13 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241634', 'tblTempUsageDetail_20' ) end [2025-01-13 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:17:23] Production.INFO: ==11598== Releasing lock... [2025-01-13 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:17:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-13 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:18:05 [end_date_ymd] => 2025-01-13 21:18:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:18:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:18:18] Production.INFO: count ==1180 [2025-01-13 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:18:05 - End Time 2025-01-13 21:18:05 [2025-01-13 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241639', 'tblTempUsageDetail_20' ) start [2025-01-13 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241639', 'tblTempUsageDetail_20' ) end [2025-01-13 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241639', 'tblTempVendorCDR_20' ) start [2025-01-13 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241639', 'tblTempVendorCDR_20' ) end [2025-01-13 21:18:18] Production.INFO: ProcessCDR(1,14241639,1,1,2) [2025-01-13 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241639', 'tblTempUsageDetail_20' ) start [2025-01-13 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241639', 'tblTempUsageDetail_20' ) end [2025-01-13 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:18:21] Production.INFO: ==11668== Releasing lock... [2025-01-13 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:18:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-13 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:19:05 [end_date_ymd] => 2025-01-13 21:19:05 [RateCDR] => 1 ) [2025-01-13 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:19:05' and `end` < '2025-01-13 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:19:19] Production.INFO: count ==1180 [2025-01-13 21:19:19] Production.ERROR: pbx CDR StartTime 2025-01-13 18:19:05 - End Time 2025-01-13 21:19:05 [2025-01-13 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241644', 'tblTempUsageDetail_20' ) start [2025-01-13 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241644', 'tblTempUsageDetail_20' ) end [2025-01-13 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241644', 'tblTempVendorCDR_20' ) start [2025-01-13 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241644', 'tblTempVendorCDR_20' ) end [2025-01-13 21:19:19] Production.INFO: ProcessCDR(1,14241644,1,1,2) [2025-01-13 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241644', 'tblTempUsageDetail_20' ) start [2025-01-13 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241644', 'tblTempUsageDetail_20' ) end [2025-01-13 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:19:23] Production.INFO: ==11739== Releasing lock... [2025-01-13 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:19:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-13 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:20:06 [end_date_ymd] => 2025-01-13 21:20:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:20:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:20:19] Production.INFO: count ==1182 [2025-01-13 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-13 18:20:06 - End Time 2025-01-13 21:20:06 [2025-01-13 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241650', 'tblTempUsageDetail_20' ) start [2025-01-13 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241650', 'tblTempUsageDetail_20' ) end [2025-01-13 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241650', 'tblTempVendorCDR_20' ) start [2025-01-13 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241650', 'tblTempVendorCDR_20' ) end [2025-01-13 21:20:19] Production.INFO: ProcessCDR(1,14241650,1,1,2) [2025-01-13 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241650', 'tblTempUsageDetail_20' ) start [2025-01-13 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241650', 'tblTempUsageDetail_20' ) end [2025-01-13 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:20:24] Production.INFO: ==11819== Releasing lock... [2025-01-13 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:20:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-13 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:21:05 [end_date_ymd] => 2025-01-13 21:21:05 [RateCDR] => 1 ) [2025-01-13 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:21:05' and `end` < '2025-01-13 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:21:18] Production.INFO: count ==1168 [2025-01-13 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:21:05 - End Time 2025-01-13 21:21:05 [2025-01-13 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241655', 'tblTempUsageDetail_20' ) start [2025-01-13 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241655', 'tblTempUsageDetail_20' ) end [2025-01-13 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241655', 'tblTempVendorCDR_20' ) start [2025-01-13 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241655', 'tblTempVendorCDR_20' ) end [2025-01-13 21:21:18] Production.INFO: ProcessCDR(1,14241655,1,1,2) [2025-01-13 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241655', 'tblTempUsageDetail_20' ) start [2025-01-13 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241655', 'tblTempUsageDetail_20' ) end [2025-01-13 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:21:21] Production.INFO: ==11891== Releasing lock... [2025-01-13 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:21:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-13 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:22:06 [end_date_ymd] => 2025-01-13 21:22:06 [RateCDR] => 1 ) [2025-01-13 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:22:06' and `end` < '2025-01-13 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:22:19] Production.INFO: count ==1166 [2025-01-13 21:22:20] Production.ERROR: pbx CDR StartTime 2025-01-13 18:22:06 - End Time 2025-01-13 21:22:06 [2025-01-13 21:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241660', 'tblTempUsageDetail_20' ) start [2025-01-13 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241660', 'tblTempUsageDetail_20' ) end [2025-01-13 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241660', 'tblTempVendorCDR_20' ) start [2025-01-13 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241660', 'tblTempVendorCDR_20' ) end [2025-01-13 21:22:20] Production.INFO: ProcessCDR(1,14241660,1,1,2) [2025-01-13 21:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241660', 'tblTempUsageDetail_20' ) start [2025-01-13 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241660', 'tblTempUsageDetail_20' ) end [2025-01-13 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:22:23] Production.INFO: ==11961== Releasing lock... [2025-01-13 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:22:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-13 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:23:05 [end_date_ymd] => 2025-01-13 21:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:23:17] Production.INFO: count ==1160 [2025-01-13 21:23:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:23:05 - End Time 2025-01-13 21:23:05 [2025-01-13 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241665', 'tblTempUsageDetail_20' ) start [2025-01-13 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241665', 'tblTempUsageDetail_20' ) end [2025-01-13 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241665', 'tblTempVendorCDR_20' ) start [2025-01-13 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241665', 'tblTempVendorCDR_20' ) end [2025-01-13 21:23:18] Production.INFO: ProcessCDR(1,14241665,1,1,2) [2025-01-13 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241665', 'tblTempUsageDetail_20' ) start [2025-01-13 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241665', 'tblTempUsageDetail_20' ) end [2025-01-13 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:23:21] Production.INFO: ==12031== Releasing lock... [2025-01-13 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:23:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-13 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:24:05 [end_date_ymd] => 2025-01-13 21:24:05 [RateCDR] => 1 ) [2025-01-13 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:24:05' and `end` < '2025-01-13 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:24:18] Production.INFO: count ==1155 [2025-01-13 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:24:05 - End Time 2025-01-13 21:24:05 [2025-01-13 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241670', 'tblTempUsageDetail_20' ) start [2025-01-13 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241670', 'tblTempUsageDetail_20' ) end [2025-01-13 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241670', 'tblTempVendorCDR_20' ) start [2025-01-13 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241670', 'tblTempVendorCDR_20' ) end [2025-01-13 21:24:18] Production.INFO: ProcessCDR(1,14241670,1,1,2) [2025-01-13 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241670', 'tblTempUsageDetail_20' ) start [2025-01-13 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241670', 'tblTempUsageDetail_20' ) end [2025-01-13 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:24:22] Production.INFO: ==12102== Releasing lock... [2025-01-13 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:24:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-13 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:25:05 [end_date_ymd] => 2025-01-13 21:25:05 [RateCDR] => 1 ) [2025-01-13 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:25:05' and `end` < '2025-01-13 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:25:17] Production.INFO: count ==1150 [2025-01-13 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:25:05 - End Time 2025-01-13 21:25:05 [2025-01-13 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241671', 'tblTempUsageDetail_20' ) start [2025-01-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241671', 'tblTempUsageDetail_20' ) end [2025-01-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241671', 'tblTempVendorCDR_20' ) start [2025-01-13 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241671', 'tblTempVendorCDR_20' ) end [2025-01-13 21:25:18] Production.INFO: ProcessCDR(1,14241671,1,1,2) [2025-01-13 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241671', 'tblTempUsageDetail_20' ) start [2025-01-13 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241671', 'tblTempUsageDetail_20' ) end [2025-01-13 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:25:21] Production.INFO: ==12181== Releasing lock... [2025-01-13 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:25:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-13 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:26:05 [end_date_ymd] => 2025-01-13 21:26:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:26:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:26:17] Production.INFO: count ==1147 [2025-01-13 21:26:17] Production.ERROR: pbx CDR StartTime 2025-01-13 18:26:05 - End Time 2025-01-13 21:26:05 [2025-01-13 21:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241680', 'tblTempUsageDetail_20' ) start [2025-01-13 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241680', 'tblTempUsageDetail_20' ) end [2025-01-13 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241680', 'tblTempVendorCDR_20' ) start [2025-01-13 21:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241680', 'tblTempVendorCDR_20' ) end [2025-01-13 21:26:17] Production.INFO: ProcessCDR(1,14241680,1,1,2) [2025-01-13 21:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241680', 'tblTempUsageDetail_20' ) start [2025-01-13 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241680', 'tblTempUsageDetail_20' ) end [2025-01-13 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:26:21] Production.INFO: ==12251== Releasing lock... [2025-01-13 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:26:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-13 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:27:05 [end_date_ymd] => 2025-01-13 21:27:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:27:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:27:17] Production.INFO: count ==1144 [2025-01-13 21:27:17] Production.ERROR: pbx CDR StartTime 2025-01-13 18:27:05 - End Time 2025-01-13 21:27:05 [2025-01-13 21:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241685', 'tblTempUsageDetail_20' ) start [2025-01-13 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241685', 'tblTempUsageDetail_20' ) end [2025-01-13 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241685', 'tblTempVendorCDR_20' ) start [2025-01-13 21:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241685', 'tblTempVendorCDR_20' ) end [2025-01-13 21:27:17] Production.INFO: ProcessCDR(1,14241685,1,1,2) [2025-01-13 21:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241685', 'tblTempUsageDetail_20' ) start [2025-01-13 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241685', 'tblTempUsageDetail_20' ) end [2025-01-13 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:27:21] Production.INFO: ==12326== Releasing lock... [2025-01-13 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:27:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-13 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:28:05 [end_date_ymd] => 2025-01-13 21:28:05 [RateCDR] => 1 ) [2025-01-13 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:28:05' and `end` < '2025-01-13 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:28:20] Production.INFO: count ==1130 [2025-01-13 21:28:21] Production.ERROR: pbx CDR StartTime 2025-01-13 18:28:05 - End Time 2025-01-13 21:28:05 [2025-01-13 21:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241690', 'tblTempUsageDetail_20' ) start [2025-01-13 21:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241690', 'tblTempUsageDetail_20' ) end [2025-01-13 21:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241690', 'tblTempVendorCDR_20' ) start [2025-01-13 21:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241690', 'tblTempVendorCDR_20' ) end [2025-01-13 21:28:21] Production.INFO: ProcessCDR(1,14241690,1,1,2) [2025-01-13 21:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241690', 'tblTempUsageDetail_20' ) start [2025-01-13 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241690', 'tblTempUsageDetail_20' ) end [2025-01-13 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:28:24] Production.INFO: ==12398== Releasing lock... [2025-01-13 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:28:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-13 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:29:05 [end_date_ymd] => 2025-01-13 21:29:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:29:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:29:17] Production.INFO: count ==1126 [2025-01-13 21:29:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:29:05 - End Time 2025-01-13 21:29:05 [2025-01-13 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241695', 'tblTempUsageDetail_20' ) start [2025-01-13 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241695', 'tblTempUsageDetail_20' ) end [2025-01-13 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241695', 'tblTempVendorCDR_20' ) start [2025-01-13 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241695', 'tblTempVendorCDR_20' ) end [2025-01-13 21:29:18] Production.INFO: ProcessCDR(1,14241695,1,1,2) [2025-01-13 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241695', 'tblTempUsageDetail_20' ) start [2025-01-13 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241695', 'tblTempUsageDetail_20' ) end [2025-01-13 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:29:21] Production.INFO: ==12466== Releasing lock... [2025-01-13 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:29:21] Production.INFO: 36 MB #Memory Used# [2025-01-13 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:30:06 [end_date_ymd] => 2025-01-13 21:30:06 [RateCDR] => 1 ) [2025-01-13 21: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` >= '2025-01-13 18:30:06' and `end` < '2025-01-13 21: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 ,'') [2025-01-13 21:30:18] Production.INFO: count ==1105 [2025-01-13 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-13 18:30:06 - End Time 2025-01-13 21:30:06 [2025-01-13 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241700', 'tblTempUsageDetail_20' ) start [2025-01-13 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241700', 'tblTempUsageDetail_20' ) end [2025-01-13 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241700', 'tblTempVendorCDR_20' ) start [2025-01-13 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241700', 'tblTempVendorCDR_20' ) end [2025-01-13 21:30:19] Production.INFO: ProcessCDR(1,14241700,1,1,2) [2025-01-13 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241700', 'tblTempUsageDetail_20' ) start [2025-01-13 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241700', 'tblTempUsageDetail_20' ) end [2025-01-13 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:30:22] Production.INFO: ==12539== Releasing lock... [2025-01-13 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:30:22] Production.INFO: 36 MB #Memory Used# [2025-01-13 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:31:04 [end_date_ymd] => 2025-01-13 21:31:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:31:04' and `end` < '2025-01-13 21: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 ,'') [2025-01-13 21:31:18] Production.INFO: count ==1018 [2025-01-13 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:31:04 - End Time 2025-01-13 21:31:04 [2025-01-13 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241706', 'tblTempUsageDetail_20' ) start [2025-01-13 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241706', 'tblTempUsageDetail_20' ) end [2025-01-13 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241706', 'tblTempVendorCDR_20' ) start [2025-01-13 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241706', 'tblTempVendorCDR_20' ) end [2025-01-13 21:31:18] Production.INFO: ProcessCDR(1,14241706,1,1,2) [2025-01-13 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241706', 'tblTempUsageDetail_20' ) start [2025-01-13 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241706', 'tblTempUsageDetail_20' ) end [2025-01-13 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:31:21] Production.INFO: ==12652== Releasing lock... [2025-01-13 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:31:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-13 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:32:05 [end_date_ymd] => 2025-01-13 21:32:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:32:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:32:18] Production.INFO: count ==1010 [2025-01-13 21:32:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:32:05 - End Time 2025-01-13 21:32:05 [2025-01-13 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241711', 'tblTempUsageDetail_20' ) start [2025-01-13 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241711', 'tblTempUsageDetail_20' ) end [2025-01-13 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241711', 'tblTempVendorCDR_20' ) start [2025-01-13 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241711', 'tblTempVendorCDR_20' ) end [2025-01-13 21:32:18] Production.INFO: ProcessCDR(1,14241711,1,1,2) [2025-01-13 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241711', 'tblTempUsageDetail_20' ) start [2025-01-13 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241711', 'tblTempUsageDetail_20' ) end [2025-01-13 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:32:21] Production.INFO: ==12726== Releasing lock... [2025-01-13 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:32:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-13 21:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:33:04 [end_date_ymd] => 2025-01-13 21:33:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:33:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:33:17] Production.INFO: count ==1011 [2025-01-13 21:33:17] Production.ERROR: pbx CDR StartTime 2025-01-13 18:33:04 - End Time 2025-01-13 21:33:04 [2025-01-13 21:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241716', 'tblTempUsageDetail_20' ) start [2025-01-13 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241716', 'tblTempUsageDetail_20' ) end [2025-01-13 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241716', 'tblTempVendorCDR_20' ) start [2025-01-13 21:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241716', 'tblTempVendorCDR_20' ) end [2025-01-13 21:33:17] Production.INFO: ProcessCDR(1,14241716,1,1,2) [2025-01-13 21:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241716', 'tblTempUsageDetail_20' ) start [2025-01-13 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241716', 'tblTempUsageDetail_20' ) end [2025-01-13 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:33:22] Production.INFO: ==12796== Releasing lock... [2025-01-13 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:33:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-13 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:34:05 [end_date_ymd] => 2025-01-13 21:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:34:17] Production.INFO: count ==1011 [2025-01-13 21:34:17] Production.ERROR: pbx CDR StartTime 2025-01-13 18:34:05 - End Time 2025-01-13 21:34:05 [2025-01-13 21:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241721', 'tblTempUsageDetail_20' ) start [2025-01-13 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241721', 'tblTempUsageDetail_20' ) end [2025-01-13 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241721', 'tblTempVendorCDR_20' ) start [2025-01-13 21:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241721', 'tblTempVendorCDR_20' ) end [2025-01-13 21:34:17] Production.INFO: ProcessCDR(1,14241721,1,1,2) [2025-01-13 21:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241721', 'tblTempUsageDetail_20' ) start [2025-01-13 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241721', 'tblTempUsageDetail_20' ) end [2025-01-13 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:34:21] Production.INFO: ==12872== Releasing lock... [2025-01-13 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:34:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-13 21:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:35:04 [end_date_ymd] => 2025-01-13 21:35:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:35:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:35:17] Production.INFO: count ==1009 [2025-01-13 21:35:17] Production.ERROR: pbx CDR StartTime 2025-01-13 18:35:04 - End Time 2025-01-13 21:35:04 [2025-01-13 21:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241726', 'tblTempUsageDetail_20' ) start [2025-01-13 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241726', 'tblTempUsageDetail_20' ) end [2025-01-13 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241726', 'tblTempVendorCDR_20' ) start [2025-01-13 21:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241726', 'tblTempVendorCDR_20' ) end [2025-01-13 21:35:17] Production.INFO: ProcessCDR(1,14241726,1,1,2) [2025-01-13 21:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241726', 'tblTempUsageDetail_20' ) start [2025-01-13 21:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241726', 'tblTempUsageDetail_20' ) end [2025-01-13 21:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:35:20] Production.INFO: ==12942== Releasing lock... [2025-01-13 21:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:35:20] Production.INFO: 35.25 MB #Memory Used# [2025-01-13 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:36:05 [end_date_ymd] => 2025-01-13 21:36:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:36:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:36:17] Production.INFO: count ==1007 [2025-01-13 21:36:17] Production.ERROR: pbx CDR StartTime 2025-01-13 18:36:05 - End Time 2025-01-13 21:36:05 [2025-01-13 21:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241731', 'tblTempUsageDetail_20' ) start [2025-01-13 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241731', 'tblTempUsageDetail_20' ) end [2025-01-13 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241731', 'tblTempVendorCDR_20' ) start [2025-01-13 21:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241731', 'tblTempVendorCDR_20' ) end [2025-01-13 21:36:17] Production.INFO: ProcessCDR(1,14241731,1,1,2) [2025-01-13 21:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241731', 'tblTempUsageDetail_20' ) start [2025-01-13 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241731', 'tblTempUsageDetail_20' ) end [2025-01-13 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:36:21] Production.INFO: ==13013== Releasing lock... [2025-01-13 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:36:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-13 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:37:05 [end_date_ymd] => 2025-01-13 21:37:05 [RateCDR] => 1 ) [2025-01-13 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:37:05' and `end` < '2025-01-13 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:37:18] Production.INFO: count ==1007 [2025-01-13 21:37:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:37:05 - End Time 2025-01-13 21:37:05 [2025-01-13 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241736', 'tblTempUsageDetail_20' ) start [2025-01-13 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241736', 'tblTempUsageDetail_20' ) end [2025-01-13 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241736', 'tblTempVendorCDR_20' ) start [2025-01-13 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241736', 'tblTempVendorCDR_20' ) end [2025-01-13 21:37:18] Production.INFO: ProcessCDR(1,14241736,1,1,2) [2025-01-13 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241736', 'tblTempUsageDetail_20' ) start [2025-01-13 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241736', 'tblTempUsageDetail_20' ) end [2025-01-13 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:37:21] Production.INFO: ==13086== Releasing lock... [2025-01-13 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:37:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-13 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:38:05 [end_date_ymd] => 2025-01-13 21:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:38:18] Production.INFO: count ==1007 [2025-01-13 21:38:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:38:05 - End Time 2025-01-13 21:38:05 [2025-01-13 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241741', 'tblTempUsageDetail_20' ) start [2025-01-13 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241741', 'tblTempUsageDetail_20' ) end [2025-01-13 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241741', 'tblTempVendorCDR_20' ) start [2025-01-13 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241741', 'tblTempVendorCDR_20' ) end [2025-01-13 21:38:18] Production.INFO: ProcessCDR(1,14241741,1,1,2) [2025-01-13 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241741', 'tblTempUsageDetail_20' ) start [2025-01-13 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241741', 'tblTempUsageDetail_20' ) end [2025-01-13 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:38:21] Production.INFO: ==13158== Releasing lock... [2025-01-13 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:38:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-13 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:39:05 [end_date_ymd] => 2025-01-13 21:39:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:39:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:39:17] Production.INFO: count ==1007 [2025-01-13 21:39:17] Production.ERROR: pbx CDR StartTime 2025-01-13 18:39:05 - End Time 2025-01-13 21:39:05 [2025-01-13 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241746', 'tblTempUsageDetail_20' ) start [2025-01-13 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241746', 'tblTempUsageDetail_20' ) end [2025-01-13 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241746', 'tblTempVendorCDR_20' ) start [2025-01-13 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241746', 'tblTempVendorCDR_20' ) end [2025-01-13 21:39:17] Production.INFO: ProcessCDR(1,14241746,1,1,2) [2025-01-13 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241746', 'tblTempUsageDetail_20' ) start [2025-01-13 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241746', 'tblTempUsageDetail_20' ) end [2025-01-13 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:39:21] Production.INFO: ==13228== Releasing lock... [2025-01-13 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:39:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-13 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:40:06 [end_date_ymd] => 2025-01-13 21:40:06 [RateCDR] => 1 ) [2025-01-13 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:40:06' and `end` < '2025-01-13 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:40:18] Production.INFO: count ==1003 [2025-01-13 21:40:19] Production.ERROR: pbx CDR StartTime 2025-01-13 18:40:06 - End Time 2025-01-13 21:40:06 [2025-01-13 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241752', 'tblTempUsageDetail_20' ) start [2025-01-13 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241752', 'tblTempUsageDetail_20' ) end [2025-01-13 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241752', 'tblTempVendorCDR_20' ) start [2025-01-13 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241752', 'tblTempVendorCDR_20' ) end [2025-01-13 21:40:19] Production.INFO: ProcessCDR(1,14241752,1,1,2) [2025-01-13 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241752', 'tblTempUsageDetail_20' ) start [2025-01-13 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241752', 'tblTempUsageDetail_20' ) end [2025-01-13 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:40:22] Production.INFO: ==13302== Releasing lock... [2025-01-13 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:40:22] Production.INFO: 35 MB #Memory Used# [2025-01-13 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:41:05 [end_date_ymd] => 2025-01-13 21:41:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:41:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:41:18] Production.INFO: count ==970 [2025-01-13 21:41:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:41:05 - End Time 2025-01-13 21:41:05 [2025-01-13 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241757', 'tblTempUsageDetail_20' ) start [2025-01-13 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241757', 'tblTempUsageDetail_20' ) end [2025-01-13 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241757', 'tblTempVendorCDR_20' ) start [2025-01-13 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241757', 'tblTempVendorCDR_20' ) end [2025-01-13 21:41:18] Production.INFO: ProcessCDR(1,14241757,1,1,2) [2025-01-13 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241757', 'tblTempUsageDetail_20' ) start [2025-01-13 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241757', 'tblTempUsageDetail_20' ) end [2025-01-13 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:41:22] Production.INFO: ==13374== Releasing lock... [2025-01-13 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:41:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:42:05 [end_date_ymd] => 2025-01-13 21:42:05 [RateCDR] => 1 ) [2025-01-13 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:42:05' and `end` < '2025-01-13 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:42:18] Production.INFO: count ==968 [2025-01-13 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:42:05 - End Time 2025-01-13 21:42:05 [2025-01-13 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241762', 'tblTempUsageDetail_20' ) start [2025-01-13 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241762', 'tblTempUsageDetail_20' ) end [2025-01-13 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241762', 'tblTempVendorCDR_20' ) start [2025-01-13 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241762', 'tblTempVendorCDR_20' ) end [2025-01-13 21:42:18] Production.INFO: ProcessCDR(1,14241762,1,1,2) [2025-01-13 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241762', 'tblTempUsageDetail_20' ) start [2025-01-13 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241762', 'tblTempUsageDetail_20' ) end [2025-01-13 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:42:21] Production.INFO: ==13444== Releasing lock... [2025-01-13 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:42:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:43:05 [end_date_ymd] => 2025-01-13 21:43:05 [RateCDR] => 1 ) [2025-01-13 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:43:05' and `end` < '2025-01-13 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:43:18] Production.INFO: count ==965 [2025-01-13 21:43:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:43:05 - End Time 2025-01-13 21:43:05 [2025-01-13 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241767', 'tblTempUsageDetail_20' ) start [2025-01-13 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241767', 'tblTempUsageDetail_20' ) end [2025-01-13 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241767', 'tblTempVendorCDR_20' ) start [2025-01-13 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241767', 'tblTempVendorCDR_20' ) end [2025-01-13 21:43:18] Production.INFO: ProcessCDR(1,14241767,1,1,2) [2025-01-13 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241767', 'tblTempUsageDetail_20' ) start [2025-01-13 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241767', 'tblTempUsageDetail_20' ) end [2025-01-13 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:43:21] Production.INFO: ==13514== Releasing lock... [2025-01-13 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:43:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:44:05 [end_date_ymd] => 2025-01-13 21:44:05 [RateCDR] => 1 ) [2025-01-13 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:44:05' and `end` < '2025-01-13 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:44:18] Production.INFO: count ==964 [2025-01-13 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:44:05 - End Time 2025-01-13 21:44:05 [2025-01-13 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241772', 'tblTempUsageDetail_20' ) start [2025-01-13 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241772', 'tblTempUsageDetail_20' ) end [2025-01-13 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241772', 'tblTempVendorCDR_20' ) start [2025-01-13 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241772', 'tblTempVendorCDR_20' ) end [2025-01-13 21:44:18] Production.INFO: ProcessCDR(1,14241772,1,1,2) [2025-01-13 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241772', 'tblTempUsageDetail_20' ) start [2025-01-13 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241772', 'tblTempUsageDetail_20' ) end [2025-01-13 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:44:22] Production.INFO: ==13589== Releasing lock... [2025-01-13 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:44:22] Production.INFO: 35 MB #Memory Used# [2025-01-13 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:45:05 [end_date_ymd] => 2025-01-13 21:45:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:45:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:45:20] Production.INFO: count ==961 [2025-01-13 21:45:20] Production.ERROR: pbx CDR StartTime 2025-01-13 18:45:05 - End Time 2025-01-13 21:45:05 [2025-01-13 21:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241777', 'tblTempUsageDetail_20' ) start [2025-01-13 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241777', 'tblTempUsageDetail_20' ) end [2025-01-13 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241777', 'tblTempVendorCDR_20' ) start [2025-01-13 21:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241777', 'tblTempVendorCDR_20' ) end [2025-01-13 21:45:20] Production.INFO: ProcessCDR(1,14241777,1,1,2) [2025-01-13 21:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241777', 'tblTempUsageDetail_20' ) start [2025-01-13 21:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241777', 'tblTempUsageDetail_20' ) end [2025-01-13 21:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:45:24] Production.INFO: ==13662== Releasing lock... [2025-01-13 21:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:45:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:46:05 [end_date_ymd] => 2025-01-13 21:46:05 [RateCDR] => 1 ) [2025-01-13 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:46:05' and `end` < '2025-01-13 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:46:18] Production.INFO: count ==960 [2025-01-13 21:46:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:46:05 - End Time 2025-01-13 21:46:05 [2025-01-13 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241782', 'tblTempUsageDetail_20' ) start [2025-01-13 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241782', 'tblTempUsageDetail_20' ) end [2025-01-13 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241782', 'tblTempVendorCDR_20' ) start [2025-01-13 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241782', 'tblTempVendorCDR_20' ) end [2025-01-13 21:46:18] Production.INFO: ProcessCDR(1,14241782,1,1,2) [2025-01-13 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241782', 'tblTempUsageDetail_20' ) start [2025-01-13 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241782', 'tblTempUsageDetail_20' ) end [2025-01-13 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:46:22] Production.INFO: ==13737== Releasing lock... [2025-01-13 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:46:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:47:05 [end_date_ymd] => 2025-01-13 21:47:05 [RateCDR] => 1 ) [2025-01-13 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:47:05' and `end` < '2025-01-13 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:47:18] Production.INFO: count ==959 [2025-01-13 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:47:05 - End Time 2025-01-13 21:47:05 [2025-01-13 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241787', 'tblTempUsageDetail_20' ) start [2025-01-13 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241787', 'tblTempUsageDetail_20' ) end [2025-01-13 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241787', 'tblTempVendorCDR_20' ) start [2025-01-13 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241787', 'tblTempVendorCDR_20' ) end [2025-01-13 21:47:18] Production.INFO: ProcessCDR(1,14241787,1,1,2) [2025-01-13 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241787', 'tblTempUsageDetail_20' ) start [2025-01-13 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241787', 'tblTempUsageDetail_20' ) end [2025-01-13 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:47:21] Production.INFO: ==13856== Releasing lock... [2025-01-13 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:47:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:48:05 [end_date_ymd] => 2025-01-13 21:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:48:18] Production.INFO: count ==958 [2025-01-13 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:48:05 - End Time 2025-01-13 21:48:05 [2025-01-13 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241792', 'tblTempUsageDetail_20' ) start [2025-01-13 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241792', 'tblTempUsageDetail_20' ) end [2025-01-13 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241792', 'tblTempVendorCDR_20' ) start [2025-01-13 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241792', 'tblTempVendorCDR_20' ) end [2025-01-13 21:48:18] Production.INFO: ProcessCDR(1,14241792,1,1,2) [2025-01-13 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241792', 'tblTempUsageDetail_20' ) start [2025-01-13 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241792', 'tblTempUsageDetail_20' ) end [2025-01-13 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:48:21] Production.INFO: ==13934== Releasing lock... [2025-01-13 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:48:21] Production.INFO: 35 MB #Memory Used# [2025-01-13 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:49:05 [end_date_ymd] => 2025-01-13 21:49:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:49:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:49:18] Production.INFO: count ==958 [2025-01-13 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:49:05 - End Time 2025-01-13 21:49:05 [2025-01-13 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241797', 'tblTempUsageDetail_20' ) start [2025-01-13 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241797', 'tblTempUsageDetail_20' ) end [2025-01-13 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241797', 'tblTempVendorCDR_20' ) start [2025-01-13 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241797', 'tblTempVendorCDR_20' ) end [2025-01-13 21:49:18] Production.INFO: ProcessCDR(1,14241797,1,1,2) [2025-01-13 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241797', 'tblTempUsageDetail_20' ) start [2025-01-13 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241797', 'tblTempUsageDetail_20' ) end [2025-01-13 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:49:22] Production.INFO: ==14016== Releasing lock... [2025-01-13 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:49:22] Production.INFO: 35 MB #Memory Used# [2025-01-13 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:50:06 [end_date_ymd] => 2025-01-13 21:50:06 [RateCDR] => 1 ) [2025-01-13 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:50:06' and `end` < '2025-01-13 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:50:18] Production.INFO: count ==955 [2025-01-13 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-13 18:50:06 - End Time 2025-01-13 21:50:06 [2025-01-13 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241802', 'tblTempUsageDetail_20' ) start [2025-01-13 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241802', 'tblTempUsageDetail_20' ) end [2025-01-13 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241802', 'tblTempVendorCDR_20' ) start [2025-01-13 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241802', 'tblTempVendorCDR_20' ) end [2025-01-13 21:50:19] Production.INFO: ProcessCDR(1,14241802,1,1,2) [2025-01-13 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241802', 'tblTempUsageDetail_20' ) start [2025-01-13 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241802', 'tblTempUsageDetail_20' ) end [2025-01-13 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:50:22] Production.INFO: ==14107== Releasing lock... [2025-01-13 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:50:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:51:05 [end_date_ymd] => 2025-01-13 21:51:05 [RateCDR] => 1 ) [2025-01-13 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:51:05' and `end` < '2025-01-13 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:51:18] Production.INFO: count ==943 [2025-01-13 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:51:05 - End Time 2025-01-13 21:51:05 [2025-01-13 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241808', 'tblTempUsageDetail_20' ) start [2025-01-13 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241808', 'tblTempUsageDetail_20' ) end [2025-01-13 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241808', 'tblTempVendorCDR_20' ) start [2025-01-13 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241808', 'tblTempVendorCDR_20' ) end [2025-01-13 21:51:18] Production.INFO: ProcessCDR(1,14241808,1,1,2) [2025-01-13 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241808', 'tblTempUsageDetail_20' ) start [2025-01-13 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241808', 'tblTempUsageDetail_20' ) end [2025-01-13 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:51:21] Production.INFO: ==14194== Releasing lock... [2025-01-13 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:51:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:52:06 [end_date_ymd] => 2025-01-13 21:52:06 [RateCDR] => 1 ) [2025-01-13 21:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:52:06' and `end` < '2025-01-13 21:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:52:18] Production.INFO: count ==943 [2025-01-13 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:52:06 - End Time 2025-01-13 21:52:06 [2025-01-13 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241813', 'tblTempUsageDetail_20' ) start [2025-01-13 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241813', 'tblTempUsageDetail_20' ) end [2025-01-13 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241813', 'tblTempVendorCDR_20' ) start [2025-01-13 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241813', 'tblTempVendorCDR_20' ) end [2025-01-13 21:52:18] Production.INFO: ProcessCDR(1,14241813,1,1,2) [2025-01-13 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241813', 'tblTempUsageDetail_20' ) start [2025-01-13 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241813', 'tblTempUsageDetail_20' ) end [2025-01-13 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:52:22] Production.INFO: ==14278== Releasing lock... [2025-01-13 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:52:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:53:04 [end_date_ymd] => 2025-01-13 21:53:04 [RateCDR] => 1 ) [2025-01-13 21:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:53:04' and `end` < '2025-01-13 21:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:53:17] Production.INFO: count ==942 [2025-01-13 21:53:17] Production.ERROR: pbx CDR StartTime 2025-01-13 18:53:04 - End Time 2025-01-13 21:53:04 [2025-01-13 21:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241818', 'tblTempUsageDetail_20' ) start [2025-01-13 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241818', 'tblTempUsageDetail_20' ) end [2025-01-13 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241818', 'tblTempVendorCDR_20' ) start [2025-01-13 21:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241818', 'tblTempVendorCDR_20' ) end [2025-01-13 21:53:17] Production.INFO: ProcessCDR(1,14241818,1,1,2) [2025-01-13 21:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241818', 'tblTempUsageDetail_20' ) start [2025-01-13 21:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241818', 'tblTempUsageDetail_20' ) end [2025-01-13 21:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:53:20] Production.INFO: ==14365== Releasing lock... [2025-01-13 21:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:53:20] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:54:05 [end_date_ymd] => 2025-01-13 21:54:05 [RateCDR] => 1 ) [2025-01-13 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:54:05' and `end` < '2025-01-13 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:54:18] Production.INFO: count ==958 [2025-01-13 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:54:05 - End Time 2025-01-13 21:54:05 [2025-01-13 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241823', 'tblTempUsageDetail_20' ) start [2025-01-13 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241823', 'tblTempUsageDetail_20' ) end [2025-01-13 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241823', 'tblTempVendorCDR_20' ) start [2025-01-13 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241823', 'tblTempVendorCDR_20' ) end [2025-01-13 21:54:18] Production.INFO: ProcessCDR(1,14241823,1,1,2) [2025-01-13 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241823', 'tblTempUsageDetail_20' ) start [2025-01-13 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241823', 'tblTempUsageDetail_20' ) end [2025-01-13 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:54:22] Production.INFO: ==14450== Releasing lock... [2025-01-13 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:54:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:55:05 [end_date_ymd] => 2025-01-13 21:55:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:55:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:55:18] Production.INFO: count ==958 [2025-01-13 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:55:05 - End Time 2025-01-13 21:55:05 [2025-01-13 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241828', 'tblTempUsageDetail_20' ) start [2025-01-13 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241828', 'tblTempUsageDetail_20' ) end [2025-01-13 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241828', 'tblTempVendorCDR_20' ) start [2025-01-13 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241828', 'tblTempVendorCDR_20' ) end [2025-01-13 21:55:18] Production.INFO: ProcessCDR(1,14241828,1,1,2) [2025-01-13 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241828', 'tblTempUsageDetail_20' ) start [2025-01-13 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241828', 'tblTempUsageDetail_20' ) end [2025-01-13 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:55:23] Production.INFO: ==14539== Releasing lock... [2025-01-13 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:55:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:56:05 [end_date_ymd] => 2025-01-13 21:56:05 [RateCDR] => 1 ) [2025-01-13 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:56:05' and `end` < '2025-01-13 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:56:18] Production.INFO: count ==956 [2025-01-13 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-13 18:56:05 - End Time 2025-01-13 21:56:05 [2025-01-13 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241833', 'tblTempUsageDetail_20' ) start [2025-01-13 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241833', 'tblTempUsageDetail_20' ) end [2025-01-13 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241833', 'tblTempVendorCDR_20' ) start [2025-01-13 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241833', 'tblTempVendorCDR_20' ) end [2025-01-13 21:56:18] Production.INFO: ProcessCDR(1,14241833,1,1,2) [2025-01-13 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241833', 'tblTempUsageDetail_20' ) start [2025-01-13 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241833', 'tblTempUsageDetail_20' ) end [2025-01-13 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:56:21] Production.INFO: ==14630== Releasing lock... [2025-01-13 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:56:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:57:04 [end_date_ymd] => 2025-01-13 21:57:04 [RateCDR] => 1 ) [2025-01-13 21:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:57:04' and `end` < '2025-01-13 21:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:57:17] Production.INFO: count ==956 [2025-01-13 21:57:17] Production.ERROR: pbx CDR StartTime 2025-01-13 18:57:04 - End Time 2025-01-13 21:57:04 [2025-01-13 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241838', 'tblTempUsageDetail_20' ) start [2025-01-13 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241838', 'tblTempUsageDetail_20' ) end [2025-01-13 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241838', 'tblTempVendorCDR_20' ) start [2025-01-13 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241838', 'tblTempVendorCDR_20' ) end [2025-01-13 21:57:17] Production.INFO: ProcessCDR(1,14241838,1,1,2) [2025-01-13 21:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241838', 'tblTempUsageDetail_20' ) start [2025-01-13 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241838', 'tblTempUsageDetail_20' ) end [2025-01-13 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:57:21] Production.INFO: ==14722== Releasing lock... [2025-01-13 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:57:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:58:05 [end_date_ymd] => 2025-01-13 21:58:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 18:58:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 21:58:19] Production.INFO: count ==956 [2025-01-13 21:58:19] Production.ERROR: pbx CDR StartTime 2025-01-13 18:58:05 - End Time 2025-01-13 21:58:05 [2025-01-13 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241843', 'tblTempUsageDetail_20' ) start [2025-01-13 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241843', 'tblTempUsageDetail_20' ) end [2025-01-13 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241843', 'tblTempVendorCDR_20' ) start [2025-01-13 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241843', 'tblTempVendorCDR_20' ) end [2025-01-13 21:58:19] Production.INFO: ProcessCDR(1,14241843,1,1,2) [2025-01-13 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241843', 'tblTempUsageDetail_20' ) start [2025-01-13 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241843', 'tblTempUsageDetail_20' ) end [2025-01-13 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:58:22] Production.INFO: ==14829== Releasing lock... [2025-01-13 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:58:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 21:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 18:59:06 [end_date_ymd] => 2025-01-13 21:59:06 [RateCDR] => 1 ) [2025-01-13 21:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 18:59:06' and `end` < '2025-01-13 21:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 21:59:19] Production.INFO: count ==955 [2025-01-13 21:59:19] Production.ERROR: pbx CDR StartTime 2025-01-13 18:59:06 - End Time 2025-01-13 21:59:06 [2025-01-13 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241848', 'tblTempUsageDetail_20' ) start [2025-01-13 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241848', 'tblTempUsageDetail_20' ) end [2025-01-13 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241848', 'tblTempVendorCDR_20' ) start [2025-01-13 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241848', 'tblTempVendorCDR_20' ) end [2025-01-13 21:59:19] Production.INFO: ProcessCDR(1,14241848,1,1,2) [2025-01-13 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241848', 'tblTempUsageDetail_20' ) start [2025-01-13 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241848', 'tblTempUsageDetail_20' ) end [2025-01-13 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 21:59:23] Production.INFO: ==14931== Releasing lock... [2025-01-13 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 21:59:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:00:06 [end_date_ymd] => 2025-01-13 22:00:06 [RateCDR] => 1 ) [2025-01-13 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:00:06' and `end` < '2025-01-13 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:00:19] Production.INFO: count ==954 [2025-01-13 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-13 19:00:06 - End Time 2025-01-13 22:00:06 [2025-01-13 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241853', 'tblTempUsageDetail_20' ) start [2025-01-13 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241853', 'tblTempUsageDetail_20' ) end [2025-01-13 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241853', 'tblTempVendorCDR_20' ) start [2025-01-13 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241853', 'tblTempVendorCDR_20' ) end [2025-01-13 22:00:19] Production.INFO: ProcessCDR(1,14241853,1,1,2) [2025-01-13 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241853', 'tblTempUsageDetail_20' ) start [2025-01-13 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241853', 'tblTempUsageDetail_20' ) end [2025-01-13 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:00:22] Production.INFO: ==15036== Releasing lock... [2025-01-13 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:00:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:01:06 [end_date_ymd] => 2025-01-13 22:01:06 [RateCDR] => 1 ) [2025-01-13 22: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` >= '2025-01-13 19:01:06' and `end` < '2025-01-13 22: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 ,'') [2025-01-13 22:01:18] Production.INFO: count ==939 [2025-01-13 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:01:06 - End Time 2025-01-13 22:01:06 [2025-01-13 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241859', 'tblTempUsageDetail_20' ) start [2025-01-13 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241859', 'tblTempUsageDetail_20' ) end [2025-01-13 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241859', 'tblTempVendorCDR_20' ) start [2025-01-13 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241859', 'tblTempVendorCDR_20' ) end [2025-01-13 22:01:18] Production.INFO: ProcessCDR(1,14241859,1,1,2) [2025-01-13 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241859', 'tblTempUsageDetail_20' ) start [2025-01-13 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241859', 'tblTempUsageDetail_20' ) end [2025-01-13 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:01:22] Production.INFO: ==15166== Releasing lock... [2025-01-13 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:01:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:02:05 [end_date_ymd] => 2025-01-13 22:02:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:02:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:02:18] Production.INFO: count ==936 [2025-01-13 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:02:05 - End Time 2025-01-13 22:02:05 [2025-01-13 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241864', 'tblTempUsageDetail_20' ) start [2025-01-13 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241864', 'tblTempUsageDetail_20' ) end [2025-01-13 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241864', 'tblTempVendorCDR_20' ) start [2025-01-13 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241864', 'tblTempVendorCDR_20' ) end [2025-01-13 22:02:18] Production.INFO: ProcessCDR(1,14241864,1,1,2) [2025-01-13 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241864', 'tblTempUsageDetail_20' ) start [2025-01-13 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241864', 'tblTempUsageDetail_20' ) end [2025-01-13 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:02:21] Production.INFO: ==15269== Releasing lock... [2025-01-13 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:02:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-13 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:03:05 [end_date_ymd] => 2025-01-13 22:03:05 [RateCDR] => 1 ) [2025-01-13 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:03:05' and `end` < '2025-01-13 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:03:18] Production.INFO: count ==935 [2025-01-13 22:03:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:03:05 - End Time 2025-01-13 22:03:05 [2025-01-13 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241869', 'tblTempUsageDetail_20' ) start [2025-01-13 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241869', 'tblTempUsageDetail_20' ) end [2025-01-13 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241869', 'tblTempVendorCDR_20' ) start [2025-01-13 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241869', 'tblTempVendorCDR_20' ) end [2025-01-13 22:03:18] Production.INFO: ProcessCDR(1,14241869,1,1,2) [2025-01-13 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241869', 'tblTempUsageDetail_20' ) start [2025-01-13 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241869', 'tblTempUsageDetail_20' ) end [2025-01-13 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:03:22] Production.INFO: ==15412== Releasing lock... [2025-01-13 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:03:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-13 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:04:06 [end_date_ymd] => 2025-01-13 22:04:06 [RateCDR] => 1 ) [2025-01-13 22: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` >= '2025-01-13 19:04:06' and `end` < '2025-01-13 22: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 ,'') [2025-01-13 22:04:18] Production.INFO: count ==940 [2025-01-13 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:04:06 - End Time 2025-01-13 22:04:06 [2025-01-13 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241874', 'tblTempUsageDetail_20' ) start [2025-01-13 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241874', 'tblTempUsageDetail_20' ) end [2025-01-13 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241874', 'tblTempVendorCDR_20' ) start [2025-01-13 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241874', 'tblTempVendorCDR_20' ) end [2025-01-13 22:04:18] Production.INFO: ProcessCDR(1,14241874,1,1,2) [2025-01-13 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241874', 'tblTempUsageDetail_20' ) start [2025-01-13 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241874', 'tblTempUsageDetail_20' ) end [2025-01-13 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:04:22] Production.INFO: ==15515== Releasing lock... [2025-01-13 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:04:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:05:05 [end_date_ymd] => 2025-01-13 22:05:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:05:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:05:18] Production.INFO: count ==937 [2025-01-13 22:05:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:05:05 - End Time 2025-01-13 22:05:05 [2025-01-13 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241879', 'tblTempUsageDetail_20' ) start [2025-01-13 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241879', 'tblTempUsageDetail_20' ) end [2025-01-13 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241879', 'tblTempVendorCDR_20' ) start [2025-01-13 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241879', 'tblTempVendorCDR_20' ) end [2025-01-13 22:05:18] Production.INFO: ProcessCDR(1,14241879,1,1,2) [2025-01-13 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241879', 'tblTempUsageDetail_20' ) start [2025-01-13 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241879', 'tblTempUsageDetail_20' ) end [2025-01-13 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:05:21] Production.INFO: ==15608== Releasing lock... [2025-01-13 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:05:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-13 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:06:06 [end_date_ymd] => 2025-01-13 22:06:06 [RateCDR] => 1 ) [2025-01-13 22:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:06:06' and `end` < '2025-01-13 22:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:06:18] Production.INFO: count ==937 [2025-01-13 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:06:06 - End Time 2025-01-13 22:06:06 [2025-01-13 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241884', 'tblTempUsageDetail_20' ) start [2025-01-13 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241884', 'tblTempUsageDetail_20' ) end [2025-01-13 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241884', 'tblTempVendorCDR_20' ) start [2025-01-13 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241884', 'tblTempVendorCDR_20' ) end [2025-01-13 22:06:18] Production.INFO: ProcessCDR(1,14241884,1,1,2) [2025-01-13 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241884', 'tblTempUsageDetail_20' ) start [2025-01-13 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241884', 'tblTempUsageDetail_20' ) end [2025-01-13 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:06:22] Production.INFO: ==15702== Releasing lock... [2025-01-13 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:06:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-13 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:07:05 [end_date_ymd] => 2025-01-13 22:07:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:07:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:07:17] Production.INFO: count ==937 [2025-01-13 22:07:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:07:05 - End Time 2025-01-13 22:07:05 [2025-01-13 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241889', 'tblTempUsageDetail_20' ) start [2025-01-13 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241889', 'tblTempUsageDetail_20' ) end [2025-01-13 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241889', 'tblTempVendorCDR_20' ) start [2025-01-13 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241889', 'tblTempVendorCDR_20' ) end [2025-01-13 22:07:17] Production.INFO: ProcessCDR(1,14241889,1,1,2) [2025-01-13 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241889', 'tblTempUsageDetail_20' ) start [2025-01-13 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241889', 'tblTempUsageDetail_20' ) end [2025-01-13 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:07:21] Production.INFO: ==15801== Releasing lock... [2025-01-13 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:07:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-13 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:08:05 [end_date_ymd] => 2025-01-13 22:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:08:18] Production.INFO: count ==936 [2025-01-13 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:08:05 - End Time 2025-01-13 22:08:05 [2025-01-13 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241894', 'tblTempUsageDetail_20' ) start [2025-01-13 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241894', 'tblTempUsageDetail_20' ) end [2025-01-13 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241894', 'tblTempVendorCDR_20' ) start [2025-01-13 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241894', 'tblTempVendorCDR_20' ) end [2025-01-13 22:08:18] Production.INFO: ProcessCDR(1,14241894,1,1,2) [2025-01-13 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241894', 'tblTempUsageDetail_20' ) start [2025-01-13 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241894', 'tblTempUsageDetail_20' ) end [2025-01-13 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:08:22] Production.INFO: ==15891== Releasing lock... [2025-01-13 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:08:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:09:04 [end_date_ymd] => 2025-01-13 22:09:04 [RateCDR] => 1 ) [2025-01-13 22:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:09:04' and `end` < '2025-01-13 22:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:09:17] Production.INFO: count ==936 [2025-01-13 22:09:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:09:04 - End Time 2025-01-13 22:09:04 [2025-01-13 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241899', 'tblTempUsageDetail_20' ) start [2025-01-13 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241899', 'tblTempUsageDetail_20' ) end [2025-01-13 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241899', 'tblTempVendorCDR_20' ) start [2025-01-13 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241899', 'tblTempVendorCDR_20' ) end [2025-01-13 22:09:17] Production.INFO: ProcessCDR(1,14241899,1,1,2) [2025-01-13 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241899', 'tblTempUsageDetail_20' ) start [2025-01-13 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241899', 'tblTempUsageDetail_20' ) end [2025-01-13 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:09:21] Production.INFO: ==15985== Releasing lock... [2025-01-13 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:09:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-13 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:10:06 [end_date_ymd] => 2025-01-13 22:10:06 [RateCDR] => 1 ) [2025-01-13 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:10:06' and `end` < '2025-01-13 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:10:19] Production.INFO: count ==937 [2025-01-13 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-13 19:10:06 - End Time 2025-01-13 22:10:06 [2025-01-13 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241905', 'tblTempUsageDetail_20' ) start [2025-01-13 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241905', 'tblTempUsageDetail_20' ) end [2025-01-13 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241905', 'tblTempVendorCDR_20' ) start [2025-01-13 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241905', 'tblTempVendorCDR_20' ) end [2025-01-13 22:10:19] Production.INFO: ProcessCDR(1,14241905,1,1,2) [2025-01-13 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241905', 'tblTempUsageDetail_20' ) start [2025-01-13 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241905', 'tblTempUsageDetail_20' ) end [2025-01-13 22:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:10:24] Production.INFO: ==16080== Releasing lock... [2025-01-13 22:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:10:24] Production.INFO: 34.5 MB #Memory Used# [2025-01-13 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:11:05 [end_date_ymd] => 2025-01-13 22:11:05 [RateCDR] => 1 ) [2025-01-13 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:11:05' and `end` < '2025-01-13 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:11:17] Production.INFO: count ==917 [2025-01-13 22:11:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:11:05 - End Time 2025-01-13 22:11:05 [2025-01-13 22:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241910', 'tblTempUsageDetail_20' ) start [2025-01-13 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241910', 'tblTempUsageDetail_20' ) end [2025-01-13 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241910', 'tblTempVendorCDR_20' ) start [2025-01-13 22:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241910', 'tblTempVendorCDR_20' ) end [2025-01-13 22:11:17] Production.INFO: ProcessCDR(1,14241910,1,1,2) [2025-01-13 22:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241910', 'tblTempUsageDetail_20' ) start [2025-01-13 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241910', 'tblTempUsageDetail_20' ) end [2025-01-13 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:11:21] Production.INFO: ==16177== Releasing lock... [2025-01-13 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:11:21] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:12:04 [end_date_ymd] => 2025-01-13 22:12:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:12:04' and `end` < '2025-01-13 22:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:12:17] Production.INFO: count ==918 [2025-01-13 22:12:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:12:04 - End Time 2025-01-13 22:12:04 [2025-01-13 22:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241915', 'tblTempUsageDetail_20' ) start [2025-01-13 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241915', 'tblTempUsageDetail_20' ) end [2025-01-13 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241915', 'tblTempVendorCDR_20' ) start [2025-01-13 22:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241915', 'tblTempVendorCDR_20' ) end [2025-01-13 22:12:17] Production.INFO: ProcessCDR(1,14241915,1,1,2) [2025-01-13 22:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241915', 'tblTempUsageDetail_20' ) start [2025-01-13 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241915', 'tblTempUsageDetail_20' ) end [2025-01-13 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:12:21] Production.INFO: ==16269== Releasing lock... [2025-01-13 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:12:21] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:13:05 [end_date_ymd] => 2025-01-13 22:13:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:13:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:13:17] Production.INFO: count ==906 [2025-01-13 22:13:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:13:05 - End Time 2025-01-13 22:13:05 [2025-01-13 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241920', 'tblTempUsageDetail_20' ) start [2025-01-13 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241920', 'tblTempUsageDetail_20' ) end [2025-01-13 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241920', 'tblTempVendorCDR_20' ) start [2025-01-13 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241920', 'tblTempVendorCDR_20' ) end [2025-01-13 22:13:17] Production.INFO: ProcessCDR(1,14241920,1,1,2) [2025-01-13 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241920', 'tblTempUsageDetail_20' ) start [2025-01-13 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241920', 'tblTempUsageDetail_20' ) end [2025-01-13 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:13:21] Production.INFO: ==16354== Releasing lock... [2025-01-13 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:13:21] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:14:05 [end_date_ymd] => 2025-01-13 22:14:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:14:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:14:18] Production.INFO: count ==919 [2025-01-13 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:14:05 - End Time 2025-01-13 22:14:05 [2025-01-13 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241925', 'tblTempUsageDetail_20' ) start [2025-01-13 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241925', 'tblTempUsageDetail_20' ) end [2025-01-13 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241925', 'tblTempVendorCDR_20' ) start [2025-01-13 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241925', 'tblTempVendorCDR_20' ) end [2025-01-13 22:14:18] Production.INFO: ProcessCDR(1,14241925,1,1,2) [2025-01-13 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241925', 'tblTempUsageDetail_20' ) start [2025-01-13 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241925', 'tblTempUsageDetail_20' ) end [2025-01-13 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:14:23] Production.INFO: ==16445== Releasing lock... [2025-01-13 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:14:23] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:15:05 [end_date_ymd] => 2025-01-13 22:15:05 [RateCDR] => 1 ) [2025-01-13 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:15:05' and `end` < '2025-01-13 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:15:17] Production.INFO: count ==917 [2025-01-13 22:15:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:15:05 - End Time 2025-01-13 22:15:05 [2025-01-13 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241930', 'tblTempUsageDetail_20' ) start [2025-01-13 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241930', 'tblTempUsageDetail_20' ) end [2025-01-13 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241930', 'tblTempVendorCDR_20' ) start [2025-01-13 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241930', 'tblTempVendorCDR_20' ) end [2025-01-13 22:15:17] Production.INFO: ProcessCDR(1,14241930,1,1,2) [2025-01-13 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241930', 'tblTempUsageDetail_20' ) start [2025-01-13 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241930', 'tblTempUsageDetail_20' ) end [2025-01-13 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:15:22] Production.INFO: ==16520== Releasing lock... [2025-01-13 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:15:22] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:16:05 [end_date_ymd] => 2025-01-13 22:16:05 [RateCDR] => 1 ) [2025-01-13 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:16:05' and `end` < '2025-01-13 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:16:17] Production.INFO: count ==918 [2025-01-13 22:16:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:16:05 - End Time 2025-01-13 22:16:05 [2025-01-13 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241935', 'tblTempUsageDetail_20' ) start [2025-01-13 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241935', 'tblTempUsageDetail_20' ) end [2025-01-13 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241935', 'tblTempVendorCDR_20' ) start [2025-01-13 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241935', 'tblTempVendorCDR_20' ) end [2025-01-13 22:16:17] Production.INFO: ProcessCDR(1,14241935,1,1,2) [2025-01-13 22:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241935', 'tblTempUsageDetail_20' ) start [2025-01-13 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241935', 'tblTempUsageDetail_20' ) end [2025-01-13 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:16:21] Production.INFO: ==16593== Releasing lock... [2025-01-13 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:16:21] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:17:05 [end_date_ymd] => 2025-01-13 22:17:05 [RateCDR] => 1 ) [2025-01-13 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:17:05' and `end` < '2025-01-13 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:17:19] Production.INFO: count ==911 [2025-01-13 22:17:20] Production.ERROR: pbx CDR StartTime 2025-01-13 19:17:05 - End Time 2025-01-13 22:17:05 [2025-01-13 22:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241940', 'tblTempUsageDetail_20' ) start [2025-01-13 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241940', 'tblTempUsageDetail_20' ) end [2025-01-13 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241940', 'tblTempVendorCDR_20' ) start [2025-01-13 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241940', 'tblTempVendorCDR_20' ) end [2025-01-13 22:17:20] Production.INFO: ProcessCDR(1,14241940,1,1,2) [2025-01-13 22:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241940', 'tblTempUsageDetail_20' ) start [2025-01-13 22:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241940', 'tblTempUsageDetail_20' ) end [2025-01-13 22:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:17:25] Production.INFO: ==16666== Releasing lock... [2025-01-13 22:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:17:25] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:18:04 [end_date_ymd] => 2025-01-13 22:18:04 [RateCDR] => 1 ) [2025-01-13 22:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:18:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:18:17] Production.INFO: count ==911 [2025-01-13 22:18:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:18:04 - End Time 2025-01-13 22:18:04 [2025-01-13 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241945', 'tblTempUsageDetail_20' ) start [2025-01-13 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241945', 'tblTempUsageDetail_20' ) end [2025-01-13 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241945', 'tblTempVendorCDR_20' ) start [2025-01-13 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241945', 'tblTempVendorCDR_20' ) end [2025-01-13 22:18:17] Production.INFO: ProcessCDR(1,14241945,1,1,2) [2025-01-13 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241945', 'tblTempUsageDetail_20' ) start [2025-01-13 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241945', 'tblTempUsageDetail_20' ) end [2025-01-13 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:18:21] Production.INFO: ==16780== Releasing lock... [2025-01-13 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:18:21] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:19:05 [end_date_ymd] => 2025-01-13 22:19:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:19:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:19:19] Production.INFO: count ==911 [2025-01-13 22:19:19] Production.ERROR: pbx CDR StartTime 2025-01-13 19:19:05 - End Time 2025-01-13 22:19:05 [2025-01-13 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241950', 'tblTempUsageDetail_20' ) start [2025-01-13 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241950', 'tblTempUsageDetail_20' ) end [2025-01-13 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241950', 'tblTempVendorCDR_20' ) start [2025-01-13 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241950', 'tblTempVendorCDR_20' ) end [2025-01-13 22:19:19] Production.INFO: ProcessCDR(1,14241950,1,1,2) [2025-01-13 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241950', 'tblTempUsageDetail_20' ) start [2025-01-13 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241950', 'tblTempUsageDetail_20' ) end [2025-01-13 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:19:22] Production.INFO: ==16854== Releasing lock... [2025-01-13 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:19:22] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:20:06 [end_date_ymd] => 2025-01-13 22:20:06 [RateCDR] => 1 ) [2025-01-13 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:20:06' and `end` < '2025-01-13 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:20:18] Production.INFO: count ==909 [2025-01-13 22:20:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:20:06 - End Time 2025-01-13 22:20:06 [2025-01-13 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241955', 'tblTempUsageDetail_20' ) start [2025-01-13 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241955', 'tblTempUsageDetail_20' ) end [2025-01-13 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241955', 'tblTempVendorCDR_20' ) start [2025-01-13 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241955', 'tblTempVendorCDR_20' ) end [2025-01-13 22:20:18] Production.INFO: ProcessCDR(1,14241955,1,1,2) [2025-01-13 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241955', 'tblTempUsageDetail_20' ) start [2025-01-13 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241955', 'tblTempUsageDetail_20' ) end [2025-01-13 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:20:22] Production.INFO: ==16931== Releasing lock... [2025-01-13 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:20:22] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:21:05 [end_date_ymd] => 2025-01-13 22:21:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:21:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:21:19] Production.INFO: count ==899 [2025-01-13 22:21:19] Production.ERROR: pbx CDR StartTime 2025-01-13 19:21:05 - End Time 2025-01-13 22:21:05 [2025-01-13 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241961', 'tblTempUsageDetail_20' ) start [2025-01-13 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241961', 'tblTempUsageDetail_20' ) end [2025-01-13 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241961', 'tblTempVendorCDR_20' ) start [2025-01-13 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241961', 'tblTempVendorCDR_20' ) end [2025-01-13 22:21:19] Production.INFO: ProcessCDR(1,14241961,1,1,2) [2025-01-13 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241961', 'tblTempUsageDetail_20' ) start [2025-01-13 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241961', 'tblTempUsageDetail_20' ) end [2025-01-13 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:21:22] Production.INFO: ==17009== Releasing lock... [2025-01-13 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:21:22] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:22:05 [end_date_ymd] => 2025-01-13 22:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:22:18] Production.INFO: count ==903 [2025-01-13 22:22:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:22:05 - End Time 2025-01-13 22:22:05 [2025-01-13 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241966', 'tblTempUsageDetail_20' ) start [2025-01-13 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241966', 'tblTempUsageDetail_20' ) end [2025-01-13 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241966', 'tblTempVendorCDR_20' ) start [2025-01-13 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241966', 'tblTempVendorCDR_20' ) end [2025-01-13 22:22:18] Production.INFO: ProcessCDR(1,14241966,1,1,2) [2025-01-13 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241966', 'tblTempUsageDetail_20' ) start [2025-01-13 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241966', 'tblTempUsageDetail_20' ) end [2025-01-13 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:22:23] Production.INFO: ==17084== Releasing lock... [2025-01-13 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:22:23] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:23:05 [end_date_ymd] => 2025-01-13 22:23:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:23:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:23:17] Production.INFO: count ==903 [2025-01-13 22:23:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:23:05 - End Time 2025-01-13 22:23:05 [2025-01-13 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241971', 'tblTempUsageDetail_20' ) start [2025-01-13 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241971', 'tblTempUsageDetail_20' ) end [2025-01-13 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241971', 'tblTempVendorCDR_20' ) start [2025-01-13 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241971', 'tblTempVendorCDR_20' ) end [2025-01-13 22:23:17] Production.INFO: ProcessCDR(1,14241971,1,1,2) [2025-01-13 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241971', 'tblTempUsageDetail_20' ) start [2025-01-13 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241971', 'tblTempUsageDetail_20' ) end [2025-01-13 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:23:21] Production.INFO: ==17156== Releasing lock... [2025-01-13 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:23:21] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:24:05 [end_date_ymd] => 2025-01-13 22:24:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:24:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:24:18] Production.INFO: count ==908 [2025-01-13 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:24:05 - End Time 2025-01-13 22:24:05 [2025-01-13 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241976', 'tblTempUsageDetail_20' ) start [2025-01-13 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241976', 'tblTempUsageDetail_20' ) end [2025-01-13 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241976', 'tblTempVendorCDR_20' ) start [2025-01-13 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241976', 'tblTempVendorCDR_20' ) end [2025-01-13 22:24:18] Production.INFO: ProcessCDR(1,14241976,1,1,2) [2025-01-13 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241976', 'tblTempUsageDetail_20' ) start [2025-01-13 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241976', 'tblTempUsageDetail_20' ) end [2025-01-13 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:24:21] Production.INFO: ==17230== Releasing lock... [2025-01-13 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:24:21] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:25:06 [end_date_ymd] => 2025-01-13 22:25:06 [RateCDR] => 1 ) [2025-01-13 22:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:25:06' and `end` < '2025-01-13 22:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:25:19] Production.INFO: count ==908 [2025-01-13 22:25:19] Production.ERROR: pbx CDR StartTime 2025-01-13 19:25:06 - End Time 2025-01-13 22:25:06 [2025-01-13 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241981', 'tblTempUsageDetail_20' ) start [2025-01-13 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241981', 'tblTempUsageDetail_20' ) end [2025-01-13 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241981', 'tblTempVendorCDR_20' ) start [2025-01-13 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241981', 'tblTempVendorCDR_20' ) end [2025-01-13 22:25:19] Production.INFO: ProcessCDR(1,14241981,1,1,2) [2025-01-13 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241981', 'tblTempUsageDetail_20' ) start [2025-01-13 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241981', 'tblTempUsageDetail_20' ) end [2025-01-13 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:25:22] Production.INFO: ==17300== Releasing lock... [2025-01-13 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:25:22] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:26:05 [end_date_ymd] => 2025-01-13 22:26:05 [RateCDR] => 1 ) [2025-01-13 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:26:05' and `end` < '2025-01-13 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:26:18] Production.INFO: count ==909 [2025-01-13 22:26:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:26:05 - End Time 2025-01-13 22:26:05 [2025-01-13 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241986', 'tblTempUsageDetail_20' ) start [2025-01-13 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241986', 'tblTempUsageDetail_20' ) end [2025-01-13 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241986', 'tblTempVendorCDR_20' ) start [2025-01-13 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241986', 'tblTempVendorCDR_20' ) end [2025-01-13 22:26:18] Production.INFO: ProcessCDR(1,14241986,1,1,2) [2025-01-13 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241986', 'tblTempUsageDetail_20' ) start [2025-01-13 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241986', 'tblTempUsageDetail_20' ) end [2025-01-13 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:26:23] Production.INFO: ==17371== Releasing lock... [2025-01-13 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:26:23] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:27:04 [end_date_ymd] => 2025-01-13 22:27:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:27:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:27:17] Production.INFO: count ==917 [2025-01-13 22:27:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:27:04 - End Time 2025-01-13 22:27:04 [2025-01-13 22:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241991', 'tblTempUsageDetail_20' ) start [2025-01-13 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241991', 'tblTempUsageDetail_20' ) end [2025-01-13 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241991', 'tblTempVendorCDR_20' ) start [2025-01-13 22:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241991', 'tblTempVendorCDR_20' ) end [2025-01-13 22:27:17] Production.INFO: ProcessCDR(1,14241991,1,1,2) [2025-01-13 22:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241991', 'tblTempUsageDetail_20' ) start [2025-01-13 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241991', 'tblTempUsageDetail_20' ) end [2025-01-13 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:27:21] Production.INFO: ==17449== Releasing lock... [2025-01-13 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:27:21] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:28:05 [end_date_ymd] => 2025-01-13 22:28:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:28:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:28:18] Production.INFO: count ==918 [2025-01-13 22:28:19] Production.ERROR: pbx CDR StartTime 2025-01-13 19:28:05 - End Time 2025-01-13 22:28:05 [2025-01-13 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241996', 'tblTempUsageDetail_20' ) start [2025-01-13 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14241996', 'tblTempUsageDetail_20' ) end [2025-01-13 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241996', 'tblTempVendorCDR_20' ) start [2025-01-13 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14241996', 'tblTempVendorCDR_20' ) end [2025-01-13 22:28:19] Production.INFO: ProcessCDR(1,14241996,1,1,2) [2025-01-13 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14241996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14241996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14241996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14241996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241996', 'tblTempUsageDetail_20' ) start [2025-01-13 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14241996', 'tblTempUsageDetail_20' ) end [2025-01-13 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:28:22] Production.INFO: ==17527== Releasing lock... [2025-01-13 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:28:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-13 22:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:29:04 [end_date_ymd] => 2025-01-13 22:29:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:29:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:29:17] Production.INFO: count ==916 [2025-01-13 22:29:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:29:04 - End Time 2025-01-13 22:29:04 [2025-01-13 22:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242001', 'tblTempUsageDetail_20' ) start [2025-01-13 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242001', 'tblTempUsageDetail_20' ) end [2025-01-13 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242001', 'tblTempVendorCDR_20' ) start [2025-01-13 22:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242001', 'tblTempVendorCDR_20' ) end [2025-01-13 22:29:17] Production.INFO: ProcessCDR(1,14242001,1,1,2) [2025-01-13 22:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242001', 'tblTempUsageDetail_20' ) start [2025-01-13 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242001', 'tblTempUsageDetail_20' ) end [2025-01-13 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:29:21] Production.INFO: ==17596== Releasing lock... [2025-01-13 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:29:21] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:30:06 [end_date_ymd] => 2025-01-13 22:30:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:30:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:30:18] Production.INFO: count ==905 [2025-01-13 22:30:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:30:06 - End Time 2025-01-13 22:30:06 [2025-01-13 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242007', 'tblTempUsageDetail_20' ) start [2025-01-13 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242007', 'tblTempUsageDetail_20' ) end [2025-01-13 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242007', 'tblTempVendorCDR_20' ) start [2025-01-13 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242007', 'tblTempVendorCDR_20' ) end [2025-01-13 22:30:18] Production.INFO: ProcessCDR(1,14242007,1,1,2) [2025-01-13 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242007', 'tblTempUsageDetail_20' ) start [2025-01-13 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242007', 'tblTempUsageDetail_20' ) end [2025-01-13 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:30:23] Production.INFO: ==17669== Releasing lock... [2025-01-13 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:30:23] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:31:04 [end_date_ymd] => 2025-01-13 22:31:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:31:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:31:17] Production.INFO: count ==890 [2025-01-13 22:31:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:31:04 - End Time 2025-01-13 22:31:04 [2025-01-13 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242012', 'tblTempUsageDetail_20' ) start [2025-01-13 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242012', 'tblTempUsageDetail_20' ) end [2025-01-13 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242012', 'tblTempVendorCDR_20' ) start [2025-01-13 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242012', 'tblTempVendorCDR_20' ) end [2025-01-13 22:31:17] Production.INFO: ProcessCDR(1,14242012,1,1,2) [2025-01-13 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242012', 'tblTempUsageDetail_20' ) start [2025-01-13 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242012', 'tblTempUsageDetail_20' ) end [2025-01-13 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:31:22] Production.INFO: ==17746== Releasing lock... [2025-01-13 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:31:22] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:32:05 [end_date_ymd] => 2025-01-13 22:32:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:32:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:32:18] Production.INFO: count ==889 [2025-01-13 22:32:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:32:05 - End Time 2025-01-13 22:32:05 [2025-01-13 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242017', 'tblTempUsageDetail_20' ) start [2025-01-13 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242017', 'tblTempUsageDetail_20' ) end [2025-01-13 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242017', 'tblTempVendorCDR_20' ) start [2025-01-13 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242017', 'tblTempVendorCDR_20' ) end [2025-01-13 22:32:18] Production.INFO: ProcessCDR(1,14242017,1,1,2) [2025-01-13 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242017', 'tblTempUsageDetail_20' ) start [2025-01-13 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242017', 'tblTempUsageDetail_20' ) end [2025-01-13 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:32:21] Production.INFO: ==17815== Releasing lock... [2025-01-13 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:32:21] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:33:06 [end_date_ymd] => 2025-01-13 22:33:06 [RateCDR] => 1 ) [2025-01-13 22:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:33:06' and `end` < '2025-01-13 22:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:33:19] Production.INFO: count ==888 [2025-01-13 22:33:19] Production.ERROR: pbx CDR StartTime 2025-01-13 19:33:06 - End Time 2025-01-13 22:33:06 [2025-01-13 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242022', 'tblTempUsageDetail_20' ) start [2025-01-13 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242022', 'tblTempUsageDetail_20' ) end [2025-01-13 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242022', 'tblTempVendorCDR_20' ) start [2025-01-13 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242022', 'tblTempVendorCDR_20' ) end [2025-01-13 22:33:19] Production.INFO: ProcessCDR(1,14242022,1,1,2) [2025-01-13 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242022', 'tblTempUsageDetail_20' ) start [2025-01-13 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242022', 'tblTempUsageDetail_20' ) end [2025-01-13 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:33:23] Production.INFO: ==17892== Releasing lock... [2025-01-13 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:33:23] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:34:05 [end_date_ymd] => 2025-01-13 22:34:05 [RateCDR] => 1 ) [2025-01-13 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:34:05' and `end` < '2025-01-13 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:34:20] Production.INFO: count ==886 [2025-01-13 22:34:20] Production.ERROR: pbx CDR StartTime 2025-01-13 19:34:05 - End Time 2025-01-13 22:34:05 [2025-01-13 22:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242027', 'tblTempUsageDetail_20' ) start [2025-01-13 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242027', 'tblTempUsageDetail_20' ) end [2025-01-13 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242027', 'tblTempVendorCDR_20' ) start [2025-01-13 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242027', 'tblTempVendorCDR_20' ) end [2025-01-13 22:34:20] Production.INFO: ProcessCDR(1,14242027,1,1,2) [2025-01-13 22:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242027', 'tblTempUsageDetail_20' ) start [2025-01-13 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242027', 'tblTempUsageDetail_20' ) end [2025-01-13 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:34:23] Production.INFO: ==18000== Releasing lock... [2025-01-13 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:34:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-13 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:35:05 [end_date_ymd] => 2025-01-13 22:35:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:35:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:35:18] Production.INFO: count ==888 [2025-01-13 22:35:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:35:05 - End Time 2025-01-13 22:35:05 [2025-01-13 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242032', 'tblTempUsageDetail_20' ) start [2025-01-13 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242032', 'tblTempUsageDetail_20' ) end [2025-01-13 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242032', 'tblTempVendorCDR_20' ) start [2025-01-13 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242032', 'tblTempVendorCDR_20' ) end [2025-01-13 22:35:18] Production.INFO: ProcessCDR(1,14242032,1,1,2) [2025-01-13 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242032', 'tblTempUsageDetail_20' ) start [2025-01-13 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242032', 'tblTempUsageDetail_20' ) end [2025-01-13 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:35:22] Production.INFO: ==18073== Releasing lock... [2025-01-13 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:35:22] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:36:05 [end_date_ymd] => 2025-01-13 22:36:05 [RateCDR] => 1 ) [2025-01-13 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:36:05' and `end` < '2025-01-13 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:36:20] Production.INFO: count ==884 [2025-01-13 22:36:20] Production.ERROR: pbx CDR StartTime 2025-01-13 19:36:05 - End Time 2025-01-13 22:36:05 [2025-01-13 22:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242037', 'tblTempUsageDetail_20' ) start [2025-01-13 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242037', 'tblTempUsageDetail_20' ) end [2025-01-13 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242037', 'tblTempVendorCDR_20' ) start [2025-01-13 22:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242037', 'tblTempVendorCDR_20' ) end [2025-01-13 22:36:20] Production.INFO: ProcessCDR(1,14242037,1,1,2) [2025-01-13 22:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242037', 'tblTempUsageDetail_20' ) start [2025-01-13 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242037', 'tblTempUsageDetail_20' ) end [2025-01-13 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:36:23] Production.INFO: ==18143== Releasing lock... [2025-01-13 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:36:23] Production.INFO: 34 MB #Memory Used# [2025-01-13 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:37:05 [end_date_ymd] => 2025-01-13 22:37:05 [RateCDR] => 1 ) [2025-01-13 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:37:05' and `end` < '2025-01-13 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:37:21] Production.INFO: count ==886 [2025-01-13 22:37:21] Production.ERROR: pbx CDR StartTime 2025-01-13 19:37:05 - End Time 2025-01-13 22:37:05 [2025-01-13 22:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242042', 'tblTempUsageDetail_20' ) start [2025-01-13 22:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242042', 'tblTempUsageDetail_20' ) end [2025-01-13 22:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242042', 'tblTempVendorCDR_20' ) start [2025-01-13 22:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242042', 'tblTempVendorCDR_20' ) end [2025-01-13 22:37:21] Production.INFO: ProcessCDR(1,14242042,1,1,2) [2025-01-13 22:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242042', 'tblTempUsageDetail_20' ) start [2025-01-13 22:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242042', 'tblTempUsageDetail_20' ) end [2025-01-13 22:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:37:25] Production.INFO: ==18217== Releasing lock... [2025-01-13 22:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:37:25] Production.INFO: 33.75 MB #Memory Used# [2025-01-13 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:38:05 [end_date_ymd] => 2025-01-13 22:38:05 [RateCDR] => 1 ) [2025-01-13 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:38:05' and `end` < '2025-01-13 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:38:17] Production.INFO: count ==887 [2025-01-13 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:38:05 - End Time 2025-01-13 22:38:05 [2025-01-13 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242047', 'tblTempUsageDetail_20' ) start [2025-01-13 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242047', 'tblTempUsageDetail_20' ) end [2025-01-13 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242047', 'tblTempVendorCDR_20' ) start [2025-01-13 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242047', 'tblTempVendorCDR_20' ) end [2025-01-13 22:38:18] Production.INFO: ProcessCDR(1,14242047,1,1,2) [2025-01-13 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242047', 'tblTempUsageDetail_20' ) start [2025-01-13 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242047', 'tblTempUsageDetail_20' ) end [2025-01-13 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:38:22] Production.INFO: ==18291== Releasing lock... [2025-01-13 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:38:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-13 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:39:06 [end_date_ymd] => 2025-01-13 22:39:06 [RateCDR] => 1 ) [2025-01-13 22:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:39:06' and `end` < '2025-01-13 22:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:39:18] Production.INFO: count ==880 [2025-01-13 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:39:06 - End Time 2025-01-13 22:39:06 [2025-01-13 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242052', 'tblTempUsageDetail_20' ) start [2025-01-13 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242052', 'tblTempUsageDetail_20' ) end [2025-01-13 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242052', 'tblTempVendorCDR_20' ) start [2025-01-13 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242052', 'tblTempVendorCDR_20' ) end [2025-01-13 22:39:19] Production.INFO: ProcessCDR(1,14242052,1,1,2) [2025-01-13 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242052', 'tblTempUsageDetail_20' ) start [2025-01-13 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242052', 'tblTempUsageDetail_20' ) end [2025-01-13 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:39:22] Production.INFO: ==18364== Releasing lock... [2025-01-13 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:39:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-13 22:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:40:07 [end_date_ymd] => 2025-01-13 22:40:07 [RateCDR] => 1 ) [2025-01-13 22:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:40:07' and `end` < '2025-01-13 22:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:40:19] Production.INFO: count ==881 [2025-01-13 22:40:19] Production.ERROR: pbx CDR StartTime 2025-01-13 19:40:07 - End Time 2025-01-13 22:40:07 [2025-01-13 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242058', 'tblTempUsageDetail_20' ) start [2025-01-13 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242058', 'tblTempUsageDetail_20' ) end [2025-01-13 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242058', 'tblTempVendorCDR_20' ) start [2025-01-13 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242058', 'tblTempVendorCDR_20' ) end [2025-01-13 22:40:19] Production.INFO: ProcessCDR(1,14242058,1,1,2) [2025-01-13 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242058', 'tblTempUsageDetail_20' ) start [2025-01-13 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242058', 'tblTempUsageDetail_20' ) end [2025-01-13 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:40:23] Production.INFO: ==18438== Releasing lock... [2025-01-13 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:40:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-13 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:41:05 [end_date_ymd] => 2025-01-13 22:41:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:41:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:41:17] Production.INFO: count ==837 [2025-01-13 22:41:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:41:05 - End Time 2025-01-13 22:41:05 [2025-01-13 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242063', 'tblTempUsageDetail_20' ) start [2025-01-13 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242063', 'tblTempUsageDetail_20' ) end [2025-01-13 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242063', 'tblTempVendorCDR_20' ) start [2025-01-13 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242063', 'tblTempVendorCDR_20' ) end [2025-01-13 22:41:17] Production.INFO: ProcessCDR(1,14242063,1,1,2) [2025-01-13 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242063', 'tblTempUsageDetail_20' ) start [2025-01-13 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242063', 'tblTempUsageDetail_20' ) end [2025-01-13 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:41:21] Production.INFO: ==18514== Releasing lock... [2025-01-13 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:42:05 [end_date_ymd] => 2025-01-13 22:42:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:42:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:42:18] Production.INFO: count ==836 [2025-01-13 22:42:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:42:05 - End Time 2025-01-13 22:42:05 [2025-01-13 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242068', 'tblTempUsageDetail_20' ) start [2025-01-13 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242068', 'tblTempUsageDetail_20' ) end [2025-01-13 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242068', 'tblTempVendorCDR_20' ) start [2025-01-13 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242068', 'tblTempVendorCDR_20' ) end [2025-01-13 22:42:18] Production.INFO: ProcessCDR(1,14242068,1,1,2) [2025-01-13 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242068', 'tblTempUsageDetail_20' ) start [2025-01-13 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242068', 'tblTempUsageDetail_20' ) end [2025-01-13 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:42:21] Production.INFO: ==18589== Releasing lock... [2025-01-13 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:42:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:43:05 [end_date_ymd] => 2025-01-13 22:43:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:43:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:43:19] Production.INFO: count ==834 [2025-01-13 22:43:20] Production.ERROR: pbx CDR StartTime 2025-01-13 19:43:05 - End Time 2025-01-13 22:43:05 [2025-01-13 22:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242073', 'tblTempUsageDetail_20' ) start [2025-01-13 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242073', 'tblTempUsageDetail_20' ) end [2025-01-13 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242073', 'tblTempVendorCDR_20' ) start [2025-01-13 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242073', 'tblTempVendorCDR_20' ) end [2025-01-13 22:43:20] Production.INFO: ProcessCDR(1,14242073,1,1,2) [2025-01-13 22:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242073', 'tblTempUsageDetail_20' ) start [2025-01-13 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242073', 'tblTempUsageDetail_20' ) end [2025-01-13 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:43:23] Production.INFO: ==18663== Releasing lock... [2025-01-13 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:43:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:44:05 [end_date_ymd] => 2025-01-13 22:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:44:18] Production.INFO: count ==828 [2025-01-13 22:44:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:44:05 - End Time 2025-01-13 22:44:05 [2025-01-13 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242078', 'tblTempUsageDetail_20' ) start [2025-01-13 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242078', 'tblTempUsageDetail_20' ) end [2025-01-13 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242078', 'tblTempVendorCDR_20' ) start [2025-01-13 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242078', 'tblTempVendorCDR_20' ) end [2025-01-13 22:44:18] Production.INFO: ProcessCDR(1,14242078,1,1,2) [2025-01-13 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242078', 'tblTempUsageDetail_20' ) start [2025-01-13 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242078', 'tblTempUsageDetail_20' ) end [2025-01-13 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:44:21] Production.INFO: ==18738== Releasing lock... [2025-01-13 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:44:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:45:06 [end_date_ymd] => 2025-01-13 22:45:06 [RateCDR] => 1 ) [2025-01-13 22:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:45:06' and `end` < '2025-01-13 22:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:45:18] Production.INFO: count ==827 [2025-01-13 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:45:06 - End Time 2025-01-13 22:45:06 [2025-01-13 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242083', 'tblTempUsageDetail_20' ) start [2025-01-13 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242083', 'tblTempUsageDetail_20' ) end [2025-01-13 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242083', 'tblTempVendorCDR_20' ) start [2025-01-13 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242083', 'tblTempVendorCDR_20' ) end [2025-01-13 22:45:18] Production.INFO: ProcessCDR(1,14242083,1,1,2) [2025-01-13 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242083', 'tblTempUsageDetail_20' ) start [2025-01-13 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242083', 'tblTempUsageDetail_20' ) end [2025-01-13 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:45:22] Production.INFO: ==18811== Releasing lock... [2025-01-13 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:46:05 [end_date_ymd] => 2025-01-13 22:46:05 [RateCDR] => 1 ) [2025-01-13 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:46:05' and `end` < '2025-01-13 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:46:17] Production.INFO: count ==825 [2025-01-13 22:46:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:46:05 - End Time 2025-01-13 22:46:05 [2025-01-13 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242088', 'tblTempUsageDetail_20' ) start [2025-01-13 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242088', 'tblTempUsageDetail_20' ) end [2025-01-13 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242088', 'tblTempVendorCDR_20' ) start [2025-01-13 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242088', 'tblTempVendorCDR_20' ) end [2025-01-13 22:46:18] Production.INFO: ProcessCDR(1,14242088,1,1,2) [2025-01-13 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242088', 'tblTempUsageDetail_20' ) start [2025-01-13 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242088', 'tblTempUsageDetail_20' ) end [2025-01-13 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:46:21] Production.INFO: ==18888== Releasing lock... [2025-01-13 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:46:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:47:05 [end_date_ymd] => 2025-01-13 22:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:47:17] Production.INFO: count ==828 [2025-01-13 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:47:05 - End Time 2025-01-13 22:47:05 [2025-01-13 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242093', 'tblTempUsageDetail_20' ) start [2025-01-13 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242093', 'tblTempUsageDetail_20' ) end [2025-01-13 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242093', 'tblTempVendorCDR_20' ) start [2025-01-13 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242093', 'tblTempVendorCDR_20' ) end [2025-01-13 22:47:18] Production.INFO: ProcessCDR(1,14242093,1,1,2) [2025-01-13 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242093', 'tblTempUsageDetail_20' ) start [2025-01-13 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242093', 'tblTempUsageDetail_20' ) end [2025-01-13 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:47:21] Production.INFO: ==18962== Releasing lock... [2025-01-13 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:47:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:48:05 [end_date_ymd] => 2025-01-13 22:48:05 [RateCDR] => 1 ) [2025-01-13 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:48:05' and `end` < '2025-01-13 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:48:19] Production.INFO: count ==827 [2025-01-13 22:48:19] Production.ERROR: pbx CDR StartTime 2025-01-13 19:48:05 - End Time 2025-01-13 22:48:05 [2025-01-13 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242098', 'tblTempUsageDetail_20' ) start [2025-01-13 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242098', 'tblTempUsageDetail_20' ) end [2025-01-13 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242098', 'tblTempVendorCDR_20' ) start [2025-01-13 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242098', 'tblTempVendorCDR_20' ) end [2025-01-13 22:48:19] Production.INFO: ProcessCDR(1,14242098,1,1,2) [2025-01-13 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242098', 'tblTempUsageDetail_20' ) start [2025-01-13 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242098', 'tblTempUsageDetail_20' ) end [2025-01-13 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:48:22] Production.INFO: ==19035== Releasing lock... [2025-01-13 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:48:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:49:05 [end_date_ymd] => 2025-01-13 22:49:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:49:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:49:18] Production.INFO: count ==827 [2025-01-13 22:49:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:49:05 - End Time 2025-01-13 22:49:05 [2025-01-13 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242103', 'tblTempUsageDetail_20' ) start [2025-01-13 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242103', 'tblTempUsageDetail_20' ) end [2025-01-13 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242103', 'tblTempVendorCDR_20' ) start [2025-01-13 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242103', 'tblTempVendorCDR_20' ) end [2025-01-13 22:49:18] Production.INFO: ProcessCDR(1,14242103,1,1,2) [2025-01-13 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242103', 'tblTempUsageDetail_20' ) start [2025-01-13 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242103', 'tblTempUsageDetail_20' ) end [2025-01-13 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:49:21] Production.INFO: ==19148== Releasing lock... [2025-01-13 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:49:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:50:06 [end_date_ymd] => 2025-01-13 22:50:06 [RateCDR] => 1 ) [2025-01-13 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:50:06' and `end` < '2025-01-13 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:50:18] Production.INFO: count ==826 [2025-01-13 22:50:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:50:06 - End Time 2025-01-13 22:50:06 [2025-01-13 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242109', 'tblTempUsageDetail_20' ) start [2025-01-13 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242109', 'tblTempUsageDetail_20' ) end [2025-01-13 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242109', 'tblTempVendorCDR_20' ) start [2025-01-13 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242109', 'tblTempVendorCDR_20' ) end [2025-01-13 22:50:18] Production.INFO: ProcessCDR(1,14242109,1,1,2) [2025-01-13 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242109', 'tblTempUsageDetail_20' ) start [2025-01-13 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242109', 'tblTempUsageDetail_20' ) end [2025-01-13 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:50:22] Production.INFO: ==19222== Releasing lock... [2025-01-13 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:50:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:51:05 [end_date_ymd] => 2025-01-13 22:51:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:51:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:51:17] Production.INFO: count ==841 [2025-01-13 22:51:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:51:05 - End Time 2025-01-13 22:51:05 [2025-01-13 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242114', 'tblTempUsageDetail_20' ) start [2025-01-13 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242114', 'tblTempUsageDetail_20' ) end [2025-01-13 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242114', 'tblTempVendorCDR_20' ) start [2025-01-13 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242114', 'tblTempVendorCDR_20' ) end [2025-01-13 22:51:17] Production.INFO: ProcessCDR(1,14242114,1,1,2) [2025-01-13 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242114', 'tblTempUsageDetail_20' ) start [2025-01-13 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242114', 'tblTempUsageDetail_20' ) end [2025-01-13 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:51:21] Production.INFO: ==19296== Releasing lock... [2025-01-13 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:51:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:52:04 [end_date_ymd] => 2025-01-13 22:52:04 [RateCDR] => 1 ) [2025-01-13 22:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:52:04' and `end` < '2025-01-13 22:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:52:18] Production.INFO: count ==839 [2025-01-13 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:52:04 - End Time 2025-01-13 22:52:04 [2025-01-13 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242119', 'tblTempUsageDetail_20' ) start [2025-01-13 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242119', 'tblTempUsageDetail_20' ) end [2025-01-13 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242119', 'tblTempVendorCDR_20' ) start [2025-01-13 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242119', 'tblTempVendorCDR_20' ) end [2025-01-13 22:52:18] Production.INFO: ProcessCDR(1,14242119,1,1,2) [2025-01-13 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242119', 'tblTempUsageDetail_20' ) start [2025-01-13 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242119', 'tblTempUsageDetail_20' ) end [2025-01-13 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:52:21] Production.INFO: ==19368== Releasing lock... [2025-01-13 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:52:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:53:05 [end_date_ymd] => 2025-01-13 22:53:05 [RateCDR] => 1 ) [2025-01-13 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:53:05' and `end` < '2025-01-13 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:53:17] Production.INFO: count ==841 [2025-01-13 22:53:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:53:05 - End Time 2025-01-13 22:53:05 [2025-01-13 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242124', 'tblTempUsageDetail_20' ) start [2025-01-13 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242124', 'tblTempUsageDetail_20' ) end [2025-01-13 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242124', 'tblTempVendorCDR_20' ) start [2025-01-13 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242124', 'tblTempVendorCDR_20' ) end [2025-01-13 22:53:17] Production.INFO: ProcessCDR(1,14242124,1,1,2) [2025-01-13 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242124', 'tblTempUsageDetail_20' ) start [2025-01-13 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242124', 'tblTempUsageDetail_20' ) end [2025-01-13 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:53:21] Production.INFO: ==19440== Releasing lock... [2025-01-13 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:54:05 [end_date_ymd] => 2025-01-13 22:54:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:54:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:54:18] Production.INFO: count ==841 [2025-01-13 22:54:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:54:05 - End Time 2025-01-13 22:54:05 [2025-01-13 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242129', 'tblTempUsageDetail_20' ) start [2025-01-13 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242129', 'tblTempUsageDetail_20' ) end [2025-01-13 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242129', 'tblTempVendorCDR_20' ) start [2025-01-13 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242129', 'tblTempVendorCDR_20' ) end [2025-01-13 22:54:18] Production.INFO: ProcessCDR(1,14242129,1,1,2) [2025-01-13 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242129', 'tblTempUsageDetail_20' ) start [2025-01-13 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242129', 'tblTempUsageDetail_20' ) end [2025-01-13 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:54:21] Production.INFO: ==19514== Releasing lock... [2025-01-13 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:55:06 [end_date_ymd] => 2025-01-13 22:55:06 [RateCDR] => 1 ) [2025-01-13 22:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:55:06' and `end` < '2025-01-13 22:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:55:20] Production.INFO: count ==840 [2025-01-13 22:55:20] Production.ERROR: pbx CDR StartTime 2025-01-13 19:55:06 - End Time 2025-01-13 22:55:06 [2025-01-13 22:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242134', 'tblTempUsageDetail_20' ) start [2025-01-13 22:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242134', 'tblTempUsageDetail_20' ) end [2025-01-13 22:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242134', 'tblTempVendorCDR_20' ) start [2025-01-13 22:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242134', 'tblTempVendorCDR_20' ) end [2025-01-13 22:55:20] Production.INFO: ProcessCDR(1,14242134,1,1,2) [2025-01-13 22:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242134', 'tblTempUsageDetail_20' ) start [2025-01-13 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242134', 'tblTempUsageDetail_20' ) end [2025-01-13 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:55:23] Production.INFO: ==19590== Releasing lock... [2025-01-13 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:55:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:56:05 [end_date_ymd] => 2025-01-13 22:56:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:56:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:56:18] Production.INFO: count ==840 [2025-01-13 22:56:18] Production.ERROR: pbx CDR StartTime 2025-01-13 19:56:05 - End Time 2025-01-13 22:56:05 [2025-01-13 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242139', 'tblTempUsageDetail_20' ) start [2025-01-13 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242139', 'tblTempUsageDetail_20' ) end [2025-01-13 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242139', 'tblTempVendorCDR_20' ) start [2025-01-13 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242139', 'tblTempVendorCDR_20' ) end [2025-01-13 22:56:18] Production.INFO: ProcessCDR(1,14242139,1,1,2) [2025-01-13 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242139', 'tblTempUsageDetail_20' ) start [2025-01-13 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242139', 'tblTempUsageDetail_20' ) end [2025-01-13 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:56:22] Production.INFO: ==19664== Releasing lock... [2025-01-13 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:56:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:57:05 [end_date_ymd] => 2025-01-13 22:57:05 [RateCDR] => 1 ) [2025-01-13 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:57:05' and `end` < '2025-01-13 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:57:19] Production.INFO: count ==840 [2025-01-13 22:57:19] Production.ERROR: pbx CDR StartTime 2025-01-13 19:57:05 - End Time 2025-01-13 22:57:05 [2025-01-13 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242144', 'tblTempUsageDetail_20' ) start [2025-01-13 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242144', 'tblTempUsageDetail_20' ) end [2025-01-13 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242144', 'tblTempVendorCDR_20' ) start [2025-01-13 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242144', 'tblTempVendorCDR_20' ) end [2025-01-13 22:57:19] Production.INFO: ProcessCDR(1,14242144,1,1,2) [2025-01-13 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242144', 'tblTempUsageDetail_20' ) start [2025-01-13 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242144', 'tblTempUsageDetail_20' ) end [2025-01-13 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:57:22] Production.INFO: ==19737== Releasing lock... [2025-01-13 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:57:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:58:06 [end_date_ymd] => 2025-01-13 22:58:06 [RateCDR] => 1 ) [2025-01-13 22:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 19:58:06' and `end` < '2025-01-13 22:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 22:58:20] Production.INFO: count ==840 [2025-01-13 22:58:20] Production.ERROR: pbx CDR StartTime 2025-01-13 19:58:06 - End Time 2025-01-13 22:58:06 [2025-01-13 22:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242149', 'tblTempUsageDetail_20' ) start [2025-01-13 22:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242149', 'tblTempUsageDetail_20' ) end [2025-01-13 22:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242149', 'tblTempVendorCDR_20' ) start [2025-01-13 22:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242149', 'tblTempVendorCDR_20' ) end [2025-01-13 22:58:20] Production.INFO: ProcessCDR(1,14242149,1,1,2) [2025-01-13 22:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242149', 'tblTempUsageDetail_20' ) start [2025-01-13 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242149', 'tblTempUsageDetail_20' ) end [2025-01-13 22:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:58:23] Production.INFO: ==19809== Releasing lock... [2025-01-13 22:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:58:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 19:59:05 [end_date_ymd] => 2025-01-13 22:59:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 19:59:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 22:59:17] Production.INFO: count ==830 [2025-01-13 22:59:17] Production.ERROR: pbx CDR StartTime 2025-01-13 19:59:05 - End Time 2025-01-13 22:59:05 [2025-01-13 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242154', 'tblTempUsageDetail_20' ) start [2025-01-13 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242154', 'tblTempUsageDetail_20' ) end [2025-01-13 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242154', 'tblTempVendorCDR_20' ) start [2025-01-13 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242154', 'tblTempVendorCDR_20' ) end [2025-01-13 22:59:17] Production.INFO: ProcessCDR(1,14242154,1,1,2) [2025-01-13 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242154', 'tblTempUsageDetail_20' ) start [2025-01-13 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242154', 'tblTempUsageDetail_20' ) end [2025-01-13 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 22:59:21] Production.INFO: ==19881== Releasing lock... [2025-01-13 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 22:59:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-13 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:00:06 [end_date_ymd] => 2025-01-13 23:00:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:00:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:00:19] Production.INFO: count ==823 [2025-01-13 23:00:19] Production.ERROR: pbx CDR StartTime 2025-01-13 20:00:06 - End Time 2025-01-13 23:00:06 [2025-01-13 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242160', 'tblTempUsageDetail_20' ) start [2025-01-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242160', 'tblTempUsageDetail_20' ) end [2025-01-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242160', 'tblTempVendorCDR_20' ) start [2025-01-13 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242160', 'tblTempVendorCDR_20' ) end [2025-01-13 23:00:19] Production.INFO: ProcessCDR(1,14242160,1,1,2) [2025-01-13 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242160', 'tblTempUsageDetail_20' ) start [2025-01-13 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242160', 'tblTempUsageDetail_20' ) end [2025-01-13 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:00:23] Production.INFO: ==19954== Releasing lock... [2025-01-13 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:00:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-13 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:01:05 [end_date_ymd] => 2025-01-13 23:01:05 [RateCDR] => 1 ) [2025-01-13 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:01:05' and `end` < '2025-01-13 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:01:17] Production.INFO: count ==784 [2025-01-13 23:01:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:01:05 - End Time 2025-01-13 23:01:05 [2025-01-13 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242165', 'tblTempUsageDetail_20' ) start [2025-01-13 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242165', 'tblTempUsageDetail_20' ) end [2025-01-13 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242165', 'tblTempVendorCDR_20' ) start [2025-01-13 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242165', 'tblTempVendorCDR_20' ) end [2025-01-13 23:01:17] Production.INFO: ProcessCDR(1,14242165,1,1,2) [2025-01-13 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242165', 'tblTempUsageDetail_20' ) start [2025-01-13 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242165', 'tblTempUsageDetail_20' ) end [2025-01-13 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:01:21] Production.INFO: ==20103== Releasing lock... [2025-01-13 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:01:21] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:02:05 [end_date_ymd] => 2025-01-13 23:02:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:02:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:02:18] Production.INFO: count ==772 [2025-01-13 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:02:05 - End Time 2025-01-13 23:02:05 [2025-01-13 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242170', 'tblTempUsageDetail_20' ) start [2025-01-13 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242170', 'tblTempUsageDetail_20' ) end [2025-01-13 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242170', 'tblTempVendorCDR_20' ) start [2025-01-13 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242170', 'tblTempVendorCDR_20' ) end [2025-01-13 23:02:18] Production.INFO: ProcessCDR(1,14242170,1,1,2) [2025-01-13 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242170', 'tblTempUsageDetail_20' ) start [2025-01-13 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242170', 'tblTempUsageDetail_20' ) end [2025-01-13 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:02:21] Production.INFO: ==20189== Releasing lock... [2025-01-13 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:02:21] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:03:05 [end_date_ymd] => 2025-01-13 23:03:05 [RateCDR] => 1 ) [2025-01-13 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:03:05' and `end` < '2025-01-13 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:03:17] Production.INFO: count ==771 [2025-01-13 23:03:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:03:05 - End Time 2025-01-13 23:03:05 [2025-01-13 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242175', 'tblTempUsageDetail_20' ) start [2025-01-13 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242175', 'tblTempUsageDetail_20' ) end [2025-01-13 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242175', 'tblTempVendorCDR_20' ) start [2025-01-13 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242175', 'tblTempVendorCDR_20' ) end [2025-01-13 23:03:17] Production.INFO: ProcessCDR(1,14242175,1,1,2) [2025-01-13 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242175', 'tblTempUsageDetail_20' ) start [2025-01-13 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242175', 'tblTempUsageDetail_20' ) end [2025-01-13 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:03:21] Production.INFO: ==20264== Releasing lock... [2025-01-13 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:03:21] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:04:05 [end_date_ymd] => 2025-01-13 23:04:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:04:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:04:18] Production.INFO: count ==766 [2025-01-13 23:04:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:04:05 - End Time 2025-01-13 23:04:05 [2025-01-13 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242180', 'tblTempUsageDetail_20' ) start [2025-01-13 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242180', 'tblTempUsageDetail_20' ) end [2025-01-13 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242180', 'tblTempVendorCDR_20' ) start [2025-01-13 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242180', 'tblTempVendorCDR_20' ) end [2025-01-13 23:04:18] Production.INFO: ProcessCDR(1,14242180,1,1,2) [2025-01-13 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242180', 'tblTempUsageDetail_20' ) start [2025-01-13 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242180', 'tblTempUsageDetail_20' ) end [2025-01-13 23:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:04:23] Production.INFO: ==20335== Releasing lock... [2025-01-13 23:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:04:23] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:05:05 [end_date_ymd] => 2025-01-13 23:05:05 [RateCDR] => 1 ) [2025-01-13 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:05:05' and `end` < '2025-01-13 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:05:17] Production.INFO: count ==765 [2025-01-13 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:05:05 - End Time 2025-01-13 23:05:05 [2025-01-13 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242185', 'tblTempUsageDetail_20' ) start [2025-01-13 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242185', 'tblTempUsageDetail_20' ) end [2025-01-13 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242185', 'tblTempVendorCDR_20' ) start [2025-01-13 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242185', 'tblTempVendorCDR_20' ) end [2025-01-13 23:05:18] Production.INFO: ProcessCDR(1,14242185,1,1,2) [2025-01-13 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242185', 'tblTempUsageDetail_20' ) start [2025-01-13 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242185', 'tblTempUsageDetail_20' ) end [2025-01-13 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:05:22] Production.INFO: ==20525== Releasing lock... [2025-01-13 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:05:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-13 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:06:06 [end_date_ymd] => 2025-01-13 23:06:06 [RateCDR] => 1 ) [2025-01-13 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:06:06' and `end` < '2025-01-13 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:06:18] Production.INFO: count ==765 [2025-01-13 23:06:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:06:06 - End Time 2025-01-13 23:06:06 [2025-01-13 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242190', 'tblTempUsageDetail_20' ) start [2025-01-13 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242190', 'tblTempUsageDetail_20' ) end [2025-01-13 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242190', 'tblTempVendorCDR_20' ) start [2025-01-13 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242190', 'tblTempVendorCDR_20' ) end [2025-01-13 23:06:18] Production.INFO: ProcessCDR(1,14242190,1,1,2) [2025-01-13 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242190', 'tblTempUsageDetail_20' ) start [2025-01-13 23:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242190', 'tblTempUsageDetail_20' ) end [2025-01-13 23:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:06:23] Production.INFO: ==20595== Releasing lock... [2025-01-13 23:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:06:23] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:07:04 [end_date_ymd] => 2025-01-13 23:07:04 [RateCDR] => 1 ) [2025-01-13 23:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:07:04' and `end` < '2025-01-13 23:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:07:21] Production.INFO: count ==763 [2025-01-13 23:07:21] Production.ERROR: pbx CDR StartTime 2025-01-13 20:07:04 - End Time 2025-01-13 23:07:04 [2025-01-13 23:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242195', 'tblTempUsageDetail_20' ) start [2025-01-13 23:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242195', 'tblTempUsageDetail_20' ) end [2025-01-13 23:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242195', 'tblTempVendorCDR_20' ) start [2025-01-13 23:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242195', 'tblTempVendorCDR_20' ) end [2025-01-13 23:07:21] Production.INFO: ProcessCDR(1,14242195,1,1,2) [2025-01-13 23:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242195', 'tblTempUsageDetail_20' ) start [2025-01-13 23:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242195', 'tblTempUsageDetail_20' ) end [2025-01-13 23:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:07:24] Production.INFO: ==20666== Releasing lock... [2025-01-13 23:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:07:24] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:08:05 [end_date_ymd] => 2025-01-13 23:08:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:08:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:08:17] Production.INFO: count ==760 [2025-01-13 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:08:05 - End Time 2025-01-13 23:08:05 [2025-01-13 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242200', 'tblTempUsageDetail_20' ) start [2025-01-13 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242200', 'tblTempUsageDetail_20' ) end [2025-01-13 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242200', 'tblTempVendorCDR_20' ) start [2025-01-13 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242200', 'tblTempVendorCDR_20' ) end [2025-01-13 23:08:18] Production.INFO: ProcessCDR(1,14242200,1,1,2) [2025-01-13 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242200', 'tblTempUsageDetail_20' ) start [2025-01-13 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242200', 'tblTempUsageDetail_20' ) end [2025-01-13 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:08:21] Production.INFO: ==20819== Releasing lock... [2025-01-13 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:08:21] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:09:04 [end_date_ymd] => 2025-01-13 23:09:04 [RateCDR] => 1 ) [2025-01-13 23:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:09:04' and `end` < '2025-01-13 23:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:09:17] Production.INFO: count ==760 [2025-01-13 23:09:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:09:04 - End Time 2025-01-13 23:09:04 [2025-01-13 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242205', 'tblTempUsageDetail_20' ) start [2025-01-13 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242205', 'tblTempUsageDetail_20' ) end [2025-01-13 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242205', 'tblTempVendorCDR_20' ) start [2025-01-13 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242205', 'tblTempVendorCDR_20' ) end [2025-01-13 23:09:17] Production.INFO: ProcessCDR(1,14242205,1,1,2) [2025-01-13 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242205', 'tblTempUsageDetail_20' ) start [2025-01-13 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242205', 'tblTempUsageDetail_20' ) end [2025-01-13 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:09:21] Production.INFO: ==20895== Releasing lock... [2025-01-13 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:09:21] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:10:06 [end_date_ymd] => 2025-01-13 23:10:06 [RateCDR] => 1 ) [2025-01-13 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:10:06' and `end` < '2025-01-13 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:10:19] Production.INFO: count ==762 [2025-01-13 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-13 20:10:06 - End Time 2025-01-13 23:10:06 [2025-01-13 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242211', 'tblTempUsageDetail_20' ) start [2025-01-13 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242211', 'tblTempUsageDetail_20' ) end [2025-01-13 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242211', 'tblTempVendorCDR_20' ) start [2025-01-13 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242211', 'tblTempVendorCDR_20' ) end [2025-01-13 23:10:19] Production.INFO: ProcessCDR(1,14242211,1,1,2) [2025-01-13 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242211', 'tblTempUsageDetail_20' ) start [2025-01-13 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242211', 'tblTempUsageDetail_20' ) end [2025-01-13 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:10:22] Production.INFO: ==20970== Releasing lock... [2025-01-13 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:10:22] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:11:06 [end_date_ymd] => 2025-01-13 23:11:06 [RateCDR] => 1 ) [2025-01-13 23:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:11:06' and `end` < '2025-01-13 23:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:11:20] Production.INFO: count ==736 [2025-01-13 23:11:21] Production.ERROR: pbx CDR StartTime 2025-01-13 20:11:06 - End Time 2025-01-13 23:11:06 [2025-01-13 23:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242216', 'tblTempUsageDetail_20' ) start [2025-01-13 23:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242216', 'tblTempUsageDetail_20' ) end [2025-01-13 23:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242216', 'tblTempVendorCDR_20' ) start [2025-01-13 23:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242216', 'tblTempVendorCDR_20' ) end [2025-01-13 23:11:21] Production.INFO: ProcessCDR(1,14242216,1,1,2) [2025-01-13 23:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242216', 'tblTempUsageDetail_20' ) start [2025-01-13 23:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242216', 'tblTempUsageDetail_20' ) end [2025-01-13 23:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:11:24] Production.INFO: ==21043== Releasing lock... [2025-01-13 23:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:11:24] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:12:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:12:07 [end_date_ymd] => 2025-01-13 23:12:07 [RateCDR] => 1 ) [2025-01-13 23:12:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:12:07' and `end` < '2025-01-13 23:12:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:12:19] Production.INFO: count ==736 [2025-01-13 23:12:19] Production.ERROR: pbx CDR StartTime 2025-01-13 20:12:07 - End Time 2025-01-13 23:12:07 [2025-01-13 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242221', 'tblTempUsageDetail_20' ) start [2025-01-13 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242221', 'tblTempUsageDetail_20' ) end [2025-01-13 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242221', 'tblTempVendorCDR_20' ) start [2025-01-13 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242221', 'tblTempVendorCDR_20' ) end [2025-01-13 23:12:19] Production.INFO: ProcessCDR(1,14242221,1,1,2) [2025-01-13 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242221', 'tblTempUsageDetail_20' ) start [2025-01-13 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242221', 'tblTempUsageDetail_20' ) end [2025-01-13 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:12:23] Production.INFO: ==21190== Releasing lock... [2025-01-13 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:12:23] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:13:05 [end_date_ymd] => 2025-01-13 23:13:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:13:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:13:19] Production.INFO: count ==735 [2025-01-13 23:13:20] Production.ERROR: pbx CDR StartTime 2025-01-13 20:13:05 - End Time 2025-01-13 23:13:05 [2025-01-13 23:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242226', 'tblTempUsageDetail_20' ) start [2025-01-13 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242226', 'tblTempUsageDetail_20' ) end [2025-01-13 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242226', 'tblTempVendorCDR_20' ) start [2025-01-13 23:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242226', 'tblTempVendorCDR_20' ) end [2025-01-13 23:13:20] Production.INFO: ProcessCDR(1,14242226,1,1,2) [2025-01-13 23:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242226', 'tblTempUsageDetail_20' ) start [2025-01-13 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242226', 'tblTempUsageDetail_20' ) end [2025-01-13 23:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:13:23] Production.INFO: ==21261== Releasing lock... [2025-01-13 23:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:13:23] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:14:04 [end_date_ymd] => 2025-01-13 23:14:04 [RateCDR] => 1 ) [2025-01-13 23: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` >= '2025-01-13 20:14:04' and `end` < '2025-01-13 23: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 ,'') [2025-01-13 23:14:17] Production.INFO: count ==735 [2025-01-13 23:14:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:14:04 - End Time 2025-01-13 23:14:04 [2025-01-13 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242231', 'tblTempUsageDetail_20' ) start [2025-01-13 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242231', 'tblTempUsageDetail_20' ) end [2025-01-13 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242231', 'tblTempVendorCDR_20' ) start [2025-01-13 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242231', 'tblTempVendorCDR_20' ) end [2025-01-13 23:14:17] Production.INFO: ProcessCDR(1,14242231,1,1,2) [2025-01-13 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242231', 'tblTempUsageDetail_20' ) start [2025-01-13 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242231', 'tblTempUsageDetail_20' ) end [2025-01-13 23:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:14:20] Production.INFO: ==21332== Releasing lock... [2025-01-13 23:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:14:20] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:15:05 [end_date_ymd] => 2025-01-13 23:15:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:15:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:15:17] Production.INFO: count ==733 [2025-01-13 23:15:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:15:05 - End Time 2025-01-13 23:15:05 [2025-01-13 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242236', 'tblTempUsageDetail_20' ) start [2025-01-13 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242236', 'tblTempUsageDetail_20' ) end [2025-01-13 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242236', 'tblTempVendorCDR_20' ) start [2025-01-13 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242236', 'tblTempVendorCDR_20' ) end [2025-01-13 23:15:18] Production.INFO: ProcessCDR(1,14242236,1,1,2) [2025-01-13 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242236', 'tblTempUsageDetail_20' ) start [2025-01-13 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242236', 'tblTempUsageDetail_20' ) end [2025-01-13 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:15:22] Production.INFO: ==21480== Releasing lock... [2025-01-13 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:15:22] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:16:06 [end_date_ymd] => 2025-01-13 23:16:06 [RateCDR] => 1 ) [2025-01-13 23:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:16:06' and `end` < '2025-01-13 23:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:16:18] Production.INFO: count ==731 [2025-01-13 23:16:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:16:06 - End Time 2025-01-13 23:16:06 [2025-01-13 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242241', 'tblTempUsageDetail_20' ) start [2025-01-13 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242241', 'tblTempUsageDetail_20' ) end [2025-01-13 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242241', 'tblTempVendorCDR_20' ) start [2025-01-13 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242241', 'tblTempVendorCDR_20' ) end [2025-01-13 23:16:18] Production.INFO: ProcessCDR(1,14242241,1,1,2) [2025-01-13 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242241', 'tblTempUsageDetail_20' ) start [2025-01-13 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242241', 'tblTempUsageDetail_20' ) end [2025-01-13 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:16:22] Production.INFO: ==21557== Releasing lock... [2025-01-13 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:16:22] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:17:05 [end_date_ymd] => 2025-01-13 23:17:05 [RateCDR] => 1 ) [2025-01-13 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:17:05' and `end` < '2025-01-13 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:17:19] Production.INFO: count ==728 [2025-01-13 23:17:19] Production.ERROR: pbx CDR StartTime 2025-01-13 20:17:05 - End Time 2025-01-13 23:17:05 [2025-01-13 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242246', 'tblTempUsageDetail_20' ) start [2025-01-13 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242246', 'tblTempUsageDetail_20' ) end [2025-01-13 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242246', 'tblTempVendorCDR_20' ) start [2025-01-13 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242246', 'tblTempVendorCDR_20' ) end [2025-01-13 23:17:19] Production.INFO: ProcessCDR(1,14242246,1,1,2) [2025-01-13 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242246', 'tblTempUsageDetail_20' ) start [2025-01-13 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242246', 'tblTempUsageDetail_20' ) end [2025-01-13 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:17:23] Production.INFO: ==21628== Releasing lock... [2025-01-13 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:17:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-13 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:18:05 [end_date_ymd] => 2025-01-13 23:18:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:18:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:18:22] Production.INFO: count ==726 [2025-01-13 23:18:22] Production.ERROR: pbx CDR StartTime 2025-01-13 20:18:05 - End Time 2025-01-13 23:18:05 [2025-01-13 23:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242251', 'tblTempUsageDetail_20' ) start [2025-01-13 23:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242251', 'tblTempUsageDetail_20' ) end [2025-01-13 23:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242251', 'tblTempVendorCDR_20' ) start [2025-01-13 23:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242251', 'tblTempVendorCDR_20' ) end [2025-01-13 23:18:22] Production.INFO: ProcessCDR(1,14242251,1,1,2) [2025-01-13 23:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242251', 'tblTempUsageDetail_20' ) start [2025-01-13 23:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242251', 'tblTempUsageDetail_20' ) end [2025-01-13 23:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:18:27] Production.INFO: ==21699== Releasing lock... [2025-01-13 23:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:18:27] Production.INFO: 32.75 MB #Memory Used# [2025-01-13 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:19:05 [end_date_ymd] => 2025-01-13 23:19:05 [RateCDR] => 1 ) [2025-01-13 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:19:05' and `end` < '2025-01-13 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:19:20] Production.INFO: count ==730 [2025-01-13 23:19:20] Production.ERROR: pbx CDR StartTime 2025-01-13 20:19:05 - End Time 2025-01-13 23:19:05 [2025-01-13 23:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242256', 'tblTempUsageDetail_20' ) start [2025-01-13 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242256', 'tblTempUsageDetail_20' ) end [2025-01-13 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242256', 'tblTempVendorCDR_20' ) start [2025-01-13 23:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242256', 'tblTempVendorCDR_20' ) end [2025-01-13 23:19:20] Production.INFO: ProcessCDR(1,14242256,1,1,2) [2025-01-13 23:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242256', 'tblTempUsageDetail_20' ) start [2025-01-13 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242256', 'tblTempUsageDetail_20' ) end [2025-01-13 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:19:23] Production.INFO: ==21769== Releasing lock... [2025-01-13 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:19:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-13 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:20:06 [end_date_ymd] => 2025-01-13 23:20:06 [RateCDR] => 1 ) [2025-01-13 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:20:06' and `end` < '2025-01-13 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:20:19] Production.INFO: count ==735 [2025-01-13 23:20:19] Production.ERROR: pbx CDR StartTime 2025-01-13 20:20:06 - End Time 2025-01-13 23:20:06 [2025-01-13 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242262', 'tblTempUsageDetail_20' ) start [2025-01-13 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242262', 'tblTempUsageDetail_20' ) end [2025-01-13 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242262', 'tblTempVendorCDR_20' ) start [2025-01-13 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242262', 'tblTempVendorCDR_20' ) end [2025-01-13 23:20:19] Production.INFO: ProcessCDR(1,14242262,1,1,2) [2025-01-13 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242262', 'tblTempUsageDetail_20' ) start [2025-01-13 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242262', 'tblTempUsageDetail_20' ) end [2025-01-13 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:20:22] Production.INFO: ==21843== Releasing lock... [2025-01-13 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:20:22] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:21:04 [end_date_ymd] => 2025-01-13 23:21:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:21:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:21:17] Production.INFO: count ==755 [2025-01-13 23:21:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:21:04 - End Time 2025-01-13 23:21:04 [2025-01-13 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242267', 'tblTempUsageDetail_20' ) start [2025-01-13 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242267', 'tblTempUsageDetail_20' ) end [2025-01-13 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242267', 'tblTempVendorCDR_20' ) start [2025-01-13 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242267', 'tblTempVendorCDR_20' ) end [2025-01-13 23:21:17] Production.INFO: ProcessCDR(1,14242267,1,1,2) [2025-01-13 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242267', 'tblTempUsageDetail_20' ) start [2025-01-13 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242267', 'tblTempUsageDetail_20' ) end [2025-01-13 23:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:21:20] Production.INFO: ==21954== Releasing lock... [2025-01-13 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:21:20] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:22:05 [end_date_ymd] => 2025-01-13 23:22:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:22:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:22:20] Production.INFO: count ==756 [2025-01-13 23:22:20] Production.ERROR: pbx CDR StartTime 2025-01-13 20:22:05 - End Time 2025-01-13 23:22:05 [2025-01-13 23:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242272', 'tblTempUsageDetail_20' ) start [2025-01-13 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242272', 'tblTempUsageDetail_20' ) end [2025-01-13 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242272', 'tblTempVendorCDR_20' ) start [2025-01-13 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242272', 'tblTempVendorCDR_20' ) end [2025-01-13 23:22:20] Production.INFO: ProcessCDR(1,14242272,1,1,2) [2025-01-13 23:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242272', 'tblTempUsageDetail_20' ) start [2025-01-13 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242272', 'tblTempUsageDetail_20' ) end [2025-01-13 23:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:22:24] Production.INFO: ==22032== Releasing lock... [2025-01-13 23:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:22:24] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:23:04 [end_date_ymd] => 2025-01-13 23:23:04 [RateCDR] => 1 ) [2025-01-13 23: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` >= '2025-01-13 20:23:04' and `end` < '2025-01-13 23: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 ,'') [2025-01-13 23:23:17] Production.INFO: count ==756 [2025-01-13 23:23:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:23:04 - End Time 2025-01-13 23:23:04 [2025-01-13 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242277', 'tblTempUsageDetail_20' ) start [2025-01-13 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242277', 'tblTempUsageDetail_20' ) end [2025-01-13 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242277', 'tblTempVendorCDR_20' ) start [2025-01-13 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242277', 'tblTempVendorCDR_20' ) end [2025-01-13 23:23:17] Production.INFO: ProcessCDR(1,14242277,1,1,2) [2025-01-13 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242277', 'tblTempUsageDetail_20' ) start [2025-01-13 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242277', 'tblTempUsageDetail_20' ) end [2025-01-13 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:23:21] Production.INFO: ==22101== Releasing lock... [2025-01-13 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:23:21] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:24:05 [end_date_ymd] => 2025-01-13 23:24:05 [RateCDR] => 1 ) [2025-01-13 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:24:05' and `end` < '2025-01-13 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:24:18] Production.INFO: count ==753 [2025-01-13 23:24:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:24:05 - End Time 2025-01-13 23:24:05 [2025-01-13 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242282', 'tblTempUsageDetail_20' ) start [2025-01-13 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242282', 'tblTempUsageDetail_20' ) end [2025-01-13 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242282', 'tblTempVendorCDR_20' ) start [2025-01-13 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242282', 'tblTempVendorCDR_20' ) end [2025-01-13 23:24:18] Production.INFO: ProcessCDR(1,14242282,1,1,2) [2025-01-13 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242282', 'tblTempUsageDetail_20' ) start [2025-01-13 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242282', 'tblTempUsageDetail_20' ) end [2025-01-13 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:24:21] Production.INFO: ==22173== Releasing lock... [2025-01-13 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-13 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:25:05 [end_date_ymd] => 2025-01-13 23:25:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:25:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:25:18] Production.INFO: count ==753 [2025-01-13 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:25:05 - End Time 2025-01-13 23:25:05 [2025-01-13 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242287', 'tblTempUsageDetail_20' ) start [2025-01-13 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242287', 'tblTempUsageDetail_20' ) end [2025-01-13 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242287', 'tblTempVendorCDR_20' ) start [2025-01-13 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242287', 'tblTempVendorCDR_20' ) end [2025-01-13 23:25:19] Production.INFO: ProcessCDR(1,14242287,1,1,2) [2025-01-13 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242287', 'tblTempUsageDetail_20' ) start [2025-01-13 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242287', 'tblTempUsageDetail_20' ) end [2025-01-13 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:25:22] Production.INFO: ==22243== Releasing lock... [2025-01-13 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:25:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-13 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:26:05 [end_date_ymd] => 2025-01-13 23:26:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:26:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:26:17] Production.INFO: count ==754 [2025-01-13 23:26:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:26:05 - End Time 2025-01-13 23:26:05 [2025-01-13 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242292', 'tblTempUsageDetail_20' ) start [2025-01-13 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242292', 'tblTempUsageDetail_20' ) end [2025-01-13 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242292', 'tblTempVendorCDR_20' ) start [2025-01-13 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242292', 'tblTempVendorCDR_20' ) end [2025-01-13 23:26:18] Production.INFO: ProcessCDR(1,14242292,1,1,2) [2025-01-13 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242292', 'tblTempUsageDetail_20' ) start [2025-01-13 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242292', 'tblTempUsageDetail_20' ) end [2025-01-13 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:26:22] Production.INFO: ==22314== Releasing lock... [2025-01-13 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:26:22] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:27:05 [end_date_ymd] => 2025-01-13 23:27:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:27:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:27:17] Production.INFO: count ==754 [2025-01-13 23:27:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:27:05 - End Time 2025-01-13 23:27:05 [2025-01-13 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242297', 'tblTempUsageDetail_20' ) start [2025-01-13 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242297', 'tblTempUsageDetail_20' ) end [2025-01-13 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242297', 'tblTempVendorCDR_20' ) start [2025-01-13 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242297', 'tblTempVendorCDR_20' ) end [2025-01-13 23:27:17] Production.INFO: ProcessCDR(1,14242297,1,1,2) [2025-01-13 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242297', 'tblTempUsageDetail_20' ) start [2025-01-13 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242297', 'tblTempUsageDetail_20' ) end [2025-01-13 23:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:27:20] Production.INFO: ==22385== Releasing lock... [2025-01-13 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:27:20] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:28:05 [end_date_ymd] => 2025-01-13 23:28:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:28:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:28:18] Production.INFO: count ==748 [2025-01-13 23:28:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:28:05 - End Time 2025-01-13 23:28:05 [2025-01-13 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242302', 'tblTempUsageDetail_20' ) start [2025-01-13 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242302', 'tblTempUsageDetail_20' ) end [2025-01-13 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242302', 'tblTempVendorCDR_20' ) start [2025-01-13 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242302', 'tblTempVendorCDR_20' ) end [2025-01-13 23:28:18] Production.INFO: ProcessCDR(1,14242302,1,1,2) [2025-01-13 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242302', 'tblTempUsageDetail_20' ) start [2025-01-13 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242302', 'tblTempUsageDetail_20' ) end [2025-01-13 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:28:21] Production.INFO: ==22457== Releasing lock... [2025-01-13 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:28:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-13 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:29:05 [end_date_ymd] => 2025-01-13 23:29:05 [RateCDR] => 1 ) [2025-01-13 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:29:05' and `end` < '2025-01-13 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:29:17] Production.INFO: count ==746 [2025-01-13 23:29:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:29:05 - End Time 2025-01-13 23:29:05 [2025-01-13 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242307', 'tblTempUsageDetail_20' ) start [2025-01-13 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242307', 'tblTempUsageDetail_20' ) end [2025-01-13 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242307', 'tblTempVendorCDR_20' ) start [2025-01-13 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242307', 'tblTempVendorCDR_20' ) end [2025-01-13 23:29:17] Production.INFO: ProcessCDR(1,14242307,1,1,2) [2025-01-13 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242307', 'tblTempUsageDetail_20' ) start [2025-01-13 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242307', 'tblTempUsageDetail_20' ) end [2025-01-13 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:29:22] Production.INFO: ==22528== Releasing lock... [2025-01-13 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:29:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-13 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:30:06 [end_date_ymd] => 2025-01-13 23:30:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:30:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:30:18] Production.INFO: count ==746 [2025-01-13 23:30:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:30:06 - End Time 2025-01-13 23:30:06 [2025-01-13 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242313', 'tblTempUsageDetail_20' ) start [2025-01-13 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242313', 'tblTempUsageDetail_20' ) end [2025-01-13 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242313', 'tblTempVendorCDR_20' ) start [2025-01-13 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242313', 'tblTempVendorCDR_20' ) end [2025-01-13 23:30:18] Production.INFO: ProcessCDR(1,14242313,1,1,2) [2025-01-13 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242313', 'tblTempUsageDetail_20' ) start [2025-01-13 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242313', 'tblTempUsageDetail_20' ) end [2025-01-13 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:30:22] Production.INFO: ==22601== Releasing lock... [2025-01-13 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:30:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-13 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:31:04 [end_date_ymd] => 2025-01-13 23:31:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:31:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:31:18] Production.INFO: count ==734 [2025-01-13 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:31:04 - End Time 2025-01-13 23:31:04 [2025-01-13 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242318', 'tblTempUsageDetail_20' ) start [2025-01-13 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242318', 'tblTempUsageDetail_20' ) end [2025-01-13 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242318', 'tblTempVendorCDR_20' ) start [2025-01-13 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242318', 'tblTempVendorCDR_20' ) end [2025-01-13 23:31:18] Production.INFO: ProcessCDR(1,14242318,1,1,2) [2025-01-13 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242318', 'tblTempUsageDetail_20' ) start [2025-01-13 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242318', 'tblTempUsageDetail_20' ) end [2025-01-13 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:31:22] Production.INFO: ==22675== Releasing lock... [2025-01-13 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:31:22] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:32:05 [end_date_ymd] => 2025-01-13 23:32:05 [RateCDR] => 1 ) [2025-01-13 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:32:05' and `end` < '2025-01-13 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:32:18] Production.INFO: count ==734 [2025-01-13 23:32:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:32:05 - End Time 2025-01-13 23:32:05 [2025-01-13 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242323', 'tblTempUsageDetail_20' ) start [2025-01-13 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242323', 'tblTempUsageDetail_20' ) end [2025-01-13 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242323', 'tblTempVendorCDR_20' ) start [2025-01-13 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242323', 'tblTempVendorCDR_20' ) end [2025-01-13 23:32:18] Production.INFO: ProcessCDR(1,14242323,1,1,2) [2025-01-13 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242323', 'tblTempUsageDetail_20' ) start [2025-01-13 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242323', 'tblTempUsageDetail_20' ) end [2025-01-13 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:32:21] Production.INFO: ==22744== Releasing lock... [2025-01-13 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:32:21] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:33:05 [end_date_ymd] => 2025-01-13 23:33:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:33:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:33:17] Production.INFO: count ==730 [2025-01-13 23:33:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:33:05 - End Time 2025-01-13 23:33:05 [2025-01-13 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242328', 'tblTempUsageDetail_20' ) start [2025-01-13 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242328', 'tblTempUsageDetail_20' ) end [2025-01-13 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242328', 'tblTempVendorCDR_20' ) start [2025-01-13 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242328', 'tblTempVendorCDR_20' ) end [2025-01-13 23:33:17] Production.INFO: ProcessCDR(1,14242328,1,1,2) [2025-01-13 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242328', 'tblTempUsageDetail_20' ) start [2025-01-13 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242328', 'tblTempUsageDetail_20' ) end [2025-01-13 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:33:21] Production.INFO: ==22813== Releasing lock... [2025-01-13 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:33:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-13 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:34:05 [end_date_ymd] => 2025-01-13 23:34:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:34:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:34:17] Production.INFO: count ==732 [2025-01-13 23:34:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:34:05 - End Time 2025-01-13 23:34:05 [2025-01-13 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242333', 'tblTempUsageDetail_20' ) start [2025-01-13 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242333', 'tblTempUsageDetail_20' ) end [2025-01-13 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242333', 'tblTempVendorCDR_20' ) start [2025-01-13 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242333', 'tblTempVendorCDR_20' ) end [2025-01-13 23:34:17] Production.INFO: ProcessCDR(1,14242333,1,1,2) [2025-01-13 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242333', 'tblTempUsageDetail_20' ) start [2025-01-13 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242333', 'tblTempUsageDetail_20' ) end [2025-01-13 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:34:21] Production.INFO: ==22889== Releasing lock... [2025-01-13 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:34:21] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:35:06 [end_date_ymd] => 2025-01-13 23:35:06 [RateCDR] => 1 ) [2025-01-13 23:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:35:06' and `end` < '2025-01-13 23:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:35:19] Production.INFO: count ==732 [2025-01-13 23:35:19] Production.ERROR: pbx CDR StartTime 2025-01-13 20:35:06 - End Time 2025-01-13 23:35:06 [2025-01-13 23:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242338', 'tblTempUsageDetail_20' ) start [2025-01-13 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242338', 'tblTempUsageDetail_20' ) end [2025-01-13 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242338', 'tblTempVendorCDR_20' ) start [2025-01-13 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242338', 'tblTempVendorCDR_20' ) end [2025-01-13 23:35:19] Production.INFO: ProcessCDR(1,14242338,1,1,2) [2025-01-13 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242338', 'tblTempUsageDetail_20' ) start [2025-01-13 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242338', 'tblTempUsageDetail_20' ) end [2025-01-13 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:35:22] Production.INFO: ==22961== Releasing lock... [2025-01-13 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:35:22] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:36:05 [end_date_ymd] => 2025-01-13 23:36:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:36:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:36:18] Production.INFO: count ==732 [2025-01-13 23:36:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:36:05 - End Time 2025-01-13 23:36:05 [2025-01-13 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242343', 'tblTempUsageDetail_20' ) start [2025-01-13 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242343', 'tblTempUsageDetail_20' ) end [2025-01-13 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242343', 'tblTempVendorCDR_20' ) start [2025-01-13 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242343', 'tblTempVendorCDR_20' ) end [2025-01-13 23:36:18] Production.INFO: ProcessCDR(1,14242343,1,1,2) [2025-01-13 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242343', 'tblTempUsageDetail_20' ) start [2025-01-13 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242343', 'tblTempUsageDetail_20' ) end [2025-01-13 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:36:21] Production.INFO: ==23072== Releasing lock... [2025-01-13 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:36:21] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:37:05 [end_date_ymd] => 2025-01-13 23:37:05 [RateCDR] => 1 ) [2025-01-13 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:37:05' and `end` < '2025-01-13 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:37:18] Production.INFO: count ==730 [2025-01-13 23:37:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:37:05 - End Time 2025-01-13 23:37:05 [2025-01-13 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242348', 'tblTempUsageDetail_20' ) start [2025-01-13 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242348', 'tblTempUsageDetail_20' ) end [2025-01-13 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242348', 'tblTempVendorCDR_20' ) start [2025-01-13 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242348', 'tblTempVendorCDR_20' ) end [2025-01-13 23:37:18] Production.INFO: ProcessCDR(1,14242348,1,1,2) [2025-01-13 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242348', 'tblTempUsageDetail_20' ) start [2025-01-13 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242348', 'tblTempUsageDetail_20' ) end [2025-01-13 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:37:21] Production.INFO: ==23142== Releasing lock... [2025-01-13 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:37:21] Production.INFO: 33 MB #Memory Used# [2025-01-13 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:38:05 [end_date_ymd] => 2025-01-13 23:38:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:38:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:38:18] Production.INFO: count ==727 [2025-01-13 23:38:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:38:05 - End Time 2025-01-13 23:38:05 [2025-01-13 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242353', 'tblTempUsageDetail_20' ) start [2025-01-13 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242353', 'tblTempUsageDetail_20' ) end [2025-01-13 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242353', 'tblTempVendorCDR_20' ) start [2025-01-13 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242353', 'tblTempVendorCDR_20' ) end [2025-01-13 23:38:18] Production.INFO: ProcessCDR(1,14242353,1,1,2) [2025-01-13 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242353', 'tblTempUsageDetail_20' ) start [2025-01-13 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242353', 'tblTempUsageDetail_20' ) end [2025-01-13 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:38:21] Production.INFO: ==23214== Releasing lock... [2025-01-13 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:38:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-13 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:39:05 [end_date_ymd] => 2025-01-13 23:39:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:39:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:39:17] Production.INFO: count ==723 [2025-01-13 23:39:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:39:05 - End Time 2025-01-13 23:39:05 [2025-01-13 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242358', 'tblTempUsageDetail_20' ) start [2025-01-13 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242358', 'tblTempUsageDetail_20' ) end [2025-01-13 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242358', 'tblTempVendorCDR_20' ) start [2025-01-13 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242358', 'tblTempVendorCDR_20' ) end [2025-01-13 23:39:17] Production.INFO: ProcessCDR(1,14242358,1,1,2) [2025-01-13 23:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242358', 'tblTempUsageDetail_20' ) start [2025-01-13 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242358', 'tblTempUsageDetail_20' ) end [2025-01-13 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:39:21] Production.INFO: ==23284== Releasing lock... [2025-01-13 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:39:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-13 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:40:06 [end_date_ymd] => 2025-01-13 23:40:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:40:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:40:19] Production.INFO: count ==716 [2025-01-13 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-13 20:40:06 - End Time 2025-01-13 23:40:06 [2025-01-13 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242364', 'tblTempUsageDetail_20' ) start [2025-01-13 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242364', 'tblTempUsageDetail_20' ) end [2025-01-13 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242364', 'tblTempVendorCDR_20' ) start [2025-01-13 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242364', 'tblTempVendorCDR_20' ) end [2025-01-13 23:40:19] Production.INFO: ProcessCDR(1,14242364,1,1,2) [2025-01-13 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242364', 'tblTempUsageDetail_20' ) start [2025-01-13 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242364', 'tblTempUsageDetail_20' ) end [2025-01-13 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:40:22] Production.INFO: ==23358== Releasing lock... [2025-01-13 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-13 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:41:05 [end_date_ymd] => 2025-01-13 23:41:05 [RateCDR] => 1 ) [2025-01-13 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:41:05' and `end` < '2025-01-13 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:41:18] Production.INFO: count ==659 [2025-01-13 23:41:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:41:05 - End Time 2025-01-13 23:41:05 [2025-01-13 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242369', 'tblTempUsageDetail_20' ) start [2025-01-13 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242369', 'tblTempUsageDetail_20' ) end [2025-01-13 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242369', 'tblTempVendorCDR_20' ) start [2025-01-13 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242369', 'tblTempVendorCDR_20' ) end [2025-01-13 23:41:18] Production.INFO: ProcessCDR(1,14242369,1,1,2) [2025-01-13 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242369', 'tblTempUsageDetail_20' ) start [2025-01-13 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242369', 'tblTempUsageDetail_20' ) end [2025-01-13 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:41:22] Production.INFO: ==23433== Releasing lock... [2025-01-13 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:41:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:42:06 [end_date_ymd] => 2025-01-13 23:42:06 [RateCDR] => 1 ) [2025-01-13 23:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:42:06' and `end` < '2025-01-13 23:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:42:18] Production.INFO: count ==659 [2025-01-13 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:42:06 - End Time 2025-01-13 23:42:06 [2025-01-13 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242374', 'tblTempUsageDetail_20' ) start [2025-01-13 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242374', 'tblTempUsageDetail_20' ) end [2025-01-13 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242374', 'tblTempVendorCDR_20' ) start [2025-01-13 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242374', 'tblTempVendorCDR_20' ) end [2025-01-13 23:42:18] Production.INFO: ProcessCDR(1,14242374,1,1,2) [2025-01-13 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242374', 'tblTempUsageDetail_20' ) start [2025-01-13 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242374', 'tblTempUsageDetail_20' ) end [2025-01-13 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:42:22] Production.INFO: ==23505== Releasing lock... [2025-01-13 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:42:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:43:05 [end_date_ymd] => 2025-01-13 23:43:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:43:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:43:20] Production.INFO: count ==658 [2025-01-13 23:43:20] Production.ERROR: pbx CDR StartTime 2025-01-13 20:43:05 - End Time 2025-01-13 23:43:05 [2025-01-13 23:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242379', 'tblTempUsageDetail_20' ) start [2025-01-13 23:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242379', 'tblTempUsageDetail_20' ) end [2025-01-13 23:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242379', 'tblTempVendorCDR_20' ) start [2025-01-13 23:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242379', 'tblTempVendorCDR_20' ) end [2025-01-13 23:43:20] Production.INFO: ProcessCDR(1,14242379,1,1,2) [2025-01-13 23:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242379', 'tblTempUsageDetail_20' ) start [2025-01-13 23:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242379', 'tblTempUsageDetail_20' ) end [2025-01-13 23:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:43:24] Production.INFO: ==23576== Releasing lock... [2025-01-13 23:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:43:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:44:05 [end_date_ymd] => 2025-01-13 23:44:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:44:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:44:18] Production.INFO: count ==656 [2025-01-13 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:44:05 - End Time 2025-01-13 23:44:05 [2025-01-13 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242384', 'tblTempUsageDetail_20' ) start [2025-01-13 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242384', 'tblTempUsageDetail_20' ) end [2025-01-13 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242384', 'tblTempVendorCDR_20' ) start [2025-01-13 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242384', 'tblTempVendorCDR_20' ) end [2025-01-13 23:44:18] Production.INFO: ProcessCDR(1,14242384,1,1,2) [2025-01-13 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242384', 'tblTempUsageDetail_20' ) start [2025-01-13 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242384', 'tblTempUsageDetail_20' ) end [2025-01-13 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:44:22] Production.INFO: ==23647== Releasing lock... [2025-01-13 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:44:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:45:04 [end_date_ymd] => 2025-01-13 23:45:04 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:45:04' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:45:17] Production.INFO: count ==655 [2025-01-13 23:45:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:45:04 - End Time 2025-01-13 23:45:04 [2025-01-13 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242389', 'tblTempUsageDetail_20' ) start [2025-01-13 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242389', 'tblTempUsageDetail_20' ) end [2025-01-13 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242389', 'tblTempVendorCDR_20' ) start [2025-01-13 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242389', 'tblTempVendorCDR_20' ) end [2025-01-13 23:45:17] Production.INFO: ProcessCDR(1,14242389,1,1,2) [2025-01-13 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242389', 'tblTempUsageDetail_20' ) start [2025-01-13 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242389', 'tblTempUsageDetail_20' ) end [2025-01-13 23:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:45:20] Production.INFO: ==23716== Releasing lock... [2025-01-13 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:45:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:46:05 [end_date_ymd] => 2025-01-13 23:46:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:46:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:46:19] Production.INFO: count ==655 [2025-01-13 23:46:19] Production.ERROR: pbx CDR StartTime 2025-01-13 20:46:05 - End Time 2025-01-13 23:46:05 [2025-01-13 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242394', 'tblTempUsageDetail_20' ) start [2025-01-13 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242394', 'tblTempUsageDetail_20' ) end [2025-01-13 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242394', 'tblTempVendorCDR_20' ) start [2025-01-13 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242394', 'tblTempVendorCDR_20' ) end [2025-01-13 23:46:19] Production.INFO: ProcessCDR(1,14242394,1,1,2) [2025-01-13 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242394', 'tblTempUsageDetail_20' ) start [2025-01-13 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242394', 'tblTempUsageDetail_20' ) end [2025-01-13 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:46:23] Production.INFO: ==23788== Releasing lock... [2025-01-13 23:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:46:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:47:05 [end_date_ymd] => 2025-01-13 23:47:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:47:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:47:17] Production.INFO: count ==657 [2025-01-13 23:47:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:47:05 - End Time 2025-01-13 23:47:05 [2025-01-13 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242399', 'tblTempUsageDetail_20' ) start [2025-01-13 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242399', 'tblTempUsageDetail_20' ) end [2025-01-13 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242399', 'tblTempVendorCDR_20' ) start [2025-01-13 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242399', 'tblTempVendorCDR_20' ) end [2025-01-13 23:47:17] Production.INFO: ProcessCDR(1,14242399,1,1,2) [2025-01-13 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242399', 'tblTempUsageDetail_20' ) start [2025-01-13 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242399', 'tblTempUsageDetail_20' ) end [2025-01-13 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:47:22] Production.INFO: ==23857== Releasing lock... [2025-01-13 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:47:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:48:05 [end_date_ymd] => 2025-01-13 23:48:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:48:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:48:19] Production.INFO: count ==655 [2025-01-13 23:48:19] Production.ERROR: pbx CDR StartTime 2025-01-13 20:48:05 - End Time 2025-01-13 23:48:05 [2025-01-13 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242404', 'tblTempUsageDetail_20' ) start [2025-01-13 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242404', 'tblTempUsageDetail_20' ) end [2025-01-13 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242404', 'tblTempVendorCDR_20' ) start [2025-01-13 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242404', 'tblTempVendorCDR_20' ) end [2025-01-13 23:48:19] Production.INFO: ProcessCDR(1,14242404,1,1,2) [2025-01-13 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242404', 'tblTempUsageDetail_20' ) start [2025-01-13 23:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242404', 'tblTempUsageDetail_20' ) end [2025-01-13 23:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:48:23] Production.INFO: ==23928== Releasing lock... [2025-01-13 23:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:48:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:49:06 [end_date_ymd] => 2025-01-13 23:49:06 [RateCDR] => 1 ) [2025-01-13 23:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:49:06' and `end` < '2025-01-13 23:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:49:18] Production.INFO: count ==654 [2025-01-13 23:49:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:49:06 - End Time 2025-01-13 23:49:06 [2025-01-13 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242409', 'tblTempUsageDetail_20' ) start [2025-01-13 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242409', 'tblTempUsageDetail_20' ) end [2025-01-13 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242409', 'tblTempVendorCDR_20' ) start [2025-01-13 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242409', 'tblTempVendorCDR_20' ) end [2025-01-13 23:49:18] Production.INFO: ProcessCDR(1,14242409,1,1,2) [2025-01-13 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242409', 'tblTempUsageDetail_20' ) start [2025-01-13 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242409', 'tblTempUsageDetail_20' ) end [2025-01-13 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:49:22] Production.INFO: ==24003== Releasing lock... [2025-01-13 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:49:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:50:06 [end_date_ymd] => 2025-01-13 23:50:06 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:50:06' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:50:19] Production.INFO: count ==653 [2025-01-13 23:50:19] Production.ERROR: pbx CDR StartTime 2025-01-13 20:50:06 - End Time 2025-01-13 23:50:06 [2025-01-13 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242415', 'tblTempUsageDetail_20' ) start [2025-01-13 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242415', 'tblTempUsageDetail_20' ) end [2025-01-13 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242415', 'tblTempVendorCDR_20' ) start [2025-01-13 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242415', 'tblTempVendorCDR_20' ) end [2025-01-13 23:50:19] Production.INFO: ProcessCDR(1,14242415,1,1,2) [2025-01-13 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242415', 'tblTempUsageDetail_20' ) start [2025-01-13 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242415', 'tblTempUsageDetail_20' ) end [2025-01-13 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:50:22] Production.INFO: ==24076== Releasing lock... [2025-01-13 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:51:06 [end_date_ymd] => 2025-01-13 23:51:06 [RateCDR] => 1 ) [2025-01-13 23:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:51:06' and `end` < '2025-01-13 23:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:51:20] Production.INFO: count ==664 [2025-01-13 23:51:20] Production.ERROR: pbx CDR StartTime 2025-01-13 20:51:06 - End Time 2025-01-13 23:51:06 [2025-01-13 23:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242420', 'tblTempUsageDetail_20' ) start [2025-01-13 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242420', 'tblTempUsageDetail_20' ) end [2025-01-13 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242420', 'tblTempVendorCDR_20' ) start [2025-01-13 23:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242420', 'tblTempVendorCDR_20' ) end [2025-01-13 23:51:20] Production.INFO: ProcessCDR(1,14242420,1,1,2) [2025-01-13 23:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242420', 'tblTempUsageDetail_20' ) start [2025-01-13 23:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242420', 'tblTempUsageDetail_20' ) end [2025-01-13 23:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:51:25] Production.INFO: ==24152== Releasing lock... [2025-01-13 23:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:51:25] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:52:05 [end_date_ymd] => 2025-01-13 23:52:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:52:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:52:18] Production.INFO: count ==665 [2025-01-13 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:52:05 - End Time 2025-01-13 23:52:05 [2025-01-13 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242425', 'tblTempUsageDetail_20' ) start [2025-01-13 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242425', 'tblTempUsageDetail_20' ) end [2025-01-13 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242425', 'tblTempVendorCDR_20' ) start [2025-01-13 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242425', 'tblTempVendorCDR_20' ) end [2025-01-13 23:52:18] Production.INFO: ProcessCDR(1,14242425,1,1,2) [2025-01-13 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242425', 'tblTempUsageDetail_20' ) start [2025-01-13 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242425', 'tblTempUsageDetail_20' ) end [2025-01-13 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:52:22] Production.INFO: ==24262== Releasing lock... [2025-01-13 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:52:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:53:05 [end_date_ymd] => 2025-01-13 23:53:05 [RateCDR] => 1 ) [2025-01-13 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:53:05' and `end` < '2025-01-13 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:53:18] Production.INFO: count ==666 [2025-01-13 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:53:05 - End Time 2025-01-13 23:53:05 [2025-01-13 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242430', 'tblTempUsageDetail_20' ) start [2025-01-13 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242430', 'tblTempUsageDetail_20' ) end [2025-01-13 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242430', 'tblTempVendorCDR_20' ) start [2025-01-13 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242430', 'tblTempVendorCDR_20' ) end [2025-01-13 23:53:18] Production.INFO: ProcessCDR(1,14242430,1,1,2) [2025-01-13 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242430', 'tblTempUsageDetail_20' ) start [2025-01-13 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242430', 'tblTempUsageDetail_20' ) end [2025-01-13 23:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:53:23] Production.INFO: ==24337== Releasing lock... [2025-01-13 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:53:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:54:06 [end_date_ymd] => 2025-01-13 23:54:06 [RateCDR] => 1 ) [2025-01-13 23:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:54:06' and `end` < '2025-01-13 23:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:54:18] Production.INFO: count ==665 [2025-01-13 23:54:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:54:06 - End Time 2025-01-13 23:54:06 [2025-01-13 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242435', 'tblTempUsageDetail_20' ) start [2025-01-13 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242435', 'tblTempUsageDetail_20' ) end [2025-01-13 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242435', 'tblTempVendorCDR_20' ) start [2025-01-13 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242435', 'tblTempVendorCDR_20' ) end [2025-01-13 23:54:18] Production.INFO: ProcessCDR(1,14242435,1,1,2) [2025-01-13 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242435', 'tblTempUsageDetail_20' ) start [2025-01-13 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242435', 'tblTempUsageDetail_20' ) end [2025-01-13 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:54:22] Production.INFO: ==24406== Releasing lock... [2025-01-13 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:54:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:55:05 [end_date_ymd] => 2025-01-13 23:55:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:55:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:55:17] Production.INFO: count ==667 [2025-01-13 23:55:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:55:05 - End Time 2025-01-13 23:55:05 [2025-01-13 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242440', 'tblTempUsageDetail_20' ) start [2025-01-13 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242440', 'tblTempUsageDetail_20' ) end [2025-01-13 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242440', 'tblTempVendorCDR_20' ) start [2025-01-13 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242440', 'tblTempVendorCDR_20' ) end [2025-01-13 23:55:17] Production.INFO: ProcessCDR(1,14242440,1,1,2) [2025-01-13 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242440', 'tblTempUsageDetail_20' ) start [2025-01-13 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242440', 'tblTempUsageDetail_20' ) end [2025-01-13 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:55:22] Production.INFO: ==24475== Releasing lock... [2025-01-13 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:55:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:56:05 [end_date_ymd] => 2025-01-13 23:56:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:56:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:56:17] Production.INFO: count ==668 [2025-01-13 23:56:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:56:05 - End Time 2025-01-13 23:56:05 [2025-01-13 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242445', 'tblTempUsageDetail_20' ) start [2025-01-13 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242445', 'tblTempUsageDetail_20' ) end [2025-01-13 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242445', 'tblTempVendorCDR_20' ) start [2025-01-13 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242445', 'tblTempVendorCDR_20' ) end [2025-01-13 23:56:17] Production.INFO: ProcessCDR(1,14242445,1,1,2) [2025-01-13 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242445', 'tblTempUsageDetail_20' ) start [2025-01-13 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242445', 'tblTempUsageDetail_20' ) end [2025-01-13 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:56:22] Production.INFO: ==24546== Releasing lock... [2025-01-13 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:56:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-13 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:57:05 [end_date_ymd] => 2025-01-13 23:57:05 [RateCDR] => 1 ) [2025-01-13 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` >= '2025-01-13 20:57:05' and `end` < '2025-01-13 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 ,'') [2025-01-13 23:57:18] Production.INFO: count ==667 [2025-01-13 23:57:18] Production.ERROR: pbx CDR StartTime 2025-01-13 20:57:05 - End Time 2025-01-13 23:57:05 [2025-01-13 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242450', 'tblTempUsageDetail_20' ) start [2025-01-13 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242450', 'tblTempUsageDetail_20' ) end [2025-01-13 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242450', 'tblTempVendorCDR_20' ) start [2025-01-13 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242450', 'tblTempVendorCDR_20' ) end [2025-01-13 23:57:18] Production.INFO: ProcessCDR(1,14242450,1,1,2) [2025-01-13 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242450', 'tblTempUsageDetail_20' ) start [2025-01-13 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242450', 'tblTempUsageDetail_20' ) end [2025-01-13 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:57:21] Production.INFO: ==24616== Releasing lock... [2025-01-13 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:57:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:58:05 [end_date_ymd] => 2025-01-13 23:58:05 [RateCDR] => 1 ) [2025-01-13 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:58:05' and `end` < '2025-01-13 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:58:21] Production.INFO: count ==666 [2025-01-13 23:58:21] Production.ERROR: pbx CDR StartTime 2025-01-13 20:58:05 - End Time 2025-01-13 23:58:05 [2025-01-13 23:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242455', 'tblTempUsageDetail_20' ) start [2025-01-13 23:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242455', 'tblTempUsageDetail_20' ) end [2025-01-13 23:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242455', 'tblTempVendorCDR_20' ) start [2025-01-13 23:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242455', 'tblTempVendorCDR_20' ) end [2025-01-13 23:58:21] Production.INFO: ProcessCDR(1,14242455,1,1,2) [2025-01-13 23:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242455', 'tblTempUsageDetail_20' ) start [2025-01-13 23:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242455', 'tblTempUsageDetail_20' ) end [2025-01-13 23:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:58:24] Production.INFO: ==24687== Releasing lock... [2025-01-13 23:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:58:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-13 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-13 20:59:04 [end_date_ymd] => 2025-01-13 23:59:04 [RateCDR] => 1 ) [2025-01-13 23:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-13 20:59:04' and `end` < '2025-01-13 23:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-13 23:59:17] Production.INFO: count ==666 [2025-01-13 23:59:17] Production.ERROR: pbx CDR StartTime 2025-01-13 20:59:04 - End Time 2025-01-13 23:59:04 [2025-01-13 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-13 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242460', 'tblTempUsageDetail_20' ) start [2025-01-13 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14242460', 'tblTempUsageDetail_20' ) end [2025-01-13 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242460', 'tblTempVendorCDR_20' ) start [2025-01-13 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14242460', 'tblTempVendorCDR_20' ) end [2025-01-13 23:59:17] Production.INFO: ProcessCDR(1,14242460,1,1,2) [2025-01-13 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14242460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14242460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-13 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14242460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14242460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-13 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242460', 'tblTempUsageDetail_20' ) start [2025-01-13 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14242460', 'tblTempUsageDetail_20' ) end [2025-01-13 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-13 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-13 23:59:21] Production.INFO: ==24758== Releasing lock... [2025-01-13 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-13 23:59:21] Production.INFO: 32.25 MB #Memory Used#